feat: add hooks to save state to carousel component

Save the slideIdx to sessionStorage to keep the users state changes in a session.
If they reload the page the state will be saved, but if they delete the session the state will be lost.
I think this is better than doing local storage because:

the logic is less complex (no need to set time and check if a time has expired)
the solution is simple and fits our need

Fixes: #18

p.s. - to me, the + to typecast to Number is pretty readable, but just curious if our newer devs know what's going on.

Mmm the + typecast is the my preferred method of turning a string to a number.
@uclaacm/playnet-team
let str = '2018';
let num_str = +str;

console.log(str)      // "2018"
console.log(num_str)  // 2018

Adding a + in front of a variable will typecast (convert) it into a number instead of a string! Useful to fulfill some typescript requirements and to perform mathematical operations without the fear that something like:
let count = '1';
count++;
console.log(count);   // "11"

I'm pretty sure this has happened to me at some point in the context of Object keys which are stored as strings.


Saving multiple remote connections

I just got an iPad Air 5 to be able to do remote work on client websites via FTP when im away from my desk. Code App seems perfect but I assumed I would be able to save more than 1 remote connection?
Am I doing something wrong? After saving one, disconnecting from it and renaming it, I would love to be able to then add more of my client sites. When I attempt this, it keep just replacing the 1 connection.

This looks like a bug to me. Do the servers happen to have the same IP address?

You are correct, they do in fact have the same IP address. I thought that might have been the problem!


Have Recipe editable

Because of jinja and selectors, there is no great way to do it.
However, combining processing the selectors with search and replace, we could accomplish a minimal interesting result.
For example, set host dependencies to the value set in cbc.

Done by #20


README: add a gif demo

I don't know if we should check this into git but it is only 516KB so it
seems OK.

I think it is OK to check in the demo since it is pretty small.
I think we will add more demos in the near future. For example, there is a youtube demo I probably want to link to soon. So can we make the demo its own section after Namespace?

lgtm


Files UWP crashes when switching between directories

Describe the bug
When switching between directories that contain many files quickly, the app crashes with the error "We didn't expect that"
To Reproduce
Steps to reproduce the behavior:

Quickly go between directories, crashes faster with side bar (Desktop, Downloads, Documents, etc.)

Expected behavior
The files app continues to load the files correctly
Desktop (please complete the following information):

OS Version: Windows 10 1903 18362.10024
App version: 0.5.0-newui_snapshot1
(Glitch has been occurring for multiple version)

