Variables window collapses all expanded nodes after a Step/Step-Over/Continue

Issue Type: Bug
This is a continuation of Issue #25652. Since it is closed for comments, creating a new one here.
I have a way to demonstrate the problem and a fix for it as well. It is not specific to cpptools/MIEngine. I can show the problem with Typescript debugging as well. The problem happens when you go from a stopped->running->stopped transition of a program. Not specific to step/next/continue actions and not specific to a particular debug-adapter/language.
As mentioned in issue #25652, it is true that variableReferences must be preserved by the debug adapter for the state to be preserved. I verified that MIEngine does indeed conform, all references are the same as before. This problem only happens if the elapsed time from a running->stopped transition is more than about a half a second.
When going from a stopped->running transition, the variable window gets a onDidFocusStackFrame  event -- but call-stack is empty. In the event handler, an actual tree update is scheduled with a delay of 400ms. If a new stackFrame is available by the time the update function is called, then it has a stack frame and will update the tree nicely. But by the time the update function is called we still don't have a valid stack frame (a running->stopped transition has not occurred yet), then the children are destroyed and the tree becomes empty. Eventually, when a running->stopped transition does occur, it all looks new and the tree gets its default state (the first scope expanded). Lost state.
I have two examples that you can get from https://github.com/haneefdm/cortex-debug-samples
There are two subdirectories of interest:

var-win-bug-cpp
see main.cpp for instructions on where to set breakpoints and what to do
var-win-bug-ts
see src/main.ts for instructions on where to set breakpoints and what to do

