text:
example spa: relative modules were not found

Tried to follow the quick start section of README.md. Step npm start exitted with:
...
[1] <s> [webpack.Progress] 94% after seal
[1] <s> [webpack.Progress] 95% emitting
[1] <s> [webpack.Progress] 95% emitting HtmlWebpackPlugin
[1] <s> [webpack.Progress] 95% emitting CopyPlugin
[1] <s> [webpack.Progress] 98% after emitting
[1] <s> [webpack.Progress] 98% after emitting CopyPlugin
[1]  ERROR  Failed to compile with 2 errors18:06:26
[1]
[1] These relative modules were not found:
[1]
[1] * ../../cfg.json in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/SignIn.vue?vue&type=script&lang=js&
[1] * ../cfg.json in ./src/firebase.js
[1] <s> [webpack.Progress] 100%
[1]

... and the top of the build log says:
$ npm start

> example-spa@0.0.0 start /home/dmoebius/src/vue-crud-x/example-spa
> concurrently "npm run rest" "npm run serve"

[0]
[0] > example-spa@0.0.0 rest /home/dmoebius/src/vue-crud-x/example-spa
[0] > cd ../backend&&npm run-script dev
[0]
[1]
[1] > example-spa@0.0.0 serve /home/dmoebius/src/vue-crud-x/example-spa
[1] > vue-cli-service serve --port 8080
[1]
[0]
[0] > functions@ dev /home/dmoebius/src/vue-crud-x/backend
[0] > set NODE_ENV=development&&nodemon index.js
[0]
[1]  INFO  Starting development server...
[0] [nodemon] 1.19.1
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching: *.*
[0] [nodemon] starting `node index.js`
[0] Environment:  undefined
[0] HTTPS:  No
[0] env development
[0] KEYV_CACHE undefined
[0] use map
[0] internal/modules/cjs/loader.js:583
[0]     throw err;
[0]     ^
[0]
[0] Error: Cannot find module '../models/User'
[0]     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:507:25)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/home/dmoebius/src/vue-crud-x/backend/services/index.js:9:14)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
[0]     at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:530:3)
[0]     at Module.require (internal/modules/cjs/loader.js:637:17)
[0]     at require (internal/modules/cjs/helpers.js:22:18)
[0]     at Object.<anonymous> (/home/dmoebius/src/vue-crud-x/backend/middleware/auth.js:1:100)
[0]     at Module._compile (internal/modules/cjs/loader.js:689:30)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[0]     at Module.load (internal/modules/cjs/loader.js:599:32)
[0] [nodemon] app crashed - waiting for file changes before starting...
[1] <s> [webpack.Progress] 0% compiling
[1] <s> [webpack.Progress] 10% building 0/0 modules 0 active
...

I see. cp example-app/cfg.sample.json example-app/cfg.json helped a bit, but I need to fill in projectId and apiKey, or else I will get "projectId must be a string in FirebaseApp.options" or "Your API key is invalid, please check you have copied it correctly." Seems that example-spa cannot run without firebase db, or can it?

Hi,
models/User cannot be found because it is models/user
I am developing on windows so this casing may have caused a problem...
You can rename the file from user.js to User.js to get it working...
I will fix it in next release, sometime early next month...

Ok, renaming user.js to User.js helped removing the first error. But the demo cannot run without a proper cfg.json with valid projectId and apiKey, can it?

Hi...
You are right, let me work on a fix... If you need to get it working quick...
Search for all @/firebase, comment it out...
And comment out anything using the firebase stuff...
You may need to include @/mongo also...

Will add in environment variables to enable or disable mongo, firebase, target to finish by end of the week.

I pushed to develop branch... I have made fixes...
You can use the cfg.json file in there (with empty keys), I will make further improvement on this.

https://github.com/ais-one/vue-crud-x/pull/73

authors: ais-one dmoebius

repo: ais-one/vue-crud-x


text:
⚠ Turnos 24x7 has degraded performance

In 996ff57, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 3921 ms

Resolved: Turnos 24x7 performance has improved in f72be67.

source: gharchive/issue

repo: aisa-status/status-upptime-dev

license: MIT

license_type: permissive

license_source: github-api


text:
Cant see Ajaxarray namespace

Cant see Ajaxarray namespace

I use composer install to add watermark library in my project, after that I cant use new Ajaxarray/PHPWatermark/Watermark() in my project

repo: ajaxray/php-watermark

license: mit

license_source: bigquery


text:
🛑 MEXICO is down

In 579aebc, MEXICO (https://www.bricks4kidz.mx) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MEXICO is back up in 4893578 after 20 minutes.


text:
The Download speed widget does not incorporate nzbgets numbers, but shows the icon on bottom right

Environment
Docker
Version
0.13.4
Describe the problem
The Download speed widget does not incorporate nzbgets numbers, but shows the icon on bottom right.
Logs
No errors in logs
Context

Screenshot attached
Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

Fixed in #1400

authors: manuel-rw seitzbg

repo: ajnart/homarr


text:
feat!: adds support for iso 8601:2019 duration

This PR adds support for ISO 8601:2019 duration which allows negative and fractional values for duration units, except for weeks.

@epoberezkin, please review

source: gharchive/pull-request

repo: ajv-validator/ajv-formats


text:
breaking change in 0.8

Hello @akarneliuk
arista@devbox:~$ cat t3.py
"""
pygnmi script
"""
from pygnmi.client import gNMIclient

TELEMETRY_REQUEST = {
                         'subscription': [
                             {
                                 'path': '/inventory/state/device/device-id'
                             }
                         ],
                         'mode': 'once',
                         'encoding': 'json'
                     }

with open("token.tok") as f:
    TOKEN = f.read().strip('\n')

if __name__ == "__main__":
     with gNMIclient(target=('192.168.0.5', '443'), token=TOKEN, skip_verify=True) as gconn:
         inventory = gconn.subscribe2(subscribe=TELEMETRY_REQUEST)
         for device in inventory:
                print(device)
arista@devbox:~$

working
arista@devbox:~$ pip install pygnmi==0.7.5

arista@devbox:~$ python t3.py
ssl_target_name_override is applied, should be used for testing only!
{'update': {'update': [{'path': 'inventory/state/device[device-id=leaf4]/device-id', 'val': 'leaf4'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=host2]/device-id', 'val': 'host2'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=spine1]/device-id', 'val': 'spine1'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=leaf2]/device-id', 'val': 'leaf2'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=leaf3]/device-id', 'val': 'leaf3'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=spine2]/device-id', 'val': 'spine2'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=host1]/device-id', 'val': 'host1'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=leaf1]/device-id', 'val': 'leaf1'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'update': {'update': [{'path': 'inventory/state/device[device-id=cvx01]/device-id', 'val': 'cvx01'}], 'timestamp': 1658653200000000000, 'prefix': ''}}
{'sync_response': True}

not working
arista@devbox:~$ pip install pygnmi==0.8.2

arista@devbox:~$ python t3.py
ssl_target_name_override is applied, should be used for testing only!
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 940, in enqueue_updates
    for update in subscription:
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 426, in __next__
    return self._next()
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 826, in _next
    raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
        status = StatusCode.UNIMPLEMENTED
        details = "Extension not supported"
        debug_error_string = "{"created":"@1658653512.927644730","description":"Error received from peer ipv4:192.168.0.5:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"Extension not supported","grpc_status":12}"
>
^CTraceback (most recent call last):
  File "/home/arista/t3.py", line 22, in <module>
    for device in inventory:
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 1004, in __next__
    result = self.next()
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 1016, in next
    return self._next_update(timeout=None)
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 1090, in _next_update
    return self._get_one_update(timeout=timeout)
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 969, in _get_one_update
    return telemetryParser(self._updates.get(block=True, timeout=timeout))
  File "/usr/local/lib/python3.9/queue.py", line 171, in get
    self.not_empty.wait()
  File "/usr/local/lib/python3.9/threading.py", line 312, in wait
    waiter.acquire()
KeyboardInterrupt

same issue with another script
arista@devbox:~$ cat t4.py
"""
Go to **Devices > Inventory** and replace the target in this script with the `device ID` found in the CVP device inventory
The `device ID` is the device SN.
"""

from pygnmi.client import gNMIclient

TELEMETRY_REQUEST = {
                         'subscription': [
                             {
                                #'path': 'openconfig:/network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state',
                                 'path': 'openconfig:/network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/bgp/neighbors/neighbor[neighbor-address=172.16.0.5]/state/session-state',
                                 'mode': 'target_defined'
                             }
                         ],
                         'mode': 'stream',
                         'encoding': 'json'
                     }

with open("token.tok") as f:
    TOKEN = f.read().strip('\n')

if __name__ == "__main__":
    with gNMIclient(target=('192.168.0.5', '443'), token=TOKEN, skip_verify=True) as gconn:
        gconn.capabilities()
        for item in gconn.subscribe2(subscribe=TELEMETRY_REQUEST, target="spine1"):
                print(item)

working
arista@devbox:~$ pip install pygnmi==0.7.5

arista@devbox:~$ python t4.py
ssl_target_name_override is applied, should be used for testing only!
{'update': {'update': [{'path': 'network-instances/network-instance[name=default]/protocols/protocol[identifier=BGP][name=BGP]/bgp/neighbors/neighbor[neighbor-address=172.16.0.5]/state/session-state', 'val': 'ACTIVE'}], 'timestamp': 1658062041738667978, 'prefix': ''}, 'sync_response': True}

Not working
arista@devbox:~$ pip install pygnmi==0.8.2

arista@devbox:~$ python t4.py
ssl_target_name_override is applied, should be used for testing only!
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 940, in enqueue_updates
    for update in subscription:
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 426, in __next__
    return self._next()
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 826, in _next
    raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
        status = StatusCode.UNIMPLEMENTED
        details = "Extension not supported"
        debug_error_string = "{"created":"@1658654037.738152994","description":"Error received from peer ipv4:192.168.0.5:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"Extension not supported","grpc_status":12}"

same issue with this one as well
arista@devbox:~$ cat t5.py
"""
pygnmi script
"""

from pygnmi.client import gNMIclient

TELEMETRY_REQUEST = {
                         'subscription': [
                             {
                                 'path': '/inventory/state/device/device-id',
                                 'mode': 'target_defined'
                             }
                         ],
                         'mode': 'stream',
                         'encoding': 'json'
                     }

