How do I use rest-layer with gorilla mux?

I want to use gorilla mux for my other routes so I can filter on methods and hostnames etc. Just what gorilla mux offers in general. Now with the below setup my rest-layer API does not work. I get NOT FOUND back. but my other routes do work.
r := mux.NewRouter()
r.HandleFunc("/me", getMe(jwtSecretBytes))
r.HandleFunc("/websocket", serveHome)
r.Handle("/files", gridfsapi)
r.Handle("/", c.Then(api))

log.Println(fmt.Sprintf("Serving API on http://localhost:%d", port))

if err := http.ListenAndServe(fmt.Sprintf(":%d", port), r); err != nil {
	log.Fatal(err)
}

Shouldn't api which is just a rest.NewHandler(index) work with gorilla mux?

Yes it should work. Doesn't it?

no it doesn't. Can you reproduce it with gorilla mux?

Disclaimer: haven't looked at Gorilla in years.
But does Gorilla mux Router.Handle handle sub-paths when there are no parameters in the match string?   Golangs built-in http mux handled sub-routes if the path string ends with a slash but I thought Gorilla Mux didn't.
Do you need to use https://godoc.org/github.com/gorilla/mux#Route.PathPrefix?

yes. the pathprefix solved it.
r.PathPrefix("/api/").Handler(http.StripPrefix("/api/", api))

thank you very much.


bugfix - try to fix the dark mode of calendar

#94
You may need to clear all caches to make it works.

A preview on my PC.


Fix setting for max_procs

After updating this module to version 0.8.0, I ran into the following error:
Error: Could not start Service[filebeat]: Execution of '/etc/init.d/filebeat start' returned 1: Exiting: error unpacking config data: can not convert 'string' into 'int' accessing 'max_procs' (source:'/etc/filebeat/filebeat.yml')
   ...fail!
Error: /Stage[main]/Filebeat::Service/Service[filebeat]/ensure: change from stopped to running failed: Could not start Service[filebeat]: Execution of '/etc/init.d/filebeat start' returned 1: Exiting: error unpacking config data: can not convert 'string' into 'int' accessing 'max_procs' (source:'/etc/filebeat/filebeat.yml')
   ...fail!

Basically, the problem is that /etc/filebeat/filebeat.yml contained the following:
max_procs: undef

Thanks for this. I pushed this to the forge as v0.8.1.


Can't get descriptor of image (save my thesis)

The situation is that I want to train the system to recognize some faces, but I don't know if I'm missing something that I can't get the description of the face.....
My code (I use React):
const handleTraining = async () => {
const labels = ['Captain', 'Thor', 'Tony Stark'];

return Promise.all(

  labels.map(async label => {

    const descriptions = [];

    for (let i = 1; i <= 3; i++) {
      const img = await faceapi.fetchImage(`/training/${label}/${i}.jpg`);
      const detection = await faceapi.detectSingleFace(img).withFaceLandmarks().withFaceDescriptor();

      console.log(detection.descriptor);

      descriptions.push(detection.descriptor);
    }
    console.log('Train xong ' + label);

    return new faceapi.LabeledFaceDescriptors(label, descriptions);
  })
);

}
Here is what I get when console.log(detection.descriptor):
Float32Array(128) [NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, …]

It recognizes faces in images. But only the description of the face is NaN
As for the input image, I guarantee it has a high resolution.
So I really don't know what I'm getting wrong?

The close issue here states there should be a property called descriptor for detections, that doesn't seem to be the case anymore atleast.


machine resource does not re-create terminated AWS instances

It appears that when an instance is terminated, Chef Provisioning simply waits for it to become available, instead of checking the state and recreating the instance.

Pretty sure this was fixed by PR #40 in around the same timeframe.
@lynchc says the chef-provisioning-aws driver is now checking for :terminated but not :archived state, which could cause some bugs--let's leave this open and confirm.


Help me! (Fabric 1.20.6)

I have 2 questions:

This mod is no longer working on servers, it used to work... is it a bug?
How do I enchant an item with durability with this mod?

That's strange, it works fine for me (paper 1.20.6). Is it saying anything in game logs?
Not sure what do you mean. Do you mean enchanting item that has durability? Or changing its durability?

I want to enchant an item with durability, but “durability” does not appear in “/edit enchantment”

If you want to change item's durability, use /edit durability

And how do i add the durability enchantment to the item?

ooooh, sorry lol, I was confused (It's just that in Brazil it's durability lol, sorry)

Now about the first question, I tried to use /edit on a server belonging to a friend of mine, and it didn't work... (He had paper 1.20.4)

I'm not a server owner and don't know the details, but I think it may be caused by the big difference in item formats between 1.20.4 and 1.20.5-6. I'd suggest you to keep server and players on the ~same version, either by updating server to 1.20.6 or playing on 1.20.4 yourself

Ok, tysm!


Create SprayDay objects from reveal phase 1 data

Fix: #442

Part of reveal phase 1 work: https://github.com/onaio/mspray/pull/444


azurerm_virtual_network_gateway_connection issue

Hi everyone
I do get the following error:
azurerm_virtual_network_gateway_connection
4
Traceback (most recent call last):
File "../../scripts/az2tf.py", line 367, in
azurerm_virtual_network_gateway_connection.azurerm_virtual_network_gateway_connection(crf,cde,crg,headers,requests,sub,json,az2tfmess,cldurl)
File "/home/philippe/py-az2tf-master/scripts/azurerm_virtual_network_gateway_connection.py", line 104, in azurerm_virtual_network_gateway_connection
fr.write('\t peer_virtual_network_gateway_id = azurerm_virtual_network_gateway.' + peerrg +'__' + peernam + '.id\n')
UnboundLocalError: local variable 'peerrg' referenced before assignment
UnboundLocalError: local variable 'peerrg' referenced before assignment
Error in az2tf.py
Cheers Philippe

Hi Phiippe
Could you post the debug output - I should be able to fix it quickly then:
./az2tf.sh -s xxxxxxx   -v yes -d yes -g
Thanks

Hi Andy
Thanks for the fast reply. I have attached the output.
Cheers Philippe
debug.log

attempt at a fix posted