I have a fix in my fork, and I hope someone can review my changes (just one file)
https://github.com/haneefdm/vscode/blob/master/src/vs/workbench/contrib/debug/browser/variablesView.ts
My changes are at the beginning of the VariablesView.constructor() and beginning of VariablesView.renderBody(). The Variable window also behaves differently on different OSes and speed of the machine.
I welcome any other fix, but this is a big problem and it becomes very obvious/painful when debugging remotely or anything complicated with complex data structures.
VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:29:22.216Z)
OS version: Darwin x64 18.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (0.03GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (22)

Extension
Author (truncated)
Version

easy-cpp-projects
ACh
1.7.7

npm-intellisense
chr
1.3.0

arm
dan
0.4.0

vscode-markdownlint
Dav
0.28.0

vscode-eslint
dba
1.9.0

EditorConfig
Edi
0.13.0

vscode-npm-script
eg2
0.3.7

vscode-pull-request-github
Git
0.8.0

csharpextensions
jch
1.3.0

vscode-csharp-snippets
jor
0.3.1

csharpfixformat
Leo
0.0.81

cortex-debug
mar
0.3.1

extension-manifest-editor
ms-
0.1.5

python
ms-
2019.6.22090

cpptools
ms-
0.24.0-insiders3

csharp
ms-
1.20.0

mono-debug
ms-
0.15.8

vscode-typescript-tslint-plugin
ms-
1.2.1

debugger-for-chrome
msj
4.11.6

tcl
sle
0.2.0

python
tht
0.2.3

vscode-icons
vsc
8.8.0

CC: @pieandcakes @gregg-miskelly

@haneefdm  Thanks for the detailed analysis and for the potential fix.
Let's first look into the issue: yes, if we do not recieve a stopped event after some time (400ms) we simply clear the tree. You are correct. If a stopped event comes after some time the view state (expand and selection) will be lost.
Looking at your fix: this feels like a hack to me, that we simply hide the tree from the dom. Even though a stopped event might not ever arrive.
How we could potentially fix this:

Every time we update the tree we would store the last viewState of the tree when we were stopped. By calling this.tree.getViewState()
When the next stop happens instead of saying tree.upadteChildren we would this.tree.setInput(this.debugService.getViewModel(), previousStoppedViewState)
When a running state happens we simply tree.updateChildren() to clear the tree

Feel free to open a PR with this appraoch and we can try it out and see if it fixes your issue.
Thank you very much

@isidorn, Thanks for the quick reply. Yes, I considered using getViewState() like what the ExplorerView does.  but I thought since there is no other client for the tree, we are not trying to remember across sessions, hiding it was fine. From a users perspective, makes no difference. Yes, the stopped event may never arrive but we are not waiting for that event either.
I will implement the getViewState() method today.
But, may I ask for one change from your proposal. The last bullet says, 'clear the tree when running state happens'. May I suggest we not do that instantly. The current method of waiting for 400ms has a nice visual effect of not clearing the window and then repainting it. Causes flashing. 400ms is a nice enough time because the user won't have time to interact with the tree while it is invalid and lots of times, it debugger stops.
I will implement without losing the current nice feature of not flashing ... unless you insist.

Yes, your correction sounds good to me. You can sketch up a PR and we can take it from there if it looks good. Thanks!

@isidorn, I created a PR #76476 using the getViewState() method you suggested. From a UX point of view, it looks/feels the same as my first implementation.
FYI, I was working with the MIEngine folks to add a feature to MIEngine (registers scope) and ran into this during my testing. I made sure all variable IDs were the same and I was still losing tree state. If accepted, it will help a lot.

Thank you for the PR I will review it later today.

Fixed via https://github.com/microsoft/vscode/pull/76476

@haneefdm once the new insiders is out tomorrow please let me know if you can still reproduce the original issue.

Will do and report back.

Done. It works as expected in today's insiders build and the original issue is no more.

Great, adding verified label.


Airplay not working?

I'm playing a video: https://www.youtube.com/watch?v=_u8nrKl7xS4
.. but the AirPlay option is not appearing.
I've got "Audio, AirPlay and Picture-in-Picture" on in Background Modes.
I've tried using these settings:
player.allowsExternalPlayback = true
player.usesExternalPlaybackWhileExternalScreenIsActive = true

But the AirPlay icon still doesn't appear.
The same video works with AirPlay in the Youtube app.

AirPlay support is outside the scope of XCDYouTubeKit. However, this might help you, from the official AVPlayerViewController documentation:

Starting in iOS 9, supported iPad models also provide Picture in Picture playback from a player view controller.

[...]

Participating with Picture in Picture

To participate with Picture in Picture (PiP), take the following steps in your Xcode project:

Link on or after iOS 9.0.

In the Xcode Capabilities view for your project, select Audio and AirPlay in the Background Modes section.

Configure your audio session with an appropriate category, such as AVAudioSessionCategoryPlayback, If you have not already done so in your app.

To respond to user interactions with the PiP window, implement the methods of the AVPlayerViewControllerDelegate protocol.

Having configured your project to support Picture in Picture, the player view controller then provides a PiP button for the user, along with the other playback controls.


Fix AirQuality

Add characteristic_AirQuality
Add states to pull option air quality fields from
Fix "Cannot set" error log

This plugin is obsolete and no new releases are planned.


update documentation: plot_incidence_rate()

Solves #225

Codecov Report

Merging #235 (8ae3cd2) into master (8dda76b) will decrease coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #235      +/-   ##
==========================================
- Coverage   87.24%   87.07%   -0.17%
==========================================
  Files           5        5
  Lines        1011      998      -13
==========================================
- Hits          882      869      -13
  Misses        129      129

Impacted Files
Coverage Δ

oscovida/metadata.py
95.77% <0.00%> (-0.18%)
:arrow_down:

oscovida/oscovida.py
85.46% <0.00%> (-0.15%)
:arrow_down:

oscovida/plotting_helpers.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

Plots looks fine

Another one looks good as well

Thanks!
What you have called 'plot 2' (which was 'plot 1' initially), i.e. the accumulated numbers in log scale - is not actually shown any more. I would thus - for consistency - also remove it from the plots.html webpage.

Thanks, that's great and looks good to me.

Wait a second.
There's no picture on the main page:

Although there is a picture on staging:

Any ideas why it might be?

I have a theory. Every time we update the webpages, we run this line:
https://github.com/oscovida/oscovida.github.io/blob/8bd380702232a80ec7b1883795ab1c73be092a17/.github/workflows/update-webpages.yml#L64
This will commit any changed files to the github pages repo. But as the filename used here is new, the file will not be added, even if it is re-created (as it should) with every update.
So I have now added a placeholder file to the oscovida.github.io repository (https://github.com/oscovida/oscovida.github.io/commit/8678f51079bc5e6af8100d43b7c9bbf8e2dba399), which hopefully will then be overridden with the autogenerated incidence plot fig-uk-incidence.svg .

This seems to have worked. We can close the issue (if still open).
Sent from smartphone - please excuse brevity and typos
On 27. Mar 2021, at 08:25, Hans Fangohr @.***> wrote:

CAUTION: This e-mail originated outside the University of Southampton.
I have a theory. Every time we update the webpages, we run this line:
https://github.com/oscovida/oscovida.github.io/blob/8bd380702232a80ec7b1883795ab1c73be092a17/.github/workflows/update-webpages.yml#L64https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Foscovida%2Foscovida.github.io%2Fblob%2F8bd380702232a80ec7b1883795ab1c73be092a17%2F.github%2Fworkflows%2Fupdate-webpages.yml%23L64&data=04|01|H.FANGOHR%40soton.ac.uk|24ca37a9ce19443587be08d8f0f183a0|4a5378f929f44d3ebe89669d03ada9d8|0|0|637524267367934643|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=wxnk0FHlQPuvZ9zVoJoImEqrxFYub6i9LA1Mbd%2Fuzss%3D&reserved=0
This will commit any changed files to the github pages repo. But as the filename used here is new, the file will not be added, even if it is re-created (as it should) with every update.
So I have now added a placeholder file to the oscovida.github.io repository @.***https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Foscovida%2Foscovida.github.io%2Fcommit%2F8678f51079bc5e6af8100d43b7c9bbf8e2dba399&data=04|01|H.FANGOHR%40soton.ac.uk|24ca37a9ce19443587be08d8f0f183a0|4a5378f929f44d3ebe89669d03ada9d8|0|0|637524267367934643|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=ZVXUiJ7toyEc1v2vwvwJtHtRtvW%2BLxOPr0FuJrVGIN0%3D&reserved=0), which hopefully will then be overridden with the autogenerated incidence plot fig-uk-incidence.svg .
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Foscovida%2Foscovida%2Fpull%2F235%23issuecomment-808678707&data=04|01|H.FANGOHR%40soton.ac.uk|24ca37a9ce19443587be08d8f0f183a0|4a5378f929f44d3ebe89669d03ada9d8|0|0|637524267367944597|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=rVvj5gklcAAbjbLH7SGWZArepWCQkdZx0rIcHAsR8gY%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABCH7H42EQ4KOG5VZ2YHKOTTFWB65ANCNFSM4ZXOKJRA&data=04|01|H.FANGOHR%40soton.ac.uk|24ca37a9ce19443587be08d8f0f183a0|4a5378f929f44d3ebe89669d03ada9d8|0|0|637524267367944597|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=bWvRBjOGXVHkGee%2FE24WPldlmaaUJ4Bc2Hg2WT9GLhs%3D&reserved=0.


Roll engine 163a2fd5e140..f37b09a11b28 (1 commits)

https://github.com/flutter/engine/compare/163a2fd5e140...f37b09a11b28
git log 163a2fd5e140d10a30645e73031054ef39105d87..f37b09a11b281b2a4e5dfcb45029069c3ac6e460 --no-merges --oneline
f37b09a11 [fuchsia][SCN-1054] Map elevation onto -Z in Scenic (flutter/engine#7834)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


It is possible to store either structs or pointer to structs ?

In STL it is possible to define, e.g.,
vector<SweepEvent> ev;
vector<SweepEvent*> evp;

After looking in the documentation, the code, and the examples I was not able to determine whether this can be done in CTL.
Thanks for your answer.
Esteban

I, too, have entertained similar contemplations. You can encapsulate pointers within the struct to achieve the sought-after effect.
typedef struct SweepEventPoint{ SweepEvent *point};  #define POD  #define NOT_INTEGRAL  #define T SweepEventPoint  #include "ctl/vector.h"


[QR Code] Add background/border to profile icon in DMs

Going hand in hand with the changes in: https://github.com/Expensify/App/issues/19802 and coming from https://expensify.slack.com/archives/C03TME82F/p1685351262064359
Let's add a background to the profile image embedded in the DM QR Codes to match the design style of the room icons and closer to the original mockup:

Proposal
Please re-state the problem that we are trying to solve in this issue.
[QR Code] Add background/border to profile icon in DMs
What is the root cause of that problem?
We are not specifying the space in logo
What changes do you think we should make in order to solve the problem?
We should add logoMargin here to specify space between logo and its wrapper. Also we should add logoBackgroundColor to specify background color
https://github.com/Expensify/App/blob/720730c58efba0fee258cb0f7136ddba3e1c5cb2/src/components/QRCode/index.js#L45-L55
Here is a result which I achieved in small amount of time. We can make it more accurate if measures is provided

What alternative solutions did you explore? (Optional)

Consolidating this issue to this one: https://github.com/Expensify/App/issues/19802 as we need to make sure the margins are consistent


Cannot Install Twitch Leecher

log.txt
Checklist:

Found Similar issues previously, their fixes did not work for me.
Version 2.0.7
had version 1.8.x before, suddenly didn't work, could not find any videos/channels/IDs, nothing
Tried to update with 2.0.7 installer, same error. Removed all files manually and cleaned registry with Ccleaner.
Still cannot install.
Windows 10 Pro.

you can run the installer via command line like this:
TwitchLeecher_2.0.7.exe -l log.txt
Click through the installer, let it do its thing until it errors out. There will be one or more log files next to the installer. Show me the log files...

you can run the installer via command line like this:
TwitchLeecher_2.0.7.exe -l log.txt
Click through the installer, let it do its thing until it errors out. There will be one or more log files next to the installer. Show me the log files...

I already provided the log file in my initial post, but here it is again:
log.txt

There must be more than one log file. The execution logfile is missing. SOmething like log_0.txt. Just send them all, please.

There must be more than one log file. The execution logfile is missing. Something like log_0.txt. Just send them all, please.

Apologies, here they are:
log.txt
log_000_TL.txt
This time, for some reason, It wanted to uninstall it, but I do not have it installed... It still failed anyway

Found Similar issues previously, their fixes did not work for me.

That is because you re the only one so far with this issue.
MainEngineThread is returning 1603
That is an error code of the Windows Installer system. That error code is documented my Microsoft and basically what they say is "could be everything". So I feel like this error code is for issues even MS don't understand. Sometimes it's a permission issue, sometimes it is anti virus, somethines it is the installer being unable to delete old files.
I honestly don't know what I should do here. I do not have a lever I can pull to fix anything. Something on your system causes the installer to crash and even the log file does not tell me what it is.
The only thing you could do is check the Windows event log. Go to Windows event viewer -> Windows Logs -> Category Application or Setup. Meybe you find something interesting there.

The only thing you could do is check the Windows event log. Go to Windows event viewer -> Windows Logs -> Category Application or Setup. Meybe you find something interesting there.

I ran the installer with both log files again, just to be sure.
log.txt
log_000_TL.txt
just in case something changed. And it did, it didn't want to uninstall this time, it wanted to install, but still failed.
Event Viewer Registered 3 entries:

Restore Point
Successfully created restore point (Process = C:\Users\Madog\AppData\Local\Temp\{81765533-EB45-4A96-9935-0FA0A2E42CD2}\.be\TwitchLeecher.exe -q -burn.elevated BurnPipe.{32EAEE44-0410-4F20-BE2F-4590A7AF91A2} {327DBA98-927B-4F37-93F5-25699C664AB2} 25992; Description = Twitch Leecher 2.0.7).

MsiInstaller 1040
Beginning a Windows Installer transaction: C:\ProgramData\Package Cache\{FE96584C-AB61-4212-99A3-790756CB7701}v<IP_ADDRESS>\TL.msi. Client Process Id: 43640.

MsiInstaller 1042
Ending a Windows Installer transaction: C:\ProgramData\Package Cache\{FE96584C-AB61-4212-99A3-790756CB7701}v<IP_ADDRESS>\TL.msi. Client Process Id: 43640.

I don't know what to do with this Data, so I hope this either helps, or helps you get more info.
I can give you more info if you want, I just don't know what/where to look.

Those events are normal and nothing special. Sorry mate, I don't know. Something's borked on your system. I have no further ideas.

Those events are normal and nothing special. Sorry mate, I don't know. Something's borked on your system. I have no further ideas.

Alright, if I figure something out, I'll reply here. Thank you for trying.

I finally found the source of the issue, it was a corrupted .NET framework, and a corrupted Windows install service.


Release 0.4.2

Whatsnew:
Documentation
* readthedocs now has an example notebook gallery  (:pull:`440`)
* readthedocs switching to pydata-sphinx-theme to match pvlib (:pull:`432`)
* on building sphinx docs, tutorial directory is copied into sphinx/source  (:pull:`437`)
* Update Radiance version to 5.3 on instructions and github CI  (:issue:`417`)(:pull:`452`)

Bug fixes
~~~~~~~~~
* Return functionality that existed previous to 0.4.0:  :py:class:`~bifacial_radiance.ModuleObj`. ``text`` can be manually passed in, over-riding the module object definition.  This was mistakenly removed during the moduleObj refactor. (:pull:`413`)(:issue:`390`)

Enhancements
~~~~~~~~~~~~
* Adds new functions :py:class:`~bifacial_radiance.ModuleObj`. ``saveImage`` and :py:class:`~bifacial_radiance.SceneObj`. ``saveImage`` to save .hdr images of a module or scene.
* New ``saveImage`` functions are run by default in the modelchain if simulationParamsDict['saveImage'] = True. The gui will set saveImage = True by default.
* If a 1-axis simulation is run from modelchain and simulationParamsDict['saveImage'] = True, :py:class:`~bifacial_radiance.SceneObj`. ``saveImage`` will render a scene with the tracker angle closest to 20 degree tilt

Deprecations

:py:class:~bifacial_radiance.RadianceObj.nMods and nRows internal parameter has been removed. These are now defined per :py:class:~bifacial_radiance.SceneObj.sceneDict
trackerdict[index]['clearance_height'] parameter has been removed. These are available inside the trackerdict[index]['scene'] :py:class:~bifacial_radiance.SceneObj .sceneDict

API Changes
*  :py:class:`~bifacial_radiance.GroundObj` has new parameter ``silent`` to suppress print statements.  Default: `False`
*  :py:class:`~bifacial_radiance.SceneObj` has new parameter ``name`` to identify it in upcoming multi-scene simulations.  Default: `Scene0`

Merged #456


Travis: Linter errors should exit with code 1, but are exiting with code 0

Linter errors aren't breaking the Travis build. gulp lint should exit with code 1 when there are errors, but it exits with code 0.

This will be fixed in https://github.com/cfpb/cfgov-refresh/pull/3010


IPv6 not well supported in Finding view

Bug description
When and endpoint as an IP v6 address in it, it is truncated.
Ex: 2001:8::1 become 8::1 in the UI
Steps to reproduce
Steps to reproduce the behavior:

Import a report with an endpoint that have an IP v6 address
Click on finding view
See IP v6 address truncated

Expected behavior
A clear and concise description of what you expected to happen.
I was expecting IP v6 address  2001:8::1 in the UI
Deployment method (select with an X)

[x] Docker

Environment information

Operating System: Arch
DefectDojo Commit Message: 91de047e: Bump sqlalchemy from 1.4.2 to 1.4.3 (#4126) [ (HEAD -> dev, upstream/dev, origin/dev)]

Sample scan files (optional)
OpenSCAP report file
ios-sample-v1.1.3.xccdf.xml.txt
Screenshots (optional)

Is this still issue? I suppose it was fixed in #4473

@kiblik we have tests on IPv6 since #4473 ?

https://github.com/DefectDojo/django-DefectDojo/blob/3817f3aa7914da306d6925000f0f6462c9a44325/dojo/unittests/tools/test_openscap_parser.py#L65

Ok. well done. I'm closing it.


What region is data stored in?

I'm looking to analyze some of the datasets in gs://weatherbench2/datasets on GCP. I'd like to make sure the cloud VMs I'm using are in the same region where the data is stored for better performance. I certainly could be missing something, but I didn't see any reference on https://weatherbench2.readthedocs.io/en/latest/data-guide.html as to what region the gs://weatherbench2/datasets bucket lives in. Does someone here know what cloud region is used for storage?

@shoyer maybe you know what region these live in?

It's currently in a multi-region US bucket.


Game crashes when trying to load a map

Describe the crash
Yep, the game crashes when I try to load any map to edit it. I checked the crashlog and this appeared:
Sat Mar 11 22:19:42 2023
Application has crashed: C++ exception
mods/BeardLib-Editor-master/Classes/MissionElementUnit.lua:81: attempt to index field 'EditorOptions' (a nil value)
SCRIPT STACK
create_mission_element_unit() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:574
create_element() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:540
_create_elements() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:521
original() core/lib/managers/mission/coremissionmanager.lua:403
init() @mods/base/req/core/Hooks.lua:262
new() core/lib/utils/coreclass.lua:35
_add_script() core/lib/managers/mission/coremissionmanager.lua:113
_load_mission_file() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:130
parse() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:40
init_game() lib/setups/gamesetup.lua:740
core/lib/setups/coresetup.lua:424
I don't know what happened or how to fix it. I have everything downloaded correctly so I don't really know what's going on, please help
Steps to reproduce the crash
Just load into any, and I mean literally ANY map (custom or not) and it will crash the game
Logs
Sat Mar 11 22:19:42 2023
Application has crashed: C++ exception
mods/BeardLib-Editor-master/Classes/MissionElementUnit.lua:81: attempt to index field 'EditorOptions' (a nil value)
SCRIPT STACK
create_mission_element_unit() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:574
create_element() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:540
_create_elements() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:521
original() core/lib/managers/mission/coremissionmanager.lua:403
init() @mods/base/req/core/Hooks.lua:262
new() core/lib/utils/coreclass.lua:35
_add_script() core/lib/managers/mission/coremissionmanager.lua:113
_load_mission_file() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:130
parse() @mods/BeardLib-Editor-master/Hooks/MissionManager.lua:40
init_game() lib/setups/gamesetup.lua:740
core/lib/setups/coresetup.lua:424

Callstack:
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     ???
     payday2_win32_release  (???)     zip_get_name
                     ntdll  (???)     RtlAllocateHeap

Current thread: Main

System information:
Application version : 1.136.176
CPU : Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (1 core); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : Intel(R) UHD Graphics / igdumdim32.dll[<IP_ADDRESS>29]
Language : english
Memory :     12111MB 628KB
OS : 6.2.9200 () 0x300-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Realtek Semiconductor Corp. (Speaker (Realtek(R) Audio))
Minimal reproduction
No response

Can you send your logs after you get this crash? you can find it in mods/logs/[todays date]
Seems like something might not been able to initialize correctly

09:32:57 AM FATAL ERROR:  (C:\projects\payday2-superblt\src\InitiateState.cpp:248) mods/Full Speed Swarm/lua/coresoundenvironmentmanager.lua:16: bad argument #1 to 'max' (number expected, got nil)
stack traceback:
[C]: in function 'max'
mods/Full Speed Swarm/lua/coresoundenvironmentmanager.lua:16: in function 'add_check_object'
mods/BeardLib-Editor-master/Core.lua:131: in function 'func'
mods/Full Speed Swarm/lua/blt_hooks.lua:32: in function 'Call'
mods/base/lua/MenuManager.lua:79: in function '_base_process_menu'
mods/base/lua/MenuManager.lua:55: in function <mods/base/lua/MenuManager.lua:32>
[C]: in function 'pcall'
mods/base/lua/MenuManager.lua:32: in function 'func'
mods/Full Speed Swarm/lua/blt_hooks.lua:32: in function 'Call'
mods/base/lua/MenuManager.lua:5: in function 'func'
mods/base/req/core/Hooks.lua:269: in function 'init'
[string "core/lib/utils/coreclass.lua"]:35: in function 'new'
[string "lib/setups/setup.lua"]:404: in function 'original'
mods/base/req/core/Hooks.lua:262: in function 'init_managers'
[string "lib/setups/gamesetup.lua"]:660: in function 'init_managers'
[string "lib/setups/networkgamesetup.lua"]:10: in function 'init_managers'
[string "core/lib/setups/coresetup.lua"]:401: in function <[string "core/lib/setups/coresetup.lua"]:295>
09:32:57 AM Lua: [ERROR] nil
09:33:03 AM Log:  (C:\projects\payday2-superblt\src\http\http.cpp:44) CURL CLOSED
This thing?

Yes, looks like full speed swarm might be causing compatibility issues, try uninstalling it and see if it works


Reference cockiecutter documentation in developer guide

Description
Make sure people can find the cockiecutter.
Reference it in the developer guide (wiki, birdhouse docs).
Before we really want to advertise it we need to use it by our-self.
Additional Information

https://github.com/bird-house/bird-house.github.io/wiki/Make-Your-Own-Bird
http://birdhouse.readthedocs.io/en/latest/dev_guide.html

Agreed. I want to create the Finch bird with it. Should I wait for you to work on the ansible deployment first?

No, don't wait for the Ansible. Ansible deployment is also an evolving thing and needs some iterations. We can update the birds and cookiecutter later on. Basically we just need to remove the buildout.cfg and update the Makefile.

Done.


Gradient Color plugin

Consider to use http://gka.github.io/chroma.js to know color names, do transformations and render gradients.

Aside from gradients, TinyColor already does all that. What's the benefits?

I don't know the difference... chroma.js looks more complete and i want(ed) to compare and consider to use. If you say, i don't need to analyze this. :-)

Looking fwd to gradient features being developed in the branch mentioned in #659 😃

This should be covered by canvas functionality #183


PA2 Error: Declaration of additional properties/constants.

Summary
hi, does anyone hv any idea what i may have done wrongly?
Description
CodeCrunch: Declaration of additional properties/constants.
Screenshots (if any):

Nothing should not have any properties declared

yeahh thanks @ArkAzrael found my error!

Had the same problem here. I thought nothing is the only part that i got correct lol.


[question] API Status

I have run into the same issue twice with xplot I was wondering why the API had changed and what the status was, I have a similar issue with xwidgets where it downgrades all my packages, but I am able to build it from source.
Thanks

Chris

Hi, it looks like we forgot to upgrade xplot last time we released xwidgets. I will try to fix it this week.

Hi, it looks like we forgot to upgrade xplot last time we released xwidgets. I will try to fix it this week.

Thanks so much!


Telegram Bot Airdrop Automation

Hello Bro can you hack this telegram bot game
https://t.me/catizenbot/gameapp?startapp=r_3_3254911
This is a earning game can you hack

And if you can't hack the game then can you make auto bot for this game.  I am giving you the screenshots for you to check them out
And to buy autobots for this game you need 3900 fish tokens which is worth about 12 dollars.  And I joined here with 13 telegram accounts so it is not possible for me to buy this auto bot for each account with so many dollars.  So can you make an auto bot for it or hack the game itself?  Don't forget to let me know if you can.

Hi, looks like you have posted wrong issue in the wrong repository. If you want automate inviting your accounts to bot I recommend use another bot telegram-referral-bot. It could help you invite your telegram accounts with your invite code.


Add --etcd-quorum-read to apiserver arguments

I've been told that if you're going to run a HA apiserver configuration you need --etcd-quorum-read otherwise the apiservers will end up reading inconsistent data from etcd. Assuming that's true I think it would be good to include it here.

Based on some very quick research, this probably has no effect with etcd3. On etcd2 it makes sense it would be needed.
coreos/etcd#6829.
coreos/tectonic-installer#400

Newer version of Kubernetes default this to true anyway now https://github.com/kubernetes/kubernetes/pull/53717


How users see/access the feedback form

can the below be done as a quick fix?
@ericearl @Remi-Gau @bendhouseart
i don't think we want to send the survey out today and get this back as our #1 feedback comment .

the user feedback directions are a bit messy, here's how we could clean them:
The main website header says:

It could instead:

[ ] literally link from those words to the main page in the Footer section -- could open in a new tab if desirable
so we should also:
[ ] if not there already, add an anchor in the Footer of the main page to bring ppl to the feedback form

@christinerogers I think I tried this initially but due to some spooky javascript at a distance it ended up "breaking" the comment section when clicking the link.
Will let know if I'm able to overcome my limitations and make a second attempt. If I can't crack it do you mind if I go ahead and mark at can't/unable to fix?

hmmmm let's get fresh eyes on it if you can't crack it this time.   There's surely another solution to make this easier for website visitors like maybe a button even.


Connect to Chromecast while running outline-client

Whenever I run outline-client I can't connect to Chromecast. Is there any workaround to fix this?

I'm afraid not, because your device is exposed to the VPN network, instead of local network when outline is on. This behavior is described in the outline FAQ:

Will I be able to connect to devices in my wifi network if I'm using Outline?

No. While running Outline, you won’t be able to connect to devices (e.g. your chromecast, local printer, shared hard drives, etc) that are only accessible from within your local wifi network.

Maybe you can try the original Shadowsocks client, which allows you to only route messages to some addresses, and let others pass out of the VPN, particularly it can make messages to local network not use VPN.
The key begin with ss:// is compatible with different shadowsocks clients.

@cybort @alalamav Thanks for the clarification

And yet I'm able to stream to my Chromecast from my OS X device even though I'm definitely connected to an Outline server with the Outline client... Is that surprising?

@muhammadtarek Thanks for trying Outline! Bypassing local addresses is something we'd like to address, though we haven't gotten around to it yet.
@andreimatei Yes, it is a little surprising to me that that works.
BTW, I will close this issue as a duplicate of this one (will note that Chromecast is affected):
https://github.com/Jigsaw-Code/outline-client/issues/18


Separate thread sampling and export intervals

Why
There is one variable for gathering thread samples interval and exporter interval. This can be quite misleading when using only memory profiling.
What
Introduce new SIGNALFX_PROFILER_EXPORT_INTERVAL variable that is responsible for exporter interval only.

Have you checked how Java and JS are doing it? I would follow the same practice. Take notice that the profiler env vars are defined here: https://github.com/signalfx/gdi-specification/blob/main/specification/configuration.md#instrumentation-libraries

Have you checked how Java and JS are doing it? I would follow the same practice. Take notice that the profiler env vars are defined here: https://github.com/signalfx/gdi-specification/blob/main/specification/configuration.md#instrumentation-libraries

Our specification does not go into such details on the configuration variables.

I wasn’t able to find something similar in Java. The previous config variable is not in the spec either, but we need it anyway. It is confusing as its description does not indicate it influences the exporting too.

May I add this to the official docs already?

Not before it is merged (and released). Personally, I am hesitant if we should include this config... @lachmatt do you have an opinion?

I think this is a case of what was noted here - something that makes sense for this specific instrumentation.
The previous config is in spec, but with different prefix.
I'd prefer to go with what's in this PR as this reduces confusion, at the same time I see @pellared point.


Finalization for custom gates

This PR builds upon https://github.com/MinaProtocol/mina/pull/12375 and https://github.com/MinaProtocol/mina/pull/12342, using the feature flags to optionally generate the scalars that we need during finalization.
Checklist:

[ ] Modified the current draft of release notes with details on what is completed or incomplete within this project
[ ] Document code purpose, how to use it

Mention expected invariants, implicit constraints

[ ] Tests were added for the new behavior

Document test purpose, significance of failures
Test names should reflect their purpose

[ ] All tests pass (CI will check this if you didn't)
[ ] Serialized types are in stable-versioned modules
[ ] Does this close issues? List them

!ci-build-me


Google Pub/Sub 14:Deadline Exceeded and Google::Cloud::UnavailableError

Environment: GKE 1.10.2.
 So far, this has only affected publishing. When a pod gets into a bad state, publishing of messages gives frequent errors that look like below stacktrace.
We have discovered that about 10 minutes before a pod goes into this bad state, we see two log messages like this:
#<Thread:0x00007f26bdb43a08 run> terminated with exception (report_on_exception is true):
Header value '�|&' has invalid characters (ArgumentError)

I'm not yet sure what on our end would be causing that ArgumentError.
I think this might be coming from https://github.com/grpc/grpc/blob/master/src/ruby/ext/grpc/rb_call.c#L436?
10 minutes later is when the first exception is raised. Sidekiq reports that it failed after a little over 10 minutes. The pod from that point forward continues to have the same issue. I can't tell if every call has the issue, but the number of these exception raised is at least correlated with throughput.
stacktrace.txt

@apolcyn can you give us some insight on this error?

We have discovered that about 10 minutes before a pod goes into this bad state, we see two log messages like this:

#<Thread:0x00007f26bdb43a08 run> terminated with exception (report_on_exception is true):
Header value '���|&�' has invalid characters (ArgumentError)

This is definitely strange. The two places where this seemingly bad header could be coming from would be:

something above the gRPC library is passing this header in as RPC "custom metadata"
the metadata that is attached by call credentials (e.g. OAuth creds)

@apolcyn If you look at the backtrace, the call is coming from google-cloud-pubsub. We aren't setting any custom metadata, and we don't expose a way to set custom metadata in the Ruby API. If this were something in the call credentials, would it be something that could be set after auth token refresh?

@sgringwe How are you authenticating? Are you using a service account's keyfile.json file? Something else?

@sgringwe Also, have you experienced this behavior on google-cloud-pubsub 0.32.0?

If this were something in the call credentials, would it be something that could be set after auth token refresh?

I'm not familiar with ruby's google call creds implementation, but I believe so - the metadata hash that the call cred is returning could possibly be triggering this error.

@blowmage We are authenticating using GOOGLE_CLOUD_KEYFILE_JSON. We'll be upgrading to 0.32.0 today. Usually it takes a day or so for this error to occur on one of the pods, so it will be at least a few days before we know if 0.32.0 fixes it.

@apolcyn Well, we aren't doing anything unusual with the call credentials, as you can see here:
https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/google-cloud-pubsub/lib/google/cloud/pubsub/service.rb#L58
We basically pass the credential object's updater_proc as-is. The credential's updater_proc is defined here:
https://github.com/google/google-auth-library-ruby/blob/master/lib/googleauth/service_account.rb#L157-L180
it looks to me like it is only setting the authorization header.
@sgringwe What is the system's default encoding that is running this job?

@blowmage This is what I am getting from ruby prompt, let me know if there is another preferred method or debug call to make
[1] production(main)> Encoding.default_external
=> #<Encoding:UTF-8>
[2] production(main)> "string".encoding
=> #<Encoding:UTF-8>

Thanks @sgringwe, that all looks fine. A couple more questions:

Can you look into your authentication environment variable and tell us what the auth_uri and token_uri values are? Are they "https://accounts.google.com/o/oauth2/auth" or are they something else?

Do you happen to know how many messages you are publishing at a time? How large are the messages?

@blowmage

Yes - the values are like that string

Currently we aren't sending anymore than ~10k/minute. When this issue started happening we were at an even smaller scale of ~2k/minute. Message sizes vary. They will typically be small, but may have some large text fields from time to time.

K, if you are doing 10k publishes a minute, that is ~166 API calls a second. I wonder if this might be some concurrency issue with updating the access token. Perhaps a call sees that the token is about to expire and starts the process of refreshing it. But at nearly the same time, another process tries to make a call with the same token.
As it is, I have been unable to reproduce this behavior.

@blowmage interesting thought. I should clarify that the 10k/minute number is a mix of publish and publish_async, with most of those being publish_async. We have noticed that this issue has only been caused by publish calls, and has not yet been caused by a publish_async call. Does publish_async have the same potential concurrency issue updating the access token? How often is the access token refreshed?

publish_async was created for your exact use case. You have many concurrent updates and you want to batch them together to minimize the total number of API calls being made. It theoretically has the same concurrency issue with updating the access token, but practically you would need an order of magnitude more messages to hit it.
That said, I have not verified this is an issue with token refresh. I am only speculating since I have yet to reproduce the behavior described.

@blowmage we have not seen this error since upgrading to 0.32.0 about a week ago. We're still on publish (not publish_async). Throughput is same / increased.
I think that 0.32.0 did fix this.
If it's helpful here is what upgrades happened during that gem upgrade:

google-cloud-pubsub 0.31.1 -> 0.32.0
google-gax 1.0 -> 1.3
googleauth 0.6.4 -> 0.6.5
signet 0.8.1 -> 0.9.0

Nothing else changed.
From our perspective, feel free to close.

@sgringwe I am very glad to hear that!


[ssl/w2vbert]  support part of w2vbert training

ref: https://arxiv.org/pdf/2108.06209v2.pdf
note: bestrq >= w2vbert >= hubert >= wav2vec2 from some public information，
btw：  HuBERT, which relies on an iterative re-clustering and re-training process， so no plan to implement hubert for now

Great， THX！

TODO:

[ ] 初始化方式补齐下ref（可以稳定encoder训练）


An efficient implementation of Whisper with TorchScript

Initialize model like following
import efficient_whisper as whisper

model = whisper.load_model("large", device="cpu")
model.encoder = torch.jit.script(model.encoder)
model.decoder = torch.jit.script(model.decoder)
_ = model.half()
_ = model.cuda()

Self merge


screenshare

screenshare doesnt work when using ED

Can you test this without ED installed? It might be a discord issue.

i tested it with my friend. with ED installer screenshare doesnt work for both of us and we can see others screenshare he uninstalled ED i couldnt see his screenshare and he could see mine

Yeah sorry, just found out that it was just ED that's why I removed my comment.

np imma try to find what did dis

even with no plugins it doesnt work so its something deep in the code xd

Are you using the beta or master?

Also, probably easier to talk in the support server https://discord.gg/jWVp5jR


Updating a project fails when Jinja extension with breaking change is used

Describe the problem
Consider the following situation:

A template uses v1 of a Jinja extension.
A project is generated using this template.
A breaking change happens in the Jinja extension which gets released as v2.
The template adapts to v2 of the Jinja extension and gets released.
The project is updated using the new version of the template. This may not be possible.

So what's the problem? Copier's update algorithm re-generates a fresh project using the old version of the template (in this case, the one that uses v1 of the Jinja extension) and also generates a fresh project using the new version of the template (in this case, the one that uses v2 of the Jinja extension). But it is only possible to install one version of a package at a time in a virtual env, either v1 or v2 of the Jinja extension. So when v1 is installed, re-generating a fresh project using the old version of the template works but generating a fresh project using the new version of the template fails. And when v2 is installed, generating a fresh project using the new version of the template works but re-generating a fresh project using the old version of the template fails.
Template
See the next section for a complete test case.
To Reproduce
Add this test case to a new file, e.g. tests/test_jinja_extension_breaking_change.py, in Copier's test suite:
import sys
from pathlib import Path
from textwrap import dedent

import pytest
from plumbum import local
from plumbum.cmd import git

from copier.main import run_copy, run_update

from .helpers import build_file_tree

def test_update_with_jinja_extension_breaking_change(
    tmp_path_factory: pytest.TempPathFactory, monkeypatch: pytest.MonkeyPatch
) -> None:
    src, dst, ext = map(tmp_path_factory.mktemp, ("src", "dst", "ext"))

    monkeypatch.setattr("sys.path", [str(ext)] + sys.path)

    with local.cwd(ext):
        Path("test_ext").mkdir()
        Path("test_ext", "__init__.py").write_text(
            dedent(
                """\
                from jinja2.ext import Extension

                def to_slug(value):
                    return value.replace(" ", "-")

                class TestExt(Extension):
                    def __init__(self, environment):
                        super().__init__(environment)
                        environment.filters["to_slug"] = to_slug
                """
            )
        )

    with local.cwd(src):
        build_file_tree(
            {
                "copier.yml": (
                    """\
                    _jinja_extensions:
                        - test_ext.TestExt

                    version:
                        type: str
                    """
                ),
                "{{ _copier_conf.answers_file }}.jinja": "{{ _copier_answers | to_yaml }}",
                "version.txt.jinja": "{{ version }}",
                "output.txt.jinja": "{{ ('hello world ' + version) | to_slug }}",
            }
        )
        git("init")
        git("add", ".")
        git("commit", "-m1")
        git("tag", "v1")

    run_copy(str(src), dst, data={"version": "v1"})

    assert "_commit: v1" in (dst / ".copier-answers.yml").read_text()
    assert (dst / "version.txt").read_text() == "v1"
    assert (dst / "output.txt").read_text() == "hello-world-v1"

    with local.cwd(dst):
        git("init")
        git("add", ".")
        git("commit", "-m1")

    with local.cwd(ext / "test_ext"):
        Path("__init__.py").write_text(
            Path("__init__.py").read_text().replace("to_slug", "slugify")
        )

    with local.cwd(src):
        build_file_tree(
            {
                "output.txt.jinja": "{{ ('hello world ' + version) | slugify }}",
            }
        )
        git("add", ".")
        git("commit", "-m2")
        git("tag", "v2")

    run_update(dst, data={"version": "v2"}, overwrite=True)

    assert "_commit: v2" in (dst / ".copier-answers.yml").read_text()
    assert (dst / "version.txt").read_text() == "v2"
    assert (dst / "output.txt").read_text() == "hello-world-v2"

Then, run tests/test_jinja_extension_breaking_change.py and observe that it fails.

E   jinja2.exceptions.TemplateAssertionError: No filter named 'slugify'.

/tmp/copier.vcs.clone.6a_6fzf8/output.txt.jinja:1: TemplateAssertionError

Expected behavior
The update process should succeed.
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu 22.04
Copier version
ff5aa056a0f4b265aa0aad08c196c6a978e9f5c2
Python version
CPython 3.10
Installation method
poetry+git
Additional context
I've come to think that re-generating a fresh project using the old version of the template is bad. Instead, the fresh project using the old version of the template should be saved and retrieved during the update process. I haven't figured out a concrete solution yet, but I wonder whether custom Git references might be useful (along the lines of https://iterative.ai/blog/experiment-refs). Perhaps custom Git refs could point to hidden commits, each of which contains a fresh project based on a specific version of a template. Then, those custom Git refs would be pushed as well and Copier's update algorithm could retrieve the fresh project from there instead of re-generating the project. But I haven't tried this out yet nor have I got experience with using custom Git refs. If anybody has a good idea, I'm all ears. :pray:
In fact, the problem isn't limited to Jinja extensions, but it's the most likely situation. Also, for example, a breaking change in the Jinja library itself might lead to this problem.

Hello! Yes, indeed this problem existed since forever. The lack of reproducibility inherent in many tools lead to this behavior.
I experienced this same problem since years ago. 2020 prettiermaggeddon comes to my mind: https://github.com/prettier/prettier/issues/9459. The problem was produced by the way pre-commit installed dependencies (no surprise) and the way prettier didn't care about it.
Currently available on master, there's a new command: copier recopy. It reapplies the template using the same source and answers, but ignoring history.
So, if you come to this situation, just recopy, solve conflicts, and move on. Luckily it's not so often. It's documented on master too: https://copier.readthedocs.io/en/latest/updating/#when-the-update-gets-broken-because-while-replaying-old-copy
You can also provide an officially supported reproducible build of copier along with your template

Yes, indeed. Sorry for closing so fast! I didn't mean the issue is invalid.
I just meant that you can hit the same basic problem (unable to replay) when the render process triggers some impure installation. But indeed you're right and this case can be really disconnected from that other one.
It's also true that recopy isn't a replacement for update. What I meant is that it's a solution. Or a valid workaround. At the end of the day, I don't find myself hitting this problem very often. When that happens, a recopy just solves the problem and lets me continue updating from there onward. I actually found it when updating old templates with the current master, as it includes lots of breaking changes; and recopy helped a lot.
If we stored a replay cache in hidden git refs as you suggest, we wouldn't need to replay (unless there's no such cache) and the problem would disappear (and copier would be faster on updates). However my point is: do we really need all that complexity, when a simple recopy unblocks the situation, and the problem is not extremely common?
Let me reopen while we settle this. 😉

Another case in which updating a problem fails because the update algorithm replays the old template version is when Copier contains a breaking change such that the new template version works with the new Copier version but the old template version is incompatible. For instance, this might be a breaking change in copier.yml such that the new Copier version is incompatible with copier.yml of the old template version.

Well, this problem is inherent to the design and feature set of Copier, so I think it's time to settle wether it's just a known issue we can live with or there's something doable.
Possible solutions:

Already explained: document (https://github.com/copier-org/copier/pull/1218) that, if copier cannot replay for whatever reason, you should recopy and solve problems manually.

Make copier build the environment where it's running. I think it's obvious that we're not gonna do that. There are many ways to install Copier, and doing this would convert it into a chicken-and-egg self-bootstrapping package manager. That's a path I dont wanna go for obvious reasons. You install Copier and then it runs, not the other way around.

Record the path to the executable used in last play. This would need a specific environment to work with. For example, if you install Copier with pipx and I install it with nix, none of us could find the other's executable path. And if we did, only you would be able to replay my render, not the other way around. The only environment where a path is a guaranteed reproducible environment is nix, and still you need the source of that path. Thus it doesn't seem like the best option.

Allow the template to specify the path to a reproducible executable. For example, if my template includes an output that produces a reproducible executable like I showcased in https://github.com/orgs/copier-org/discussions/1130#discussioncomment-5890503, I can tell copier how to reproduce the URL to that executable (it should be based in the git commit, of course, which is the only reproducibility source I have) and do the replay running that. In practical terms, this would be only useful for nix or docker executions.

Store a cache of replays in local disk. That would reduce the chances to get a broken replay, and speeding things up. On CI, you can still use caches or artifacts to pass that cache across jobs.

Store that cache on some git ref in the subproject origin repo. It seems to me like it would create a lot of unwanted git garbage. Maybe you can specify a repo for caches, which could or not be the same as the origin.

To set thing clear, I don't have any willingness to implement any of the solutions because for me, number 1 just works and is good enough. Solutions 2 and 3 are clearly no-go. Among the others, what do you prefer?

5 personally, but it's not perfect either. Cache gets deleted. Such a feature is a helper at best, sometimes users will have to fallback to recopy. So I wonder if it's worth it.

6, probably unsurprisingly because I brought it up. I think we can make it optional, so that users who want to benefit from the reliable updating without replay need to push the Git ref. For those who don't want to do that, or for those who do but forgot to do it and lost the Git ref, Copier can fall back to replaying with the old template. This way, it's backwards compatible and less intrusive.
Since I seem to be feeling this pain the most, I volunteer to work on a PR. Sounds okay, @yajo and @pawamoy?

OK. I guess then that the reference to that cache (the remote, branch, tag, commit and/or whatever needed) should be stored along within the copier answers in something like _replay_cache: git@tro:lo/lo.git@asdfasdfasdfasdf or similar, right? So the next update looks at the last cache reproducibly.

I think Copier could use a custom refs namespace (like DVC, e.g. refs/copier and therein simply use the value from the _commit field in the answers file as the ref name. But I haven't tried this out yet, just an idea based on my current understanding of what DVC is doing.


Implement G_A_S Resolve #49

Resolve #49
Created a map of all known geysers/minerals within players
added functions to get nearest known resource from a position
added a function to get a ratio of mineral/gas
implemented worker wrapper logic to also extract gas

BLOOD FOR THE BLOOD GOD! ψ(｀∇´)ψ


Server WebSocket handshake errors should result in handshake error returned to client

As a spring cloud gateway user
in order to route traffic to websocket servers that perform authentication at the websocket handshake time (which is a valid behavior according to WSS specs section-4.2.2 ) and return a 401 status code to clients
I need to be able handle server WS handshake failure and to return the original (e.g. 401) status to websocket client handshake

Currently, as previously reported in #857 (which was marked as a duplicate for #845), the gateway is first returning the WSS handshake response (HTTP/1.1 101 Switching Protocols triggered in ReactorNettyRequestUpgradeStrategy) prior to contacting the server and receiving the 401 status, and finally returns a default Server internal error to the client
Traces and steps to reproduce are detailed into https://stackoverflow.com/questions/63196638/spring-cloud-gateway-hides-server-websocket-handshake-401-failures-to-clients
I'm suspecting the following dependencies are necessary to fix this issue:

client code (Netty client?) needs to expose the observed HTTP response code during handshake. Currently, the exception does not provide access to the status code programmatically (it is only present in the exception message).

io.netty.handler.codec.http.websocketx.WebSocketHandshakeException: Invalid handshake response getStatus: 401 Unauthorized
	at io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker13.verify(WebSocketClientHandshaker13.java:274) ~[netty-codec-http-4.1.51.Final.jar:4.1.51.Final]

gateway client code (at WebsocketRoutingFilter) needs to extract the client handshake error and flow it up properly to the server code code.
server code (ReactorNettyRequestUpgradeStrategy in spring-webflux) needs to receive and collect server errors during client handshake and return them to the client prior to committing the websocket handshake

Hi @gberche-orange added link to related discussion in Netty project.

So we have the netty bits. Is there a corresponding issue open in spring-framework?

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spencergibb thanks for the update on netty. I had not opened a spring-framework issue because I don't have sufficient background to word it and explain it correctly. I merely suspected

server code (ReactorNettyRequestUpgradeStrategy in spring-webflux) needs to receive and collect server errors during client handshake and return them to the client prior to committing the websocket handshake

Would someone from the spring cloud team with sufficient background be able to create it so that the @spring-cloud-issues bot does not close this issue ?

Any updates on this issue, i am facing the same problem using
<spring.boot.version>2.3.2.RELEASE</spring.boot.version>
<spring.cloud.version>Hoxton.SR7</spring.cloud.version>

Still no solution?


missing_scope error in list files

Hi,
I am using list_folder for fetching files from my Dropbox account.
Given code is
            const dbx = new Dropbox({clientId: clientId, clientSecret: clientSecret});
            const response = await dbx.filesListFolder({ path: '' });
            console.log('response', response);

I am getting the below error. However, I have already set the app permissions file_requests.read and files.metadata.read
            error: {
               error_summary: 'missing_scope/',
               error: { '.tag': 'missing_scope', required_scope: 'files.metadata.read' }
            }

A 'missing_scope' error indicates that the particular credentials you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens.
I see that in the code you shared here you appear to be attempting to perform this call using just the app key and secret (a.k.a. client ID and secret), however note that listing a folder directly like this requires an access token. (The app key and secret only identify the app; they do not themselves enable access to any particular account.) So, you'll need to get an access token and/or refresh token with that scope granted.
Refer to the OAuth Guide and authorization documentation for more information. You can find examples in the examples folder.


Dynamic Loading

General issue thread for implementing/discussing dynamic loading

I came across this thread in Zulip where dynamic loading options were discussed: https://bytecodealliance.zulipchat.com/#narrow/stream/206238-general/topic/Is.20it.20possible.20to.20instantiate.20two.20modules.20into.20one.20instance.3F

Emscripten seems to do dynamic loading with wasm: https://emscripten.org/docs/compiling/Dynamic-Linking.html

It seems like RLBox is only configured for statically linked libraries but what theyre doing here is still interesting: https://rlbox.dev/chapters/wasm-sandbox.html


asnumpy error in videochat2

Hello! When I run the offline inference of videochat2 using the same environment as videochat, I met the problem in conversation.py:

However, it's okay when I run videochat, what went wrong?

You can simply change asnumpy to numpy.

You can simply change asnumpy to numpy.

Thanks, already solved.

You can simply change asnumpy to numpy.

Thanks, already solved.

@Andy1621, Why would such a weird error occur? Moreover, there's also asnumpy that can lead to the same issue https://github.com/OpenGVLab/Ask-Anything/blob/main/video_chat2/conversation.py#L116.

Hi! It is a bug of different numpy versions.


npm advisory #1065 : Prototype Pollution

Advisory https://www.npmjs.com/advisories/1065
The currently published version of nyc 14.1.1 specifies a devDependency of lodash ^4.17.11 which has this vulnerability.

As mentioned in the PR the published version of nyc is not vulnerable.  This was an issue for developing/testing nyc itself, not an issue for projects which use nyc.
npm i nyc installs lodash via babel, which pulls lodash using a semver range.  If your project is installing a vulnerable version it is due to package-lock.json or yarn.lock preventing an in-range update. npm audit fix will resolve this for npm.  For yarn I don't know the equivalent comment but deleting yarn.lock and node_modules then reinstalling should bring in the latest versions of everything.


Add support for uploading files

At the moment, this only supports string content, it would be better if you could provide a FileAsset as an input to the body that would be great as you could then have it trigger the create on FileAsset change.

Hi @martinjt,
Sounds like a great feature!


(HL2RP) "SetGlobalVar"

Hello,
today Garry's Mod got an update. I updated my gameserver aswell. Then I started it and the server doesn't appear to work anymore. Users are still able to join, but they'll receive a "dead-screen" like in Sandbox, but can't respawn. Here's a log of my gameserver console, it's getting spammed with it.
[Clockwork] The 'Tick' hook failed to run.
gamemodes/clockwork/framework/sh_kernel.lua:3921: attempt to call upvalue 'SetGlobalVar' (a nil value)
Users on the server itself are getting spammed with this message in their console.
[Clockwork] The 'CalcView' hook failed to run.
gamemodes/clockwork/framework/cl_kernel.lua:851: attempt to index field 'Client' (a nil value)
And yes, I am using plugins. Before the update, my gameserver was running fine without issues.

This is a problem with certain functions being removed from GMod that Clockwork relies on. Shared Variables need to be reworked, we're aware of this. Just hold tight.

Oh shit, I wasn't expecting it to be today. I'll have a fix out when I get home unless another dev whips one up.

"https://gitlab.com/Clockwork/clockwork/commit/65d8a8dcd7388e379e9526de61053e4892188278 Fixed on github, going to work on a fix for the store version now." - Gr4Ss on the forums, closing this now.


Updated README for istio helm chart.

Install CRDs first before install Istio.
/cc morvancao @linsun @sdake

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gyliu513
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [gyliu513]

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

@sdake the reason we want to have this file is because some service catalog UI need the README file so that it can be shown when install the chart from UI.
Take IBM Cloud Private as an example ;-)

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gyliu513, linsun
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [gyliu513,linsun]

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


Video not playing. "Is it taking too long?" message.

None of the videos are playing. I always get this message without the video playing: "Is it taking too long? Click here to run a speed test." Please help as soon as possible.

Please submit issue using "Contact" link at the bottom of the website.


How to go about unit testing onEach events in Viewmodel

I am trying to unit test certain flows on the viewmodel which are triggered onEach subscription of the a specific property. https://airbnb.io/mavericks/#/core-concepts?id=subscribing-to-state-changes
I can correctly verify the state transitions in the unit test, but I am not able to verify functions called in response to onEach subscription. I looked through the documentation and could not find something that could help. Is there a way to achieve this?
example:
class SomeViewModel(initialState: SomeState, tracker: Tracker): MavericksViewModel<SomeState>(initialState) {
   init {
       onEach(SomeState::propertyA) {
           tracker.fireAnalyticsEvent() // Want to verify this function gets called on state changes
       }
   }
}

class SomeViewModelTest {
    @get:Rule
    val mvrxTestRule = MvRxTestRule(testDispatcher = UnconfinedTestDispatcher())

    @Test
    fun sampleTest() {
        // given
        sut = SomeViewModel(SomeState(a, b, c), MockTracker())

        // when
        sut.doSomething()

        // then
        withState(sut) { state ->
             assertTrue(state.propertyA == a1) // This works
        }
        verify(1) {
            // Verify this function was called once
            tracker.fireAnalyticsEvent() // This fails
        }
    }
}

PS: Thank you for this amazing library, it is a delight to use.

Hi, sorry for the late answer, but if anyone is interested, verify(1) is wrong, because you're setting propertyA twice. First when you set the initial state, then when you call doSomething. The rest works fine for me:
import com.airbnb.mvrx.MavericksState
import com.airbnb.mvrx.MavericksViewModel
import com.airbnb.mvrx.test.MavericksTestRule
import com.airbnb.mvrx.withState
import io.mockk.confirmVerified
import io.mockk.justRun
import io.mockk.mockk
import io.mockk.verify
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.UnconfinedTestDispatcher
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test

data class SomeState(val propertyA: String, val propertyB: String, val propertyC: String) : MavericksState

interface Tracker {
    fun fireAnalyticsEvent()
}

class SomeViewModel(initialState: SomeState, tracker: Tracker) : MavericksViewModel<SomeState>(initialState) {
    init {
        onEach(SomeState::propertyA) {
            println("*** propertyA: $it")
            tracker.fireAnalyticsEvent()
        }
    }

    fun doSomething() = setState { copy(propertyA = "a1") }
}

@OptIn(ExperimentalCoroutinesApi::class)
class SomeViewModelTest {
    @get:Rule
    val mavericksTestRule = MavericksTestRule(testDispatcher = UnconfinedTestDispatcher())

    @Test
    fun sampleTest() {
        // given
        val tracker = mockk<Tracker> { justRun { fireAnalyticsEvent() } }
        val sut = SomeViewModel(SomeState("a", "b", "c"), tracker)

        // when
        sut.doSomething()

        // then
        withState(sut) { state -> assertTrue(state.propertyA == "a1") }
        verify(exactly = 2) { tracker.fireAnalyticsEvent() }

        confirmVerified(tracker)
    }
}

This prints:
*** propertyA: a
*** propertyA: a1


fix: don't change unicode-range property

Coverage decreased (-0.0002%) to 99.449% when pulling 1ff0ad48c55a3065a2134beb4e6d223cbf0e4947 on evilebottnawi:fix-do-not-change-unicode-range-property into<PHONE_NUMBER>d686dc82b755d79805b4efa2cd5b2a on ben-eb:master.


Unified Inbox/Background not refreshing mails

There are similar issues reported in the forum and as an issue
However, they are only similar and not my exact issue.
Describe the bug
K9 does not fetch email in the background nor from the unified inbox. To recieve new mails, i have to go to each account's inbox and refresh the account there.
To Reproduce
Steps to reproduce the behavior:

Go to 'Unified Inbox'
Pull Down - Nothing happens after the loading-circle finishes
Go to 'Account Name'
Pull Down - Mail show up after cirlce is done

Expected behavior
Email are beeing fetched when refreshed either in the background or in Unified Inbox
Environment (please complete the following information):

K-9 Mail version: 5.728
Android version: 11, LineageOS
Device: S9
Account type: IMAP

Additional context
Background Sync is enabled (I assume they renamed that for 11)
Folder Polling is set to 15 minutes for every account
Battery Optimizations are disabled
Logs
While manually refreshing Unified Inbox:

/com.fsck.k9 V/TracingPowerManager$TracingWakeLock: TracingWakeLock for tag K9 MessagingController.checkMail / id 0: Create
/com.fsck.k9 V/TracingPowerManager$TracingWakeLock: TracingWakeLock for tag K9 MessagingController.checkMail / id 0 for 120000 ms: acquired
/com.fsck.k9 I/MessagingController: Running command 'checkMail', seq = 0 (background priority)
/com.fsck.k9 I/MessagingController: Starting mail check
/com.fsck.k9 I/MessagingController:  Command 'checkMail' completed
/com.fsck.k9 I/MessagingController: Running command 'finalize sync', seq = 1 (background priority)
/com.fsck.k9 I/MessagingController: Finished mail sync
/com.fsck.k9 V/TracingPowerManager$TracingWakeLock: TracingWakeLock for tag K9 MessagingController.checkMail / id 0: releasing after 1 ms, timeout = 120000 ms
/com.fsck.k9 I/MessagingController:  Command 'finalize sync' completed

Exactly same here. LineageOS android 9


Add permission gate and wrap create engagement button

Issue #:
https://github.com/bcgov/met-public/issues/1139
Description of changes:

Add permission gate component
Wrap create engagement button with permission gate

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

Codecov Report

Merging #1264 (93c414e) into main (152e376) will decrease coverage by 6.15%.
The diff coverage is 36.84%.

@@            Coverage Diff             @@
##             main    #1264      +/-   ##
==========================================
- Coverage   71.95%   65.80%   -6.15%
==========================================
  Files         297      192     -105
  Lines        8328     4393    -3935
  Branches      585      589       +4
==========================================
- Hits         5992     2891    -3101
+ Misses       2246     1411     -835
- Partials       90       91       +1

Flag
Coverage Δ

metapi
?

metweb
65.80% <36.84%> (-0.13%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...agementWidgets/Events/VirtualSessionFormDrawer.tsx
42.55% <ø> (ø)

met-web/src/components/permissionsGate/index.tsx
25.00% <25.00%> (ø)

...et-web/src/components/engagement/listing/index.tsx
85.71% <100.00%> (+0.32%)
:arrow_up:

.../src/components/permissionsGate/PermissionMaps.tsx
100.00% <100.00%> (ø)

met-api/src/met_api/utils/datetime.py

met-api/src/met_api/resources/widget.py

met-api/src/met_api/models/__init__.py

met-api/src/met_api/schemas/survey.py

met-api/src/met_api/services/contact_service.py

met-api/src/met_api/utils/enums.py

... and 101 more


Paths with hyphens (-) no longer show up in tree

Probably a regression from this code https://github.com/trenz-gmbh/trenz-docs-api/commit/bb64935ea86031891f2e2a537d940bb936fc9b58#diff-e1b41639cc49ce2e4d9191c0342212365fa94cc816e20cae913ea1d8ca1615d1R17

The issue actually was that the NavNodeOrderingService checked the wrong filename and wasn't able to find it in the .order file, so they were implicitly hidden.
This was an unintended side-effect of rewriting the tree builder from using the index files to source files.


Create SETUP_GUIDELINES.md

Description
Created setup guidelines to help new developers contribute to the project.
Related issues and discussion
#865
Screen-shots, if any

@sachincool  I will add the links.

looks good to me, seconds opinions ?

merged, thanks @PrajwalM2212 @sachincool @ross-holloway94


[FLOC-2268] Pin ZFS version.

https://clusterhq.atlassian.net/browse/FLOC-2268
Once this is accepted, and the tests have passed, I'll change drop the --enablerepo clusterhq-testing and put upload the packages to the release repository.
I've manually tested that the cloud instructions work on CentOS/Rackspace.
Supercedes #1593.

Thanks @tomprince

I spotted a couple of typos
Successfully built the metapackage on fedora20
tried installing it and noted that the dependencies all look correct.

(release-maintenance/flocker-1.0.0pre1/zfs-meta-FLOC-2268 ? =)[~/.../HybridLogic/flocker]$ sudo yum install  /home/richard/rpmbuild/RPMS/noarch/flocker-zfs-0-1.fc20.noarch.rpm
[sudo] password for richard:
Loaded plugins: langpacks, refresh-packagekit
Examining /home/richard/rpmbuild/RPMS/noarch/flocker-zfs-0-1.fc20.noarch.rpm: flocker-zfs-0-1.fc20.noarch
Marking /home/richard/rpmbuild/RPMS/noarch/flocker-zfs-0-1.fc20.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package flocker-zfs.noarch 0:0-1.fc20 will be installed
--> Processing Dependency: libnvpair1 = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
clusterhq                                                                                | 2.9 kB  00:00:00
rpmfusion-free-updates                                                                                | 3.3 kB  00:00:00
rpmfusion-nonfree-updates                                                                                | 3.3 kB  00:00:00
updates/20/x86_64/metalink                                                                                |  23 kB  00:00:00
updates                                                                                | 4.9 kB  00:00:00
virtualbox                                                                                |  951 B  00:00:00
updates/20/x86_64/primary_db                                                                                |  11 MB  00:00:08
(1/3): rpmfusion-free-updates/20/x86_64/primary_db                                                                             | 434 kB  00:00:05
(2/3): updates/20/x86_64/updateinfo                                                                                | 2.0 MB  00:00:06
(3/3): updates/20/x86_64/pkgtags                                                                                | 1.5 MB  00:00:00
--> Processing Dependency: libuutil1 = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: libzfs2 = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: libzpool2 = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: spl = 0.6.3-76_g6ab0866.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: spl-dkms = 0.6.3-76_g6ab0866.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: zfs = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Processing Dependency: zfs-dkms = 0.6.3-g7f3e466.clusterhq.0.fc20 for package: flocker-zfs-0-1.fc20.noarch
--> Finished Dependency Resolution

Please merge

In two runs of just running the failing Vagrant acceptance tests, I cannot reproduce this locally.
(tmp-ec7c083adb060281)~/Documents/ClusterHQ/flocker$ vagrant box add http://build.clusterhq.com/results/vagrant/release-maintenance/flocker-1.0.0pre1/zfs-meta-FLOC-2268/flocker-tutorial.json
(tmp-ec7c083adb060281)~/Documents/ClusterHQ/flocker$ ssh-add ~/.vagrant.d/insecure_private_key
(tmp-ec7c083adb060281)~/Documents/ClusterHQ/flocker$ admin/run-acceptance-tests --distribution centos-7 --provider vagrant --branch=release-maintenance/flocker-1.0.0pre1/zfs-meta-FLOC-2268 --keep --flocker-version=1.0.0pre1-65-g4dfcdb8 flocker.acceptance.test_moving_data.MovingDataTests.test_moving_data flocker.acceptance.test_api.ContainerAPITests.test_move_container_with_dataset
...
flocker.acceptance.test_moving_data
  MovingDataTests
    test_moving_data ... The cluster configuration has been updated. It may take a short while for changes to take effect, in particular if Docker images need to be pulled.
The cluster configuration has been updated. It may take a short while for changes to take effect, in particular if Docker images need to be pulled.
                                                  [OK]
flocker.acceptance.test_api
  ContainerAPITests
    test_move_container_with_dataset ...                                   [OK]

-------------------------------------------------------------------------------
Ran 2 tests in 99.419s

PASSED (successes=2)

We decided not to do this.


Add support for setting a custom DB pool connection validator

Some users want to specify a custom validation logic for database connections.
Tomcat JDBC Pool provides this facility and we can support it in the YAML configuration.
Close #1089

LGTM


no ftp upload on bplaced.net

Hi,
i cant get it to wrok, to upload a image,jpg or image_resize.jpg or startrail or the others to my webspace.
here is my ftp_settings.sh
#!/bin/bash
FTP/SFTP settings
PROTOCOL='ftp'
USER='*****'
PASSWORD='*******'
HOST='place.bplaced.net'
IMGDIR='/www/wetter/allsky/'
MP4DIR='/www/wetter/allsky/videos/'
KEOGRAM_DIR='/www/wetter/allsky/keograms/'
here is the log file
....
1268170
Saving image-20190203234645.jpg
Resizing image.jpg
Uploading image-resize.jpg
1882347
Saving image-20190203234704.jpg
Resizing image.jpg
......
he talt me that he has uploaded it but on my server there is no image. did i need a special ftp programm or shoud it work out of the box?
on the webgui i see all images but the images will not be uploadet?
regards
michael

Hi Michael,
IMGDIR, MP4DIR and KEOGRAM_DIR are paths on your server.
It could be something like /lamp0/web/vhosts/www.wetter.com/htdocs/allsky
You can find the exact location using filezilla or cpanel.
Thomas

I have similar problem. i gather we have to make these directories on the host computer?

Yes, these directories need to be created on the host otherwise the ftp upload will fail. Maybe I should mention this somewhere in the README

Further to above. we have solved FTP issue by enabling ssl. Files are uploading to sever folders now.
Next question is how do we display on website. Can do the pictures ok but i would like to add the control buttons you have on your site. Can you help us with a way to do this?
Also, our observatory is in the country with limited broadband (we pay for every mb). I have not had a good look yet but is there a way so set upload to 10 or 15 minutes.
Thank you for an elegant piece of software
Terry

You can use the code I wrote for my website. You'll only have a few values to change in controller.js as explained in the README file.
https://github.com/thomasjacquin/allsky-website
As for the software, it currently uploads everytime it captures a new image but it's a feature that other users have mentioned before. I'll see how much work needs to be done for this feature.

Thank you Thomas. I think we have enough to complete the job now. Night here so will look at it in yjhe morning. Will let you know one way or the other how it is going.
Thanks again for your time and help.
Terry

Thomas Thank you. That last link is what we were looking for. We found it hard to find. Maybe a link on the main page under FTP settings? It is up and running now but still experimental as not yet built because I am waiting for right angle usb lead to fit in the dome. I will send you the link when up and running. Adjustable upload time may be a useful feature for  future development.
This device is for Canterbury Astronomical Society to check weather at the West Melton Observatory. This is a not for profit society. I would like to make a personal contribution to this project as you have been very patient and helpful. How do I do this?
Kind regards
Terry

A further note,
It looks like by setting daytime and night delay you can reduce the upload frequency.
Terry

Hi Terry,
I am planning on having an auto-deploy script to install the website directly on the host (creating files, config and directories automatically). This could be called either in command line or from the GUI. That would be more convenient for everyone.
I'm happy to see the project has spread all the way to New Zealand!
For the time being, the daytime and nighttime delays should work for you but it adds delay between frames and you may miss some action (meteors, satellites, aurora, etc).
Here's how it behaves with delays (i=image, u=upload):
i----------i---------i----------i----------i
u----------u---------u----------u----------u

Ideally, it should capture without delays but only upload every X seconds or images:
i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i
u----------u---------u----------u----------u

In the latter scenario, you capture the whole night (nice to have if you do startrails, keograms and timelapse) but you save on your bandwidth.
There should be a donation button at the top of the instructions if that's what you had in mind https://github.com/thomasjacquin/allsky
Thanks!

Thanks again for your time
Terry
From: Thomas Jacquin<EMAIL_ADDRESS>Sent: Thursday, 7 February 2019 11:24 AM
To: thomasjacquin/allsky<EMAIL_ADDRESS>Cc: flyndr<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [thomasjacquin/allsky] no ftp upload on bplaced.net (#65)
Hi Terry,
I am planning on having an auto-deploy script to install the website directly on the host (creating files, config and directories automatically). This could be called either in command line or from the GUI. That would be more convenient for everyone.
I'm happy to see the project has spread all the way to New Zealand!
For the time being, the daytime and nighttime delays should work for you but it adds delay between frames and you may miss some action (meteors, satellites, aurora, etc).
Here's how it behaves with delays (i=image, u=upload):
i----------i---------i----------i----------i
u----------u---------u----------u----------u
Ideally, it should capture without delays but only upload every X seconds or images:
i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i-i
u----------u---------u----------u----------u
In the latter scenario, you capture the whole night (nice to have if you do startrails, keograms and timelapse) but you save on your bandwidth.
There should be a donation button at the top of the instructions if that's what you had in mind https://github.com/thomasjacquin/allsky
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky/issues/65#issuecomment-461212005 , or mute the thread https://github.com/notifications/unsubscribe-auth/AtGV0BlVag2tZHEK98xnUqrH-a_kQ_jwks5vK1XsgaJpZM4aga3K .  https://github.com/notifications/beacon/AtGV0HTyAEogmt_KEcpoLGcLndAQmKzRks5vK1XsgaJpZM4aga3K.gif

This email has been checked for viruses by AVG.
https://www.avg.com

hi,
now i get this

cd: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
Feb 07 21:35:45 allsky allsky.sh[2450]: put: image-resize.jpg: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
Feb 07 21:36:04 allsky allsky.sh[2450]: cd: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
Feb 07 21:36:04 allsky allsky.sh[2450]: put: image-resize.jpg: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
lines 1-14/14 (END)

is there a way to configure the ftp to trust it?
regards
michael

Hey Michael, I think there's a way to auto-accept certificates with lftp but I usually do this instead:
ssh place.bplaced.net
This should ask you if you want to accept the certificate and then you shouldn't have any issues.

hi,
thanks for your help put what should i do with ssh place.bplaced.net? write it in the config or what?
sorry for my bad english my mother language is german.
regards
michael

Sorry, I just realized you're using ftp and not sftp.
In that case, you should probably be fine. All you need to do is replace
	lftp "$PROTOCOL"://"$USER":"$PASSWORD"@"$HOST":"$IMGDIR" -e "set net:max-retries 1; set net:timeout 20; put $FILENAME-resize.$EXTENSION; bye" &
by
	lftp "$PROTOCOL"://"$USER":"$PASSWORD"@"$HOST":"$IMGDIR" -e "set ssl:verify-certificate false; set net:max-retries 1; set net:timeout 20; put $FILENAME-resize.$EXTENSION; bye" &
You will need to replace if in scripts/saveImageDay.sh, scripts/saveImageNight.sh and scripts/timelapse.sh

hi,
no sorry dont work

cd: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
Feb 07 22:33:28 allsky allsky.sh[8800]: put: image-resize.jpg: Fataler Fehler: max-retries überschritten (EPSV failed, will try PASV)
Feb 07 22:33:37 allsky allsky.sh[8800]: cd: Fataler Fehler: Certificate verification: Not trusted (22:ED:AA:C0:9F:0B:97:65:A2:20:B2:73:EB:52:5E:26:75:EE:B3:12)
Feb 07 22:33:39 allsky allsky.sh[8800]: put: image-resize.jpg: Fataler Fehler: max-retries überschritten (EPSV failed, will try PASV)

saveImageDay.sh looks now this

#!/bin/bash
source /home/pi/allsky/config.sh
source /home/pi/allsky/scripts/filename.sh

cd /home/pi/allsky
IMAGE_TO_USE="$FULL_FILENAME"
cp $IMAGE_TO_USE "liveview-$FILENAME.$EXTENSION"
If upload is true, create a smaller version of the image and upload it
if [ "$UPLOAD_IMG" = true ] ; then
echo -e "Resizing"
echo -e "Resizing $FULL_FILENAME \n" >> log.txt
    # Create a thumbnail for live view
    # Here's what I use with my ASI224MC
    convert "$IMAGE_TO_USE" -resize 962x720 -gravity East -chop 2x0 "$FILENAME-resize.$EXTENSION";
    # Here's what I use with my ASI185MC (larger sensor so I crop the black around the image)
    #convert "$IMAGE_TO_USE" -resize 962x720 -gravity Center -crop 680x720+40+0 +repage "$FILENAME-resize.$EXTENSION";

    echo -e "Uploading\n"
    echo -e "Uploading $FILENAME-resize.$EXTENSION \n" >> log.txt
    lftp "$PROTOCOL"://"$USER":"$PASSWORD"@"$HOST":"$IMGDIR" -e "set ssl:verify-certificate false; set net:max-retries 1; set net:timeout 20; put $FILENAME-resize.$EXTENSION; bye" &

fi

regards
Michael

What is your ftp server's address? I'll try to ping it from here.
I have tried wetter-wien.bplaced.net but it doesn't seem accessible.

hi
try this
http://wetter-wien.bplaced.net/wetter/

That's the location of your website but you server should be configured to have an FTP account with user, password and host. It is sometimes like ftp.nameofmyserver.com

this is the adress i use in fileziller: wetter-wien.bplaced.net

Hi Thomas,
This is just for your information. It may help you to help others.
I have the allsky camera working now and visible on the website. I am very happy with its performance. A very nice device.
One problem I had was that it was working fine at night but when switching to daytime mode it just locked up.
I soon discovered that the necessary long power lead was too small and there was sufficient voltage drop to stall the Pi.
The ASI camera draws quite a bit of current (presumably more in daytime mode).
If others have this problem it is worth considering a lead with larger conductors.
Thanks again for all your help in the initial setup
Kind Regards
Terry Richardson
https://github.com/notifications/beacon/AtGV0Gxk9IhrApfSOKTycQL3EUzm8KR5ks5vKo6mgaJpZM4aga3K.gif

This email has been checked for viruses by AVG.
https://www.avg.com

Thanks Terry, that's great information. I never had this problem myself but it's good to know it can cause issues.

Micro USB cables are a problem, use an ohm meter to measure the round trip cable resistance or a volt meter to measure the voltage drop across the cable.  Using an old USB cable cut the end off and wire the red/black directly to the Pi circuit board.  You will find the red/black power wire in the old cables to be robust, about 18 gauge.  Its really the easiest and most affective way to circumvent the tiny micro connector.  Another option is to adjust the power supply for 5.4 volts to overcome cable resistance.
Bill acj
Sent from my iPad

On Mar 15, 2019, at 11:04 AM, Thomas Jacquin<EMAIL_ADDRESS>wrote:
Thanks Terry, that's great information. I never had this problem myself but it's good to know it can cause issues.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi Thomas,
I am Observatory Director for Canterbury Astronomical Society.
I have built the allsky camera and it is now installed at our observatory as follows:-
R F Joyce Obsrevatory
West Melton
Christchurch
New Zealand.
GPS 143.3S, 172.3E
Please feel free to add this to your map (although New Zealand does not seem to feature)
This can be viewed at richardson.geek.nz/allsky
I have one question. Our members are ecstatic about the camera as the observatory is half an hour out of the city and a long drive if there are no stars. All are very enthusiastic about the camera but now I am getting gentle complaints that the overlay is not correct. My son has set up the server and has not quite got the coordinates right yet (he is in Auckland). Does setting the co-ordinates correctly on the website (the camera icon) set the overlay for local sky, or do we need to change something in the server?
I would be grateful for your help with this final hurdle.
Thanks again for a great piece of software
Regards
Terry

This email has been checked for viruses by AVG.
https://www.avg.com

Hi Terry,
The only thing you need to modify is the latitude and longitude. The config is expecting numeric values.
...
latitude: -43.3,
longitude: 172.3,
...

The webpage will pick up the sign and place N, S, E, W accordingly.

  You discussed this about 2/3 the way up this stream.


New features and fixes

Custom icons
Add warning and info toasts
RTL support
Allow setting position when creating a toast
Add gap prop

Merging. Fixing tests in main with another PR


Set up start x position

I wonder if I can set up start x(yaw) position with your beautiful library.
Please, let kindly let me know how to do it.

Hi, I found the way how this do with direction builder, thx

@HyowonHwang, how were you able to accomplish this? My problem is how to I override the x, y, z to zero, because I'd like to have a reset button.


v0.3.6

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/82694
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.3.6 -m "<description of version>" aa213dcb814ed78c9595638ca068dfc16cd6339d
git push origin v0.3.6


[Feature]: Support topic segments as placeholders to reduce amount of configuration code

Feature Description
Currently, I'm trying to load topology data from an external topology provider via request / reply. There are many entities like operating points, track edges, signals, main tracks, train number fields, etc. I load all of them in parallel. This works very well, but the configuration which is required for that is really huge. Configuration example for only two entities:
spring:
  cloud:
    function:
      definition: trackEdgeRequest;operatingPointRequest;...
    stream:
      requestreply:
        bindingMapping:
          - binding: trackEdgeRequest
            replyTopic: ${topo-data-provider.topic-prefix}/gleiskante/reply/${application.hostname}/${replyTopicWithWildcards|uuid}
            topicPatterns:
              - .*infrastructure/gleiskante/request
          - binding: operatingPointRequest
            replyTopic: ${topo-data-provider.topic-prefix}/betriebspunkt/reply/${application.hostname}/${replyTopicWithWildcards|uuid}
            topicPatterns:
              - .*infrastructure/betriebspunkt/request
            ...

      bindings:
        # bindings for requesting topo data
        trackEdgeRequest-out-0:
          contentType: application/x-protobuf
          binder: solace
        trackEdgeRequest-in-0:
          destination: ${replyTopicWithWildcards|trackEdgeRequest|*}
          contentType: application/x-protobuf
          binder: solace
        operatingPointRequest-out-0:
          contentType: application/x-protobuf
          binder: solace
        operatingPointRequest-in-0:
          destination: ${replyTopicWithWildcards|operatingPointRequest|*}
          contentType: application/x-protobuf
          binder: solace
       ...

In order to reduce this amount of code I propose to introduce a support of substitutable topic segments. For instance, if a topic segment begins with a colon (:), then the segment acts as a placeholder for any segment value. Substituted segment values are available via the same syntax and the same segment names in topicPatterns. This is inspired by SCION framework (more or less). An example of what I mean:
spring:
  cloud:
    function:
      definition: topoRequest;...
    stream:
      requestreply:
        bindingMapping:
          - binding: topoRequest
            replyTopic: ${topo-data-provider.topic-prefix}/:entity/reply/${application.hostname}/${replyTopicWithWildcards|uuid}
            topicPatterns:
              - .*infrastructure/:entity/request
            ...

      bindings:
        # bindings for requesting topo data
        topoRequest-out-0:
          contentType: application/x-protobuf
          binder: solace
        topoRequest-in-0:
          destination: ${replyTopicWithWildcards|topoRequest|*}
          contentType: application/x-protobuf
          binder: solace
       ...

So, as you see, there are only one "generic" configuration for all topology entities. It doesn't matter if we have 100 or 200 of them.
If you want, I can try to provide a PR. I think I understood how RequestReplyServiceImpl works. At first glance, we could implement this feature. Wdyt? Many thanks.
Use Case
We need this feature with flexible topic definitions for writing less configuration in application yaml files.
Proposed Solution
See above

Another syntax came in my mind. We can also use Java's Regex capturing groups. E.g. we could write a RegEx in topicPatterns and use numbers in replyTopic to reference matching groups (starting with 1). Example:
  replyTopic: ${someTopicPrefix}/{{1}}/{{2}}/reply/${replyTopicWithWildcards|uuid}
  topicPatterns:
    - .*infrastructure/(.*)/(\\d+)/request
```

Here, `{{1}}` references the values from the 1. match (`(.*)`) and `{{2}}` references the values from the 2. match (`(\\d+)`).


UDP listening and can respond, but won't

I've been banging my head against this for days.

Server running in ECS
I've got 2456-2458 open and forwarded
HTTP access to all tcp endpoints work fine
Status returns no errors.
No rejected udp traffic in network flow-logs
Can successfully netcat from local to server on 2458 (the only port not being used by the server)
Nothing obvious in the supervisor or steam logs that I can find.
Not present in either steam server, nor in-game lists
Direct connections to ip fail to connect on any port

I've pretty much eliminated networking, with the only thing left being to completely disable IPv6.
Started looking into log aggregation via fluentd, etc. since it looks like some log info doesn't make it's way to stdout/err.
Any ideas where I should be looking to figure this out? Errors that don't actually look like errors?
This is so unbelievably frustrating to debug through.

Disabling ipv6 in sysctl didn't help either.

At the moment, I'm giving it 2vcpus and 6G of ram. Should be way more than enough to handle the load. I haven't seen it restarting either.
I'll have to check it again, but I'm pretty sure the steam connection logs have no record of my connection attempts. My next stack improvement plan is to aggregate the logs using fluentd or something so I can scan them in one go.
All the configs are in my repo (tzrlk/valheim-server) under src/docker and src/terraform. Ignore the CDK stuff for now.

At the moment, I'm giving it 2vcpus and 6G of ram. Should be way more than enough to handle the load. I haven't seen it restarting either.
I'll have to check it again, but I'm pretty sure the steam connection logs have no record of my connection attempts. My next stack improvement plan is to aggregate the logs using fluentd or something so I can scan them in one go.
All the configs are in my repo (tzrlk/valheim-server) under src/docker and src/terraform. Ignore the CDK stuff for now.

Do you mean this repo https://github.com/Tzrlk/iac-valheim? I'm by no means an expert as I only set my first server up last week but I can have a look. Also, I'm hosting mine in Azure so cant comment on the Amazon hosting bit, not sure if you got the ability to try your docker-compose in Azure? See if its environmental.

Yup, that's the one. Though it'd take a rewrite of the whole Terraform stack to get it up in Azure. Maybe after I've converted it to CDK (which is what I do when I'm stuck). Gonna see if netcat picks up steam/valheim traffic and/or stick an nginx sidecar in there to monitor the connections.

Ok so one thing I noticed is you haven't exposed port 2458/udp.
Also, are you getting all your files getting created correctly on your volume? The volumes config you have is quite different, personally I don't quite get what the /config and /opt/valheim bit does but that's how I have it set (and the default example also).
    volumes:
      - configfiles:/config
      - datafiles:/opt/valheim

Both configfiles and datafiles point to the root of the same physical volume.
When I was having my issues it looked like everything was running and working but I kept having the same error and the server kept stopping. Check your logs for "Shutdown complete" to see if its actually shutting itself off.

I'll need to update my docker compose for local testing, but the actual config is the ECS container definition in src/terraform/ecs_service.tf. It exposes 2456-2458/udp, and doesn't mount any volumes. I'm using s3 sync to backup and restore the world state.
Funnily enough, when the server is running, it doesn't even bother listening on 2458, just 6 and 7. Since I'd put the network rules in there anyway, I confirmed the port was working fine with netcat using it.
I'll update my docker compose and see if I can replicate the issue locally.