with open("token.tok") as f:
    TOKEN = f.read().strip('\n')

if __name__ == "__main__":
    with gNMIclient(target=('192.168.0.5', '443'), token=TOKEN, skip_verify=True) as gconn:
        inventory = gconn.subscribe2(subscribe=TELEMETRY_REQUEST)
        for device in inventory:
            print(device)

working
arista@devbox:~$ pip install pygnmi==0.7.5

arista@devbox:~$ python t5.py
ssl_target_name_override is applied, should be used for testing only!
{'update': {'update': [{'path': 'inventory/state/device[device-id=host2]/device-id', 'val': 'host2'}, {'path': 'inventory/state/device[device-id=cvx01]/device-id', 'val': 'cvx01'}, {'path': 'inventory/state/device[device-id=spine1]/device-id', 'val': 'spine1'}, {'path': 'inventory/state/device[device-id=spine2]/device-id', 'val': 'spine2'}, {'path': 'inventory/state/device[device-id=leaf2]/device-id', 'val': 'leaf2'}, {'path': 'inventory/state/device[device-id=leaf3]/device-id', 'val': 'leaf3'}, {'path': 'inventory/state/device[device-id=leaf1]/device-id', 'val': 'leaf1'}, {'path': 'inventory/state/device[device-id=leaf4]/device-id', 'val': 'leaf4'}, {'path': 'inventory/state/device[device-id=host1]/device-id', 'val': 'host1'}], 'timestamp': 1658653200000000000, 'prefix': ''}, 'sync_response': True}

Not working
arista@devbox:~$ pip install pygnmi==0.8.2

arista@devbox:~$ python t5.py
ssl_target_name_override is applied, should be used for testing only!
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/home/arista/.local/lib/python3.9/site-packages/pygnmi/client.py", line 940, in enqueue_updates
    for update in subscription:
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 426, in __next__
    return self._next()
  File "/home/arista/.local/lib/python3.9/site-packages/grpc/_channel.py", line 826, in _next
    raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
        status = StatusCode.UNIMPLEMENTED
        details = "Extension not supported"
        debug_error_string = "{"created":"@1658654407.820868393","description":"Error received from peer ipv4:192.168.0.5:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"Extension not supported","grpc_status":12}"
>

Thanks @ksator ,
I've looked through the error messages, it suggests Extension not supported, which is interesting as it sends an empty extension field. We run unit tests against Arista EOS and it ignores that field, so it looks in CVP you have a different implementation of gNMI server. I will amend the code a bit.
Best,
Anton

Hey @ksator,
fixed by #84 and in published release pygnmi==0.8.3
Best,
Anton

all good using 0.8.3
Thank you!
you can close this issue.
just a comment: I dont see onthe repo the tag/release 0.8.3  (but I was able to pip install pygnmi==0.8.3)

Thanks @ksator, amended it

@akarneliuk fyi CVP has a TSDB and we can use the history gNMI extension with CVP but there is no TSDB on the devices. Maybe this explained the behavior regarding the gNMI Extensions handling.

authors: akarneliuk ksator

repo: akarneliuk/pygnmi


text:
Observable.Transformer -> ObservableTransformer

Added some helpers for converting between Observable.Transformer and ObservableTransformer.  Handles backpressure by taking a strategy as input, similar to helpers for FlowableTransformer.

I'm not convinced such transformers are needed, this looks like more of a convenience than a non-trivial conversion like most of the others.

@akarnokd I agree they are a convenience rather than a complicated conversion, but I think the same could be said of the other Transformer converters.  Currently we can convert V1 Transformers into 3 of the 4 V2 Transformers.  My intent is to cover that fourth use case in case people would find it useful.

Alright.

@akarnokd Updated to remove the imports and add the @since javadoc.


text:
Bump osmosis version to v15.0.0

Nit PR to update osmosis version in README.md

D'oh thank you!

authors: niccoloraspa tombeynon

repo: akash-network/cosmos-omnibus


text:
share button fix

share button only works if clicked twice

Can you please assign this to me under GSSoC Contributor.

IT has been fixed

repo: akashgreninja/Doggonation


text:
Project

Pull Request Template
All Submissions:

[x] Have you read and acknowledged our Code of Conduct?
[x] Have you checked to ensure there aren't other open Pull Requests

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

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 commented my code, particularly in hard-to-understand areas
[x] I have made relevant changes to the documentation
[x] My changes generate no new warnings
[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

tip calculator xml project is added


text:
how should I use it in Java

I want to use it with Java.

You can use this library in your java project with 100% java interoperability
for example
SnapTimePickerDialog dialog = new SnapTimePickerDialog.Builder()
        .setTitle(R.string.app_name)
        .setPrefix(R.string.app_name)
        .setSuffix(R.string.app_name)
        .setThemeColor(R.color.teal_200)
        .setTitleColor(R.color.white)
        .build();
dialog.show(getSupportFragmentManager(), "");

authors: akexorcist prasenjeetbansode

repo: akexorcist/SnapTimePicker


text:
Remove dependency upper-caps and update

Remove cached-property dep since functionality is provided by functools in py38
Remove all upper version limits in main dependency block. Where kept, justification comment is added
Upgraded pvandyken-deprecated dependency, which packages proper typing support (thus, remove our own typings file)

Aside from cookiecutter (which will get replaced in https://github.com/akhanf/snakebids/pull/336 anyway), is there opposition to changing the ^ to a >=?. The caret requirements would be placing an upper-cap on the dependencies if I am interpreting the poetry docs correctly. Making the change would also bring us closer to following PEP440.

For a specific dependency, or for everything? And are you asking about removing the ^ from a syntax perspective (and replacing with >=x,<y), or just on removing upper limits?

The test failure should be fixed by a commit I made in #336, so I'll wait for that one to merge, then deal with the failure here

Aside from cookiecutter (which will get replaced in #336 anyway), is there opposition to changing the ^ to a >=?. The caret requirements would be placing an upper-cap on the dependencies if I am interpreting the poetry docs correctly. Making the change would also bring us closer to following PEP440.

For a specific dependency, or for everything? And are you asking about removing the ^ from a syntax perspective (and replacing with >=x,<y), or just on removing upper limits?

More a general thing and yeah, replacing ^ with >=x (and <y where it is needed)

I'm going to keep the ^ syntax for the dev dependencies, just because it's more concise and imo upper limits are at least not harmful for dev dependencies. Pending the test passing I'm going to merge

authors: kaitj pvandyken

repo: akhanf/snakebids


text:
代码截图的每行的字数控制

请问如何控制代码截图的中代码每行的字数？
想要每行多放点一点，不要分行，便于给别人理解。

选择顶部菜单的nowrap选项是可以不分行的，指定具体字数是不支持的

哈哈哈 nb

刚准备玩一玩 发现B站上竟然有视频!

authors: akira-cn chvin flightmakers

repo: akira-cn/code-to-image


text:
fix: deadlock (use of Mutex::lock().remove())

Before this fix is guard is alive with in the block.
fn main() {
    let mut map = HashMap::new();
    map.insert(1,2);

    let map = spin::Mutex::new(map);
    if let Some(v) = map.lock().remove(&1) {
        dbg!(map.is_locked());
    };
}

The solution is to place map.lock to different line. This drops the guard immediately before the if-let block.
fn main() {
    let mut map = HashMap::new();
    map.insert(1,2);

    let map = spin::Mutex::new(map);
    let v = map.lock().remove(&1);
    if let Some(v) = v {
        dbg!(map.is_locked());
    };
}

If one task is accepting a write request and taking the append_lock and this task goes sleep at append_new_entry, this can cause deadlock because the first task will deadlock after insert_entry.
                   // Leader may have the completion for the request.
                    if let Some(user_completion) =
                        self.user_completions.lock().remove(&process_index)
                    {
                        if let Some(resp) = response_cache.get_response(&request_id) {
                            // If client abort the request before retry,
                            // the completion channel is destroyed because the gRPC is context is cancelled.
                            // In this case, we should keep the response in the cache for the later request.
                            if let Err(resp) = user_completion.complete_with(resp) {
                                response_cache.insert_response(request_id.clone(), resp);
                            } else {
                                // After the request is completed, we queue a `CompleteRequest` command for terminating the context.
                                // This should be queued and replicated to the followers.
                                // Otherwise followers will never know the request is completed and the context will never be terminated.
                                let command = Command::CompleteRequest { request_id };
                                self.append_new_entry(Command::serialize(command), None)
                                    .await
                                    .ok();
                            }
                        }

task1: accept -> insert_entry -> sleep (append_lock held)
task2: lock(user_completion) -> append_new_entry -> wait for append_lock
task1: awake -> register_completion (needs lock to user_completion -> deadlock)

Now the bench completes
test commit_n1_m1    ... bench: 220,030,854.60 ns/iter (+/- 51,112,128.60)
test commit_n1_m10   ... bench: 260,102,900.20 ns/iter (+/- 80,138,739.06)
test commit_n1_m100  ... bench: 200,468,241.90 ns/iter (+/- 60,057,024.29)
test commit_n1_m1000 ... bench: 337,614,414.50 ns/iter (+/- 155,721,911.66)
test commit_n3_m1    ... bench: 219,874,339.60 ns/iter (+/- 40,089,901.74)
test commit_n3_m10   ... bench: 279,845,786.20 ns/iter (+/- 61,609,707.33)

test result: ok. 0 passed; 0 failed; 0 ignored; 6 measured; 0 filtered out; finished in 479.47s

     Running benches/insert.rs (/rust_target/release/deps/insert-b0e6b223df8fdfbf)

running 4 tests
test insert_1   ... bench:      25,308.52 ns/iter (+/- 6,901.88)
test insert_100 ... bench:      29,384.26 ns/iter (+/- 7,784.82)
test insert_10k ... bench:      84,374.99 ns/iter (+/- 55,413.68)
test insert_1m  ... bench:   7,099,672.00 ns/iter (+/- 3,231,072.58)

repo: akiradeveloper/lolraft


text:
Reload background service worker without reloading entire extension

From Chrome's debugging article: https://developer.chrome.com/docs/extensions/mv3/tut_debugging/

Also, if you have made changes to the service worker code, you can use the Update button and skipWaiting to apply the changes immediately.

If there's a way to do this programatically, that would be great. It means extension pages wouldn't have to be closed when changing the background.
Maybe we have access to these ServiceWorker APIs inside the background?

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting

By running the following code in the top-level scope of the background service worker, I was able to access the two functions necessary to update the service worker without reloading the entire extension:
addEventListener('install', (event) => {
  const sw = event.target as ServiceWorkerGlobalScope;
  const { registration, skipWaiting } = sw;
  const update = registration.update;
  console.log({ skipWaiting, update });
  globalThis.reloadBackground = async () => {
    await update();
    await skipWaiting();
  };
});

Extension service workers can listen to the standard web worker install event, from which we're able to access the ServiceWorkerGlobalScope and ServiceWorkerRegistration.
Unfortunately, calling the reloadBackground function from the dev console results in an error:

Here's a minimal extension demoing this behavior: minimal-example.zip

Conversation on the chrome google groups: https://groups.google.com/a/chromium.org/g/chromium-extensions/c/Z-H3IkRODpQ

Alright, working example:
// demo/src/entrypoints/background.ts
export default defineBackground(() => {
  // ...

  const serviceWorker = globalThis as unknown as ServiceWorkerGlobalScope;
  globalThis.addEventListener('install', () => {
    void serviceWorker.skipWaiting();
  });
  // @ts-expect-error
  globalThis.updateSelf = async () => {
    await serviceWorker.registration.update();
  };
});

Then you can call updateSelf from the service worker's dev console after making a change to demo/.output/chrome-mv3/background.js

And nevermind, will break in Chrome 117...
https://chromiumdash.appspot.com/commit/b8b06b6b8071b96e3f76858d662d8991ba3b3374

Can confirm that you can no longer update the service worker to get the latest code.


text:
[BUG] Empty Grafana Dashboards

Describe the bug
After going through the prom_ex.ex file, I'm seeing empty dashboards for a Phoenix application.

Next, I verified that I was using the same Grafana data source name in both the Phoenix app and within Grafana UI.
config/config.exs:
# Configures prom_ex
config :zero_phoenix, ZeroPhoenix.PromEx,
  disabled: false,
  manual_metrics_start_delay: :no_delay,
  drop_metrics_groups: [],
  grafana: [
    host: System.get_env("GRAFANA_CLOUD_URL", "http://localhost:3000"),
    username: System.get_env("GRAFANA_USERNAME", "admin"),
    password: System.get_env("GRAFANA_PASSWORD", "admin"),
    # This is an optional setting and will default to `true`
    folder_name: "zero-to-graphql-using-elixir",
    upload_dashboards_on_start: true
  ]

config :zero_phoenix, ZeroPhoenix.PromEx,
  grafana_datasource_id: System.get_env("GRAFANA_DATASOURCE_ID", "Local Prometheus")

docker-compose.yaml:
version: '3.8'

services:
  grafana:
    # image: grafana/grafana-enterprise
    image: grafana/grafana-oss
    container_name: grafana
    restart: unless-stopped
    environment:
      - GF_SERVER_ROOT_URL=http://localhost:3000
      - GF_FEATURE_TOGGLES_ENABLE=publicDashboards
    #  - GF_INSTALL_PLUGINS=grafana-clock-panel
    ports:
      - '3000:3000'
    volumes:
      - 'grafana_storage:/var/lib/grafana'

  prometheus:
    image: prom/prometheus:v2.46.0
    container_name: prometheus
    ports:
      - 9090:9090
    volumes:
      - ./prometheus:/etc/prometheus/
      - prometheus-data:/prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--storage.tsdb.path=/prometheus'
      - '--web.console.libraries=/etc/prometheus/console_libraries'
      - '--web.console.templates=/etc/prometheus/consoles'
      - '--web.enable-lifecycle'

volumes:
  grafana_storage: {}
  prometheus-data: {}

prom_ex.ex:
defmodule ZeroPhoenix.PromEx do
  use PromEx, otp_app: :zero_phoenix

  alias PromEx.Plugins

  @impl true
  def plugins do
    [
      # PromEx built in plugins
      Plugins.Application,
      Plugins.Beam,
      {Plugins.Phoenix, router: ZeroPhoenixWeb.Router, endpoint: ZeroPhoenixWeb.Endpoint},
      Plugins.Ecto,
      # Plugins.Oban,
      Plugins.PhoenixLiveView,
      Plugins.Absinthe
      # Plugins.Broadway,

      # Add your own PromEx metrics plugins
      # ZeroPhoenix.Users.PromExPlugin
    ]
  end

  @impl true
  def dashboard_assigns do
    [
      # datasource_id: "Local Prometheus",
      datasource_id: Application.get_env(:zero_phoenix, :grafana_datasource_id),
      default_selected_interval: "30s"
    ]
  end

  @impl true
  def dashboards do
    [
      # PromEx built in Grafana dashboards
      {:prom_ex, "application.json"},
      {:prom_ex, "beam.json"},
      {:prom_ex, "phoenix.json"},
      {:prom_ex, "ecto.json"},
      # {:prom_ex, "oban.json"},
      {:prom_ex, "phoenix_live_view.json"},
      {:prom_ex, "absinthe.json"}
      # {:prom_ex, "broadway.json"},

      # Add your dashboard definitions here with the format: {:otp_app, "path_in_priv"}
      # {:zero_phoenix, "/grafana_dashboards/user_metrics.json"}
    ]
  end
end

To Reproduce
Steps to reproduce the behavior:

Running both Grafana and Prometheus via Docker Compose
Dashboards are uploaded to Grafana
curl http://localhost:4000/metrics
open http://localhost:3000/dashboards

Expected behavior
I would expect to see some data in each one of the dashboards.
Environment

Elixir version: 1.15.5
Erlang/OTP version: 26.0.2
Grafana version:
Prometheus version: v2.46.0

Additional context
I'm not sure what's the ideal setup for PromEx.  The application is being run on http://localhost:4000/graphiql (UI) or http://localhost:4000/graphql (API).  The Phoenix app doesn't use Docker and simply runs on macOS 13.5.1 (Ventura).  However, I'm using Docker Compose to run both Grafana (http://localhost:3000) and Prometheus (http://localhost:9090) within my local development environment.  Finally, I'm using Bandit instead of Cowboy for the webserver.

My issue was that I was using the wrong URL when using Docker Desktop.  Thus, I needed to  do the following:
change
  - job_name: 'phoenix_app'
    scrape_interval: 5s
    static_configs:
      - targets: ['localhost:4000']

to
  - job_name: 'phoenix_app'
    scrape_interval: 5s
    static_configs:
      - targets: ['host.docker.internal:4000']

Now, I'm seeing the expected data within all the Grafana dashboards.  Thus, I'm going to close this issue.


text:
Parser fails when 3 arguments are given to highlight

Reported by @pickfire
Error produced:
Error while processing command `highlight article "^Title:.*" color0' (/home/ivan/.newsbeuter/config line 79): `highlight' is not a valid color.

The bug was introduced in a3106ff.

Correction: the aforementioned commit is where the bug first manifested itself; it was introduced in 60c1668e.

repo: akrennmair/newsbeuter


text:
[Code Improvement]: Audio files are in wrong folder.

Hey @akshitagupta15june, Currently, audio files are under the Images folder. It needs to be in a separate audio folder for better structure of the project.
I would like to work on it. Kindly, assign this issue to me under GSSOC23 Label.

Please assign me this issue under GSSoC-2023 I love to contribute to this issue.

I am interested to work on this issue under GSSoC 2023 as a contributor


text:
V4 : How to pass props to custom navBar using Action ?

Hello,
Actions.profil({
  viewMode: 'full',
  pseudo: profil.pseudo,
})

In my custom navBar I don't get pseudo or viewMode as props. If I set a props to the scene I got it in the navBar.
How to get props set with Action parameters in custom navBar ?

I found that I access them with Actions.currentParams

@sylvainbaronnet Please check latest master

Yes it now works as expected, thanks a lot !

authors: aksonov sylvainbaronnet

repo: aksonov/react-native-router-flux


text:
Custom tabs icon in RN 0.54

Version
Tell us which versions you are using:

react-native-router-flux v4.0.0-beta.27 & 28
react-native v0.54

iOS only, Android is fine
It will show Text in RN 0.52 with v4.0.0-beta.27 & 28 but not show in RN 0.54
This is my code for custom tabs icon
var iconPath = !this.props.focused ? this.props.inactive : this.props.active;
const color = !this.props.focused ? "#727171" : "#897854";

return (
	<View style={{flex:1, flexDirection:'column', alignItems:'center', alignSelf:'center', justifyContent: 'center'}}>
		<Image
			style={{width: 25, height: 25}}
			source={iconPath}
		/>
		<Text style={{color: color, fontSize: 10, paddingTop: 5}}>{this.props.title}</Text>
	</View>
);

And the result:
RN 0.52

RN 0.54

same problem

Same here with RN 55.2 RNRF 4.0.0-beta.28
Android is indeed fine

See https://github.com/aksonov/react-native-router-flux/issues/2981

authors: MaxInMoon golles highread wayne1203


text:
discussion: multiple subs to the same repo

@hiddeco has been working on #1583 and posed the question of what qualifies as a "duplicate" repo subscription. i.e. Could it be valid for one Warehouse to have n > 1 subs to the same repo, with different constraints on each sub, such that n (potentially) different versions of the artifact in question are selected to be included in the Freight produced by the Warehouse?
To be clear, no one has asked for this and there's probably room for debate around the practicality of ever having one Warehouse subscribe n > 1 times to the same repo. This is, however, something that we should probably settle before diving into pluggable promotion mechanisms as it may impact the design.
We decided that for now we limit Warehouses to just one subscription per repository.
The rest of this issue captures why we chose that path for now and what we think would be required if it were determined in the future that this constraint should be lifted.
The Problem
In short, repo URLs are currently used as the sole identifier that links an artifact in a piece of Freight to a thing that a promotion mechanism is expected to update.
Examples:

A promotion mechanism that updates a git repository matches the repository it updates to an artifact in the Freight by URL.

A promotion mechanism that updates an Argo CD Application matches the specific ApplicationSource it updates to an artifact in the Freight by URL.

The Proposed Solution (if ever required)
Allow subscriptions to have an optional, user-assigned, unique-per-URL (enforced by webhook), id/label/discriminator. (What we actually call it is a bridge we can cross later.)
Promotion mechanisms can optionally use such a field to match artifacts from a specific subscription when any disambiguation is necessary.
It won't matter that the underlying thing updated by a promotion mechanism won't be aware of the discriminator. For example, an Argo CD Application having one of its ApplicationSources updated would have no field that the discriminator is matched to. Rather, it would be Kargo itself using such a discriminator to disambiguate which artifact(s) a promotion mechanism is handed to act upon.

Keeping this open only because I think it plays into #1680 a bit.

I don't believe this is relevant at present.
Presently, Warehouses cannot subscribe twice to the same repository, but Stages can request Freight originating from multiple Warehouses, and therein lies the possibility to obtain multiple versions of an artifact from the same repository. Moreover, the mechanism for disambiguating which of those artifacts a given promotion mechanism is meant to operate on is similar to what was discussed here.
I think this issue is adequately addressed for the time being.

repo: akuity/kargo


text:
feat: add ability to entirely opt-out of argo cd and rollouts integrations

WIP

Instead of (or in addition to) the ROLLOUTS_INTEGRATION_ENABLED variable to indicate if integration should explicitly be enabled, could we make this inferred by ability to list analysisruns/analysistemplates CRs (even if none are found) during startup?
The reason I think this is desired is because coordinating ROLLOUTS_INTEGRATION_ENABLED across many shards will be hard to maintain and it would be better to infer this with less required upfront configuration.
I'm okay with having the option of ROLLOUTS_INTEGRATION_ENABLED be explicit (to allow things to break when things aren't expected), but in the case where it is omitted, I feel we can rely on inference for a better UX.

This is an example of how we avoid a knob for Istio in Argo Rollouts by trying to detect if an Istio VirtualService is even present. If not, we don't attempt to start the informer.
https://github.com/argoproj/argo-rollouts/blob/master/utils/istio/istio.go#L16-L22
func DoesIstioExist(dynamicClient dynamic.Interface, namespace string) bool {
	_, err := dynamicClient.Resource(GetIstioVirtualServiceGVR()).Namespace(namespace).List(context.TODO(), metav1.ListOptions{Limit: 1})
	if err != nil {
		return false
	}
	return true
}

Instead of (or in addition to) the ROLLOUTS_INTEGRATION_ENABLED variable to indicate if integration should explicitly be enabled, could we make this inferred by ability to list analysisruns/analysistemplates CRs (even if none are found) during startup?
The reason I think this is desired is because coordinating ROLLOUTS_INTEGRATION_ENABLED across many shards will be hard to maintain and it would be better to infer this with less required upfront configuration.
I'm okay with having the option of ROLLOUTS_INTEGRATION_ENABLED be explicit (to allow things to break when things aren't expected), but in the case where it is omitted, I feel we can rely on inference for a better UX.

@jessesuen, I addressed this in new commit 12bfb2883cfc8b95a8a3b3bc5cf77cd32853cbbd
I think there is a benefit to explicitly disabling Argo CD and/or Rollouts integrations if they are undesired because the controller is granted slightly fewer permissions that way.
But your point about configuration for many shards being difficult is a good one. And we've also seen instances of our own colleagues being surprised at the controller going into a crash loop when they forgot to install one of the dependencies.
So where I landed was:

If you explicitly disable an integration, it is truly disabled without further condition. If you, for instance, had Argo CD or Argo Rollouts on a cluster and really wanted not to enable those integrations, this is what you'd have to do.

If you don't explicitly opt-out, there's a sanity check in case you rolled with the default by accident. So if you start up with Rollouts integration (for example) enabled, but Rollouts CRDs not installed, then you'll see a warning, but the controller will function without error, just as if that feature had been explicitly disabled.

Does all that seem ok?
Willing to tweak this further if you think I've missed the mark.

but Rollouts CRDs not installed, then you'll see a warning, but the controller will function without error, just as if that feature had been explicitly disabled.

Yep! That is effectively the same as what I was asking for.

authors: jessesuen krancour


text:
rasctl show/s command is broken

With the latest develop, the show (s) action in rasctl is broken:
dmark@rasp32:~/dev/RASCSI/cpp $ rasctl -l
+----+-----+------+-------------------------------------
| ID | LUN | TYPE | IMAGE FILE
+----+-----+------+-------------------------------------
|  1 |   0 | SCHD | /home/dmark/images/200.hds
|  2 |   0 | SCCD | /home/dmark/images/2a67c350-2e17-4185-a970-592766382329.iso (READ-ONLY)
+----+-----+------+-------------------------------------
dmark@rasp32:~/dev/RASCSI/cpp $ rasctl -c s -i 2
Error: Unknown operation 's'

@rdmark Thank you for finding this. The respective command was missing in the mapping of command shortcuts ('s') to command enum values (DEVICES_INFO) of the protobuf interface.

authors: rdmark uweseimet

repo: akuker/RASCSI


text:
Web Version

🚀 Feature Proposal
Is this app working on React Native Web ? If yes, it would be great to make up a CodeSandbox or a web version up and running, accessible for all to play with. If not, it would be great to make it properly render on react-native-web 💪
Motivation
This would help us discover, use & tests UI Kitten ❤
Let's get it on
What do you think?

@rdewolff it is. We even have a netlify badge in a README.md.
https://kitten-tricks.netlify.com/

Oh nice I did not get that the netlify badge was for the testable web version. Would be great to have a note.
Or even better, add a bigger netlify badge next to the downloadable, testable, App Store and Play Store icons maybe ?

What do you think?

Am so used to have the CI and other tests on the top, I don't think it's appropriate to leave it there. Other people must have missed it too.

@rdewolff can't find an appropriate banner for that 😭

Maybe that image, cropped with a little additional text will do it :)

or this

authors: artyorsh rdewolff

repo: akveo/kittenTricks


text:
Small bug in autocomplete example in docs

In the documentation for Autocomplete component, here:
https://akveo.github.io/react-native-ui-kitten/docs/components/autocomplete/examples#autocomplete
In the first example provided, line 47
setValue(movies[index].title);
That line of code should be changed to
setValue(data[index].title);
Because what happens is, user types into the autocomplete, data state gets updated to be a filtered down array, and then when you select an item, the index thats passed into the onSelect function, is an index of the data array, not of the original movies array, so the wrong item gets selected
To illustrate this, in the example given, type "B" into the autocomplete, and it will filter it down such that the only option given is "Back to the future", if you press that option, an index of 0 is passed into onSelect, and it selects movies[0], which is "Star wars", which is not the intended choice

@amitchell-tbox thanks for reporting. I think this one was fixed withing #1632 PR. closing it for now

authors: amitchell-tbox greenfrvr

repo: akveo/react-native-ui-kitten


text:
Is there a way to make icon inside Button bigger?

💬 Question
Hey! Working on audio player and wondering is there's a way to make icons really huge inside Button?
Currently having:

But I want to implement something closer to Spotify design:

Forgot to mention that I'm passing "giant" for to size of Buttons

You may pass width and height directly to Icon
<Icon {...props} width='' height='' name='...' />

authors: Timikcool artyorsh


text:
T5 intelligent door lock Lock Operation Method lock_action

Entity class          BaseSensorSubEntity
Parent entity ID   sensor.wzxj_t5_2e4a_lock
Updated time      2024年7月17日 09:11:19
Lock action           unknown

除了电量显示是正常的，其余均显示异常

repo: al-one/hass-xiaomi-miot


text:
Consult about unit_of_measurement of atmospheric_pressure

Hi,
I got this pressure value:

Can I do something to change the Unit Measurement?
Thanks and regards!

Yes, you can change the unit of measurement by modifying custom attributes.

But if you get the value through entity properties, you need to create an entity through a template.

Ok I will check how update the template because I just setup HA the last friday and I'm a bit newbiee with all this.
Thanks

authors: al-one facutopa


text:
chuangmi.gateway.ipc011

https://home.miot-spec.com/spec/chuangmi.gateway.ipc011
Will this camera ever be supported in home assistant? Just like the eufy doorbells.

https://github.com/al-one/hass-xiaomi-miot/issues/347#issuecomment-1006571536
No services are defined in this miot-spec.

Maybe you can share this device to account 143050915 (China server) through MiHome APP.

@al-one
I can share the device with account 143050915 (China server) through MiHome APP. if you so wish.
I can still do better I managed to dump all the partitions which I can share if I wish


text:
Earlgrey: yosys fails to parse aes_prng

Yosys fails to parse aes_prng.sv with error:
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

I fixed the problem that was causing std::bad_alloc but now, this issue is blocked by missing vpiFullName in packages: https://github.com/alainmarcel/Surelog/issues/1130

repo: alainmarcel/uhdm-integration


text:
[BUG] Absolute to relative ForecastingHorizon

Describe the bug
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-5-40dcb829593a> in <module>
      4 y_train, y_test = temporal_train_test_split(y, test_size=120)
      5 fh = ForecastingHorizon(y_test.index[0:5], is_relative=False)
----> 6 fh.to_relative(cutoff=y_train.index[-1])

c:\Users\Martin\Desktop\sktime\sktime\sktime\forecasting\base\_fh.py in to_relative(self, cutoff)
    223                 values = _coerce_duration_to_int(values, unit=_get_unit(cutoff))
    224
--> 225             return self._new(values, is_relative=True)
    226
    227     @lru_cache(typed=True)

c:\Users\Martin\Desktop\sktime\sktime\sktime\forecasting\base\_fh.py in _new(self, values, is_relative)
    160         if is_relative is None:
    161             is_relative = self.is_relative
--> 162         return type(self)(values, is_relative)
    163
    164     @property

c:\Users\Martin\Desktop\sktime\sktime\sktime\forecasting\base\_fh.py in __init__(self, values, is_relative)
    137         if not isinstance(is_relative, bool):
    138             raise TypeError("`is_relative` must be a boolean")
--> 139         values = _check_values(values)
    140
    141         # check types, note that isinstance() does not work here because index

c:\Users\Martin\Desktop\sktime\sktime\sktime\forecasting\base\_fh.py in _check_values(values)
    105     # check values does not contain duplicates
    106     if len(values) != values.nunique():
--> 107         raise ValueError("`values` must not contain duplicates.")
    108
    109     # return sorted values

ValueError: `values` must not contain duplicates.

To Reproduce
from sktime.forecasting.all import *
y = load_airline()
y.index = y.index.to_timestamp()
y_train, y_test = temporal_train_test_split(y, test_size=120)
fh = ForecastingHorizon(y_test.index[0:5], is_relative=False)
fh.to_relative(cutoff=y_train.index[-1])

Expected behavior
No exception
Additional context

Versions
Current GitHub master

Thanks for raising the bug.
When I run this I don't get the exception but even worse, a silent error (the computed relative horizon is wrong).
The problem comes down to computing time deltas.
This works as expected:
cutoff = y_train.index[-1]
cutoff
>>> Timestamp('1950-12-01 00:00:00', freq='MS')

This also works but returns time deltas in days rather than the months what we would like based on the "MS" (month start) frequency:
values = fh.to_pandas() - cutoff
values
>>> TimedeltaIndex(['31 days', '62 days', '90 days', '121 days', '151 days'], dtype='timedelta64[ns]', name='Period', freq=None)

Trying to convert this into months doesn't seem to work:
(values / pd.Timedelta(1, "MS"))
>>> Float64Index([2678400000.0, 5356800000.0, 7776000000.0, 10454400000.0, 13046400000.0], dtype='float64', name='Period')

Somewhat confusingly "MS" now refers to milliseconds as it seems:
pd.Timedelta(1, "MS")
>>> Timedelta('0 days 00:00:00.001000')

Now this would work:
(values / np.timedelta64(1, "M")).astype(int)

But relies on rounding and may fail for long horizons and still requires to convert "MS" to "M".
Working with pd.PeriodIndex is somewhat easier when it comes to time deltas but also more restricted in terms of other functionality. Not sure how to best address this, any ideas?

Forcing a conversion to pd.PeriodIndex internally whenever we need to do arithmetics with pd.DatetimeIndex may be the best option (e.g. subtraction of the cutoff point when going from absolute to relative representation). This requires that the pd.DatetimeIndex is regular and that the frequency is given or can be inferred which seems like a reasonable assumption for the methods we currently support. This way we avoid having to deal with pd.Timedeltas altogether.

@mloning  I had a look into it and I think the best way is what you wrote here:

fh.to_pandas().to_period("M") - cutoff.to_period("M")

So basically what you already said, when doing fh.to_relative() then just converting it to a PerdiodIndex first in case it is a DatetimeIndex.
The good thing is that pandas can convert the DatetimIndex also just like this:
from sktime.forecasting.all import *
y = load_airline()
cutoff = y.index[-1]
y.index.to_period()

and  it works without giving the freq="M"  argument:
PeriodIndex(['1949-01', '1949-02', '1949-03', '1949-04', '1949-05', '1949-06',
             '1949-07', '1949-08', '1949-09', '1949-10',
             ...
             '1960-03', '1960-04', '1960-05', '1960-06', '1960-07', '1960-08',
             '1960-09', '1960-10', '1960-11', '1960-12'],
            dtype='period[M]', name='Period', length=144, freq='M')

The bad thing is that to_period() does not work for a single Timestamp like below. I think I will raise this as an issue to pandas, as this is should then also work imho.
cutoff.to_period()

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
pandas\_libs\tslibs\period.pyx in pandas._libs.tslibs.period.freq_to_dtype_code()

AttributeError: 'pandas._libs.tslibs.offsets.MonthBegin' object has no attribute '_period_dtype_code'

The above exception was the direct cause of the following exception:

ValueError                                Traceback (most recent call last)
<ipython-input-122-1571c54e24e5> in <module>
      1 cutoff = y.index[-1]
----> 2 cutoff.to_period()

pandas\_libs\tslibs\timestamps.pyx in pandas._libs.tslibs.timestamps._Timestamp.to_period()

pandas\_libs\tslibs\period.pyx in pandas._libs.tslibs.period.Period.__new__()

pandas\_libs\tslibs\period.pyx in pandas._libs.tslibs.period.freq_to_dtype_code()

ValueError: Invalid frequency: {0}

So I have now a good workaroud to convert the Timestamp to a Period without including a hardcoded freq value or other if statements:
date = pd.DatetimeIndex([cutoff], freq=cutoff.freq)
cutoff = date.to_period()[0]
cutoff

This results in Period('1949-01', 'M').  🎉 So now we ca do the delta calculation as usual with the PeriodIndex in order to get the relative fh.
What do you think? I can try to implement it.

Hi @aiwalter - yes that sounds like a good plan. Would really appreciate a PR! Even if it doesn't work always, I'd rather have it fail at the to_period() step than what we have currently where it silently produces errors.

There's another issue, pd.DatetimeIndex looses the freq information if the index is no longer regular (e.g. when it has gaps after slicing). Similarly, indices with less than 3 items also don't carry the freq information. This makes it hard to rely on it for arithmetic operations.
Some forecasters (e.g. pipelines) may work with irregular time indices (e.g. predictions for specific steps of the forecasting horizon which are passed to the inverse transformation) but will no longer find the freq information on the index.

if you do index[1:5] it works! Seems to be another pandas issue.

Yes I asked about it on their Gitter: https://gitter.im/pydata/pandas
The issue is we often work with incomplete indices (e.g. forecasting horizon or windows in temporal CV), not sure how to best handle that yet.

I was thinking a bit about the bigger picture of how the class ForecastingHorizon is sructured, the way predict() is used and which index types are accepted in fit(). I guess you had some ideas in mind when designing this and allowing different index types, slicing etc. However, I think this makes it a bit vulnerable as the fh became sth like the backbone of sktime. If we would be more restrictive in what we allow, things would be more stable I guess. I had in mind to completely restructure and simplifying it to e.g. the following limitations:

Data: Accepting only DatetimeIndex (or maybe additionally RangeIndex (like 0,1,2,3,4,5..) which is the dafault index of DataFrame). The later could be internally replaced with a dummy DatetimeIndex so that we internally only deal with one index type. We could also accept all like now, and replace them with DatetimeIndex also internally.

Predict function: We could only accept the following way to predict, which is mainly based on the freq value of the index:

Allow predict() to just return the next step
Allow predict([1,2,3,4,5])
Allow predict([-3,-2,-1,0,1,2,3])
Maybe allow predict([1,3,10]), not sure on this. Actually doing predictions like this is very unlikely to be used by users.
Allow predict(10) to get next 10 data points
Prohibit predict(-10) or related
Prohibit predictions on index values, just allow int or [int]

ForecastingHorizon: This class would not be needed any more

This is just an idea, and some point might be solved better. I am also fine with keeping things like it is now. Would appreciate your feedback on this @mloning !

Some of the rationale for the forecasting horizon can be found here: https://github.com/sktime/enhancement-proposals/blob/master/steps/01_forecasting_api/01_forecasting_api.md#Insample-predictions
We actually started without the ForecastingHorizon class but realised that we need some abstraction to handle the different representations. Both relative and absolute representations are commonly used in practice. In addition, different libraries require different representation (e.g. compare pmdarima and fbprophet). Having a forecasting horizon class helps us manage these representations. Distinguishing between in-sample and out-of-sample horizons is another problem that you need to handle somehow.
I agree about the simplification. The problem is that pd.DatetimeIndex has more functionality than pd.PeriodIndex but is less reliable for arithmetic computations and seems to forget about freq in some cases.
Regarding your points:

Accepting only pd.DatetimeIndex and pd.RangeIndex seems reasonable, but most issues come from pd.DatetimeIndex.
As to the predict interface:

We could add this as the default argument if no horizon is passed
That works currently - internally it's simply cast into a ForecastingHorizon
That works currently too
Many forecasters generate predictions recursively, i.e. they generate predictions for all previous steps to predict the next step (e.g. ARIMA), however some forecasters don't do that (e.g. "direct" strategy when reducing forecasting to regression where we train a separate model for each step in the horizon). To avoid needless computations, we need to be able to specify the exact steps we want to predict.
Given the point above (4), predict(10) wouldn't be the same as predict([10]), I think it's preferable to avoid the confusion over the convenience of not having to type the square brackets in this case
How would you specify in-sample predictions?
What do you mean by index values?

Hope this makes our thinking a bit clearer, always happy to be convinced of something else!

I think most issues come from:

converting type of index
converting fh absolute to relative and vice versa
slicing index

This is why it would be more stable to just accept..

one index type (at least use one type interanally). If there is a dependency package that uses a different type, we could wrap that anyway just for this specific package.
only relative fh
only continuous fh lists and not sth like in 4), so no slicing