Hi Andy
Thanks! It looks like the former issue is solved as I hit now at least another error (from terraform?):
_Warning: "location": [DEPRECATED] location is no longer used
on azurerm_virtual_machine_extension.dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension.tf line 2, in resource "azurerm_virtual_machine_extension" "dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension":
2: resource azurerm_virtual_machine_extension dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension{
(and 6 more similar warnings elsewhere)
Warning: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider
on azurerm_virtual_machine_extension.dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension.tf line 2, in resource "azurerm_virtual_machine_extension" "dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension":
2: resource azurerm_virtual_machine_extension dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension{
(and 6 more similar warnings elsewhere)
Warning: "virtual_machine_name": [DEPRECATED] This field has been deprecated in favor of virtual_machine_id - will be removed in 2.0 of the Azure Provider
on azurerm_virtual_machine_extension.dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension.tf line 2, in resource "azurerm_virtual_machine_extension" "dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension":
2: resource azurerm_virtual_machine_extension dga-central-rg__vm-central-linux-1__AzureNetworkWatcherExtension{
(and 6 more similar warnings elsewhere)
Error: Reference to undeclared resource
on azurerm_virtual_network_gateway_connection.dga-central-rg__conn-s2s-central-to-west.tf line 10, in resource "azurerm_virtual_network_gateway_connection" "dga-central-rg__conn-s2s-central-to-west":
10:    peer_virtual_network_gateway_id = azurerm_virtual_network_gateway.dga-west-rg__vng-west-dmz-vpn.id
A managed resource "azurerm_virtual_network_gateway"
"dga-west-rg__vng-west-dmz-vpn" has not been declared in the root module._
Error Validating
Here is a new debug.log:
debug.log
For some reason the last output did not go into the debug.log:
A managed resource "azurerm_virtual_network_gateway"
"dga-west-rg__vng-west-dmz-vpn" has not been declared in the root module._
Error Validating
cheers Philippe

Hi - fix posted for error.
I'll work through those warnings in the next few days - they are a new thing !

Hi Andy
Muchas gracias!
Philippe

Warnings should have gone now
Closing - reopen if further issues


Unable to run BLE_SPP_Server example (IDFGH-7073)

Environment

Development Kit:      [ESP32-DevKit]

Kit version (for WroverKit/PicoKit/DevKitC): [v1]

Module or chip used:  [ESP32-WROOM-32|]

IDF version (run git describe --tags to find it): v5.0-dev-939-g952b4d848f

Compiler version : xtensa-esp32-elf-gcc (crosstool-NG esp-2021r1) 8.4.0

Operating System:     [Linux]

Using an IDE?: [VS Code]

Power Supply:         [USB]

Problem Description
I am trying to run the BLE_SPP_Server example but I am getting the following error. Simply compiled and burned the code.

I (963) uart: queue free spaces: 10
I (963) GATTS_SPP_DEMO: EVT 22, gatts if 3

I (963) GATTS_SPP_DEMO: event = 16

I (973) GATTS_SPP_DEMO: The number handle =b

E (973) GATTS_SPP_DEMO: GAP_EVT, event 4

I (983) GATTS_SPP_DEMO: EVT E (1003) GATTS_SPP_DEMO: GAP_EVT, event 6

Thank you in advance

@MaazSk  I don't see any mistakes. Is there a more detailed log?

I (983) GATTS_SPP_DEMO: EVT E (1003) GATTS_SPP_DEMO: GAP_EVT, event 6
This log means that ESP_GAP_BLE_ADV_START_COMPLETE_EVT is triggred, not an error

@Weijian-Espressif, I am not working on it currently. I will update the logs once I am back.

@MaazSk Thanks for reporting, would you please help share if any further updates for the issue? Thanks.

Thanks for reporting, will close due to inactivity, feel free to reopen with more updates.


add override to enable l2pop

Upstream OSA disabled l2pop in liberty and later.  This will cause
existing customers to have failed guest networking.  A migration
to vxlan multicast will eventually be needed, but for the moment we
can override and turn on l2pop.
related-bug: #973
(cherry picked from commit 0a6319a3b776f4bca975fcdbf328412fa364633b)
Signed-off-by: Matthew Thode<EMAIL_ADDRESS>

👎 do not merge before the patch into master.

closing, doing this in doc


Password update text messages - missing padding

The text that appears around passwords for resetting has some issues:

no padding
successful reset in red looks like error
could the password complexity checker be displayed in real time using JS or give some advance notice so people know they need to do this?
missing space between at least in complexity text

Will move the JS thing into a follow up issue as kind of separate


Closes #1479 Active-Passive data sync

The most basic implementation of sync where all the entries are iterated one by one and synced as individual messages. Next step is to optmise this by minimizing the messages sent. As the first step, all entries in a single server store segment will be pushed in a single sync message. A better heuristic based division can be added later.

I believe this PR is now obsolete as we have come up with a scheme. I would suggest keeping the same pattern of a message per key but move to the design suggested in #1479

Addressed the review feedback on extracting the message to segment mapping from entities and concurrency strategy to a common place.

@albinsuresh needs rebase


🐛:  Combine-API tests failing

Contact Details
No response
Location
Other (please describe below)
What happened?
The tests for the combine-API seem to be failing for all the Pull requests
What made it happen?
Running the tests for the combine API
Version
Offline (Some Library, Tool, or Image not on the web)
What browsers are you seeing the problem on?
 Most likely the SBML model is not valid. Please check that your model is valid using the `mass.io.sbml.validate_sbml_model` function or via the online validator at http://sbml.org/validator .
E           	`(model, errors) = validate_sbml_model(filename)`
E           If the model is valid and cannot be read please open an issue at https://github.com/SBRG/masspy/issues .

apps/combine-api/src/handlers/run/utils.py:162: MassSBMLError
----------------------------- Captured stderr call -----------------------------
Archive contains 1 SED-ML documents with 1 models, 1 simulations, 1 tasks, 2 reports, and 0 plots:
  simulation.sedml:
    Tasks (1):
      task
    Reports (2):
      metabolite_concentrations: 170 data sets
      reaction_fluxes: 144 data sets

Executing SED-ML file 1: simulation.sedml ...

I'm pretty sure this is either due to a non-intuitive interaction between alternate JSON encoding libraries, MASSpy, and NetPyne or due to a recently upgraded dependency. I saw this the other day once, but ignored it because it only happened once and otherwise seemed to be fine.

:tada: This issue has been resolved in version 9.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Avoid checking mixer version when run istioctl upgrade

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@bianpengyuan: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
2d1f18d49070432ccaa9af549876592dc1783c26
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Training Hangs during failure handling on a large cluster

I am running simple.py with 700 actors, each with 1 CPU on a 200 node cluster. max_actor_restarts is set to 1.
I start running the script and after training begins, I start to kill raylets via ray kill-random-node. I make sure this happens only after I see [RayXGBoost] Starting XGBoost training. being printed out, so at this point all actors have been created and the data is all loaded.
I first see this warning message which is good:
2020-11-23 11:34:40,000	WARNING main.py:480 -- A Ray actor died during training. Trying to restart and continue training from last checkpoint.

So now I would expect training to start from the last checkpoint. But now a bunch of these warning messages constantly get printed out:
(pid=raylet, ip=<IP_ADDRESS>) AssertError:check ack & check pt  cannot occur together with normal ops, shutting down process
(pid=raylet, ip=<IP_ADDRESS>) AssertError:check ack & check pt  cannot occur together with normal ops, shutting down process
(pid=raylet, ip=<IP_ADDRESS>) AssertError:check ack & check pt  cannot occur together with normal ops, shutting down process
(pid=raylet, ip=<IP_ADDRESS>) AssertError:check ack & check pt  cannot occur together with normal ops, shutting down process

And training now seems to hang. Here is the stack on the main thread for the driver process. It’s hanging on a queue.empty call.
Thread 107336 (idle): "MainThread"
    get_objects (ray/worker.py:316)
    get (ray/worker.py:1392)
    empty (ray/util/queue.py:37)
    _train (xgboost_ray/main.py:353)
    train (xgboost_ray/main.py:475)
    main (simple.py:37)
    <module> (simple.py:47)

I've seen this, too. I did some debug printing and it seems that the actors are registered at the Rabit tracker (i.e. they send a "start" message to the tracker) but don't start with the actual training - no messages are received at the tracker afterwards.

Tried this again and am now seeing this being printed a bunch of times
E1201 10:49:02.755669192   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f0f6cd88d00 = {"created":"@1606848542.755643406","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.755766211   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12de5988d0 = {"created":"@1606848542.755732181","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.755879947   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f0f6cd8b3c0 = {"created":"@1606848542.755848053","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.755960824   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12de598ac0 = {"created":"@1606848542.755937905","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756050129   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12dec80d40 = {"created":"@1606848542.756027006","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756153945   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12dec80b50 = {"created":"@1606848542.756124334","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756250363   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f0f6cbaf230 = {"created":"@1606848542.756222554","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756344354   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12defe89f0 = {"created":"@1606848542.756321583","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756446744   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f12defea5c0 = {"created":"@1606848542.756421613","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}
E1201 10:49:02.756475018   31670 error.cc:276]               Error 0x7f19ed9559e0 is full, dropping error 0x7f0f6cbb0590 = {"created":"@1606848542.756456132","description":"Broken pipe","errno":32,"fd":1431,"file":"external/com_github_grpc_grpc/src/core/lib/iomgr/tcp_posix.cc","file_line":986,"grpc_status":14,"os_error":"Broken pipe","syscall":"sendmsg","target_address":"ipv4:<IP_ADDRESS>:57312"}

Cannot reproduce on latest master, closing for now.


[FLINK-16676][python][test] Fix ValidationPipelineTest.test_pipeline_from_invalid_json failure on Azure

Fix ValidationPipelineTest.test_pipeline_from_invalid_json failure.
The problem is the detailed error message would be different in different environments.
In travis:
An error occurred while calling o0.loadJson.

but in Azure:
An error occurred while calling o1095.loadJson

To solve the problem, we can check the general error message instead of the very detailed one in the test.

@flinkbot run azure

@flinkbot run azure

The python test in Azure is passed. Merging...


[Fix #10893] Fix an error when running rubocop without bundle exec

Fixes #10893.
This PR fixes an error when running rubocop without bundle exec.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

@bbatsov This may be a critical issue for upgrades (1.34). It may be better to release a bugfix (1.34.1) release as soon as possible.
A separate reproduction test that excludes bundle exec may be possible, anyway I'm leaving a comment for now.

There’s another ::Kernel.require a few lines below, does that need to be changed too?

They are related to #10893 new feature. First of all, this PR focuses only on the compatibility part.

I'll cut a new release right away.
I hope @r7kamura will also find some time to look deeper into the cause of the problem.


 Possibly if easy add the "number of blocks since this page was loaded" as per desings.

Spoken to Michael, who recommends infinite scroll rather than numbered pagination

@dexturr  This requires some planning as the api currently gives us just the latest 20 blocks


[10.x] Support drop stored procedures in migrate:fresh command

Sometimes, we have to create migrations with stored procedures and when running migrate:fresh, they aren't dropped. With this PR, we can dropped them by adding --drop-procedures argument when running migrate:fresh command

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

@taylorotwell I think it is necessary. When we run migrate:fresh without dropping stored procedures, we will occur some errors such as the stored procedure has been exists. We can by pass them by adding IF NOT EXISTS but that's not convinent.


BandStopFilter is not useful for environmental sounds at high sample rates

I am working with environmental recordings of insect sounds at 44.1 kHz that have little frequency content below 2.5 kHz and go up into the ultrasonic range. For my use-case, I would like to apply filters evenly over the entire spectrum without the center frequency affecting the filter bandwidth. If I set the upper and lower bandwidth limits to the same value, the resulting filters should be the same width, regardless of where their center frequencies are. BandStopFilter does not allow for this (as far as I can tell) and also produces errors in self._lowpasses when generating filters at higher center frequencies (ValueError: A cutoff above 0.5 does not make sense). It also seems like filters are more likely to be generated in lower frequency ranges than higher ones.
It would be nice if filter bandwidth could be decoupled from the center frequency, e.g. randomized between an upper and lower bandwidth in Hertz. And if center frequencies could be generated evenly over the entire spectrum. These could be implemented as options since it seems like the current functionality is more aimed towards use with human-centric sounds, perhaps on a mel-frequency scale. But having the option to evenly affect larger spectra would allow use with non-human and environmental sounds.

Thanks for the feedback, Marius 👍 This looks useful, but I cannot make any promises about when such options can/will be added. For now, I think your best option is to make a fork (or copy code) and shape it to your needs (for example sampling linearly instead of in mel space)


Inconsistent fetching causes issues with ancestors attribute

In KankaApi.ts, single entities are inconsistently fetched from the API. Currently, when trying to fetch a single race from Kanka, I'm getting the error n.ancestors is undefined. When I have multiple outdated races, it seems to work fine. Other entities also work fine with single results. I believe it's the inconsistent matter of fetching that's the issue.

Thank's for this! I'll publish a fix for this soon!


Add Bob's modal

Add Modal for Bob's and store user's name from that in cookies => set to never expire

Dropping this feature

Dropping this feature


test node 4 on travis

Updating travis to test on node 4.

Looks like some weird errors here. The s3prefixed.ls portion just bails out after a few seconds, never sending anything to data, end, or error from the Readable stream. I'm not terribly familiar with streams - any ideas on this one @rclark?

I do notice that util.inherits isn't fully supported any longer - possibly related. https://nodejs.org/docs/latest/api/util.html#util_util_inherits_constructor_superconstructor

See https://github.com/mapbox/s3prefixed/pull/4 -- this ought to do the trick.

That did it @rclark - thank you!


CheckAllDNSJob doesn't run

Hi,
i was trying to use the defined function CheckAllDNSJob.
Should be straight forward by calling it from the Postal Console as CheckAllDNSJob.perform but it didn't return any result but empty object and seems like doesn't work.
I have multiple records matching the function requirements so it's not an issue with the data:

not(:dns_checked_at => nil)
("dns_checked_at <= ?", 1.hour.ago)

I could run directly the code successfully but can anybody confirm that the CheckAllDNSJob job is working fine and it's an issue on my side?

In theory, the job runs as part of the cron: https://github.com/postalhq/postal/blob/7cfbda4426e2a5b7eccc6f888d80abfdebf2f0cb/config/cron.rb#L18
Are you seeing that DNS is not correct in the UI if you wait an hour or so for a known-"broken" domain?

I checked that the cron is doing the job correctly but in the "Verification at" is not updated.

This check is bringing me to this other point. https://github.com/postalhq/postal/issues/868#issuecomment-566006383

I believe that the verified at timestamp would be for when the domain was initially verified to be on your Postal server. If you are using it as a regular user, not administrator, then you would have to create a verification DNS record.
It would seem your problem is related to the type of record as discussed in #868


Perform cleanup on code

Remove unused variables

connectivity_type
allocation_id

Remove Outputs

subnet_ids
subnet_count

Removed connectivity_type & allocation_id variables.
Will remove subnet_ids and subnet_count after updating other modules (like rosa / ec2/bastion/ etc )  which are using these outputs.


Order of root file items in the Outline Explorer should be synced with that of the current EditorStack.

Problem Description
As mentioned by @CAM-Gerlach in https://github.com/spyder-ide/spyder/pull/7968#discussion_r221500554, the outline explorer is still ordered alphabetically, rather than the order of the tabs in the Editor. It would be nice to have the option to either alphabetize it or make it follow the order of the editor, since both could potentially be useful depending on one's workflow.
This would be another step forward into making the Outline Explorer a viable proxy for a vertical tabbar for the Editor Stack.
@ccordoba12 @CAM-Gerlach

Should we add an option in the context menu for this? Something like: Show files sorted alphabetically or something like that? Checking or unchecking this option would not impact the order of the files in the tabbar of the current EditorStack, only the order of the root file items in the Outline Explorer.

Alternatively (or additionally), we could add an action in the context menu (with a corresponding button in the Outline Explorer toolbar) to actually sort the files alphabetically in the Outline Explorer and in the tabbar of the current EditorStack.

Also, do you think that one of the above suggestions could be a valid solution for Issue #5911?

Alternatively (or additionally), we could add an action in the context menu (with a corresponding button in the Outline Explorer toolbar) to actually sort the files alphabetically in the Outline Explorer and in the tabbar of the current EditorStack.

I'd prefer to implement this option.

Also, do you think that one of the above suggestions could be a valid solution for Issue #5911?

If we decided to implement my suggestion, then sure.

I'd strongly favor the first option for the outline explorer (I have no issues with a distinct Editor option to sort tabs alphabetically, either temporarily or enforced, but that's secondary to this particular enhancement and IMO is rendered largely unnecessary by it). It is rather jarring and unexpected UX, serves a distinct purpose from this feature, would break one of the two major use-cases for it and the former approach (along with the other changes to the Outline Explorer @jnsebgosselin 's been making) in fact appears to more directly address the actual underlying user problem expressed in #5911, which is

When a project consists of 10 or more .py-files, at some point searching for the correct tabs becomes really unhandy...

This, of course, is the precise use case with these changes that the Outline Explorer, not the tab bar itself, has been explicitly designed to fill. With regard to the alphabetization specifically, the reporter elaborates

When my currently activated tab is in the middle of, say, 10 open tabs and I'm looking for a module which I cannot see directly in the tab row, I have to search for it, since I don't know whether it is located to the left or to the right from my current tab position.

Of course, the Outline Explorer now essentially bypasses that motivating problem—there's no longer a need to scroll to find the file, as they are all visible (at least to a reasonable number). However, particularly with a lot of files, it is still useful to sort it alphabetically to make scanning for a file faster, for the same reasons.
Thus, one of the two use-cases I was envisioning when I suggested retaining both options is, in fact, very similar to what is suggested in the linked issue—wanting to quickly browse through the list alphabetically to find a particular file, toggling alphabetical mode on and then off when needed (the latter of which would restore the original order, i.e. the user-set order of the tab bar). For this, a toggle button on the toolbar would indeed be particularly helpful.
Meanwhile, however, as the user is already using the Outline Explorer to find the file anyway (the reason they toggled the alphabetical mode there after all), sorting the tab bar too serves no real purpose for this and could confuse or even panic the user if their familiar, user-set tab order is suddenly disrupted with no obvious warning (as it is not at all intuitive that a setting within the Outline Explorer would affect their Editor tabs). In fact, they may be doing so in order to move the tab to a different spot in the list, which requires toggling alphabetical mode back off (or else a lot of user frustration).
The other use case is to keep the outline explorer on alphabetical mode permanently for a project per the user's preference for using it that way, while arranging their editor tabs as normal  (which, I note, is exactly how Spyder currently works). This simply does not work if alphabetical mode in the outline explorer and alphabetizing editor tab order are inexorably linked like this, as this suggestion explicitly links the two.
Therefore (TLDR) the first option solves the actual underlying problem in that thread, while the second option (mandatory linking the two orders) offers minimal or no direct benefit for the use cases presented here and in the linked issue, while offering serious downsides or completely breaking them.

I agree with @CAM-Gerlach on this.
I also think we should go with the first option I've proposed, i.e adding an option to sort items of the Outline Explorer alphabetically, without altering the Editor tabbar.
I also agree that going with the second option would add Ux confusion if added to the Outline Editor. A sort files action should be added in the cog menu of the Editor instead, but that is for another issue.

Somewhat related—with the number of different options, particularly toggable ones that the Outline Explorer has acquired, shouldn't it have a "cog"/"gear" menu as well to make them more obvious to the user? If they didn't happen to check the context menu, users might never know they are there otherwise. Is there a general convention we follow in these sorts of situations as to when and what to put in a cog/gear menu?

Somewhat related—with the number of different options, particularly toggable ones that the Outline Explorer has acquired, shouldn't it have a "cog"/"gear" menu as well to make them more obvious to the user? If they didn't happen to check the context menu, users might never know they are there otherwise. Is there a general convention we follow in these sorts of situations as to when and what to put in a cog/gear menu?

It already has one, with the same options/actions as in the context menu.

My bad, I though I checked in Spyder 4, but it must have been Spyder 3 instead. Thanks for the catch.

This was added recently in PR #7866, but this also introduced a glitch when starting Spyder where the new cog menus are stacked and displayed in the top left corner of Spyder for 2-3 seconds while the plugins are being generated.

I agree with @CAM-Gerlach on this.

Ok, no problem.

This was added recently in PR #7866, but this also introduced a glitch when starting Spyder where the new cog menus are stacked and displayed in the top left corner of Spyder for 2-3 seconds while the plugins are being generated.

I was wrong, the glitch was introduced by the LSP patch.

I was asked to comment as to whether this proposal would fix my issue with #5911, and for me, it does:  the actual tab order in the editor is left alone, but the list of files in the Outline Explorer can be sorted alphabetically.  That would be perfect!

I was also asked to comment: I really like the proposed solution, so to this end, one can have at least the outline explorer always in alphabetical order or synced to the tab order, which I think is a huge step forward. However, in contrast to @luciansmith this does not entirely fix issue #5911 since I would still be happy if a one-way option to sort the tabs (so no toggling!) would be provided in a future version. Nonetheless: Thank you for your great work so far!

Thank you both for your feedback @luciansmith and @fgotzens

However, in contrast to @luciansmith this does not entirely fix issue #5911 since I would still be happy if a one-way option to sort the tabs (so no toggling!) would be provided in a future version. Nonetheless: Thank you for your great work so far!

OK thank you, so I will leave #5911 opened until I implement an action to sort the tabs permanently in the cog menu of the Editor.


Issue with Kubectl command

When I run:
kubectl get pods --all-namespaces
I am getting the next issue:
Unable to connect to the server: context deadline exceeded
I tried installing kubernetes again but the issue is still happening https://kubernetes.io/docs/tasks/tools/install-kubectl/

@k25daniel, GitHub is not the right place for support requests.
As you're looking for help, you could check Stack Overflow.
You can also post your question on the Kubernetes Slack or the Discuss Kubernetes forum.
/triage support

/close


fix: Handle secret retrieval/storage errors

For the holistic pattern to work, intermittent issues retrieving secrets or writing secrets need to be ignored. These present themselves as generic ModelErrors on the ops framework side. Anything that stores a secret also needs to be written such that it could fail, and correct itself on the next event (reentrant).
Fixes #415
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@saltiyazan does that read a little better?


Default values on nested inherited fields

It doesn't appear that these work.. I realise it's an edge case!
Code something like this:
Parent = Astro.Class({
name: 'Parent',
fields: {
'system': {
type: 'object',
default: {}
},
'system.field2': {
type: 'string',
default: 'field2test'
},
});
Child = Base.extend({
name: 'Child',
collection: Childs,
fields: {
"field1": {
type: 'string',
default: 'field1test'
}
});
new Child().save();
The record created will have the values {} for system, and field1test for 'field1', but not the nested field. Moving the nested field up to the top level causes this default to be inserted properly.
Will see if I can dig in the code and suggest a fix.

Hi, thanks for letting know. I'm right now a little bit busy with private stuff and will have time to test it out after the weekend, so I would be glad if you could suggest a fix. However I will get back to it on Monday.

This bug was fixed, probably by accident :D in the next release. I won't publish it right now because it's bigger release. So, please wait for it. For now I'm closing this issue.


DynamoDB get_item should fail if ExpressionAttributeNames is empty or unncecessary

Hi! I’d like to report a difference in behavior between Moto and the real DynamoDB.
A call like
table = boto3.resource("dynamodb").Table("my-table")
table.get_item(
    Key={"id": my_id},
    ExpressionAttributeNames={},
)

will be accepted by Moto 2.2.3, but AWS DynamoDB will return botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the GetItem operation: ExpressionAttributeNames can only be specified when using expressions instead.
Therefore I think Moto should reject a call like that too.
Edit: After opening this issue, I’ve noticed that an empty ExpressionAttributeNames (i.e. {}) is not accepted by DynamoDB either, even if there is a ProjectionExpression.
Why was I passing an empty dict at all, you ask? Because I have wrapped the get_item call in a convenience method in my application that did something like this:
def _get_foo(self, id: str, proj_expr: List[str] = [], expr_attr_names: dict = {}) -> Dict[str, Any]:
    """Retrieve a single foo as a dict."""
    kwargs = {}
    if len(proj_expr):
        kwargs["ProjectionExpression"] = ", ".join(proj_expr)
    res = self._table("foos").get_item(Key={"id": id}, ExpressionAttributeNames=expr_attr_names, **kwargs)

I have fixed my method now by putting ExpressionAttributeNames in the kwargs in the if block instead and checking whether it’s not empty.

Thanks for raising this @scy - will mark it as an enhancement to implement validation here.


 It is necessary to stop it (ctrl+C) and re run it after every change

console:

ionic run --livereload browser
...
...
...
** BUILD SUCCEEDED **

No target specified for emulator. Deploying to iPhone-6s-Plus, 9.2 simulator
io.ionic.starter: 18507

running ionic run browser --livereload (see --livereload after browser) it runs on the platform browser as expected. So the bug is about the --help being misleading. Infact run [options] <PLATFORM> ......................  Run an Ionic project on a connected device should be run <PLATFORM> [options] ......................  Run an Ionic project on a connected device
I'm splitting this in two tickets. The new ticket reports only the not being livereload: https://github.com/driftyco/ionic-cli/issues/790

Thanks for opening the issue. It seems that issue has been resolved. I am going to close this issue but please feel free to reopen another issue if this occurs again.


Removed readme instructions, referring to website instead

I think having multiple copies of instructions for setting up and running ROSplane is confusing and requires more maitence effort. So, I removed all information that is found on the website, and added links pointing users to the website instead.

As a note, Amy is working on getting some media for this GitHub README. There's a separate issue associated with that progress, however.
That way, the detailed instructions will be on the website, but the GitHub page will still have some useful images / information about what ROSplane is.


Adding examples on how to filter list_jobs

Adding examples on how to filter list_jobs

Let's include a note before we go into the different types of filtering to clarify Python SDK version requirements

Do you mean we add a line in the documentation saying "this feature only available on ver x.xx.xx+"?

Let's include a note before we go into the different types of filtering to clarify Python SDK version requirements

Do you mean we add a line in the documentation saying "this feature only available on ver x.xx.xx+"?

Yes let's do that for now. You can possibly use the > [!NOTE] element for that and just say something like
"Filtering is available in version x.xx.xxxx and newer of the Python SDK"
That means people on older versions know to update

Oh turns out I don't have write permission. @SoniaLopezBravo I think this one is good to go


[Accessibility] GitHub Web Editor: Cannot configure accessibility mode permanently

CC @isidorn
In the Web Editor, accessibility mode (AKA, screen reader support) is not saved permanently so users have to turn it on each time they enter the editor.

Hmm, I'm trying this out myself, but I don't seem to be able to repro? I enable voiceover, open up github.dev on my first repo and see that VS Code recognized it and turned on "screen reader optimized" mode. I open a new window on a second repository and VS Code still has the screen reader optimized mode. cc @isidorn and @bamurtaugh for web-editor awareness.

This also seems to work for me.
@jooyoungseo for me I can also set "editor.accessibilitySupport": "on" and this is preserved across different workspaces in github.dev. Does this not work for you? What platform are you using?


fix : mysql setup

fix #235

mysql test is failing now. If I run python setup.py test inside source/mysql/dffml-source-mysql then i get the following error:


bids-mriqc not usable with datalad dataset

same error for 23.1.1 and 24.0.2  (don't believe the logs for the version: https://github.com/nipreps/mriqc/issues/1354 )
It seems that mriqc calls datalad even if all files were fetch beforehand outside of the container.
[INFO   ] == Command start (output follows) =====
------------------------------------------------------------------
  Running MRIQC version 24.1.0.dev0+gd5b13cb5.d20240826
  ----------------------------------------------------------------

  NOTICE
  Copyright © The NiPreps Developers.

  This product includes software developed by
  the NiPreps Community (https://nipreps.org/).

  Portions of this software were developed at the Department of
  Psychology at Stanford University, Stanford, CA, US.

  This software contains code ultimately derived from the
  PCP Quality Assessment Protocol (QAP;
  http://preprocessed-connectomes-project.org/quality-assessment-protocol)
  by C. Craddock, S. Giavasis, D. Clark, Z. Shezhad, and J. Pellman.

  This software is also distributed as a Docker container image.
  The bootstrapping file for the image ("Dockerfile") is licensed
  under the MIT License.

  ----------------------------------------------------------------

  * BIDS dataset path: /home/basile/data/tests/mriqc/sourcedata/bids.
  * Output folder: ..
  * Analysis levels: ['participant'].
------------------------------------------------------------------

2024-11-01 18:24:05 | IMPORTANT | mriqc            | DataLad dataset identified, attempting to `datalad get` unavailable files.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/pathlib.py", line 1116, in mkdir
    os.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/mriqc/.cache/datalad/sockets'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/pathlib.py", line 1116, in mkdir
    os.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/mriqc/.cache/datalad'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/bin/mriqc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/mriqc/cli/run.py", line 43, in main
    parse_args(argv)
  File "/opt/conda/lib/python3.11/site-packages/mriqc/cli/parser.py", line 658, in parse_args
    initialize_meta_and_data()
  File "/opt/conda/lib/python3.11/site-packages/mriqc/utils/misc.py", line 447, in initialize_meta_and_data
    _datalad_get(dataset)
  File "/opt/conda/lib/python3.11/site-packages/mriqc/utils/misc.py", line 282, in _datalad_get
    return get(
           ^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/interface/base.py", line 773, in eval_func
    return return_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/interface/base.py", line 763, in return_func
    results = list(results)
              ^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad_next/patches/interface_utils.py", line 197, in _execute_command_
    hooks = get_jsonhooks_from_config(ds.config if ds else dlcfg)
                                      ^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/distribution/dataset.py", line 331, in config
    repo = self.repo
           ^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/distribution/dataset.py", line 273, in repo
    self._repo = repo_from_path(self._path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/core/local/repo.py", line 61, in repo_from_path
    repo = cls(path, create=False, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/dataset/repo.py", line 163, in __call__
    instance = type.__call__(cls, *new_args, **new_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/datalad/support/annexrepo.py", line 198, in __init__
    super(AnnexRepo, self).__init__(
  File "/opt/conda/lib/python3.11/site-packages/datalad/support/gitrepo.py", line 938, in __init__
    ssh_manager.ensure_initialized()
  File "/opt/conda/lib/python3.11/site-packages/datalad/support/sshconnector.py", line 738, in ensure_initialized
    self._socket_dir.mkdir(exist_ok=True, parents=True)
  File "/opt/conda/lib/python3.11/pathlib.py", line 1120, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "/opt/conda/lib/python3.11/pathlib.py", line 1120, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "/opt/conda/lib/python3.11/pathlib.py", line 1116, in mkdir
    os.mkdir(self, mode)
OSError: [Errno 30] Read-only file system: '/home/mriqc/.cache'
[INFO   ] == Command exit (modification check follows) =====

This behavior is only in MRIQC, no other nipreps tool AFAIK
So maybe we should set the repronim/containers datalad config to include --no-datalad-get by default, as datalad operations are supposed to be taken care of outside of the container in that setting.

So maybe we should set the repronim/containers datalad config to include --no-datalad-get by default, as datalad operations are supposed to be taken care of outside of the container in that setting.

indeed, let's just do  that....

ok I just have to find in which version that option was introduced

https://github.com/nipreps/mriqc/pull/1278 24.0.0, so the older versions in repronim/containers will remain broken unless this is backported.  @oesteban

old versions would remain "as working" as they were used ;) (ppl might have bind-mounted things up etc). Let's fix current/new ones.

@bpinsard please check/review https://github.com/ReproNim/containers/pull/133 (I sent an invite as well)


Update README.txt to markdown README.md

This makes it possible for quickdocs.org to parse the documentation URL.
http://quickdocs.org/quickproject/
Resolves #24

closing for no reason


lxqt.qterminal: 0.8.0 -> 0.9.0

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/qterminal/versions.
These checks were done:

built on NixOS
Warning: no invocation of /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0/bin/qterminal had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 0.9.0 with grep in /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0
directory tree listing: https://gist.github.com/76f97d0d578674b7b80479185f5029e5
du listing: https://gist.github.com/56dfa13e4cd8c75bf2d88861ccd8fca1

meta.description for lxqt.qterminal is: '"A lightweight Qt-based terminal emulator"'.
cc @romildo for testing.
Experimental: this build is cached with Cachix. To use the cache follow these experimental instructions:
One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout 9d38095e448f7edd684aa353ae47f34c166fe6b2 && nix-shell --pure -I nixpkgs=. -p lxqt.qterminal

Success on x86_64-linux (full log)
Attempted: lxqt.qterminal
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0
shrinking /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0/bin/qterminal
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0/bin
patching script interpreter paths in /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0
checking for references to /build in /nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/9bvz8bq3vsclmvyziswscn8hxkgsyvv4-qterminal-0.9.0

Success on aarch64-linux (full log)
Attempted: lxqt.qterminal
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0
shrinking /nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0/bin/qterminal
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0/bin
patching script interpreter paths in /nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0
checking for references to /build in /nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/6k2wxds2l3mi4f73cvr48ln1cw4xij7z-qterminal-0.9.0

Failure on x86_64-darwin (full log)
Attempted: lxqt.qterminal
Partial log (click to expand)
/tmp/nix-build-qtermwidget-0.9.0.drv-0/source/lib/kpty.cpp:87:11: fatal error: 'utmp.h' file not found
# include <utmp.h>
          ^~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/qtermwidget5.dir/build.make:236: CMakeFiles/qtermwidget5.dir/lib/kpty.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/qtermwidget5.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
builder for '/nix/store/8xvq810p7lh60g9nadvrmzjpn8nkzyjk-qtermwidget-0.9.0.drv' failed with exit code 2
cannot build derivation '/nix/store/sy6rp2f1kb2nq102zbc7z275klhacmgd-qterminal-0.9.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/sy6rp2f1kb2nq102zbc7z275klhacmgd-qterminal-0.9.0.drv' failed

build fails on darwin without this PR.


Feature/sg 747 support predict video full pipeline master

Adding predict_video and predict_image_folder. This also introduced some refactoring on the Pipeline to support lazy batch processing.
Discussion
I made the choice that  predict_images returns a Results object (which can be used to visualize, get bboxe values, ect...) while predict_video and predict_image_folder don't return anything (and instead save the result). I'm open for discussions on both points, I'm not 100% sure if this is the right way to go.
(See code below for more context)
Motivation to NOT return a result object for predict_video and predict_image_folder:

For predict_video, we would need a new object (VideoResults ???) that would handle show for videos. I was wondering whether to do it or not. I started to draft it and felt like it was becoming overcomplicated (I can elaborate on why if you want) so I chose not to return anything for now, while keeping in mind that we can always add this feature later on. Note that we can still visualize the results with the visualize flag, we just don't get a Results.
For predict_image_folder, we can return a Results object but only when the folder is small enough. Adding an option to "load everything to memory or not" or "return_results" felt dirty, especially because the current implementation only loads the batches one at a time. I thought we can just leave it like that (without returning any result object) considering that this is more like a back-end batch processing function. When playing around the model using predict_images makes more sense because you explicitly chose the images to visualize, so it also makes sense that predict_images returns this Results object to have the user play.

Also note that predict_images can also be applied on videos and folders with a very simple script if the user wants to get a Results object. He simply needs to either load the video as frames using (using load_video) or get the list of image path from a folder (using list_images_in_folder) and then apply predict_images on it.
https://github.com/Deci-AI/super-gradients/blob/c30ef1683c17619ab1297851bc135746b7392d0a/src/super_gradients/training/pipelines/pipelines.py#L56-L108

Regarding processing video/image folder, I wonder whether we can extract common logic via generators:
def process_series(self, images: Iterable[np.ndarray]) -> Iterable[Result]:
   for image in images:
      yield self.process(image)

So processing logic for a collection of images is in one place, regardless what if it is an image folder or video.
So now even if we want to process and save entire LoTR movie we can do this without storing all frames in memory:
class VideoFileIterator:
  def __init__(self, input_path):
     self.cap = cv2.VideoCapture(input_path)

  def __next__(self):
     success, frame = self.cap.grab()
     if not success:
        raise StopIteration()
     return frame

def process_video(self, input_path, output_path):
    input = VideoFileIterator(input_path)
    output = VideoWriter(output_path)
    for result in process_series(input):
        output.write_frame(result)


french translations

Hi! I'm currently doing the file for French and I have a couple of questions about some fields, can you give me a bit of context so that I can accurately translate please?

exclusive-zone
exclusive-zone-tooltip
keyboard-include-tooltip
lock-screen-include-tooltip
output
pointer-device-include-tooltip
start
tap
touchpad-device-include-tooltip

Sometimes you refer to hotspots, what are they?
Also there seems to be a couple of copy-paste typos on those fields in en_US.json:

exit-menu-css-name
exit-menu-css-name-tooltip

Hi!

exclusive-zone

If you place a window in the gtk-layer-shell exclusive zone, other windows will be moved away, so that they didn't cover your window. Example: panels/bars are usually in the exclusive zone.

keyboard-include

The keyboard txt file, containing keyboard settings, which we include in the sway config file. "Includes" here are in general the config files that we include.

Tooltips

The tips that appear, when you point a GTK widget with the mouse pointer.

output

The display name in the sway/wlroots meaning, e.g. eDP-1, HDMI-A-1, and so on.

start

here means the beginning: align to "start" / "middle" or "center" / "end".

tap

Like click, but on a touchpad.

hotspot

Is the screen area that you need to point with the mouse pointer for the dock to appear.

Also there seems to be a couple of copy-paste typos on those fields in en_US.json:

Yes, thank you. I'll fix them.
Thank you for your commitment!

LOL, I don't understand a word of French :) Thank you again.


Data prepare, prepare dict and lm train

Thanks, this is useful for running the recipe end-to-end, but I was actually hoping to avoid having to add the shell scripts from Kaldi. I asked Yenda and Guoguo to upload the lexicon and the LM to OpenSLR so that I can simply download them and skip these scripts entirely.
I'm hoping we'll eventually have "icefall-native" LM and dict preparation.

Hey, I never said thanks - thanks! 😁


Develop

Codecov Report

Merging #296 into develop will decrease coverage by 3.84%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #296      +/-   ##
===========================================
- Coverage    66.50%   62.66%   -3.85%
===========================================
  Files          209      209
  Lines        11428    11428
===========================================
- Hits          7600     7161     -439
- Misses        3828     4267     +439

Impacted Files
Coverage Δ

framework/tests/dataSource/ipList.h
0.00% <0.00%> (-100.00%)
:arrow_down:

framework/tests/demuxer/demuxerUnitTest.cpp
0.00% <0.00%> (-100.00%)
:arrow_down:

framework/tests/decoder/decoderUnitTest.cpp
0.00% <0.00%> (-93.62%)
:arrow_down:

framework/tests/dataSource/dataSourceUnitTest.cpp
0.00% <0.00%> (-93.39%)
:arrow_down:

framework/tests/demuxer/demuxerUtils.cpp
0.00% <0.00%> (-76.00%)
:arrow_down:

framework/base/OptionOwner.h
33.33% <0.00%> (-66.67%)
:arrow_down:

framework/data_source/ffmpeg_data_source.cpp
7.50% <0.00%> (-57.50%)
:arrow_down:

framework/demuxer/AVBSF.cpp
23.07% <0.00%> (-42.86%)
:arrow_down:

framework/data_source/curl/CURLShareInstance.cpp
69.44% <0.00%> (-27.78%)
:arrow_down:

framework/data_source/curl/CURLConnection.cpp
55.81% <0.00%> (-11.34%)
:arrow_down:

... and 16 more

Continue to review full report at Codecov.

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


Spam GameObgect. Leak

Description of Problem or Question
in the menu choice of scenarios. Spaming UIBG GameObgect.
black square in lower left corner

Noticed spam GameObjects TextSizing. As I understand each text creates an object TextSizing

When opening and closing inventory in the middle of a game, the memory used increases by  3~8MB
OpenCloseInventory.zip - this is Profiler.data
For phones and tablets I think this is critical. The longer you play the more memory is used.
Valkyrie Version
2.2.20190131

Well spotted, it's now fixed.
There are definitely some optimisations to do still, but that's a first step.


Feature request: download DLCs in their own directories

It would be nice to have the option of keeping DLCs in their own directory.
For example, for age_of_wonders_3, status output is:
gamename: age_of_wonders_3
title: Age of Wonders 3
icon: http://static.gog.com/upload/images/2014/02/3ba42ba08d51803592fdeb532a5b2db514ffe342.jpg
serials:
...

installers:
	id: en1installer6
	name: Windows Installer, English
	path: /age_of_wonders_3/win/setup_age_of_wonders3_<IP_ADDRESS>.exe
	size: 2000
	updated: True
	language: English

extras:
	id: 28843
	name: wallpapers
	path: /age_of_wonders_3/extras/aow3_wallpapers.zip
	size:

	id: 28823
	name: beastiary
	path: /age_of_wonders_3/extras/aow3_beastiary.zip
	size:

	id: 28833
	name: avatars
	path: /age_of_wonders_3/extras/aow3_avatars.zip
	size:

	id: 28853
	name: character concepts
	path: /age_of_wonders_3/extras/aow3_character_concepts.zip
	size:

	id: 28863
	name: cities concept arts
	path: /age_of_wonders_3/extras/aow3_cities_concept_art.zip
	size:

	id: 28873
	name: faction crests
	path: /age_of_wonders_3/extras/aow3_faction_crests.zip
	size:

patches:
	id: en1patch10
	name: Patch 1.705
	path: /age_of_wonders_3/win/patch/patch_age_of_wonders3_<IP_ADDRESS>.exe
	size: 16.4
	updated: True
	language: English

	id: en1patch8
	name: Patch 1.703
	path: /age_of_wonders_3/pc/patch/patch_age_of_wonders3_<IP_ADDRESS>.exe
	size: 12.7
	updated: True
	language: English

	id: en1patch9
	name: Patch 1.704
	path: /age_of_wonders_3/pc/patch/patch_age_of_wonders3_<IP_ADDRESS>.exe
	size: 25
	updated: True
	language: English

DLCs:
	gamename: elven_resurgence
	id: en1installer7
	name: Windows Installer, English
	path: /age_of_wonders_3/win/dlc/setup_aow3_elven_resurgence_scenario_<IP_ADDRESS>.exe
	size: 7.7
	updated: False

	gamename: age_of_wonders_3_deluxe_edition_upgrade
	id: en1installer8
	name: Windows Installer, English
	path: /age_of_wonders_3/win/dlc/setup_aow3_dragons_throne_scenario_<IP_ADDRESS>.exe
	size: 7.8
	updated: False

	gamename: age_of_wonders_3_deluxe_edition_upgrade
	id: 29843
	name: soundtrack (MP3)
	path: /age_of_wonders_3_deluxe_edition_upgrade/extras/aow3_ost_deluxe_mp3.zip
	size:

	gamename: age_of_wonders_3_deluxe_edition_upgrade
	id: 29853
	name: soundtrack (FLAC)
	path: /age_of_wonders_3_deluxe_edition_upgrade/extras/aow3_ost_deluxe_flac.zip
	size:

	gamename: age_of_wonders_3_golden_realms
	id: en1installer7
	name: Windows Installer, English
	path: /age_of_wonders_3/win/dlc/setup_aow3_golden_realms_<IP_ADDRESS>.exe
	size: 60.9
	updated: False

	gamename: age_of_wonders_3_golden_realms
	id: 35333
	name: wallpapers
	path: /age_of_wonders_3_golden_realms/extras/aow_3_golden_realms_wallpapers.zip
	size:

	gamename: age_of_wonders_3_eternal_lords
	id: en1installer5
	name: Windows Installer, English
	path: /age_of_wonders_3/win/dlc/setup_aow3_eternal_lords_<IP_ADDRESS>.exe
	size: 78.8
	updated: True

and I'd like this directory structure:
age_of_wonders_3/aow3_avatars.zip
age_of_wonders_3/aow3_beastiary.zip
age_of_wonders_3/aow3_character_concepts.zip
age_of_wonders_3/aow3_cities_concept_art.zip
age_of_wonders_3/aow3_faction_crests.zip
age_of_wonders_3/aow3_wallpapers.zip
age_of_wonders_3/patch_age_of_wonders3_<IP_ADDRESS>.exe
age_of_wonders_3/patch_age_of_wonders3_<IP_ADDRESS>.exe
age_of_wonders_3/patch_age_of_wonders3_<IP_ADDRESS>.exe
age_of_wonders_3/setup_age_of_wonders3_<IP_ADDRESS>.exe
age_of_wonders_3_deluxe_edition_upgrade/aow3_ost_deluxe_flac.zip
age_of_wonders_3_deluxe_edition_upgrade/aow3_ost_deluxe_mp3.zip
age_of_wonders_3_deluxe_edition_upgrade/setup_aow3_dragons_throne_scenario_<IP_ADDRESS>.exe
age_of_wonders_3_eternal_lords/setup_aow3_eternal_lords_<IP_ADDRESS>.exe
age_of_wonders_3_golden_realms/aow_3_golden_realms_wallpapers.zip
age_of_wonders_3_golden_realms/setup_aow3_golden_realms_<IP_ADDRESS>.exe
elven_resurgence/setup_aow3_elven_resurgence_scenario_<IP_ADDRESS>.exe

That is possible using the --subdir-* options
This should result to the directory structure that you want
--subdir-dlc "../%dlcname%" --subdir-extras "" --subdir-language-packs "" --subdir-patches ""

That's good to hear. I just tried it out, and it didn't work for me though. Command line was
lgogdownloader --subdir-dlc "../%dlcname%" --subdir-extras "" --subdir-language-packs "" --subdir-patches "" --ignore-dlc-count . --save-serials --check-orphans --download --repair --create-xml automatic --language all --platform all --game age_of_wonders_3

and it downloaded everything into age_of_wonders_3.

Any comments? Am I using incorrect flags or is there a bug here?

This was a configuration problem. I had "no-subdirectories" in my config file. Sorry, I didn't think of looking there.


feat(angular): expose getPlatforms and isPlatform

blocks https://github.com/ionic-team/ionic-docs/pull/1423

Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Build (npm run build) was run locally and any changes were pushed
[x] Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: resolves https://github.com/ionic-team/ionic/issues/17353
What is the new behavior?

Export getPlatforms, isPlatform

Does this introduce a breaking change?

[ ] Yes
[x] No

Other information

Need to check and see if this will work with SSR. Might need to add a window check and return [] if SSR


Add PTES Design Point Dialog Widget

Pull Request Template
Description
Related to issue 1317 https://github.com/NREL/SAM/issues/1317
Add a button to PTES to open a design point dialog to calculate unintuitive inputs (such as heat pump COP).
Does not affect any other project.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

Fixes #1317


TwitchDropsMiner detects no association and therefore does not hang treasure.

Twitch was linked to the battle.net.  But twitch shows no correlation.  This causes TwitchDropsMiner to detect no association, so it does not hang the treasure.

Not being able to link your account is not an issue with the miner, but with Twitch itself. I cannot help you resolve Twitch-related issues.
You can follow the "clean reconnect" instructional from here: https://github.com/DevilXD/TwitchDropsMiner/issues/309#issuecomment-1749628379
There's no other way I can help you here.


WebView inside of a Container->Content?

Sorry if this is a silly question, just wondering if this is possible?  I have a PDF I need to show, and I'm using a WebView to display it.  It doesn't seem to want to render within .

@robputer Do you have a screenshot of the error? Try using the webview inside a <View /> and see if that works.

+1
Started using WebView and if I use Container-> Content it will not render, If I replace the Container and Content with the View it will render.

Related to https://github.com/facebook/react-native/issues/4773
Please specify a height for the <WebView /> component.

Hello,
I'm opening this since I want to add a WebView inside the Content and it is not displaying. If I set the height it will, but I want it full page.

Set the height to deviceheight

And then it will display over the menu / footer .. so it's not good

Minus the height of header and footer. Because that is the way react native scrollview works and native-base is just a wrapper around it.

@grohsfabian @sankhadeeproy007 I think setting the height using deviceHeight isn't a good idea. We can achieve the same thing using flex. Instead of  we can just place  with { flex: 1 }

It just doesn't work. I've tried to set it with { flex: 1 } but It won't show.

I have encountered the same problem and solved following.
render () {
  return (
    <Container>
      <Content contentContainerStyle={{flex: 1}}>
        <WebView source={{ uri: 'something' }} />
      </Content>
    </Container>
  );
}

Thank you horiuchie!


antineuralgic, conculcation

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[a,c]

/trunk merge


fixed regex statement

Current regex  statement will alert positive key on anything with a dash. This regex will only verify key if the key has characters between A-Z, z-z, or 0-0 in a double dash format (per key requirements on Steam website)
Total prevent extra text (like Total Warhammer: Cool DLC - Extra) from being accidentally brought in as a valid key

Like to make a comment that I used this for several months on my own branch of this program. Considered it heavily tested. Even though it is possible to have different keys, key providers have strayed away from anything besides the double dash. If this causes a problem in the future a simple OR case can be added with an extended regex statement

See #4 and changed made in that PR as to why I won't merge this.
Thanks for contributing, though!

While having a vague regex statement which only looks for a hyphen in the key extraction makes for future-proofing there is a major issue. The whole point is to allow the user to enter in key segments from websites that include other text. The issue is that with games which contain hyphens (such as Drive-By or Blood of Old - The Rise to Greatness) or important a giant copy paste from DailyIndieGames (which looks like this) is not going to fly with a regex statement that filters only a hyphen. The program counts a statement like "Drive-By Hero | STEAM | XXXXX-XXXXX-XXXXX | - | Mark as used" as 3 separate keys! According to the Steam User Guide the only keys that will be received for redemption with games will be 5x3 (XXXXX-XXXXX-XXXXX) for online purchases and 5x5 (XXXXX-XXXXX-XXXXX-XXXXX-XXXXX) for retail box redemption keys. There is no game-purchase case in which a key would contain less the two hyphens.
The Regex statement I added follows the following format: To import a string key it must contain at least 2 hyphens (2+ hyphens is allowed) and have only alphanumeric characters. This way "1-1" is not considered a valid key, neither is "1-_" as is one of the current issues in the program.

In the original release I included a regex check for the 3 current Steam code format but it's not used anymore. Reason for the more relaxed check is that if another key format is added then the program will not need an update to support it.
It's enforcing a requirement that isn't really needed. It's pretty obvious that "game-code-haha" isn't a valid key, but if a user want to attempt to register that then there is no point blocking that attempt.
Again, I can take a look at it tomorrow and consider It, but I don't really see a point.

I agree that a code entered by the user that's invalid (such as your example) is clearly invalid. I suppose you'd have to ask yourself what's worse. Adding in a patch if Steam decides to move from 5x3 or have the string "Drive-By XXXXX-XXXXX-XXXXX" always register as 2 keys. An optional feature I had implemented long ago is creating the option to import from a keys file. This could have the regex statement which only allows 5x3 format keys.

That doesn't seem like too bad of a suggestion. :)

I've done some extensive testing using the Regex statement @"([A-Za-z0-9]+)(-([A-Za-z0-9]+)){2,}". It works fine obviously with the standard 5x3 key notation. The notion is recognizes is actual N1xN2 where N1 is anything >= then 1 and N2 is anything >= 3 (i.e. 1-1-1 is valid, 1234-1324-1234-1234 is valid, "Drive-By Hero | STEAM | XXXXX-XXXXX-XXXXX | - |" is recognized as only 1 key. 12345-12345 is not valid.). Would you like hold off to this feature or would you like me to create a PR?

I will have a new version out tomorrow

Gorgeous and sleek. The layout look incredibly professional and well cut. I like how the valid keys show in the top left. What are the two new options that have been added? (Scrape bundle sites and icon to the right of Github?) If they do what I think they do I will probably celebrate out of joy


Update locations for 7.29

Chapter 3: neutral box, camp locations, waypoints
Chapter 4: Highground barrier location, ward target location, outpost camera location (just pan to the actual outpost location perhaps)
Chapter 5: Bounty rune spawn locations (only 2?)

Also I imagine various barrier locations are broken everywhere

Done in #595 #593 #592 #591


Synthesis failed for GroupsMigration

Hello! Autosynth couldn't regenerate GroupsMigration. :broken_heart:
Here's the output from running synth.py:
2020-05-09 05:13:50 [INFO] logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
2020-05-09 05:13:50,970 autosynth > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
Switched to branch 'autosynth-groupsmigration'
2020-05-09 05:13:52 [INFO] Running synthtool
2020-05-09 05:13:52,392 autosynth > Running synthtool
2020-05-09 05:13:52 [INFO] ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-09 05:13:52,392 autosynth > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-09 05:13:52,598 synthtool > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-groupsmigration
nothing to commit, working tree clean
2020-05-09 05:13:52,721 synthtool > Cloning https://github.com/googleapis/elixir-google-api.git.
2020-05-09 05:13:53,286 synthtool > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/elixir-google-api:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh GroupsMigration
2020-05-09 05:13:56,772 synthtool > No files in sources /home/kbuilder/.cache/synthtool/elixir-google-api/clients were copied. Does the source contain files?
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 180, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 112, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/groups_migration/synth.metadata'
2020-05-09 05:13:56 [ERROR] Synthesis failed
2020-05-09 05:13:56,801 autosynth > Synthesis failed
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 599, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 471, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 549, in _inner_main
    ).synthesize(base_synth_log_path)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 118, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--', 'GroupsMigration']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth is still having trouble generating GroupsMigration. :sob:
Here's the output from running synth.py:
2020-05-11 05:12:24 [INFO] logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
2020-05-11 05:12:24,382 autosynth > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
Switched to branch 'autosynth-groupsmigration'
2020-05-11 05:12:25 [INFO] Running synthtool
2020-05-11 05:12:25,953 autosynth > Running synthtool
2020-05-11 05:12:25 [INFO] ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-11 05:12:25,953 autosynth > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-11 05:12:26,137 synthtool > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-groupsmigration
nothing to commit, working tree clean
2020-05-11 05:12:26,429 synthtool > Cloning https://github.com/googleapis/elixir-google-api.git.
2020-05-11 05:12:26,844 synthtool > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/elixir-google-api:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh GroupsMigration
2020-05-11 05:12:30,052 synthtool > No files in sources /home/kbuilder/.cache/synthtool/elixir-google-api/clients were copied. Does the source contain files?
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 180, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 112, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/groups_migration/synth.metadata'
2020-05-11 05:12:30 [ERROR] Synthesis failed
2020-05-11 05:12:30,077 autosynth > Synthesis failed
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 599, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 471, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 549, in _inner_main
    ).synthesize(base_synth_log_path)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 118, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--', 'GroupsMigration']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth is still having trouble generating GroupsMigration. :sob:
Here's the output from running synth.py:
2020-05-11 15:14:54 [INFO] logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
2020-05-11 15:14:54,661 autosynth > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
Switched to branch 'autosynth-groupsmigration'
2020-05-11 15:14:56 [INFO] Running synthtool
2020-05-11 15:14:56,383 autosynth > Running synthtool
2020-05-11 15:14:56 [INFO] ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-11 15:14:56,384 autosynth > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-11 15:14:56,596 synthtool > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-groupsmigration
nothing to commit, working tree clean
2020-05-11 15:14:56,673 synthtool > Cloning https://github.com/googleapis/elixir-google-api.git.
2020-05-11 15:14:57,129 synthtool > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/elixir-google-api:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh GroupsMigration
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.0
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
A new Hex version is available (0.20.1 < 0.20.5), please update with `mix local.hex`
All dependencies are up to date
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.

22:14:59.678 [info]  FETCHING: https://www.googleapis.com/discovery/v1/apis/groupsmigration/v1/rest

22:14:59.818 [info]  FOUND: https://www.googleapis.com/discovery/v1/apis/groupsmigration/v1/rest
Revision check: old=20181126, new=20181126, generating=true
Creating leading directories
Writing Groups to clients/groups_migration/lib/google_api/groups_migration/v1/model/groups.ex.
Writing Archive to clients/groups_migration/lib/google_api/groups_migration/v1/api/archive.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
fixing file permissions
2020-05-11 15:15:00,724 synthtool > No files in sources /home/kbuilder/.cache/synthtool/elixir-google-api/clients were copied. Does the source contain files?
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 180, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 112, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/groups_migration/synth.metadata'
2020-05-11 15:15:00 [ERROR] Synthesis failed
2020-05-11 15:15:00,758 autosynth > Synthesis failed
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 599, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 471, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 549, in _inner_main
    ).synthesize(base_synth_log_path)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 118, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--', 'GroupsMigration']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth is still having trouble generating GroupsMigration. :sob:
Here's the output from running synth.py:
2020-05-12 05:14:23 [INFO] logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
2020-05-12 05:14:23,285 autosynth > logs will be written to: /tmpfs/src/github/synthtool/logs/googleapis/elixir-google-api
Switched to branch 'autosynth-groupsmigration'
2020-05-12 05:14:24 [INFO] Running synthtool
2020-05-12 05:14:24,890 autosynth > Running synthtool
2020-05-12 05:14:24 [INFO] ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-12 05:14:24,890 autosynth > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--']
2020-05-12 05:14:25,105 synthtool > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-groupsmigration
nothing to commit, working tree clean
2020-05-12 05:14:25,387 synthtool > Cloning https://github.com/googleapis/elixir-google-api.git.
2020-05-12 05:14:25,847 synthtool > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/elixir-google-api:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh GroupsMigration
/workspace /workspace
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.0
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
A new Hex version is available (0.20.1 < 0.20.5), please update with `mix local.hex`
All dependencies are up to date
The mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.

12:14:29.271 [info]  FETCHING: https://www.googleapis.com/discovery/v1/apis/groupsmigration/v1/rest

12:14:29.407 [info]  FOUND: https://www.googleapis.com/discovery/v1/apis/groupsmigration/v1/rest
Revision check: old=20181126, new=20181126, generating=true
Creating leading directories
Writing Groups to clients/groups_migration/lib/google_api/groups_migration/v1/model/groups.ex.
Writing Archive to clients/groups_migration/lib/google_api/groups_migration/v1/api/archive.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
fixing file permissions
2020-05-12 05:14:30,291 synthtool > No files in sources /home/kbuilder/.cache/synthtool/elixir-google-api/clients were copied. Does the source contain files?
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 180, in __exit__
    write(self.metadata_file_path)
  File "/tmpfs/src/github/synthtool/synthtool/metadata.py", line 112, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'clients/groups_migration/synth.metadata'
2020-05-12 05:14:30 [ERROR] Synthesis failed
2020-05-12 05:14:30,324 autosynth > Synthesis failed
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 599, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 471, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 549, in _inner_main
    ).synthesize(base_synth_log_path)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 118, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'clients/groups_migration/synth.metadata', 'synth.py', '--', 'GroupsMigration']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Implement backend code for available educational modules

Setup the endpoints to select the educational content and quizzes from the educational module page. Currently limit it to about 3 topics with 1 lesson and 1 quiz each.

Interested

Wait already implemented on lessons page


After update on 6.23.2023 PDF is downloaded instead of shown in embed tag area

Attach (recommended) or Link to PDF file here: Any PDF file
Configuration:

Web browser and its version: Chrome Desktop Version 114.0.5735.134 (Official Build) (64-bit)
Operating system and its version: Windows 10 22H2
PDF.js version: 3.7.108
Is a browser extension: Yes

Steps to reproduce the problem:

Visit webpage with embed tag like this:
<embed src="/relative/path/[docId]?name=test.pdf" width="1598" height="981" type="application/pdf">
On click of a row in a table, update embed link with correct info and reload the div

What is the expected behavior? Document shown in embed tag area
What went wrong? Document downloaded instead
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm

Could you show an actual example that reproduces the issue? I've tested https://robwu.nl/pdfjs/object-embed.html before publication, which among other things loads PDF in <embed src="file.pdf" ... type="application/pdf">, and that works just fine.

Was this perhaps fixed by PR #16612?

@Rob--W Thanks for that link. The embed tags there work for me, too, but our page still doesn't seem to work. The difference is that we don't have the page embedded in the link at render time. We create the embed tag via javascript when someone clicks on a link in a list.
@Snuffleupagus I'm using PDF Viewer from here (https://chrome.google.com/webstore/detail/pdf-viewer/oemmndcbldboiebfnladdacbdfmadadm), which was updated yesterday. I assume it has the fix you mention.

Is the issue still happening with the latest version? If yes, can you share a test case? Without it this I cannot investigate nor fix the issue.

I don't know if there was a second update of the PDF Viewer library or not, but it is now working on our page!

There has indeed been an update (https://github.com/Rob--W/pdf.js/releases/tag/chrome-3.9.49). Based on the description your issue was most likely resolved by https://github.com/mozilla/pdf.js/pull/16612
Thanks for reporting and confirming that the issue is gone!


Update readme

Add manual to readme how to launch, contribute, etc...

Thanks for opening this @vvmspace. We are currently working on updating these contribution guidelines and we'll provide an update here once done.


How to trigger the alarm.....

Hi.....
Is it possible to trigger the Alarm on (State:4) with a curl http event ?
Richard

Nope, you cannot directly connect to this securitysystem and change its state, it is reaching out to a set of URLs and reads the state from there.
What you can do is that you create an HTTP service which stores the state (including state 4), which has nothing to do with Homebridge, it's just a regular HTTP app (it can be a PHP script or full app or some special solution just for this purpose). This Homebridge service can be then configured to query this HTTP service of yours for the state and that way you can communicate a state 4 to my plugin.
As you have control of this state provider HTTP service, you can decide yourself HOW you want to have its state changes. It could be a curl call as well.
I personally use NodeRed for this, there you can define HTTP endpoints, connect them to various logic components, craft responses. I have endpoints which are used by the security system for querying the state and I have other HTTP endpoints which I can call to set the state and trigger alarms.