Additional context
Summary:
Unspecified error (Exception from HRESULT: 0x80004005)
Technical Information:
at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0xbe
at __Interop.ForwardComStubs.Stub_2[TThis](__ComObject, Int32) + 0x36
at Windows.Storage.StorageFolder.get_FolderRelativeId() + 0x18
at Files.Filesystem.ItemViewModel1.<AddFile>d__35.MoveNext() + 0x68a --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17    at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb    at Files.Filesystem.ItemViewModel1.d__32.MoveNext() + 0x11cc
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e
at System.Action`1.Invoke(T) + 0x28
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

Seems to be caused when the app is under load.

Can you try updating to the latest version and confirm if this is still happening?

@Dubstepwolf123 Quite a few changes have been made since that version. I would strongly recommend updating to the latest and let us know how it goes.

Issue isn't there in the latest version on the Windows Store (couldn't build the git download). Although the store version is internally 0.6.2 (error said it was 0.6.2), the About section inside the app still shows 0.5.0.
All fixed, closing.


update issues to final version

We should update the issue markdown files once they are finalized in the introduction repo. I think it would be easiest just to copy/paste and overwrite all the files at once after we think they are finalized.
Another option is to delete them from this repo, and just keep this as a code answer key so that we don't have to worry about it staying synchronized with snakemake-introduction.

I like the idea of deleting the issues here and letting this repo be just the answer key.


26 bug in dos attack threats

Brings fixes for issues #25 and #26 into the 'dev' branch '6a'.

Now superceded by the merge of branch 28.


Feature Request: Document best practices for subscription vending

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Can I get some recommendations please on best way for subscription vending and assigning the sub to the correct management group?
Right now I have a subscription vending project which creates the subscriptions and assigns them to the management group via Terraform. This all works well until I next need to run the CAF project at which point the CAF tries to remove the subscription from the relevant management group as the list of subscriptions is not in the list of subs defined in customlandingzones.
If we run an apply on the CAF project at this stage I get the following error:
Error: unable to de-associate Subscription "[…]" from Management Group "[…]": managementgroups.SubscriptionsClient#Delete: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Permission to write and delete on resources of type 'Microsoft.Authorization/roleAssignments' is required on the subscription or its ancestors." Details=[{"raw":"Subscription ID: '/subscriptions/[…]'"}]
However if I add the subscription to the relevant part of the customlandingzones then everything is ok and it goes through, however its not the best user experience.
So going forward I was looking to remove the part of our subscription vending project which assigns management groups and leave it up to the CAF module to do this. However when this runs I get a similar error assigning the subscription to the management group:
Error: [DEBUG] Error assigning Subscription ID "[…]" to Management Group "[…]": managementgroups.SubscriptionsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Permission to write and delete on resources of type 'Microsoft.Authorization/roleAssignments' is required on the subscription or its ancestors." Details=[{"raw":"Subscription ID: '/subscriptions/[…]'"}]
Is the recommended way to manage the subscriptions to have a Terraform project to vend the subs then use the CAF module to assign them to the correct management group, what are others doing in this regard?
Relating to assigning the subscriptions to the correct management group in the CAF, I think this is perms related as the CAF pipeline runs under an SPN (user1) and the sub management runs under an SPN (user2).
The RBAC is as follows:
User1 has owner on the root MG and any MG that gets created. Interestingly we seem to have multiple User1 owner RBAC entries for the lower level groups, the inherited ones for User1 from the top level, and an explicit entry for User1 created at the lower level management groups, presumably because the same user is creating each management group.
User2 has Management Group Contributor at the top root MG level, defined by the CAF RBAC variables.
When User2 creates a subscription they get owner privs on that subscription, and I think the reason why the sub vending Terraform project can move the sub into the right MG is due to the Management Group Contributor and the fact that User2 is an owner on that sub.
I suspect to solve this I may need to add User1 as an owner on the subscription but that may cause some issues our end.
Any ideas would be very welcome.

@adhodgson-wpp, indeed you have correctly identified one of the challenges of integrating Subscription Vending with the module.
Thankfully we are already looking at options to change this module behaviour in line with the discussions in:

#209
#223

Our current expectation is to allow the module to operate in 2 modes:

strict mode will use the subscription_ids property on the azurerm_management_group resource (as per the current design), ensuring all Management Groups contain only the expected Subscriptions as children
relaxed mode will implement the azurerm_management_group_subscription_association resource type to ensure all "known Subscriptions" are placed in the appropriate target Management Group

For your specific scenario, you would effectively select relaxed mode and then manage your Subscription placement using the Subscription Vending pipeline.
Details of the permissions needed are summarised on the Wiki, but from an Azure perspective you still need to ensure all permissions are correctly set across both the Management Groups and Subscriptions for any approach to work. This is why we recommend using the same ID for both processes.
I've assigned this to @matt-ffffff as he is working on our specs for Subscription Vending, but please provide your feedback on the above so we can try to help you with this as best as possible.
Hope this helps?

Happy with these comments. If we had the option of switching off the management group subscription assignment in the CAF module we would use it as per the relaxed mode above.

@adhodgson-wpp see #427

Also @adhodgson-wpp, yes you do need to be able to write roleAssignments on a subscription to move it. This is documented here:
https://docs.microsoft.com/en-gb/azure/governance/management-groups/overview#moving-management-groups-and-subscriptions

Trigger ADO Sync

Trigger ADO Sync

Closing due to inactivity

New CAF and AAC guidance here: https://learn.microsoft.com/en-gb/azure/cloud-adoption-framework/ready/landing-zone/design-area/subscription-vending


Add support for multi-build assets

Pull Request Checklist
Is this in reference to an existing issue?
General

[ ] Update Changelog following the conventions laid out here

[ ] Update README with any necessary configuration snippets

[x] Cookstyle (rubocop) passes

[x] Foodcritic passes

[x] Rspec (unit tests) passes

[x] Inspec (integration tests) passes

New Features

[x] Added a Testing Artifact as either an automated test or a manual artifact on the PR.

[ ] Adedd documentation for it to the README.md

Purpose
Close #84
Known Compatibility Issues

@cwjohnston looks like there are some conflicts do you want to rebase? If not I can probably pull and fix them.

@majormoses I don't recall why I left it in draft state but the conflicts should be ✅  now.

Targeting this in 1.0.0 release


Make python solvers print BLAS thread usage

... using threadpool_info()

I've verified it is possible to inspect and extract the BLAS threads using, for example,
    controller = pyimport("threadpoolctl")["ThreadpoolController"]()
    controller.limit(limits=nprocs, user_api="blas")
    pyimport("pprint")["pprint"](controller.select(user_api="blas").info())

For now, I decided to do it only for ace_fit.jl, not at the solver level. Might return to this though.


Update usePost/usePut API

Until we don't have a specific Repository/Monorepo for usePost/Patch etc we must update the usePost here in the wallet to be the same as we have in MassaStation.
We have two options:
1 - (hard option)  update the API here to include the ability to read {payload & params} as we did in MassaStation and update ALL requests that usePost to include payload.
2 - (easily option) update the API here and in MassaStation repo to be able to recognize if we pass an object as { payload } and be able to by default take the params as a { payload } object when just the params are given. This would avoid us to change each usePost in this repo.

I think I can try to see if option 2 is doable

I don't think we need to tackle this. I don't think we should modify usePost in the wallet plugin to match the one in MassaStation. Because in the wallet plugin, it would mean: write code that is not used. To me it's useless and risky because it could bring bugs and we don't need theses changes in the wallet from a user story point of view.

@Thykof @mazmassa what is the conclusion for this task. Should we close as not planned?

@Thykof @mazmassa what is the conclusion for this task. Should we close as not planned?

We'll sync as soon we can to define that. But IMHO is NOT out of date. :)


Updating the parameter value for wlm_json_configuration causes a need for rebooting redshift

For some reason, updating the json content for wlm_json_configuration parameter causes Redshift to go into a state of pending-reboot. However doing the same change via the console does not cause the issue. I have automatic WLM setup, and the fields I am updating are considered dynamic properties.
Here is the document for reference https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-dynamic-properties.html

Hi @darwinyip !
From https://docs.aws.amazon.com/redshift/latest/mgmt/workload-mgmt-config.html :

The WLM configuration properties are either dynamic or static. You can apply dynamic properties to the database without a cluster reboot, but static properties require a cluster reboot for changes to take effect. For more information about static and dynamic properties, see WLM Dynamic and Static Configuration Properties.

There is nothing that we can do in this module or in Terraform AWS provider.
Closing this issue.


Dotbot from PyPI just won't work under Windows10

Hello,
Excuse me if I'm doing something wrong, it's the first time I'm trying to use Dotbot and I just can't get it to work under Windows. I installed it via pipx:
pipx install dotbot

I created a test file with Out-File test.txt and a install.conf.yaml with the following content:
- link:
  ~/AppData/test.txt: test.txt

When I try to run Dotbot with dotbot -c install.conf.yaml I always get the following error:
Linking failed ~/AppData/test.txt -> C:\repos\dotfiles\test.txt
Some links were not successfully set up

==> Some tasks were not executed successfully

Any idea what I'm doing wrong? It won't work neither in PowerShell nor in Git Bash.

@devholland You're not doing anything wrong. I encountered the same issues and created PR #313 to address these issues and overhaul the testing so the tests can run on all supported platforms.
For now, you can use git to clone my repo and checkout my branch:
# Clone the repo and checkout the branch with fixes.
git clone git@github.com:kurtmckee/dotbot.git
cd dotbot
git checkout test-on-windows-issue-309

# Build and install the package.
python setup.py sdist
pipx install dist\dotbot-1.19.0.tar.gz

Hi! I do intend to merge #313 and related PRs once I get a chance to look at them. Just been insanely backlogged recently, sorry for the delays. Like Kurt said, as a workaround, you can use his branch for now.

No intended pressure from my side, @anishathalye! Getting swamped is something everyone understands. :smile:


Add paper for JOSS

@bgruening can you review that, please?

Codecov Report

Merging #24 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   81.02%   81.02%
=======================================
  Files           3        3
  Lines         469      469
=======================================
  Hits          380      380
  Misses         89       89

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 43dd86a...8115ecc. Read the comment docs.


Create Playground scratch orgs attached to an Epic.

Cute animal pic
Because everyone likes pictures of animals.

Link to Trello card (if applicable)
If this PR relates to a Trello card, don't forget to reference this PR on the card as well.

https://trello.com/c/XQSfl4UZ

Description
The commit messages say what you did; this should explain why and/or how.

[x] Description is in Trello card

Adjust ScratchOrgs to add new "Playground" type

Adjust ScratchOrgs to make task optional, and add (optional) project and epic foreign keys

Adjust Redux store so that Orgs are now stored in one map, not by task

Steps to test/reproduce
Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).

@@@

Show me
Provide screenshots/animated gifs/videos if necessary.

@@@

 I want to spin up an org for an epic without creating a task.

 I want to spin up an org for an epic without creating a task.

@davisagli As far as I'm aware, this is functionally complete. I'm able to create an Epic-level scratch org (and the logic is there in both front-end and back-end to quickly support Project-level and Task-level playground scratch orgs), view the org on SF, check for unretrieved changes, refresh the org (if it is behind the latest parent branch), or delete it.
One thing I haven't implemented (yet) is a warning modal before deleting or refreshing a playground scratch org, if it has unretrieved changes. We currently do that for Dev orgs, but not Test orgs -- I wasn't sure if we want that extra warning step for Playground orgs as well?
I'll work on backfilling test coverage, but another round of your review (especially on the Python side) would be appreciated.

 Is there a race condition that could create duplicate GH branches?


No Love for Spatiotemporal Regions?

In the present suite, as far as I can see, there appear to be no relations designed to relate BFO:SpatiotemporalRegions to anything else.
This seems to be the case because Spatiotemporal Region is not used in any domain and range restrictions, and just a scan of the relations hierarchy doesn't reveal any obvious relations that could be used to relate Spatiotemporal Regions to other entities (such as Sites, Material Entities, and Temporal Regions).
Is this the case?

Thanks @rorudn . I agree this case needs to be made to the relations ontology group for possible inclusion in an update to core.ttl.


Turbo prune does not respect yarn v1 lock file npm: protocol split entries

Verify canary release

[X] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue
https://github.com/Netail/repro-yarn-lock
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.0.11
Describe the Bug
Pruned yarn.lock results in merging npm: prefixed versions & non-prefixed versions
"string-width-cjs<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  version "4.2.3"
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
  dependencies:
    emoji-regex "^8.0.0"
    is-fullwidth-code-point "^3.0.0"
    strip-ansi "^6.0.1"

Expected Behavior
Split yarn.lock entries starting with the npm: prefix
"string-width-cjs<EMAIL_ADDRESS>  version "4.2.3"
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
  dependencies:
    emoji-regex "^8.0.0"
    is-fullwidth-code-point "^3.0.0"
    strip-ansi "^6.0.1"

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>  version "4.2.3"
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
  dependencies:
    emoji-regex "^8.0.0"
    is-fullwidth-code-point "^3.0.0"
    strip-ansi "^6.0.1"

To Reproduce

Have the split yarn.lock entries in your original yarn.lock
Prune repo
Check pruned yarn.lock
See that they are merged again

Additional context
This issue got fixed in Yarn 1.22.22 with https://github.com/yarnpkg/yarn/pull/9023.
A full thread on the issue; https://github.com/yargs/cliui/issues/138

Is pruning done by an self-created script or by yarn itself? If it's done by yarn itself, it might need a bump somewhere. If it's a self created script, the bugfix should be propagated to this self-created script

Important parts in the repro;
package.json
https://github.com/Netail/repro-yarn-lock/blob/main/apps/web/package.json#L5-L8
yarn.lock
https://github.com/Netail/repro-yarn-lock/blob/main/yarn.lock#L25-L41
Currently blocking us from optimally using prune in our CI as we have to delete the pruned yarn.lock and generate a new yarn.lock based on the pruned repo. Slowing the pipeline a bit :(

@chris-olszewski any chance you could help me with this one? :D

The same for yarn: & file: (but file: is not even copied over, related to: https://github.com/vercel/turborepo/issues/4105)

@chris-olszewski are you able to help me with this issue? yarn.lock entries with a protocol shouldn't be merged together (neither with one without a protocol)

@Netail Sorry for the delay on fixing this. This ended up being an issue just with our implementation of Yarn's serialization logic not matching a post https://github.com/yarnpkg/yarn/pull/9023/ yarn version. #9627 should provide the fix for this by no longer collapsing entries for descriptors that have different package names.

Awesome, thanks! Tried to take a stab at it too with https://github.com/vercel/turborepo/pull/9349, but apparently that was not the issue xd


3.2.0

*Adds browser platform support
*Updates package.json so Cordova 7 and above can use the plugin
*Adds PR and Issues template
*Adds remaining iOS and Android event emitters

@mark-veenstra @wolfenrain Can you both run this latest branch and help me test and verify that all new changes work :) ?

@msach22 we are running on this branch for a while and it works like a charm... We did need PR #52 to be included in our project otherwise we would have build issues since the different plugins need different support libraries.

resolved conflict... will do some tests with this branch

@msach22 from our tests sometimes a crash happens, this PR: https://github.com/opentok/cordova-plugin-opentok/pull/58 solves that on the 3.2.0 branch.

@msach22 Another crash happens on iOS 10. This PR: #60 solves it.

@msach22 both the #58 & #60 PRs have been put on WIP. They need further investigation.

@msach22 Removed the WIP from #58 PR. Added a comment with some explanation. You can merge if there are no further issues.

@msach22 Also removed the WIP from #60 PR.

@msach22 I would suggest to merge #64 PR aswell before merging this one. Considering it is a core feature to be able to disable publishVideo on initPublisher.

@msach22 We have been testing the last few days and all is okay, but PR #58 and #60 are needed as fixes on the 3.2.0 branch. If they get merged in all seems fine to us to release 3.2.0. Did you encounter any issues, if not can it be released?

@mark-veenstra @wolfenrain This works really well so far, going to test #55 and merge if all is good. I'm also going to remove the console.log statement for each event that's triggered mainly b/c audioLevelUpdated makes it hard to debug b/c it keeps printing the statement. Let me know what you think?

@msach22 yeah we removed that log also because it also slows down the app with the amount of logging.

@mark-veenstra awesome, I'll make those changes. One of the PR's fixed the package json mismatch issue, do you think it's better to go with Cordova-Plugin-OpenTok or com.tokbox.cordova.opentok b/c I also want to release this package on npm after the 3.2.0 release

@msach22 the value within the plugin.xml in attribute id should be equal to the package.json. So looking at those two the end result should be com.tokbox.cordova.opentok.
But to be honest the must plugins do have (and should have) a name beginning with cordova-plugin-*, so a name of cordova-plugin- opentok would be the best! So changing this in package.json and plugin.xml would be awesome.

@mark-veenstra Added the last PRs. Doing one more sanity check and will merge if all is good. Please do the same if you can :)

@msach22 all seems fine to me

@mark-veenstra same here, merging!


(maint) Update transifex usage in build

Description Of Changes

Update Transifex config file to new format
Replace usage of transifex-client with transifex-cli package\

This has been submitted as a new package here: https://github.com/chocolatey-community/chocolatey-packages/pull/2164
The public CI builds here will fail until that package has been accepted and pushed to CCR and approved

Motivation and Context
The older transifex-client is no longer supported and we are forced to use the new client which means changing the Choco package we use as it is a complete replacement for the old client and not necessarily a direct upgrade.
Testing

Run the build
Pull down the built package
Install it
Verify translations are incorporated correctly and changing languages in the application works as expected.

Operating Systems Testing
N/A
Change Types Made

[ ] Bug fix (non-breaking change).
[ ] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
[ ] Documentation changes.
[ ] PowerShell code changes.
[x] Fix to build process

Change Checklist

[ ] Requires a change to the documentation.
[ ] Documentation has been updated.
[ ] Tests to cover my changes, have been added.
[x] All new and existing tests passed?
[ ] PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue
N/A

Thanks for getting this sorted @vexx32 👍


Raspberry Pi Zero crashes without a log entry

Hey,
I set up this interface on my RaspberryPi Zero W yesterday. It opens up just fine, I can see the live stream, take full res images, videos etc.
Problem: When starting a motion detection (internal or external), the pi completely freezes after 10-30 seconds. This then requires a hard restart by unplugging the power source.
Do you have any idea, why this could be happening?  I tried both, internal and external detection mode - no difference.
The log file, which I am currently getting from the web interface via /cam/schedule.php > "Download Log", doesn't show anything about the crashes happen. Is there another log file with more info?
If this is performance related and the Pi Zero just can't record video while looking for motion, would it help to take photos instead of videos when motion is detected? I would prefer full res photos over video recording anyways, but haven't found a setting for this yet.
Greetings! :)
Edit. I just found, If I start via debug.sh, it throws out this
Watchdog detected problem. StoppingSIGINT/SIGTERM received, stopping
Another error I can see when recording in 30s splits is this:
Capturing with split of 30 seconds
Capturing started
Stopping video from timer
Capturing stopped
Add /var/www/cam/media/vi_0001_20191011_171422.mp4 to Box Queue at pos 0
Restarting next split of 30 seconds
mmal: mmal_vc_port_info_set: failed to set port info (2:0): EINVAL
mmal: mmal_vc_port_set_format: mmal_vc_port_info_set failed 0x67b280 (EINVAL)
mmal: mmal_connection_create: format not set on input port
mmal: mmal_connection_destroy_internal: connection vc.ril.camera:out:1/vc.ril.video_encode:in:0 could not be cleared
Error: Could not create connection camera -> video converter
Start boxing /var/www/cam/media/vi_0001_20191011_171422.h264 to /var/www/cam/media/vi_0001_20191011_171422.mp4 Queue pos 0
Finished boxing /var/www/cam/media/vi_0001_20191011_171422.mp4 from Box Queue at pos 0
Removed item from Box Queue

Most of my cameras are Pi Zeros and they run just fine with internal motion detection and full video recording. As much of the work is actually done by the GPU on the Pi the main CPU is not loaded all that much. This of course assumes that you are not running any other resource intense applications on the Pi at the same time,
First thing I would check out is how you are powering the Pi. It is important you have a stable 5V power source AND it is connected to the Pi by a low resistance cable. Many off the shelf USB cables actually have quite a high resistance and these can cause voltage drops along the cable when there are current surges which can occur with the camera. Make sure you use a short cable and that is of low resistance.
The watchdofg message indicates that there is a failure in the stream from the camera which can be caused by these power problems. Also double check the ribbon connection from the Pi to the camera.  There is also a tiny ribbon connector on the camera module itself. Press that down to make sure it hasn't come loose,

I'm using the original raspberry pi power supply which never had problems running a Pi3 with Opencv in full load. So I assume that the power supply isn't a problem.
The pi itself is running the latest raspbian with nothing else installed. So no additional services.
The ribbon cable might be a thing. Ill double check that once I get home. I didn't know that the watchdog message suggests a streaming problem to the camera.
Thanks a bunch for the tips. I will report if the problem got solved. :)

Most of my cameras are Pi Zeros and they run just fine with internal motion detection and full video recording. As much of the work is actually done by the GPU on the Pi the main CPU is not loaded all that much. This of course assumes that you are not running any other resource intense applications on the Pi at the same time,
First thing I would check out is how you are powering the Pi. It is important you have a stable 5V power source AND it is connected to the Pi by a low resistance cable. Many off the shelf USB cables actually have quite a high resistance and these can cause voltage drops along the cable when there are current surges which can occur with the camera. Make sure you use a short cable and that is of low resistance.
The watchdofg message indicates that there is a failure in the stream from the camera which can be caused by these power problems. Also double check the ribbon connection from the Pi to the camera.  There is also a tiny ribbon connector on the camera module itself. Press that down to make sure it hasn't come loose,

Hey,
I tried two different cables and power sources and also monitored the temperature in case it overheats (which is not the case).
I also tried a different (same model original) raspi camera and also another pi zero W with the same SD card. The problem persists, the pi keeps crashing.
I just whitnessed these lines in the command line in the moment the crash happened:
Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.821579] Internal error: Oops: 817 [#1] ARM

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.894245] Process MP4Box (pid: 1104, stack limit = 0x0eaae8dd)

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.896977] Stack: (0xd3501e30 to 0xd3502000)

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.900554] 1e20:                                     00000000 d3501e                                                                                40 d2d48800 d2e3c8a0

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.907422] 1e40: 00000055 006000c0 000b63f5 b63f5000 d3e52d88 d3e52d                                                                                88 00000000 00000000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.913803] 1e60: 00000000 00000000 d343a7d4 d2dd8378 00000000 f23f5d                                                                                b4 d3501fb0 d2e03800

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.919812] 1e80: 00000817 b63f5000 d2dd8340 d2dd8378 d3501ef4 d3501e                                                                                a0 c06d60d8 c0142458

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.924205] 1ea0: b63ec000 00000022 00000003 00000000 00000073 d2dd83                                                                                40 d3501f04 00000000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.928736] 1ec0: 00000800 00000000 000b63ec c09ee240 00000817 c09e90                                                                                28 c06d5db4 b63f5000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.933402] 1ee0: d3501fb0 00010892 d3501fac d3501ef8 c001abbc c06d5d                                                                                c0 d3501f5c d3501f08

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.938525] 1f00: c012d898 c005f78c 00000022 00000000 000b63ec d3501f                                                                                20 d3501f24 d3501f7c

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.945241] 1f20: 00000000 d3501f24 d3501f24 f23f5db4 c09e9028 000000                                                                                22 00000003 00081000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.950453] 1f40: 00000000 c00091a4 d3500000 00000000 d3501f8c d3501f                                                                                60 c01465e0 c012d7dc

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.957959] 1f60: 00000022 00000000 b6f9db44 c0009c7c ffffffff 00c538                                                                                7d 00c5387d 8bb4b139

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.963385] 1f80: d3501fac f23f5db4 b6f9db44 20000010 ffffffff 00c538                                                                                7d 00c5387d 8bb4b139

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.968867] 1fa0: 00000000 d3501fb0 c0009c84 c001ab78 b63f5000 b63bf0                                                                                0c 0000680e b3cd4ead

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.974401] 1fc0: 2e489b1b 4b61e1bc 959b5572 ce73650b 5ab55e39 8bb4b1                                                                                39 00010892 00000000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  573.980122] 1fe0: 863cd482 bef5cb44 00000054 b6f9db44 20000010 ffffff                                                                                ff 00000000 00000000

Message from syslogd@raspberrypi at Oct 13 15:53:42 ...
 kernel:[  574.024059] Code: e1a01005 e1a00007 ebff67cf e51b5034 (eaffff24)

Any idea about this?

Kernel crashes are not good but are normally indicative of something more fundamental at issue.
If possible start with a different SD card. Install latest buster raspbian on it then do the wiki install steps to get a totally clean system to check out.

Hi,
I got the same Problem with my Raspberry Pi Zero W as well...
Just installed buster freshly, but just to know; I am using a rather slow 32 GB Sandisk
micro sd card - which card are you using?
Don't know if these kind of errors really come from a bad card...  I hope it isn't but if I had to guess I'd say its a ram issue - but memtester checked all the ram for the last 24 hours and didn't find a single error... sooo.... maybe?
Cheers,

Late reply, but another pi zero fixed it for me. Same SD card, no changes, same installation. Old pi crashes, new pi is fine.

I use a variety of cards mainly Sandisk 8G,16G,32G. Some are fairly slow type 4 but I have not noticed any problems.
It might be worth checking the camera connector on the bad Pi zero. They are very fragile and prone to the plastic breaking and not making good contact. These can sometimes be repaired by using tape.

Late reply, but another pi zero fixed it for me. Same SD card, no changes, same installation. Old pi crashes, new pi is fine.

Hmm.. doesn't sound good, because both of my Zero  W Pi'es are from a linux journal subscription :-( Don't think I have something like warranty on that...:-(

Hi, related issue on a Raspi Zero V1.3, the one without wifi, raspbian stretch. I get repeatedly unexpected reboots when activating motion detection with default settings. Preview works as expected.

As said earlier there is no fundamental problem with Pi Zero no wifi; most of my cameras are based on those.
It is strongly recommended to use the internal motion detection if not already doing so.
If it reboots all by itself then it would maybe suggest a powering problem. It is very important to get a good 5V at the Pi itself. There can be a significant voltage drop along some USB cables. Also it is worth checking the insertion of the ribbon cable from Pi to camera at both ends.

I have checked with my other PI Zero, this is without wifi, too.
What should i say, it just worked.
The power supply chain is a 2.4VA 12 Volts one connected  to a regulated battery loading circuit set to 5 volts, the usb cable part is 10 cm long.
The both pi zeroes tested differ in that both were purchased month away from each other through a german online retail shop. Both are Pi Zero V1.3V PCB's, same Toshiba 16 GB SD card, the one rebooting has an GPIO connector soldered in, the one functioning properly is pristine on that.
Nevertheless, reproducing the issue using my regulated laboratory 50 Watts power supply is on the list. Will check with 5.2 Volts.

Although this is a fairly old issue, just for the record:
I've experienced the same issue. The pi0 was rebooting when accessing the web interface. The problem seemed to origin from a 3m USB extension cable. Using a cheap USB voltage meter, I've measured the voltage going down to 4.12 V, with the pi0 booted.
There are no issues with a shorter cable. The voltage then remains around 4.9 V.

Yes. Dodgy power is a common source of problems.
It can be a combination of the length of cable plus the gauge of wire used within the cable. I have even seen 1 metre cables which had an internal resistance of 1 Ohm. With even a Pi 0 plus camera that can cause 0.6V drop in voltage at the Pi and problems then follow. One can find USB cables where the gauge is specified but most do not.
It is possible to use long cables even greater than 3 metres providing the wire gauge is substantial. I often make up my own power usb cables using just dual core cable and withe right guage can get less than 0.1 Ohm even on long runs.

Original poster here. This Pi zero is still running to this day. Cable is around 2 meters.
The pi that I first had problems with fully died a bit later. So probably a faulty pi in my case?


Does the Mobility Service install the VM Agent on Linux machines?

From doc: You only need to install the Azure VM agent if the Mobility service installed on the migrated machine is v9.6 or earlier.
This says nothing about Windows/Linux. It implies the later versions of the Mobility Service will install the agent on both
Also from the doc: On Windows VMs running version <IP_ADDRESS> of the Mobility service onwards, the service installer installs the latest available Azure VM agent.
In this case, the statement is scoped to Windows only. And there is no corresponding statement for Linux.
The docs need to be explicit (and consistent) about both Windows and Linux in all cases.

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

ID: aa1c21c1-893f-de10-9ba3-8e5b71336e82
Version Independent ID: cb4e2d9f-86fc-0376-f0f2-5253d380865d
Content: Set up disaster recovery for Azure VMs after migration to Azure with Azure Site Recovery
Content Source: articles/site-recovery/azure-to-azure-replicate-after-migration.md
Service: site-recovery
GitHub Login: @ponatara
Microsoft Alias: ponatara

This is fixed. The fix should show up in the next day or two
#please-close


flat data class id not consistent

hello, when I check the flat dataset groundtruth_label.csv, I found the class id is not consistent,
For example, there are two beds which have the names bed_a and bed_b respectively. In my opinion, they should have the same class id. However, I found one of them has class id 6 and one is 7. The same class id not-matching problem can be found for other category objects.  Is there anything wrong when I did?

Hi @hutslib
Thank you for pointing this out. There seems to have been an error in the label generation procedure. This should be fixed now!
If the dataset is re-downloaded the labeling should be adapted to reflect the true class IDs. We further added an additional file to the dataset groundtruth_labels_classes.csv mapping the class IDs to names.
We hope this helps, and apologies for the previous error.

Thank you for solve this issuse.
Do I need to close this issuse or left it to you to close this?


SerialIO works fine in v1.0.4 (override)

Also forced prepending v onto the version due to past version number
inconsistencies.
Closes KSP-CKAN/CKAN#1280.

Thought you were at the airport.. stop being so productive :p

Passes Jenkins, passes local, merging with my thanks.

@plague006 : I'm leaving for the airport very soon, I'm not quite there yet.
I think my productivity is me procrastinating looking at my final checklist and washing my dishes. :)


Trouble running

Hey! First of all thanks for the great project!
I just tried to run to play against the bot but I'm getting an error. Here's what I did:

Followed the github tutorial and was able to:
Install python 3.10.4
Installed CUDA 11
Installed pytorch 1.7.1
I think I successfully downloaded the models
Downloaded old sc2 version with the replay

Here's what I'm getting when I run:
python -m distar.bin.play
Traceback (most recent call last):
  File "C:\Users\yurim\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\yurim\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "c:\users\yurim\projects\di-star\distar\bin\play.py", line 86, in <module>
    actor = Actor(user_config)
  File "c:\users\yurim\projects\di-star\distar\actor\actor.py", line 38, in __init__
    self._setup_agents()
  File "c:\users\yurim\projects\di-star\distar\actor\actor.py", line 65, in _setup_agents
    state_dict = torch.load(self._cfg.model_paths[player_id], map_location='cpu')
  File "C:\Users\yurim\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 705, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
  File "C:\Users\yurim\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 243, in __init__
    super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Sorry I'm not familiar with python at all, anything I'm missing?
Thanks!

This is loading model file failed. Did anything went wrong when you downloaded the models? If so, you can delete *.pth files under distar/bin and redownload it.
Other possible reason maybe the version of Python or Pytorch Version.
Please try this in terminal:
python

I found https://drive.google.com/file/d/1V_KdXHFhvhnZuQTWuthGEaPLQI7Ozf04/view is pretty easy to follow.
Just changed step 3, 4 with git clone this repository, didn't get any problem.

@oneryx yep I followed the drive and it worked pretty well, thank you!
@upia99 Yea I had the models downloaded, not sure what happened, but anyway with the drive it worked out, thanks!


Cannot display server errors

Hi,
res.serverError for sails 0.10 changed and errors are now passed to the view with this notice:

If Sails serves a view, the data argument will be accessible as a view local: data.

Which means that 500.jade should be using data.errors instead of simply using errors.
Could the view be updated please? Maybe there are other views with this behavior as well.
Cheers.

@LoveIsGrief Was this handled in a new release?

There haven't been any updates since I created this bug-report and I don't know of a new release. I don't think there have been any improvements.
Maybe when I get around to it, I'll do it myself. Otherwise maybe you could ;) ... or the original devs.

Released v0.11 stable on Feb 10 2015  https://github.com/balderdashy/sails/blob/master/0.11-migration-guide.md


GB300_v2 courtesy of Karl Ellis

https://discord.com/channels/741895796315914271/1195581037003165796/1292137840150319185

Thanks so much @bnister and Karl. I've missed the hardcoded hex values in core_api, would have never found it myself.


Swags : in-browser SSH session and OS Level package management

Hi, guys!
I feel like adding in-browser ssh would be great because it's a hassle for windows people and imagine like you can control it from your Mobile phone right away from your browser and to spice things up you may add external connectivity module support to handle gsm or wifi modules so now the device is fully controllable from everywhere.
Same thing goes for package management as well

it would be great if you could find us a lightweight in-browser SSH client we could integrate

Remote SSH can be done with little twist .. our own command/output forwarding plugin?
wifi is built in so yolo :P
gsm support from my experience .. its a pain.. there is a lot of modules each with its own setup and set of issues
maybe we can add automated setup for 3G usb dongles with sakis3g it has been the best for me so far

@mustafa96m
any update on this?

if @mustafa96m still wants to do it i'd suggest closing this issue and opening an issue for each plugin ( one for ssh , one for package management )

Think we should have an issue that has a list of all the plugins that references the individual plugin issues. This way we can close the issues that have individual suggestions and have the master issue that tracks the plugins progress and status

@AlKass @AlhasanIQ sorry for being late, and that would be great actually and if I have the time I will push PR there.


Java pushdown filter

Conditional on #14287 - This adds an interface through JNI for strings to be passed, and then parsed into expressions to perform pushdown filtering via the datasets API.

@NoahFournier  could this be pushed forward ?

Hey @zinking, I think the future direction for filtering in Arrow will likely be provided via substrait. To work around this for now, you can take a look at: G-Research/datafusion-java to see if that unblocks you right away.

I think it's fine for now, there are plenty of serialization schemes for expressions.

What do you mean by serialization schemes for expressions ? Would be interested to know how you worked around this.

What do you mean by serialization schemes for expressions ? Would be interested to know how you worked around this.

you can see my workaround [here] (https://github.com/apache/arrow/commit/b1426b1460cfde0cec562f92380b84af1021de50) using json serializations.
subtrait might be the correct direction. but it's not progressing as expected.


Develop Dota 2 Client Protocol

Write the webservice code that allows real Dota 2 game client to communicate with our back-end server via a polling mechanism.
The goal is to use CMsgBotWorldState dumps for providing game data to our Python back-end and then have the client send empty (perhaps with timestamp) CreateHTTPRequest POST message to the server which will reply with actions for each actionable bot to take.
Plan is to leverage my code from:
https://github.com/Nostrademous/Dota2-WebAI/blob/master/webserver_out.lua

Started

Needs Testing...


Bumped X-APP-VERSION to 1.12.0

Relates to https://github.com/lostfields/python-panasonic-comfort-cloud/issues/51

#50 contains a more permanent solution.

Closed because a better solution was implemented


C# Client Generated Code Substring of null

The generated C# Client Code tries to make .Substring() on a parameter which is passed as null.
The initialization of the Exception (named as ApiException) (Generated from NSwagStudio)

Here it tries to do a SubString() on the parameter passed as null: (Generated from NSwagStudio)

Should be fixed in v13.0.2

regenerated with Version 13.0.2
problem still exists

Can you try to manually add the null check here?
protected virtual async System.Threading.Tasks.Task<ObjectResponseResult<T>> ReadObjectResponseAsync<T>(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers)
{
    if (response.Content == null)
    {
        return new ObjectResponseResult<T>(default(T), string.Empty);
    }

    ...

done!

And does it work this way without null ref exception?

didn't fix the problem!
response.Content isn't null and ReadResponseString is false, to it tries the else ..
wouldn't it fix the problem not to pass null or check for null before doing the SubString()?

In which case are we passing null as text?


Outline: Object of JSON array should be sorted by position

Version: 1.36.0-insider (user setup)
Commit: f291714906cdcb02830b8cfe2485a3c23415b5fe
Date: 2019-06-12T05:19:53.054Z
Electron: 4.2.3
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763
Steps to Reproduce:

Create a json file such as following content.

{
	"nodes":[
		{ "key":0, "name":"0" },
		{ "key":1, "name":"1" },
		{ "key":2, "name":"2" },
		{ "key":3, "name":"3" },
		{ "key":4, "name":"4" },
		{ "key":5, "name":"5" },
		{ "key":6, "name":"6" },
		{ "key":7, "name":"7" },
		{ "key":8, "name":"8" },
		{ "key":9, "name":"9" },
		{ "key":10, "name":"10" },
		{ "key":11, "name":"11" }
	]
}

Take a look at the 11-th\12-th object of array nodes in OUTLINE view.

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

What sort mode are you using? What does  "Outline > ... > Sort By: " show?

@jrieken
It's default setting, shows "Sort By: Type".
So, it's by designed while sorting by Type?