Just few points:

Yes we could just add this anyway 👍🏻
I agree that acceptiong int might be confusing in combination with list, most likely it would be best to just accept continuous [int] or predict() for one step ahead.
Insample would be done by predict([-3,-2,-1]) e.g.
I meant using e.g. ForecastingHorizon(['2018-01-01', '2018-01-02', '2018-01-03'], dtype='datetime64[ns]', freq='D', is_relative=False), so basically just accepting relative horizons and no absolute.

I mean as you said, almost all things (inspite 1) are already possible with ForecastingHorizon from user perspective , so that is the good news :)

Hm. this discussion broke off, and is closely related to the bug #1523 that came out of @asksteph's problem.
What is the most recent on this, @aiwalter, @mloning?

from sktime.forecasting.all import *
y = load_airline()
y.index = y.index.to_timestamp()
y_train, y_test = temporal_train_test_split(y, test_size=120)
fh = ForecastingHorizon(y_test.index[:5], is_relative=False)
fh.to_relative(cutoff=y_train.index[-1])

This now raises an appropriate error that we currently cannot handle the conversion.

... but we should be able to handle it, no? Would this not warrant an issue?

authors: aiwalter fkiraly mloning

repo: alan-turing-institute/sktime


text:
using fourier decomposition as part of auto-optimization for AutoARIMA

I am thinking of using fourier decomposing for a time series data, the resulting base frequencies would be used for the exog of the AutoARIMA, do you think it would help improve the overall mean errors?
If the above approach is feasible, is it possible to built-in this features as part of internal/external auto-optimization of AutoARIMA?

This is possible using DiscreteFourierTransformer in a pipeline with AutoARIMA.

authors: fkiraly zollen


text:
[ENH] fix get_window utility when window_length was None

The get_window utility was broken when window_length was None, it would return the object obj unchanged.
This has now been fixed.
In addition, the lag default has been set to zero, which is interpreted as a zero integer or timedelta, depending on obj.

Good catch! No bugfix without tests that nail the correct behaviour down, optimally. Done.


text:
Add option to control seat heaters

I would love to see an option to control the seat heaters (all 5 of them).
Before I was aware of this integration, I had my own server that will turn on my car's HVAC and decide whether to turn on the seat heaters based on the outside temperature when I'm leaving my house. I'm trying to move that logic inside of Home Assistant, but there's no support for seat heaters.

This is already being prototyped. https://github.com/zabuldon/teslajsonpy/issues/192

authors: alandtse fcastilloec

repo: alandtse/tesla


text:
Array methods

The remaining array methods depend on generic functions and interfaces being implemented, for the most part. (The implementation could be done and tested without it, but it would require declaring a binding for each sub-type for the array, which isn't usable for user-defined types.) The "Vec" types should also be converted to the Array type at this time, including the parallel map functionality. Since Arrays are just Rust Vectors under the hood, this may not require any actual changes to the bound code.
The functions desired for a first v0.2.0 are:

[x] map
[x] filter
[x] reduce
[x] find
[x] join
[ ] every
[ ] some
[ ] delete
[ ] set (maybe done inside of the automatic type generation)
[x] concat
[ ] repeat
[x] len
[x] has

After thinking about it for a bit, each may not make any sense for the new Alan. (I'm also not 100% sure it did for the old one, either). The issue is that each only runs side-effect functions, and is often used to mutate outer state via a closure. This makes it impossible to parallelize in any logical way and it would be a single-threaded-only API.
I'm not sure I want to encourage that sort of thing when often a reduce assigning to the variable you want to mutate and initializing with the original value will accomplish the same thing but can be parallelized.
So for now, I'm going to strike it from the list. I might put it back in later, but unlike most of the rest, it's 100% sequential and encourages "knotty" code that is harder to refactor and harder to parallelize.

Hmm... has that accepts a function is identical to some in behavior. Now I'm not sure if I want to include some as an alias or just remove it from the list of functions or rename the function-using has to some to match what people expect.

some as an array method also collides with some as a Maybe/Option term.
I currently have Fallible using the ok term to create a wrapped version, though I am not sure if I want to keep that. It's longer to write, but I think Fallible(val) will do the same thing (if it doesn't I should fix that).
I am also thinking of having functions that accept a sum type automatically accept each component type and auto-wrap for you (and maybe also if a return type is a sum type you can return the component types and get the right thing, but that could produce unexpected compilation success when combined with inferred return types where you accidentally returned a sum type instead of the type you thought you were returning, so I'm not sure about that one. Probably better to force wrapping the output).
In any case, this makes the ok/err/some/none functions to create these sum types unnecessary, so I could keep some around for array methods to make it easier for the JS crowd to adapt, but a language with an optional type and a some function that doesn't involve the optional type feels like it could also be confusing.
So, to conclude, since has now does the same thing some does for Array methods, I'm going to drop some from this list, too. And I'm also going to look into dropping the sum-type functions as unnecessary.

repo: alantech/alan


text:
use short kubernetes.default service

Use the short name kubernetes.default which is always resolvable instead of the fqdn which may be different from cluster to cluster.

Thanks! @sbskas

authors: oilbeater sbskas

repo: alauda/kube-ovn


text:
Branch checkout

Is there an option to check out a different branch from the web ui?

Currently not, but it should be easy to do technically.
Need to find a good UX pattern for that. Maybe a button on top of the history view to checkout the branch if it isn't the current one

authors: alberthier cdburgess

repo: alberthier/git-webui


text:
Update docs

Update docs for the new testing APIs, implemented in this addon by #65 and #70.
The old Readme is moved to docs/legacy.md, for users still using the old system (v0.3.0 and below).

Looks good!, Might be a good idea to give people a step by step on how to update from 0.3 to 0.4.

@simonihmig Appreciate your work on this.  It looks good to me.  Take/leave my suggestions.

Thanks for feedback y'all! Will update this later today or tomorrow...

Updated this based on the feedback, if everything looks good now, feel free to merge! :)

authors: albertjan sfbwalder simonihmig

repo: albertjan/ember-cli-yadda


text:
Bounding Boxes Example

📚 Documentation
Very interesting library, though it would be great if we could have an example on how to use if we need Bounding Box support. Espeically, if we want to retain the label(id) of the bounding box.
Example: Picture with a bootle and a glass. How does one not only specifiy the coordinates of the BB but also the names ?

https://github.com/albu/albumentations/blob/master/notebooks/example_bboxes.ipynb

Hi @albu
Thanks for the quick reply!
It seems there's an issue when installing from PyPI, as using
!pip install albumentations
gave me the following error:
ImportError
<ipython-input-3-a7c310633abd> in <module>()
----> 1 from albumentations import (
      2     BboxParams,
      3     HorizontalFlip,
      4     VerticalFlip,
      5     Resize,

ImportError: cannot import name 'BboxParams'

Afterwards, I used the
!pip install -U git+https://github.com/albu/albumentations
directly and it worked just fine !
So just a head's up for you, as there's either a bug with BboxParams in the version on PyPI or maybe BboxParams is just new feature ?

oh sorry, we just merged BboxParams and not yet updated it in pip. thanks for pointing!

fixed in 0.3.2

authors: MentalGear albu

repo: albu/albumentations


text:
Why afFieldInput?

tags:
  type: [String]
  autoform:
    type: "selectize"
    afFieldInput:
      multiple: true
      selectizeOptions: {}

equal
tags:
  type: [String]
  autoform:
    type: "selectize"
    multiple: true
    selectizeOptions: {}

Is it true, if I do not use afFieldInput?

It first looks for specific object and then looks immediately within autoform object. If the attribute causes different behaviors on different components, then it's safer to put it under the specific component name object.
Also, if it is an attribute that you want added to the HTML (like class), then it's safer to put it under the correct component name so that it does not get added to all components.
But otherwise, yes they are equal.

authors: aldeed comerc

repo: aldeed/meteor-autoform


text:
Merge scrapy-fake-useragent into fake-useragent

Hey @alecxe!
I have proposal to merge our libs.
What do You think about it?

@hellysmile Hi! I'm perfectly okay with it if you think this is something that should be a part of fake-useragent.
We should probably have this middleware implemented inside fake-useragent and then I'll update the README and the PyPI page to point others to the fact that the middleware is now a part of fake-useragent. What do you think? Thanks.

@hellysmile, @alecxe: Haven't come to any agreement? I think it's logical to have middleware within fake-useragent, not a big burden, but then we'll have everything under one roof.

Seems we are both ok, but someone need to do that...

@hellysmile, do you need the project manager?:)
Looks like a trivial thing, and each of you has his own things to do. You cannot update the PyPI page for him, and he probably has no write access to your repo. Depends on how much time you have:)

@alexce, can you make a PR to @hellysmile, merging the middleware there? I can then make the is_pc thing. Or you wanted to do it?

Any further work being done here?

Closing as it seems we are expanding capabilities a bit (#27) and it does not seem we can fit just fake-useragent.

authors: JordanKadish alecxe hellysmile medse

repo: alecxe/scrapy-fake-useragent


text:
🛑 WBO is down

In 0e9dd5f, WBO (https://wbo.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 102 ms

Resolved: WBO is back up in 0ff1f6f.

repo: alefvanoon/Status


text:
Добавить текущую дату в имена файлов bsl

Для обеспечения уникальности

задача дублирует #16


text:
Process/Traverse the graph

First of all, super excited about this project, i already made some simple nodes in just a few mins.
Not a bug but an example request.
Could you show us how to process the made graph, load it, run it, jump into some non-starter nodes.
A very simple example would be just great
Mike

Hello,
First, loading the graph can be made using standard unity loading functions such as Resources.Load, you'll then have access to the graph API to set external parameter or change some settings in your graph.
Then to be able to run the graph, you need a Processor. By default all the graphs uses this simple processor: ProcessGraphProcessor.cs it only supports traversing all the nodes in the graph and executing them. But there is an API to create your own processor: https://alelievr.github.io/NodeGraphProcessor/api/GraphProcessor.BaseGraphProcessor.html.
Here's a simple example of how the processor is used to process the graph:
https://github.com/alelievr/NodeGraphProcessor/blob/master/Assets/Scenes/RuntimeGraph.cs
There is a second graph processing algorithm in this repo which executes nodes conditionally (following a flow of conditional nodes like unreal blueprint system), here's the source file:
https://github.com/alelievr/NodeGraphProcessor/blob/master/Assets/Examples/ConditionalGraph/ConditionalProcessor.cs
As you can see the code is more complicated because there are several cases to handle branching and loops, I suppose you can take this as example to "jump" into the execution of some nodes.

authors: alelievr mlflabs

repo: alelievr/NodeGraphProcessor


text:
Can I synthesize sounds with Pizzicato.js?

As in subject, I saw there are filters and waveshape generators.
Are also there LFOs, Envelopes and additive/subtractive/modulation synthesis techniques possible?
Thanks in advance for help.

It is possible to use Pizzicato with base Web Audio nodes, which means that you can create whichever arrangement you need that may not be in Pizzicato (e.g., envelopes, modulation, etc).
The way this works is further detailed in the using Pizzicato objects in a web audio graph section of the docs. You could basically connect a web audio node to a Pz.Effect or connect a Pz.Sound to a web audio node for custom processing.

repo: alemangui/pizzicato


text:
Failed to import - parseCJSModuleExports: Get "http://0.0.0.0:8088": dial tcp 0.0.0.0:8088: i/o timeout"

First of all thank you very much for this wonderful CDN it opens the world for my packages with Deno i was able to run almost all packages that i am having without writing single line of code!
Failing module

GitHub: https://github.com/rxdi/ui-kit/tree/master/src/accordion
npm: https://www.npmjs.com/package/@rxdi/ui-kit

import 'https://cdn.esm.sh/v53/@rxdi/ui-kit/accordion';

Error message
After running deno run I get this:
/* esm.sh - error */
throw new Error("[esm.sh] " + "init ESM: parseCJSModuleExports: Get \"http://0.0.0.0:8088\": dial tcp 0.0.0.0:8088: i/o timeout");
export default null;

Additional info

esm.sh version: v53
Deno version: 1.14.3

The strange thing is that yesterday i was able to access in the same namespace ui-kit rx-button component
https://cdn.esm.sh/v53/@rxdi/ui-kit/button

This build is made yesterday and can be accessed via esm.sh
I assume that somewhere in the build process is failing but i don't know for what reason.
Regards,
Kristiyan Tachev

Now it is working correctly i don't know what causes this error to show :)
This is why i write it down in order to have a clue that in this particular moments this things happen!
If you look at the logs from that day inside the server itself you will see what causes this error.
Maybe the cluster somehow self heal ?
In kubernetes is not rare thing to self heal the container if something is not working as expected.
Cheers!
@talentlessguy


text:
Example for reading an RTSP stream and republishing all tracks to a server

This may be a weird usecase, but I'm trying to use gortsplib to read an RTSP stream from a camera, then publish it to an endpoint configured on rtsp-simple-server. I've attempted to do so myself, but my naive attempt isn't working correctly. See kaiiorg/client-read-publish. For the record, I'm new to Go, so I may have committed some cardinal sin without realizing; sorry for that.
Additional information:

I'm using rtsp-simple-server 0.17.13.
rtsp-simple-server's config is the default provided with the linux binary, but the paths key was modified:

paths:
  PublishedStream:
    source: publisher
  ExampleStream:
    # Just using rtsp-simple-server for consistency, a realistic usage would be connecting directly to a camera.
    source: rtsp://admin:PASSWORD@192.168.62.197/media/video1

ffplay works when I stream the ExampleStream:

ffplay.exe -x 500 -rtsp_transport tcp "rtsp://192.168.62.145:8554/ExampleStream"

ffplay does not work when I attempt to stream my republished stream:

ffplay.exe -x 500 -rtsp_transport tcp "rtsp://192.168.62.145:8554/PublishedStream"

Setting both rtsp-simple-server and my test program to use TCP as the transport makes no change

Full Usecase
One of the requirements of the program I'm writing is to:

Get request via HTTP or MQTT
Read the stream from the IP camera

This may require adding a header to the RTSP request(s) to stream stored files on the camera instead of the live stream. Its weird, I know.

Publish the stream to an instance of rtsp-simple-server. The publish url would be in the HTTP/MQTT message.
This issue would handle parts of 2 and 3.

I have also tried using the unmodified client-publish-h264 example, publishing to rtsp-simple-server, and am getting the same errors and similar image distortion via both ffplay and vlc.

Hello, this can be done with gortsplib with a little work, but in my opinion a simpler solutions consists in using ffmpeg, that allows to perform this without writing any code:
ffmpeg -re -i rtsp://original-camera -c copy -f rtsp rtsp://rtsp-server

I'll see if I can get that to work, but it might be better for my particular usecase if I don't have any additional binaries or subprocesses to worry about.

A working example that shows how to read and republish tracks has been added here.

Awesome. Thanks!


text:
Kernel Panic on RTMP Stream Opening

Which version are you using?
master
Which operating system are you using?

[x] macOS arm64 standard

Describe the issue
2023/02/08 15:07:51 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2023/02/08 15:07:51 INF [RTMP] listener opened on :1935
2023/02/08 15:07:51 INF [HLS] listener opened on :8888
2023/02/08 15:07:51 INF [WebRTC] listener opened on :8889 (HTTP)
2023/02/08 15:07:59 INF [RTMP] [conn 192.168.1.28:55154] opened
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x104e22240]

goroutine 24 [running]:
github.com/aler9/gortsplib/v2/pkg/format.(*H264).PayloadType(0x4645bee4e3eda3c7?)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/rtsp-gortsplib/pkg/format/h264.go:95
github.com/aler9/gortsplib/v2.newServerStreamMedia(0x140004f08a0, 0x1400004a190)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/rtsp-gortsplib/server_stream_media.go:41 +0x2b8
github.com/aler9/gortsplib/v2.NewServerStream({0x140003780e0, 0x2, 0x2})
        /Users/xaviergeerinck/Projects/rtsp-simple-server/rtsp-gortsplib/server_stream.go:42 +0x130
github.com/aler9/rtsp-simple-server/internal/core.newStream({0x140003780e0?, 0x10495a59c?, 0x14000451718?}, 0x8?, 0x140002fe288)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/stream.go:24 +0x28
github.com/aler9/rtsp-simple-server/internal/core.(*path).sourceSetReady(0x14000502820, {0x140003780e0?, 0x140004015c0?, 0x140004518ba?}, 0xf?)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/path.go:640 +0x3c
github.com/aler9/rtsp-simple-server/internal/core.(*path).handlePublisherStart(0x14000502820, {{0x1053b93b8, 0x1400001a000}, {0x140003780e0, 0x2, 0x2}, 0x1, 0x1400058e300})
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/path.go:788 +0xd8
github.com/aler9/rtsp-simple-server/internal/core.(*path).run.func2(0x14000502820)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/path.go:473 +0x6b8
github.com/aler9/rtsp-simple-server/internal/core.(*path).run(0x14000502820)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/path.go:499 +0x27c
created by github.com/aler9/rtsp-simple-server/internal/core.newPath
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/path.go:283 +0x570
exit status 2

Describe how to replicate the issue
Start the server with the below:
go run .

Opened an RTMP stream through the DJI Streaming
Did you attach the server logs?
yes
Did you attach a network dump?

yes
capture_rtmp_rtsp.pcapng.zip

Did you have the time to check this already @aler9 ? :) would love to help but I'm not so fluent in this stuff

Thanks for reporting the crash, it has been fixed and the fix will be included in the next release.

Thank you! That worked!!

Still getting the following though but I suspect it is normal?
2023/02/22 19:50:45 WAR [RTSP] [session bf9a406c] rtcp: invalid packet version
2023/02/22 19:50:45 WAR [RTSP] [session bf9a406c] rtcp: invalid packet version
2023/02/22 19:50:45 WAR [RTSP] [session bf9a406c] rtcp: invalid packet version

Also receiving the following when going from Audio Only to Audio + Video stream:
2023/02/23 10:59:16 INF [RTSP] [conn 127.0.0.1:49741] closed (read tcp 127.0.0.1:8554->127.0.0.1:49741: read: connection reset by peer)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1054812ec]

goroutine 73 [running]:
github.com/aler9/rtsp-simple-server/internal/core.(*stream).writeData(...)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/stream.go:64
github.com/aler9/rtsp-simple-server/internal/core.(*rtmpConn).runPublish(0x140004aa0f0, {0x30997cd198?, 0x105d22260?}, 0x105d22260?)
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/rtmp_conn.go:588 +0xcac
github.com/aler9/rtsp-simple-server/internal/core.(*rtmpConn).runInner(0x140004aa0f0, {0x1057d2068?, 0x140004a2180})
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/rtmp_conn.go:218 +0x138
github.com/aler9/rtsp-simple-server/internal/core.(*rtmpConn).run.func3()
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/rtmp_conn.go:181 +0x30
created by github.com/aler9/rtsp-simple-server/internal/core.(*rtmpConn).run
        /Users/xaviergeerinck/Projects/rtsp-simple-server/internal/core/rtmp_conn.go:180 +0x298
exit status 2

2023/02/22 19:50:45 WAR [RTSP] [session bf9a406c] rtcp: invalid packet version

This is caused by your video player, not by the DJI drone. If you believe that's a bug, open another issue.

Also receiving the following when going from Audio Only to Audio + Video stream:

This is fixed by #1504 . If you encounter additional bugs, please open additional issues, do not reuse this one.

added in v0.21.6


text:
Build system

Import libraries used, e.g. ajv and zmx
Copy internal schemas to extension folder, which would allow all the schemas to be under one schema folder

Validate schemas against meta schema (iow ensure they are valid schemas)

Targets would be Chrome extension, Firefox extension, polyfill library (with a version packaged for closure).


text:
Search Issue on subdomain

In appsettings.json { "GenerateSearchIndex": true } doesn't go to sub domain.

https://github.com/statiqdev/Statiq.Web/issues/1016

https://github.com/statiqdev/CleanBlog/commit/ad639891c4469a2c9fc1d16b0ef8f99e975e82d8

authors: AlexHedley alex-hedley

repo: alex-hedley/statiqweb-example


text:
chore: Add more tests

Add unit test where it's possible
Add set of basic integration test
Add code coverage report

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
:information_source: You can also turn on project coverage checks and project coverage reporting on Pull Request comment
Thanks for integrating Codecov - We've got you covered :open_umbrella:

authors: alex-karpenko codecov-commenter

repo: alex-karpenko/git-events-runner


text:
This dependency was not found

Suddenly, I started to get this error on starting my project. Earlier (few days ago) everything was fine.
This dependency was not found:

vue-introjs in ./src/main.js
To install it, you can run: npm install --save vue-introjs

My current version of the package is: "vue-introjs": "^1.1.2"
Even if I execute npm install --save vue-introjs and update the package to version 1.3.1, it doesn't help.

@vrubliuk, resolved in 1.3.2.

Thank you very much!

authors: alex-oleshkevich vrubliuk

repo: alex-oleshkevich/vue-introjs


text:
Simplify test settings.py

Remove unnecessary or default values from settings.py. Makes the file shorter and slightly easier to read and maintain.

Codecov Report

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

@@          Coverage Diff           @@
##           master    #515   +/-   ##
======================================
  Coverage    87.8%   87.8%
======================================
  Files           5       5
  Lines         541     541
  Branches       96      96
======================================
  Hits          475     475
  Misses         52      52
  Partials       14      14

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 b99c8a9...6b640e6. Read the comment docs.

authors: codecov-io jdufresne

repo: alex/django-taggit


text:
How do I initialize a specific module if I change the network? Instead of restarting the entire program?

We have some network-changing scenarios. At present, it is to restart the entire process. Is there any other way?
thanks！

Hi @zuowanbushiwo,
Which module are you referring to? For some components it may be possible to simply destruct and construct a new class, but without knowing which module you're talking about, it's impossible to know for sure.
Thanks,
Sanjay

authors: sanjayrd zuowanbushiwo

repo: alexa/avs-device-sdk


text:
Initial usage is being answered with default welcome message

Hi,
when I invoke the service the first time, I'm being prompted with the welcome message instead of an answer to my question. I've published the service, but it got rejected by Amazon, as initially the welcome message is being played.

I'm having the same issue, don't know how I should solve it.

Hi,
Were you able to solve this problem?  I have the same thing where no matter what I use for utterance, the welcome message comes up.

Hi, no, I have not been able to solve it. Hence, I've stopped looking into Alexa Skill development ...

Even, I am so., with these templates, they just put over here for name sake and later on ,. just wondering how many requests are yet to be answered...

looks like this issue was resolved with a PR, but the issue was not closed.  @repath if you have a question, please feel free to open a new issue.

authors: Rintel dharalson franklin-lobb jtolksdo repath

repo: alexa/skill-sample-nodejs-howto


text:
Present Stucked in Presenter Mode When Switching Slide Page

The bug occurs in presenter mode. When switching slide page back and forth rapidly in presenter mode, the brower will soon stuck and unable to switch between slide pages any more. Though hitting left or right key do change the url displayed in the browser address bar, it still remains on the same slide page. The only method to fix it is refreshing the browser.
This bug doesn't occur in other slidev theme, and it will occur both in firefox and chromium.
I'm wondering whether the bug stems from the pagination component.
UPD: I've tried to remove the pagination part in the global-top.vue file, and the bug no longer occurs, which confirms that the bug stems from the pagination component.

Hey @hehaorui, thanks for using the theme and reporting this issue!
The Pagination component merely is a convenience component that makes use of slidev's built-in components SlideCurrentNo and SlidesTotal.
Please test a new slidev project without slidev-theme-academic, using the same slidev version as in your erroneous project, add the just mentioned components and report back whether the issue still occurs.

authors: alexanderdavide hehaorui

repo: alexanderdavide/slidev-theme-academic


text:
🛑 Structura is down

In 68f219d, Structura (https://structura.ws) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Structura is back up in 69646bd.

repo: alexandervantrijffel/upptimemonitoring


text:
Text data is not shown in table and single stat panels

Describe the bug
I am trying to show text metric in Grafana Stat and Table panels. Data is now shown.
Expected behavior
Data should be shown.
Screenshots

Software versions

Grafana
Zabbix
Grafana-Zabbix Plugin

7.2.2
5.0.3
4.0.1

it looks like it's Grafana 7.2 fault: #1078

Grafana 7.3 is released and the issue keeps then!

Hi,
I have just updated to Grafana v7.3.1 and the problem remains.
Has anyone been fixed?

Hi,
I have just updated to Grafana v7.3.1 and the problem remains.
Has anyone been fixed?

Yes. Just type any symbol in 'Text filter' field (where you usually write regexp) and then delete that symbol. After that you will see the data in the panel

Hi,
I have just updated to Grafana v7.3.1 and the problem remains.
Has anyone been fixed?

Yes. Just type any symbol in 'Text filter' field (where you usually write regexp) and then delete that symbol. After that you will see the data in the panel

It worked,
Thank you very much!

it looks like it's Grafana 7.2 fault: #1078

It looks like complex bug of Grafana and Zabbix plugin because of this comment - https://github.com/alexanderzobnin/grafana-zabbix/issues/1083#issuecomment-719890044

Looks like it has been fixed in v4.0.2
https://github.com/alexanderzobnin/grafana-zabbix/releases/tag/v4.0.2

It's fixed now.

authors: alexanderzobnin juannvalencia mbrekhov neothematrix tpramos vryzhevsky

repo: alexanderzobnin/grafana-zabbix


text:
Sign the assembly

When building code using AspNetCore.Identity.MongoDbCore, I get the following warning:
CS8002	Referenced assembly 'AspNetCore.Identity.MongoDbCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.

Please sign it. TIA!

I do not think I'm ready to pay $200+/year for a cert yet, just to sign 1 open source package.
Seems like they does not accept self signed so unless there is an alternative, it's not going to happen.

I'm using self-certs in my solution for my own, local NuGets, and it seems to work fine. Who is "they" who do not accept it? GitHub?

Nuget.org Looked into it further: you can possibly add me as a trusted owner (that is, if you trust me :D)Interesting thoughts found in the article below:https://haacked.com/archive/2019/04/03/nuget-package-signing/Le 16 juil. 2020 17:47, Assaf Tzur-El notifications@github.com a écrit :
I'm using self-certs in my solution for my own, local NuGets, and it seems to work fine. Who is "they" who do not accept it? GitHub?
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks! Good article :)

authors: AssafTzurEl alexandre-spieser


text:
Poor real variable mixing (Add HMC moves for real variables)

I've been prototyping a few simple examples in Blang based on Stat 520 (see, for example, here) and it seems that there is poor mixing.
One reason is that only one move is being used for real variables (the Peskun move is failing similarly to #6). I plan to address #6 shortly, but also want to solicit feedback on including the AHMC library's HMC functionality as another move for real variables.
Any feedback is appreciated.

Sounds good. Do you mean using the adaptive BO for MH hyperparameter tuning, or with the actual HMC as well? In the latter case, the issue is that we would need automatic differentiation. I guess we could resort to numerical differentiation too. What option did you have in mind?

Thanks for the comment, Alex. I had been thinking along the lines of HMC + numerical differentiation (and perhaps doing a block HMC move on all real variables -- I have been working on IID collections but this could be generalized).
I took a quick look at BO for the MH Hyperparameter tuning as discussed in Mahendran et al 2012. This might be an easier approach? I am not very familiar with the AHMC library so I am not confident that it can help too much here, but the approach seems to address issues we had in tuning the ASP MH hyperparameters (which was tedious to do manually). Perhaps you are more familiar with Ziyu's code? I am willing to develop this feature into the core blang moveset.

An issue with HMC + numerical is that each numerical diff will take n evaluations, where n is the number of real variables (since we need all n partial derivatives). But I guess we could do HMC within block Gibbs to address this, taking blocks to be variables that are connected and therefore perhaps more likely to be correlated.
Alternatively, something that might be easier to implement is slice sampling.

Thanks! Due to time constraints, I will first try a slice implementation (it seems straightforward to implement). Builds reflecting this change are forthcoming (next few days).

Summary of changes before I close this issue:
(i) Created a new branch of bayonet called dev. As the name suggests, we can put in-development items in here until they have passed all of the tests and have been vetted. I've committed a basic slice sampler here.
(ii) I've added the overrelaxed slice sampler of Neal 2003 to the main branch. It has been added to the list of samplers for RealVariables. In my testing it seems to improve mixing.
(iii) In the distribution unit tests, it is not entirely clear why some samplers work while others do not. It seems we need some sort of policy or set of units tests that all samplers should pass.

authors: alexandrebouchard jewellsean

repo: alexandrebouchard/bayonet


text:
Defining a storage class on S3 archival

Hi, I was wondering if it is possible to define the storage class to use for S3 archive to be STANDARD_IA.
Thanks!

Hi @frucher08 !
I don't think this is even possibile in Temporal, see available configuration: https://github.com/temporalio/temporal/blob/v1.22.3/common/config/config.go#L491
When available in Temporal itself, I would be able to add support for S3 IA in the operator.

repo: alexandrevilain/temporal-operator


text:
Explorer Card shows no Data

installed it via HACS, HA in a Docker Container.
when i choose an entitiy no data is being displayed.
Any hints on this?

I'm afraid not without more details. Post your logs to begin with.

Sorry for the question, are there more than the homeassistant.log?

For the purpose of this card, any error should be reported in the homeassistant log.

searched the log, it shows no error regarding history card explorer

This is a picture how the card looks

You did hit the add button (the plus sign next to the name), right ?

yes, was this wrong?

No that was fine. Did you check the logs after clicking the button ?
Please check:

Make sure the entity_id is spelt correctly and actually exists within HA. Check in the developer settings and post a screenshot of the entity in there with all its attributes.
Post  your YAML config for the card

Got it working now, tried the sample config from the readme. Thougt it would work by just selecting the entity.
Thanks for helping, and good work with the card!!

Yes, normally it does work by selecting the entity in the dropdown and then pressing the add button.
Anyway, great you got it to work.


text:
🛑 Secret Website 4 is down

In f2f5bc7, Secret Website 4 ($SECRET_WEBSITE_4) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Website 4 is back up in 51912ef.

repo: alexchapar/status-page


text:
Introduce rebases

I've tried to follow the conventions and patterns from the rest of the library. It includes iterator for going through the operations in order.
I only ralised #315 existed after writing this but that PR is stalled/abandoned so I guess this doesn't hurt too much.

Huh, maybe I messed up some signatures, but I can run that systest command just fine locally on my rustc 1.28

Nope nevermind, I can repro locally, I was just on the wrong branch before.

Ah good point! The ctest crate in use here has various options to configure how it generates tests, but it can definitely be a bit of a black box. I think a diff like this could help fix CI though?
https://gist.github.com/alexcrichton/8a57d317c4f1715bd7de6f8ca7662f5b

Since kind is already known to transform to type, we can avoid adding an extra rule rule and awkward name by renaming the field to kind which is what we use for the accessor anyway; that way we only add the special handling for id.

Perfect, thanks!

authors: alexcrichton carlosmn


text:
Should not be unit structs

The current stable imp contains:
pub struct LexError;
pub struct Span;

These should be structs with a private field to match the ones in proc_macro. That way users can't write code that works with stable but not unstable.

Oh these shouldn't be reexported directly but rather contained in the top level in an opaque way? Did I reexport something though by accident?

Oh you're right! Never mind.

authors: alexcrichton dtolnay


text:
Make try-except statement in _gridsearch more specific

Currently, if there is, e.g., any RuntimeError in the loss, _gridsearch will silently fail and just return the boundary value of the grid; see here. One example for this is when the loss function is not appropriate for the setting.

@runame will this be fixed by #156, which has been addressed? Or, do you have another approach in mind?

authors: runame wiseodd

repo: aleximmer/Laplace