ValueError: Too many slices such that some splits are empty

Hi,
I get this error when I try to train on 2 GPUs, I wonder what is it about?
INFO:root:Auto-select kvstore type = local_update_cpu
INFO:root:Start training with [gpu(1), gpu(2)]
Traceback (most recent call last):
  File "train_lstm.py", line 147, in <module>
    main(sys.argv)
  File "train_lstm.py", line 143, in main
    epoch_end_callback = [ mx.callback.do_checkpoint( '%s/%s' % (params_dir, expt_name) ) ]
  File "/home/chuaf/miniconda3/lib/python3.5/site-packages/mxnet-0.7.0-py3.5.egg/mxnet/model.py", line 788, in fit
    sym_gen=self.sym_gen)
  File "/home/chuaf/miniconda3/lib/python3.5/site-packages/mxnet-0.7.0-py3.5.egg/mxnet/model.py", line 192, in _train_multi_device
    logger=logger)
  File "/home/chuaf/miniconda3/lib/python3.5/site-packages/mxnet-0.7.0-py3.5.egg/mxnet/executor_manager.py", line 302, in __init__
    slices = _split_input_slice(train_data.batch_size, work_load_list)
  File "/home/chuaf/miniconda3/lib/python3.5/site-packages/mxnet-0.7.0-py3.5.egg/mxnet/executor_manager.py", line 43, in _split_input_slice
    raise ValueError('Too many slices such that some splits are empty')
ValueError: Too many slices such that some splits are empty

your batch_size is smaller than the number of gpus you are using

ah ok, thanks...

Thanks my brother!

I occurs this issue when inference. Does this mean MXNet only can use one gpu when inference because of this code below?
mod.forward(Batch([mx.nd.array(img)]))

I knew.
batch_size = 32
mod2 = mx.mod.Module(symbol=sym, label_names=None, context=mx.gpu())
mod2.bind(for_training=False, data_shapes=[('data', (batch_size,3,224,224))])

My batch size is equal to the number of gpus, however, the error still encountered.


MAINT: Add support for planar layout from NX

Added support for nx.draw_planar convenience function and an example to the User guide.
Wasn't sure how to test this, let me know if I anything else is required :)

Hey thanks @MridulS for the PR!
I don't think it's documented anywhere (while it should!) but there's a little script we run on a notebook before committing any change to strip its metadata. You need to have jq installed on your system:
#!/bin/bash

jq --sort-keys --indent 1 \
    '
    (.cells[] | select(has("outputs")) | .outputs) = []
    | (.cells[] | select(has("execution_count")) | .execution_count) = null
    | .metadata = {"language_info": {"name":"python", "pygments_lexer": "ipython3"}}
    | .cells[].metadata = {}
    | del(.cells[].id)
    ' "$1" > /tmp/$(basename $1) && cat /tmp/$(basename $1) > "$1"

Otherwise your PR looks good to me.

The 2.7 failure was unrelated from this change, should be fixed by https://github.com/holoviz/hvplot/pull/700/commits/e82b953dab74d9f162392d13d7b36274e9a9fb9c .

https://github.com/holoviz/hvplot/pull/651 has a couple of py3 specific syntax (numeric underscores and f strings).
Is it time to drop py2.7 support?

I'd be happy to drop py2.7 as part of the 0.8 release tbh.

This should be ready to merge then :)

Thanks @MridulS!


在uniapp开发小程序希望分包内的样式打包到各自的分包内

Clear and concise description of the problem
在uniapp开发小程序希望分包内的样式打包到各自的分包内
Suggested solution
none
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the README.md of using the package.
[X] Already used the Interactive Docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

uniapp.zip

1、下载微信开发者工具；安装好相关依赖
2、运行npm run serve
3、运行npm run dev:mp-weixin
4、微信开发者工具导入编译后的程序
在src/static/uno.css下有mt-20rpx、h-100vh、flex、flex-col、bg-red、bg-yellow样式，
bg-yellow是分包packageB下的
能否将bg-yellow输出到src/packageB/common/css/uno.css

try this
https://unocss.dev/integrations/vite#vue-scoped

By default, UnoCSS works with a specific order of the rules, which is not really possible to do chunking - of course, you can try with the different modes it provides, but also be aware of their own limitations. I would say a single shared CSS would be the best way to go if possible,

try this https://unocss.dev/integrations/vite#vue-scoped

🌹


Unable to resolve module<EMAIL_ADDRESS>

I get this at snack.expo.dev by using the example code in the readme for this project.
Thanks

I tried it and I have the same error. I suspect the error comes from the snackager that generates Expo Snack bundles from NPM packages. But I don't how it could be fixed


change from using PVC to PVCtemplates for better availbility

What this PR does / why we need it:
Previous version of the chart was not using PersintenceClaimTemplates so it limited pods to a node. Changed in this pr.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:

/assign @tompizmor

/ok-to-test

/lgtm


feature requst:Lyrics on full page

In the future how would an option of the lyrics being static on one page? currently the scrolling doesn't match up with most of my songs
Cheers
Stephen

This is already an option

Disable scroll lyrics automatically if it is checked. That will stop the lyrics from auto scrolling and allow you to manually scroll them.

thanks - couldn't see for looking 8-)


[BUG] Uninstallation will fail if invalid backuptarget is set.

Describe the bug
Uninstallation will fail if invalid backuptarget is set.
Below logs repeatedly appeared in longhorn-uninstall pod
" controller=longhorn-uninstall error="failed to touch the backup target CR for API version migration: Operation cannot be fulfilled on backuptargets.longhorn.io \"default\": the object has been modified; please apply your changes to the latest version and try again"
time="2024-06-20T04:16:12Z" level=warning msg="Failed to uninstall" func="controller.(*UninstallController).handleErr" file="uninstall_controller.go:293" controller=longhorn-uninstall error="failed to touch the backup target CR for API version migration: Operation cannot be fulfilled on backuptargets.longhorn.io \"default\": the object has been modified; please apply your changes to the latest version and try again"

To Reproduce

Setup invalid backup target
Uninstall Longhorn

kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/master/uninstall/uninstall.yaml
kubectl get job/longhorn-uninstall -n longhorn-system -w

The uninstallation job never finished.

Expected behavior
Uninstallation finished.
Support bundle for troubleshooting
supportbundle_7c841ce4-1dcf-488a-b3aa-052ae4784882_2024-06-20T04-19-00Z.zip
Environment

Longhorn version: master

Additional context
N/A

cc @mantissahz

@chriscchien Also happened in v1.6.x and v1.5.x?

Quickly scan the longhorn-manager logs in the support bundle, in a second there are lots of
2024-06-20T04:18:44.848117979Z time="2024-06-20T04:18:44Z" level=error msg="Failed to get info from backup store" func="controller.(*BackupTargetController).reconcile" file="backup_target_controller.go:389" controller=longhorn-backup-target cred= error="failed to list backup volumes in nfs://longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore: error listing backup volume names: failed to execute: /var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-master-head/longhorn [/var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-master-head/longhorn backup ls --volume-only nfs://longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore], output cannot mount nfs longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore, options [nfsvers=4.0 actimeo=1 soft timeo=300 retry=2]: vers=4.0: mount failed: exit status 32\nMounting command: mount\nMounting arguments: -t nfs4 -o nfsvers=4.0,actimeo=1,soft,timeo=300,retry=2 longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore /var/lib/longhorn-backupstore-mounts/longhorn-test-nfs-svc_defsdfsfdault/opt/backupstore\nOutput: mount.nfs4: Failed to resolve server longhorn-test-nfs-svc.defsdfsfdault: Name or service not known\n: vers=4.1: mount failed: exit status 32\nMounting command: mount\nMounting arguments: -t nfs4 -o nfsvers=4.1,actimeo=1,soft,timeo=300,retry=2 longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore /var/lib/longhorn-backupstore-mounts/longhorn-test-nfs-svc_defsdfsfdault/opt/backupstore\nOutput: mount.nfs4: Failed to resolve server longhorn-test-nfs-svc.defsdfsfdault: Name or service not known\n: vers=4.2: mount failed: exit status 32\nMounting command: mount\nMounting arguments: -t nfs4 -o nfsvers=4.2,actimeo=1,soft,timeo=300,retry=2 longhorn-test-nfs-svc.defsdfsfdault:/opt/backupstore /var/lib/longhorn-backupstore-mounts/longhorn-test-nfs-svc_defsdfsfdault/opt/backupstore\nOutput: mount.nfs4: Failed to resolve server longhorn-test-nfs-svc.defsdfsfdault: Name or service not known\n: cannot mount using NFSv4\n, stderr warning: GOCOVERDIR not set, no coverage data emitted\ntime=\"2024-06-20T04:18:44Z\" level=warning msg=\"Trying reading mount point /var/lib/longhorn-backupstore-mounts/longhorn-test-nfs-svc_defsdfsfdault/opt/backupstore to make sure it is healthy\" func=util.EnsureMountPoint file=\"util.go:309\" pkg=nfs\ntime=\"2024-06-20T04:18:44Z\" l
...

And frequently updating the backup target status will block the uninstall procedure.
It should poll the backup target status in pollInterval.

What's the poll interview set to cause this frequent update? The original should be 300 seconds.
The workaround would be to disable it by setting 0?

I think the frequent update is caused by that the error messages is not the same (including time like E0620 04:18:45.681625   20213 mount_linux.go:236])
The workaround would be to empty the backup target url first.
And maybe we should set the Status.LastSyncedAt if there is an error from getting backup target information
diff --git a/controller/backup_target_controller.go b/controller/backup_target_controller.go
index 22972c230..485bdeb61 100644
--- a/controller/backup_target_controller.go
+++ b/controller/backup_target_controller.go
@@ -380,6 +380,7 @@ func (btc *BackupTargetController) reconcile(name string) (err error) {
                return nil
        }

+       syncTimeRequired = true // Errors beyond this point are NOT backup target related.
        info, err := btc.getInfoFromBackupStore(backupTarget)
        if err != nil {
                backupTarget.Status.Available = false
@@ -389,7 +390,6 @@ func (btc *BackupTargetController) reconcile(name string) (err error) {
                log.WithError(err).Error("Failed to get info from backup store")
                return nil // Ignore error to allow status update as well as preventing enqueue
        }
-       syncTimeRequired = true // Errors beyond this point are NOT backup target related.

        backupTarget.Status.Available = true
        backupTarget.Status.Conditions = types.SetCondition(backupTarget.Status.Conditions,

@chriscchien Also happened in v1.6.x and v1.5.x?

This issue can not be reproduced on v1.5.5 and v1.6.2.

" controller=longhorn-uninstall error="failed to touch the backup target CR for API version migration: Operation cannot be fulfilled on backuptargets.longhorn.io \"default\": the object has been modified; please apply your changes to the latest version and try again"

If it runs into the object has been modified, the failed update can be ignored. The purpose of the touch (update) is to trigger version migration.

I think the frequent update is caused by that the error messages is not the same (including time like E0620 04:18:45.681625   20213 mount_linux.go:236])

Related to https://github.com/longhorn/longhorn/issues/8224.

@chriscchien Also happened in v1.6.x and v1.5.x?

This issue can not be reproduced on v1.5.5 and v1.6.2.

We should backport this, as https://github.com/longhorn/longhorn-manager/pull/2812 was backported to 1.6.2 and 1.5.6 (unreleased) already?

" controller=longhorn-uninstall error="failed to touch the backup target CR for API version migration: Operation cannot be fulfilled on backuptargets.longhorn.io \"default\": the object has been modified; please apply your changes to the latest version and try again"

Does this mean that if Longhorn is installed from the master branch with a valid/invalid backup target configured, the installation will always fail?

" controller=longhorn-uninstall error="failed to touch the backup target CR for API version migration: Operation cannot be fulfilled on backuptargets.longhorn.io \"default\": the object has been modified; please apply your changes to the latest version and try again"

Does this mean that if Longhorn is installed from the master branch (w/o the fix) with a valid/invalid backup target configured, the installation will always fail?

Uninstallation? If the backup target is valid, it won't trigger the issue.

Uninstallation? If the backup target is valid, it won't trigger the issue.

ah, typo..
If the backup target is valid or invalid, all of them will walk through the UpdateBackupTarget call below. Why only the invalid case will be triggered? Is there anything I missed?
/controller/uninstall_controller.go#L322-L328
		} else if len(backupTargets) > 0 {
			for _, bt := range backupTargets {
				if _, err = c.ds.UpdateBackupTarget(bt); err != nil {
					return errors.Wrap(err, "failed to touch the backup target CR for API version migration")
				}
			}
		}

If the backup target is valid or invalid, all of them will walk through the UpdateBackupTarget call below. Why only the invalid case will be triggered? Is there anything I missed?

I think it is very unlikely for there to be a conflict in the case of a valid BackupTarget. But for the invalid case, https://github.com/longhorn/longhorn/issues/8224 causes frequent updates, so a conflict is quite likely.

Uninstallation? If the backup target is valid, it won't trigger the issue.

ah, typo..
If the backup target is valid or invalid, all of them will walk through the UpdateBackupTarget call below. Why only the invalid case will be triggered? Is there anything I missed?
/controller/uninstall_controller.go#L322-L328
		} else if len(backupTargets) > 0 {
			for _, bt := range backupTargets {
				if _, err = c.ds.UpdateBackupTarget(bt); err != nil {
					return errors.Wrap(err, "failed to touch the backup target CR for API version migration")
				}
			}
		}

https://github.com/longhorn/longhorn-manager/blob/master/controller/backup_target_controller.go#L394-L397
It is due to the frequent update of an invalid backup target.
Although the error message is the same, a different timestamp always leads to an update.

Uninstallation? If the backup target is valid, it won't trigger the issue.

ah, typo..
If the backup target is valid or invalid, all of them will walk through the UpdateBackupTarget call below. Why only the invalid case will be triggered? Is there anything I missed?
/controller/uninstall_controller.go#L322-L328
		} else if len(backupTargets) > 0 {
			for _, bt := range backupTargets {
				if _, err = c.ds.UpdateBackupTarget(bt); err != nil {
					return errors.Wrap(err, "failed to touch the backup target CR for API version migration")
				}
			}
		}

https://github.com/longhorn/longhorn-manager/blob/master/controller/backup_target_controller.go#L383-L391
It is due to the frequent update of an invalid backup target.
Although the error message is the same, a different timestamp always leads to a update.

Well explained @derekbit @ejweber

Verified pass on longhorn master(longhorn-manager b19161) with test steps
Uninstallation success when invalid backuptarget is set.


Update to version 0.1.3 from pypi

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged) version is unchanged
[x] Reset the build number to 0 (if the version changed) build number is zero
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.


Stuck on "waiting" for a lot of episodes

this is a really nice idea, and i'm stoked to see it perfected, but one problem i have is that when downloading episodes, it gets stuck on "waiting" and refuses to progress further.

Hi, thanks for the rapport, I am working on version 0.4.0 which will include a bunch of fixes and improvements regarding issues like this. Here a sneak preview (besides being able to close the loading screen manually, it will load faster :D, and more versions from different sub groups will be found):
Here a preview using One Piece:
Preview
For simplicity sake I will add a paging feature to it as well in the near future. Unfortunately I only have time to work on this in the weekends so it will take me a bit to get everything working. But the next update will be big :D.

Hi, version 0.4.0 has been released for most platforms: https://littleweeb.github.io/ or https://github.com/littleweeb/Desktop, should fix the issues you were having entirely ;)


[caffe2:x64-windows] build failure

Host Environment
OS: Windows10
Compiler: revision
To Reproduce
Steps to reproduce the behavior:
vcpkg install caffe2
Computing installation plan...
The following packages will be built and installed:
caffe2[core]:x86-windows
Detecting compiler hash for triplet x86-windows...
Starting package 1/1: caffe2:x86-windows
Building package caffe2[core]:x86-windows...
Could not locate cached archive: C:\Users\user\AppData\Local\vcpkg\archives\ff\fff8e82b4e42d7f962411eb7a9b9e60f7af50ca7.zip
-- Note: caffe2 only supports static library linkage. Building static library.
CMake Error at ports/caffe2/portfile.cmake:6 (message):
Caffe2 cannot be built for the x86 architecture
Call Stack (most recent call first):
scripts/ports.cmake:79 (include)
Error: Building package caffe2:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: caffe2:x86-windows
Vcpkg version: 2020.06.15-nohash

CMake Error at ports/caffe2/portfile.cmake:6 (message):
Caffe2 cannot be built for the x86 architecture

Hi @SyntheseyResine ，What you installed is not caffe2:x64-windows, caffe2 does not support caffe2:x84-windows, please use the command. ./vcpkg install caffe2:x64-windows


[release-1.8] Fix externalips overridden

Manual cherrypick required.
#30059 failed to apply on top of branch "release-1.8":
Applying: Exclude nodeport gateway service if it has externalIPs explictly set
Using index info to reconstruct a base tree...
M	pilot/pkg/serviceregistry/kube/controller/controller.go
M	pilot/pkg/serviceregistry/kube/controller/network.go
Falling back to patching base and 3-way merge...
Auto-merging pilot/pkg/serviceregistry/kube/controller/network.go
Auto-merging pilot/pkg/serviceregistry/kube/controller/controller.go
CONFLICT (content): Merge conflict in pilot/pkg/serviceregistry/kube/controller/controller.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Exclude nodeport gateway service if it has externalIPs explictly set
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

We will not release 1.8 again


TimeoutError: Timed out after 30000 ms while waiting for the WS endpoint URL to appear in stdout!

TimeoutError: Timed out after 30000 ms while waiting for the WS endpoint URL to appear in stdout!
at ChromeLauncher.launch (file:///root/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:121:23)
at async file:///root/node_modules/puppeteer-real-browser/src/module/chromium.js:68:29
file:///root/node_modules/puppeteer-real-browser/src/module/chromium.js:98
throw new Error(err.message)
^
Version
1.2.24

I updated. Can you try again with the latest version?

I updated. Can you try again with the latest version?

The error is still the same after start src/test.js
Version
1.2.29

The problem was in import.meta.dirname
const EXTENSION_PATH = ${__dirname}/extension/; >> undefined/extension/

The problem was in import.meta.dirname added in: v21.2.0, v20.11.0
${__dirname}/extension/ > undefined/extension/

I have now tested it on 2 operating systems and there seems to be no problem. Can you please provide information to reproduce the error? Which operating system? Which code?
Windows Server Test:
https://github.com/user-attachments/assets/b1c4dca1-db48-4692-ac67-fc399d11e009
Ubuntu 24 test:
https://github.com/user-attachments/assets/b1040e6a-9d8d-4fed-910a-52cabbd82130

same too on ubuntu 22.04, installin via npm. I have rolled back to the previous version

https://github.com/zfcsoftware/puppeteer-real-browser/issues/97
This problem has just been resolved. Can you try again with the latest version?

I use Node v18.20.2
Problem with import.meta.dirname because support by Node v21.2.0, v20.11.0

#97 This problem has just been resolved. Can you try again with the latest version?

It works great, thank you so much

I use Node v18.20.2 Problem with import.meta.dirname because support by Node v21.2.0, v20.11.0

With the last update, it should now work. If the problem persists, I can open it again if you update this issue by writing a message.

#97 This problem has just been resolved. Can you try again with the latest version?

It works great, thank you so much

Thank you for testing it.

It works great, thank you!


Catalyst Boost Camp  - Introduction

Catalyst Boost Camp  - Introduction

In this first session, we will introduce you to the Boot Camp program, S-E-A-M and EMS, and we will all get to know each other

[x] Open source status ?


Update example styles

I think it's important to share examples that promote best practices. This change accounts for user preference as well as users using the find-in-page feature.
See https://css-tricks.com/fixing-smooth-scrolling-with-find-on-page/

https://user-images.githubusercontent.com/33315834/159173332-d474a1a3-0f03-4307-af28-c1c4096d059a.mp4

I think it's important to share examples that promote best practices.

I dount what's a "best pratice", you cannot say what's better between having nicer behavior and greater compatablity

I think that it's good for us to give a better example here, but I believe the original ones could be kept as well, also you may need some comment to have a little explain what you are doing. I don't think users are happy to see a much more complicated demo.

On one hand, smooth scrolling is an enhancement. If we break it for some users that dont match compatibility, the fallback is default browser behavior. On the other hand, if we force smooth scrolling on users that have vestibular motion disorders, we may introduce accessibility concerns. So in this case, "best practice" was a convenient short way of saying that I think it's better to avoid introducing accessibility issues for some users at the cost of other users missing out on smooth scrolling.
But I dont want to miss the main point here. Docs on a project like this have the potential to reach a lot of folks, and I think it's good to be responsible with examples. To that point, I think my solution is responsible, but you're right that it does too much and raises questions. So maybe the best solution is to avoid smooth scrolling all together. After all, the documentation here is about style files. It can literally be just about anything.

Hi, could you please upgrade this file?
https://github.com/vuepress/vuepress-next/blob/main/docs/.vuepress/styles/index.scss
I may edit the docs exmaple to a more simple one.

Did you want that edit to go in this PR or in a new PR?
Should I make a change to the CSS I had in the docs?

Just editing docs style should be fine. I will use a another simple css snippet as  demo instead.

Thanks anyway


[Bug][manager] get NumberFormatException when creating a new stream

What happened

What you expected to happen
create a new stream
How to reproduce
creating a new stream successfully
Environment
No response
InLong version
master
InLong Component
InLong Manager
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll fix this bug.


No o/p in hackrf

Hi, I am using hackrf sdr and upon firing simple_imsi_catcher.py - it gives nothing apart from the first line saying cell_id, country etc...

Good afternoon and through wireshark data are viewed ???

No. Wireshark is up and running but no data are viewed.

Not in a script not in Wireshark data does not arrive ??? And the frequency of the GSM channel is configured to rightly try to scan the nearest BTS???

Example kal -s GSM900 or gsm_scanner.py Data is given or not ??

@beeprime no data in wireshark == wrong frequency

@beeprime To determine the channel and frequency of BTS, use the scanner from the package gr-gsm (gsm_scanner.py -v) !!!

While using RTL2832U in place of Hackrf One, I am getting IMSI numbers. That implies that simple_imsi_catcher is working fine with RTL-SDR but no GSM data is shown in wireshark while it's visible by running airprobe_rtlsdr.py from another console which is other that from where simple_imsi_catcher is running. Please help... (firstly wireshark gives LUA error but after resolving also no data is shown)

@beeprime * kal -s GSM 900 displays the result if there is no reinstall the hackrf One software. I have everything in one system working normally RTL2832U, Hackrf One, OsmocomBB... For the sake of interest probyval radio takes ??

@beeprime if you have nothing in wireshark, the problem didn't come from my IMSI-catcher.
So check :

your hackrf is correctly plug
you have the last firmware of hackrf
you have the last gr-gsm
run gqrx (sudo apt install gqrx-sdr) and check you get signal of cell tower


Fix basic example

Context: When parsing a mesh with primitives that have indices pointing to different buffer views, the VAO will use the last GL_ELEMENT_ARRAY_BUFFER that was bound to it. In this scenario, the mesh will not be rendered properly.
When binding a mesh, return VAO and EBOs so that primitives can bind to the proper element array buffer.

When parsing a mesh with primitives that have indices pointing to different buffer views

@eariassoto Awesome! Is it possible to share such glTF data for a regression test on my side?

Sure thing, this is a modified version of the Cube.gltf that has 2 primitives, each with half of the cube triangles: https://gist.github.com/eariassoto/cca35c25ac7b02bafa718557518b13cc
I did not modified the original, so as to not introduce potential regressions in the other examples.

Thanks! Confirmed the issue with given .gltf  >  the mesh will not be rendered properly.
And PR has been merged!


Do single call to produce attestation

Motivation
Beacon node's endpoint produceAttestationData return data is not dependant on committeeIndex. We can do a single call for all committees and save resources
Description
Produce a single attestation for all committees, and clone mutate before signing
Closes https://github.com/ChainSafe/lodestar/issues/3098

@dapplion The DVT compatibility issue mentioned in https://github.com/ChainSafe/lodestar/issues/5103 is due to the changes introduced in this PR. This also creates a deviation compared to other CL clients as those send a request per committee index.
I am wondering if we really need this optimization as there is an upper bound of 64 requests due to MAX_COMMITTEES_PER_SLOT but of course it will put more load on the BN either way.
I really want to keep the optimization while also fixing the compatibility issues we have.
As described in the issue, my idea is to introduce a flag --distributed (also already considering committee selections) and if set the attestation service behaves differently (disables the optimization). My main concern with all of this is that we introduce branching logic the attestation flow which I really want to avoid.
Considering all of that, instead of adding branches to the current attenstation service I think we might just be best of creating a 2nd "distributed" attestation service.


Adding options_description class method to base_manager

This is a metadata function that should return the description of the data that is stored in the options field (added in https://github.com/ManageIQ/manageiq-schema/pull/23)
requested here: https://github.com/ManageIQ/manageiq-api/pull/3#discussion_r132476373

@durandom

I'd rather call it options_description

I only used it in https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/45, and  https://github.com/ManageIQ/manageiq-api/pull/3. I can change it in both places.

Oh, so there are already proxy_settings and advanced_settings.
If thats only used in the kubernetes provider currently, I'd really rename that now before it spreads to other providers.
For the ansible tower credentials we've put the description into constants here
@jameswnl wdyt on naming those methods?

@durandom I made this change in all the places that used this function.

How about using same convention as the ansible options? as @durandom pointed out? https://github.com/ManageIQ/manageiq-providers-ansible_tower/blob/479dd815e1969044f20082adb21fbda84da1253d/app/models/manageiq/providers/ansible_tower/shared/automation_manager/network_credential.rb

@jameswnl @jntullo could you point out how the API and UI accesses the option descriptions? I'm more a fan of having actual methods than accessing constants. But we should indeed align the approaches as long as we only have ansible and kubernetes using this.

API responds to OPTIONS call and return API_OPTIONS of credentials. See the spec here
@jntullo can correct/provide more on this

ok, so what do you think of streamlining this via a options_description method? Or some better name?
roping in @imtayadeway as well

@durandom If you were asking me then I think options_description is a fitting name for this function.

ping @durandom @imtayadeway @jameswnl do we have a decision? Do we want it in a constant or a function?

@enoodle a function seems fine to me.

Then we can merge this and https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/91 to proceed with https://github.com/ManageIQ/manageiq-api/pull/3

@durandom PTAL


Remove lineHeight property from ScaleTitle

lineHeight should not be used anymore because inside the Font object

Thanks @stockiNail


Re-upgrade term to 0.4(.3)

This PR re-upgrades term to 0.4.3. Cargo now detects whether or not
color is supported immediately after creating the TerminfoTerminal.
Backstory:
Before v0.4, term used to return Ok(true) if something succeeded,
Ok(false) if the operation was unsupported, and Err(io::Error) if there
was an IO error. Now, it returns Ok(()) if the operation succeeds and
Err(term::Error) if the operation fails. If the operation is unsupported,
it returns Err(term::Error::NotSupported). This means that, if op is
unsupported, try!(term.op()) will now return an error instead of silently
failing (well, return false but that's effectively silent).
Fixes #2338.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@pnkfelix could you try out Cargo with this patch and see if it works for you?

@alexcrichton I will try it out

I keep getting:
% cargo build --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading term v0.4.3
unable to get packages from source

Caused by:
  failed to unpack package `term v0.4.3`

Caused by:
  No such file or directory (os error 2)

And then subsequent build attempts likewise fail:
% cargo build --verbose
unable to get packages from source

Caused by:
  failed to unpack package `term v0.4.3`

Caused by:
  No such file or directory (os error 2)

(I've then tried forcing cargo to redo the download by deleting the rm -rf ~/.multirust/toolchains/nightly-2016-01-26/cargo/registry, which just causes cargo build to repeat of the top most command line transcript in this comment.)

@alexcrichton okay, on a proper nightly (and doing the build itself in a non emacs M-x shell terminal, since the cargo from nightly won't work for the bootstrap in that procedure), the resulting cargo seems to work under the emacs M-x shell terminal.

@alexcrichton but should I be concerned about the download failure for term 0.4.3 when using the 2016-01-26 multirust toolchain? Super weird, but maybe some other bug has been fixed in the past two nights?

This is also causing the automated build to fail.
On February 1, 2016 5:52:16 AM EST, Felix S Klock II<EMAIL_ADDRESS>wrote:

@alexcrichton but should I be concerned about the download failure for
term 0.4.3 when using the 2016-01-26 multirust toolchain? Super
weird, but maybe some other bug has been fixed in the past two
nights?

Reply to this email directly or view it on GitHub:
https://github.com/rust-lang/cargo/pull/2344#issuecomment-177911089

--
Steven Allen

Sorry, I had to rebase to fix my email/name. My git name and email somehow got set to bar and baz...

Sorry, I had to rebase to fix my email/name. My git name and email somehow got set to bar and baz...

Wait just a minute... @alexcrichton Why is your test case modifying MY git config? :(

Why is your test case modifying MY git config? :(

What the what?  Pointers please?

See #2345.
Steven Allen

It looks like this recent publish may be suffering from https://github.com/rust-lang/cargo/issues/2326, can you try republishing with a newer Cargo?

@pnkfelix thanks for the confirmation of it working!
I'm a little worried that we're just dropping errors on the floor somewhere, it would probably be good to track those down...

It should work now.

@bors: r+ a763db43d4959d99256886fe8610550ee8642e27

:hourglass: Testing commit a763db4 with merge e9d0023...

Thanks @Stebalien!

:sunny: Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64


[Closed]: incorrect/accidental issue creation

The problem
{{A clear and concise description of what the problem this new feature is trying to solve. (ex. I'm always frustrated when...)}}
The solution
{{A clear and concise description of what you want to happen}}
Additional information
{{Please provide any additional information or resources for reference}}

{{user research}}
{{user insights}}
{{user metrics}}

Closing due to insufficient information, as well as potentially sensitive information in the issue.
@kariukiandy Please re-open this issue if you still need assistance and make sure to follow the template in listing out your problems. Thanks!


Use internal RTSP server

Is your feature request related to a problem? Please describe.
The prebuffer stream use the pipe muxer, to split streams for videoanalysis, HSV, live video, etc. It also use the mpegts mixer that can cause problems with some input sources.
Describe the solution you'd like
The prebuffer stream could use an internal rtsp server instead of pipe. All transforms to the video input could be made just before being sent to this internal rtsp server. For example : reencode the stream if not H264, transpose the image, etc...
Describe alternatives you've considered
I already use an external rtsp server for that purpose. It's working well, but by making it integrated to camera.ui would be easier for other users.
Additional context
The configuration of my external rtsp server, bases on containers :
docker-compose.yml :
version: '3.7'
services:
  homebridge:
    image: oznu/homebridge:latest
    container_name: homebridge
    restart: always
    network_mode: host
    environment:
      - PGID=1000
      - PUID=1000
      - HOMEBRIDGE_CONFIG_UI=1
      - HOMEBRIDGE_CONFIG_UI_PORT=8085
    volumes:
      - /homebridge

  rtsp:
    image: aler9/rtsp-simple-server
    restart: always
    environment:
      - RTSP_PROTOCOLS=tcp
    ports:
      - 8554:8554

  ffmpeg-usbcam:
    image: oznu/homebridge
    restart: always
    devices:
      - /dev/video0
      - /dev/snd
    entrypoint: /bin/exec
    command: /bin/sh -c "apk add alsa-utils && ffmpeg -thread_queue_size 512 -fflags +genpts -f video4linux2 -framerate 10 -video_size hd720 -i /dev/video0 -thread_queue_size 512 -fflags +genpts -f alsa -ac 1 -ar 32k -i default:CARD=C615 -map 0:v -map 1:a -codec:v libx264 -preset:v ultrafast -profile:v baseline -level:v 3.1 -tune zerolatency -pix_fmt yuv420p -r 10 -b:v 2000k -force_key_frames 'expr:eq(t,n_forced*4)' -bsf:a aac_adtstoasc -acodec libfdk_aac -profile:a aac_low -ar 32k -b:a 64k -ac 1 -shortest -f rtsp rtsp://rtsp:8554/live/usbcam.stream"

config.json :
{
	"name": "UsbCam",
	"motion": true,
	"hsv": true,
	"prebuffering": true,
	"videoConfig": {
		"source": "-i rtsp://localhost:8554/live/usbcam.stream",
		"vcodec": "copy",
		"acodec": "copy",
		"audio": true
	},
	"videoanalysis": {
		"active": true
	}
}

🎉 A new version of camera.ui
A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: https://github.com/seydx/camera.ui/issues/448 .
This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).


adjusted the Canvas follow script to be relative to player

The canvas follow script previous set the height only based on the canvas size, but is now relative to the players y position. It only changes the height when the canvas opens by adding an offset equal to the players height

Closes #213


[Improvement] Tasks Table Edits

Currently, our tasks page looks like this:

Fetch the tasks information from the database instead of hardcoded data.

Edit the table to be able to show some of the "Status" column. You can edit the spacing and so on (I think there is a formatDate function already created in the ProjectCard.jsx component).

Make the columns filter box a bit smaller for the webpage.

The current add task form looks like this:

You can edit the task form to be a bit bigger so that clicking on the x button is easier to trigger
Implement a select for the members using the "UsersInProjects" table
Post the information into the database and ensure the newly added task is displayed.

Also, really great job on the tasks page before, looks really nice!
Figma Link: https://www.figma.com/team_invite/redeem/m7USct7pyXUSdm1R6BbS9B

try this
https://cdn.discordapp.com/attachments/1277836331501883449/1280291965879193731/fix.zip?ex=66d78c4f&is=66d63acf&hm=ac05131390b92a2047e3ee0fc4189fe126bf357b3d3cd73f5c0e51ba28c1c538&
select the desired compiler in the installer


Add support of local AI models.

Are you thinking something like sending a request to a ollama local host endpoint?

Absolutely. Also, litellm is an option. As I saw code, this isn't really hard task.

Yes it shouldn't be that hard, I'll try it out and see what model can handle the job with reasonable latency.

I've tried using llama 8B locally, it's doable but the latency can easily go up to 10s+ for a simple task. Not sure if that will be a pleasant UX. But I'll still work on adding an option to input port and model name for local models.

I will try it on my hardware

I've just merged a PR #79  with local model settings. I've tested it with ollama. Not sure how much settings is needed for different endpoints.

I found a few issues with the extension:

Manifest File:
In youtube-addiction-rehab-chrome-extension\chrome-extension\manifest.js on line 24, replace http://localhost* with http://localhost/*. It raises this error:

Local Models Dropdown:
The extension should list all available local models in the "Choose a model" dropdown. List local models: http://localhost:11434/api/tags

Popup Error Message:
Sometimes, the following error message appears in the popup while using a local model:

⬅ Please set up your API key in the settings.

Model Performance:
The model typically takes about 2-5 seconds to respond. When using tinyllama instead of llama3.1:8b, tinyllama generates Python code for no reason 🤣.

System Prompt:
Properties like id and reason should be enclosed in double quotes. But in system prompt they aren't.

My Suggestions:

If the extension cannot parse JSON properly, it should retry the request up to three times. If it still fails to receive a valid response, it should fall back to the default Youtube recommendations.

The "reason" field may not be necessary, as it can increase model response time.


Moving mouse over blue upgrade status makes text unreadable

Version - master 2/24
Steps to Reproduce:

Make sure you are on Light theme
Create a service
Click on upgrade
While it's Upgrading, move your mouse over the "Upgrading" status

Results: the text on the blue upgrading status dissapears

Expected: should still be able to read text.
Comment:  Might want to check dark theme.  I can read the text but not sure if this is what you wanted.

resolved in https://github.com/rancher/ui/pull/484

Version - master UI 3/3
Verified fixed


[BUG] Verify User Account Unlock：404 Error When Deleting Redfish Account in Teardown Due to SSH Connections Not Closed

Description: I'm encountering a 404 error when attempting to execute the Redfish.Delete request in the teardown phase of my test case.
URL: https://github.com/openbmc/openbmc-test-automation/blob/v4.0-stable/redfish/account_service/test_user_account.robot
Steps to Reproduce: Run the test case with the following teardown sequence:
[Teardown]       Run Keywords           Redfish.Logout         AND  Redfish.Login         AND  Redfish.Delete  /redfish/v1/AccountService/Accounts/test_user         AND  SSHLibrary.Close All Connections
The Redfish.Delete request results in a 404 error during the teardown phase.
Issue Analysis:
Manual deletion and tests using Postman work as expected without errors.
It seems that the issue arises because SSHLibrary.Close All Connections has not been executed yet. As the last line of the test case involves logging in with SSHLibrary.Login test_user TestPwd123, the account is still in use, which prevents its deletion.
Proposed Solution: Reorder the teardown steps to ensure all SSH connections are closed before attempting to delete the account. The revised order should be:
[Teardown]       Run Keywords           Redfish.Logout         AND  Redfish.Login         AND  Redfish.Delete  /redfish/v1/AccountService/Accounts/test_user         AND  SSHLibrary.Close All Connections
Additional Information:
1.Robot Framework 6.0.2 (Python 3.10.12 on Linux)
2.Attached are the logs for the failed tests and the logs for successful tests after applying the suggested solutions：

test_logs.zip

In the Verify SSH Login Access With Admin User test case, just like in Verify User Account Unlock, it's essential to terminate the SSH connection before attempting to delete the account.


NotImplementedError: The create_change_set action has not been implemented

When testing code which calls client.create_change_set decorated with @mock_cloudformation a NotImplementedError is thrown for the create_change_set action.

Thanks for opening! I'll add this as a feature request.
There are a lot of feature requests right now though so I can't make any promises on timing.

Much appreciated

This has been implemented in #1389

Thanks!!!


Visual ground representation of large quantities of items/money

Summarize your proposed improvement
For all quantity component items show visual-only clones of the items to create piles or other visual indicators of "large" amounts. These should probably be local and toggleable through a client setting so weak pcs can choose the "simple" representation.
On the quantity component, different visual stages could be configured with re-useable "arrangement" configs that describe relative offsets of additional "clones" or any supporting visual elements like a box or bag around them if needed. With a few configs for similar-sized items, this should not cause too much additional work to support future items with that either.
Why is this needed?
Following the introduction of cash in #182 one visual enhancement arises from how quantities of items dropped on the ground are represented. Normally in vanilla, each individual item would lay on the ground, but with the virtual quantity, only one "physical" item is visible. Displaying a "pile" of the same item if there are more of it instead of just one would make it easier to judge the number of visible items.
Describe alternatives you've considered
In theory, it would be possible instead of creating multiple instances of the same mesh, to create a "pile" or "many inside a box" mesh that is used for visual representation, but that would require at least two variants of each item.
Add any other context or screenshots about the request here.
An example with cash:

⏬

⏬

⏬

Issue will be taken into account in solve #201


Removed deprecated methods

Thanks!

Is this merge ready?

Thanks for making this change! This will help me as well with some warnings

👍

Perfect. Will make sure to test it tomorrow!

Thanks for the contribution and making sure this is updated for the latest react + rn releases

This PR seems to break the values that are passed back in the callback onValuesChangeFinish.
This is because the state of valueOne and valueTwo in reset to the initial values passed in from the props, because getDerivedStateFromProps gets called before this.props.onValuesChangeFinish can be called.
@ptomasroos I think this should be reverted because it's not tested at all

Thanks for that. I Will try to resolve it rather since the methods are deprecated!

I have a few mins to look into it now. Will make a PR if I get it solved!

Thanks @FrikkieSnyman 👍

@mitaxe can you define valueOne const {valueOne} = state here: http://snpy.in/jS8rVb

@sytolk resolved in #163


[#1563] Fix undertow plugin

#1563

Codecov Report

Merging #4475 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #4475      +/-   ##
==========================================
- Coverage   40.47%   40.46%   -0.01%
==========================================
  Files        2509     2509
  Lines       76348    76345       -3
  Branches    10369    10369
==========================================
- Hits        30901    30894       -7
- Misses      42613    42617       +4
  Partials     2834     2834

Impacted Files
Coverage Δ

...eptor/ConnectorsExecuteRootHandlerInterceptor.java
0% <0%> (ø)
:arrow_up:

...p/pinpoint/rpc/client/WriteFailFutureListener.java
56.25% <0%> (-18.75%)
:arrow_down:

...pc/server/LoggingServerMessageListenerFactory.java
90% <0%> (-10%)
:arrow_down:

...ofiler/sender/StandbySpanStreamDataSendWorker.java
80.59% <0%> (-2.99%)
:arrow_down:

...m/navercorp/pinpoint/test/OrderedSpanRecorder.java
72.11% <0%> (-1.93%)
:arrow_down:

...pinpoint/profiler/monitor/DeadlockMonitorTask.java
19.76% <0%> (+1.16%)
:arrow_up:

...tor/metric/datasource/DefaultDataSourceMetric.java
78.78% <0%> (+3.03%)
:arrow_up:

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 a029b47...cbe1bf6. Read the comment docs.


Doesn't update host /etc/hosts

Hello,
I'm having problems with hostupdater updating the hosts file on my Mac. I'm on OS X 10.11.6 with current versions of Vagrant and VirtualBox. The host file on my Mac is owner: root and group: wheel and I've been told it's not a great idea to change the ownership of the hosts file.
This is what's in my Sudoers file:
Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/env sed -i -e /*/ d /etc/hosts %wheel ALL=(ALL) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE
Thanks,

@openbayou try the newest version and if it doesn't work I can reopen the issue.


[UI] Enhance 'Add Token to Wallet' Process in the Faucet

Is your UI update related to a problem? Please describe.
Currently, after successful fund requests on the EVM via the faucet, users are presented with an Add token to Metamask button. Upon clicking the button, the added token goes into Metamask. However, if users open their Metamask wallet, they may not see their balance because the active chain on Metamask does not match the chain of the requested fund.
Describe the solution you'd like (include image or link to prototype)
To alleviate this issue, the faucet should first prompt users to switch to (or add) the chain from which the funds were requested before adding the new token. This way, users should be able to see their requested balance.
We could provide a series of steps or tasks in the subsequent modal for users to follow to view their balance in Metamask. For instance:

Connect to your web3 wallet.
Switch to or add the Tangle chain to your wallet.
Add the webbtTNT token to your wallet.

Technical considerations
While this solution would necessitate checks for wallet connection, among other wallet-related elements, it's worth noting that the Add token to Wallet function is only compatible with EVM wallets. Therefore, we might consider using wagmi to streamline this process.

After user has connected to the correct MetaMask wallet account, and selects 'Switch to Tangle Testnet on MetaMask' , can we run a check for Tangle Testnet configuration and fetch if it is available, and/or if the switch fails from chain ID, we prompt the user to add Tangle Testnet directly on MetaMask (shown here)?


Unified the way current master / grid is required

Instead of:
def execute
  require_api_url
  token = require_token
  client(token).get(foofoo)
end

There now is:
class FooCommand < Kontena::Command
  requires_current_master

  def execute
    client.get(foofoo)
  end
end

Which will also add this to the help:
Usage:
    kontena service list [OPTIONS]

  Requires current grid: This command requires that you have selected a grid as the current grid using 'kontena grid use', by setting KONTENA_GRID environment variable or using the --grid option.

  Requires current master: This command requires that you have selected a current master using 'kontena master login' or 'kontena master use'. You can also use the environment variable KONTENA_URL to specify the master address or KONTENA_MASTER=master_name to override the current_master setting.

The help text may be a bit much, perhaps it should only show "Requires current master" and no further explanation.
Also modified GridOptions to use env KONTENA_GRID as an alternative way of passing '--grid'.
Also changed a bunch of client(token).post... lines to client.post... (client defaults to current master + current_master.token)

:+1: on this refactoring, the current CLI is a mixture of explicit-token vs implicit-token client etc. See also #1747

Assigning for conflict fixes.

Please close this PR if it's too far out of date to update.

Too far out of date.


Lookup proof optional optimization

In the case of a lookup proof, generally we're normally doing up to N = depth(Merkle Tree) requests to preload the nodes for the proof. However this is still like 30+ queries on moderately sized trees (e.g. ~2B nodes)
In this PR, we introduce an optional optimization which will build all 256 labels which could be on the path from the root node to the intended leaf and try a single batch-get with all of them.
A lookup proof's LookupInfo needs 3 target labels to retrieve, so we're actually doing 3 * 256 node retrievals, but in a single query which is still often more optimal due to DB round-trip accesses than 32 targeted node requests.
After the first direct-path load for the 3 necessary targets, we then do a second batch-get of all of those node's children (which will only load the found node's children that aren't already in-cache) which gives us all of the sibling nodes to generate the necessary proof.
Additionally this PR fixed a bug in batch-loading tree nodes, where instead of just not adding not-found results to the result set, it was crashing the batch-get with a TreeNode not found error. Our normal batch-get operations don't error on not-found results, so this was causing some flows to fail (incl a local test, which I'm surprised slipped through).
Lastly a small optimization as well, where in bulk lookup proofs, we were preloading multiple times. Once in the batch-operation, and then again for each individual proof which is just wasted cycles since it should all be cached anyways. This removed the second loop of preloads by passing a flag to the internal operation to skip the internal preload.

Added another optimization, where we can check the cache for nodes in the path which are already loaded, further reducing the number of nodes we're requesting to fetch. In the original greedy request, you can see we're trying to regularly load ~800+ nodes in our toy sample, where with this optimization it is only that value in the worst-case, where in actuality we're loading far less (just the full-path on the bottom of the tree)
Screen cap from (left) this new optimization and (right) just the original greedy fetch. This shows that as the proofs generate more and more proofs, we end up having to fetch less nodes meaning only lower-levels of the tree.


Feature request: Target by coverage

For example, I could specify that I wanted to target browsers that cover e.g. 90% of users, and we'd return a list covering browsers that combined cover >= 90%. (Probably a greedy algorithm where we keep adding the most used browsers until coverage hits or surpasses the target?)
Possible syntax: coverage >= 90%

There is many way how we can combine browsers to fit 90%. I think this query is too tricky will make codebase and docs more complicated.
Do you have practice reason for it?

Just a nice-to-have. Good point, though.

Couldn't you just query with the percentage usage until you meet the desired coverage? With some clever math it shouldn't take that many queries to meet the threshold.
Eg. "coverage >= 90%" leads to querying "> 0.5%", that returns 85%, you query again ">0.25%", that returns 89%, you query again "> 0.2%", etc. until you cross the 90% threshold.
You are thus objectively picking the top browsers according to usage, until you meet the coverage requirement.

cover 90% and cover 90 % in US was added by @Vasfed and released in 3.2


Create CLI that can convert sb3 to leopard or leopard-zip

Closes #128. Allows importing a .sb3 file and generating a leopard folder or zip directly from the CLI. I haven't implemented .sb3 output yet for the sake of time/effort. (And because .sb3 is currently the only allowed input method so it would be mostly useless.)
Example output:

I also did my best to make the errors look nice:

@towerofnix Fixed the issue you mentioned. I also noticed that the wcwidth package was not actually counting chalk string widths correctly, so I replaced it with a "stripAnsi" function that does the job. With your approval, I think this is ready to ship.


[Feature Request] Allow parallel protocol discovery

Today, trippy allow the usage of icmp, udp or tcp for the path discovery.
I would suggest a mode "all" to launch the discovery in parallel to have faster output.
I use this tool today to achieve this : flyingroutes

I was too short in my use case description indeed. The interest was mainly in a corporate environment where you may need to switch protocols depending on how the network/firewall is configured. It requires in this case to see which protocol is "working".
Reading the code, the project asynchronously send the differents UDP/TCP/ICMP packets and aggregate the ICMP answers to create the answer graph.


Object detection-Azure: Predicted failed and the generated projects are also running failed.

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: <IP_ADDRESS>6001 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.5.5)
.Net: 6.0, 7.0
Describe the bug

On which step of the process did you run into an issue:
Predicted failed and the generated projects are also running failed.

TestMatrix
To Reproduce
Steps to reproduce the behavior:

Select Create a new project from the Visual Studio start window.
Choose the C# Console App (.NET Core) project template.
Add model builder by right click on the project.
Select "Object detection" scenario.
Choose "Azure" environment and data source to complete the training.

Go to the Consume page, click "Add to solution" button to generate Console App and Web API projects.
Run the generate Console App and Web API projects, they are running failed.

Expected behavior
Predicted successfully and the generated projects are also running successfully.
Screenshot

Additional context

The bug has been fixed on the latest main build <IP_ADDRESS>6803.


Multi-architecture support

Adds multi-architecture support to build-debezium for AMD64 as well as ARM64
The only image that does not work is debezium-ui - but before I go putting effort into either fixing that or working around that, I'd like to know if this type of change would be worth it to the maintainers.

Reading further into docs and various docker PRs, multiarch build is actually supported only with the use of --push and registry. Which means more of the build script needs to be modified.

Closing in favour of more progressed #302


Add Upcoming Events section to Home page

See the Figma file Link Link Figma
And Only build the Upcoming Events section now!

This is also done.


No code size difference between MicroInterpreter and AllOpsResolver

@tensorflow/micro
Hi,
I do not see any code size reduction while using microInterpreter with a selection of usefull operators versus the full ops list.
For a quite simple network the code size for TFlite runtime is 160KBytes. Which is quite huge compared to what it claims (16KB for CM3!).
Can you explain this behavior?
Thank you,
OC
System information

Host OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Unbuntu 1804
TensorFlow installed from (source or binary): Anaconda
Tensorflow version (commit SHA if source): 2.4.1
Target platform (e.g. Arm Mbed OS, Arduino Nano 33 etc.): tflite micro

Description of the problem
My TFLITE model is a 12 layers network of 52000 bytes obtained with full integer (int8) quantization.
All application code, except TFLite stuff is around 8KBytes. TFLite code is around 160KB.

"Full" operators version is done with:
static tflite::AllOpsResolver resolver;
static tflite::MicroInterpreter static_interpreter( model, resolver, tensor_arena, kTensorArenaSize, error_reporter);

=> Code size:
.text                164818
.rodata              124764

"Reduced" version
static tflite::MicroMutableOpResolver<5> micro_op_resolver;
micro_op_resolver.AddConv2D();
micro_op_resolver.AddDepthwiseConv2D();
micro_op_resolver.AddAveragePool2D();
micro_op_resolver.AddReshape();
micro_op_resolver.AddFullyConnected();
static tflite::MicroInterpreter static_interpreter(model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter);

=> Code size:
.text                165442     (Even bigger!)
.rodata              124816
** Compilation **
Compilation of code is done with linux gcc
Flags:
-Os
-DTF_LITE_STATIC_MEMORY
-DNDEBUG
-DTF_LITE_DISABLE_X86_NEON

I have a smiliar problem. I want to implement it to arm, so I am using ARM compiler. When I tried to compile the helloworld example from tflite micro, it gives me a hex file for over 300KB...

@ocaff1
Please share simple stand alone code or a colab gist with the issue reported.

Hi,
The issue is solved when using a static lib.
All unused objects are then removed at link for the code with MicroMutableOpResolver.
=> Code size
.text                 51874
.rodata             61320
My mistake was to compile all the tensorflow sources with application ones. I though compiler/linker was able to remove the unused part automatically. It seems not.
OC.

@ocaff1
Please move this issue to closed status as its resolved.


disable g:header_auto_add_header for some files

hi,
im writing a website with jekyll and i use vim and vim-header, and i have g:header_auto_add_header set to default value (which is 1), no big deal for every files.
however, jekyll doesnt like to have comments before its markup.
my question is: is it possible to disable vim-header for some files? or there's a work around?
in the meantime, i have the headers, close vim and use vi to remove them manually.
i hope im clear enough.
thank you

I think it is not an issue any more, as vimrc native options handle it

Hey y'all, I found this because I'm trying to do exactly this for "markdown" files (*.md) and... i don't seem to be able to get it to take.
I've tried to add the following to my ~/.vimrc but neither work:
au BufNewFile,BufRead *.md let g:header_auto_add_header=0

augroup header
  autocmd!
  autocmd BufNewFile,BufRead *.md,.vimrc
    \ let g:header_auto_add_header = 0 |
    \ let g:header_auto_update_header = 0
augroup end

Any idea / suggestion?


Revert datablob change from manager/store for metadataStore

Revert data blob change

Coverage decreased (-0.5%) to 59.202% when pulling 0b85c98a53542ad43e443ca0bb6c22a2684b52c1 on anish531213:aanish/metadataStore/revert into 923b7a729c3b81aa73f27556cb659f1053c8adfa on uber:master.


⚠ Issue: githubpages - broken links

I am following all the instructions to publish the site on github pages. deployment occurs, but absolutely all links are broken. You can check the hosted site based on the official portfolio template at https://ya-lops.github.io/art-i/

Hi @ya-lops,
Try these to see if it works:

Set site and base in astro.config.mjs

export default defineConfig({
  site: 'https://ya-lops.github.io',
  base: '/art-i',
});

Prefix internal links with the base /art-i/

// Before
<CallToAction href="/work/">...</CallToAction>

// After
<CallToAction href="/art-i/work/">...</CallToAction>

Reference: Deploy your Astro Site to GitHub Pages

Try these to see if it works:

Set site and base in your....

I completely forgot about it. Thank you. helped!


how to change global state not based on onIndexChange which is slow

onIndexChange is called only after animation is finished and some time passes. I guess this is intended.
I'm looking for a way to update other component (in other place of the react tree) with the requested index. Something similar to TabBar changing view with swiping, just somewhere else.
For that i'll need the props passed to TabBar passed in events - onPositionChange for example.
current behaviour looks slow\buggy - only after swipe ended the other component updated.
thanks

Hey, I just released a new alpha 2.0.0-alpha.0 of the library. It's rewritten using react-native-gesture-handler and react-native-reanimated addresses a many platform specific bugs and performance problems. The documentation is updated as well.
Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template.


Stream not having any match (while it should)

Hi,
I am not sure if I post at the good place so please let me know if I should move this post somewhere else.
I have a little console tester application that allow me to test a piece of code before including it in my main app. Regarding a twitter stream the code look like this:
        static void Main(string[] args)
        {
            Auth.SetUserCredentials(CREDENTIALS);

            // Access the filtered stream
            var filteredStream = Stream.CreateFilteredStream();
            filteredStream.AddTrack("#ComeTogether"); //this is the twitter trending hashtag at time of execution
            filteredStream.MatchingTweetReceived += (sender, argsstr) => { received(argsstr); };
            var StreamThread = new Thread(() => filteredStream.StartStreamMatchingAllConditions());
            StreamThread.Start();

        }

        static void received(MatchedTweetReceivedEventArgs TweetReceived)
        {
            Console.WriteLine(TweetReceived.Tweet.Text);
        }

This works perfectly fine. But when I put it in my main app, there is no more tweet received for the same hashtag (actually a list of 13 hashtags + the current trending one to be sure to receive something). My code looks like this:
        /// <summary>
        /// RunStream will create a twitter stream in a dedicated thread to handle tweets gathering
        /// </summary>
        /// <param name="SearchCriterias">Search criterias (string criteria, int idunderlying) </param>
        public void RunStream(List<streamParameters> SearchCriterias)
        {

            if (SearchCriterias.Count > 0)
            {
                TwitSetCredentials();
                for (int i = 0; i <= SearchCriterias.Count - 1; i++)
                {
                    MainStream.AddTrack(SearchCriterias[i].StreamCriteria);
                }

                MainStream.MatchingTweetReceived += (sender, args) =>
                {
                    ReceivedTweet(args);
                };

                // TODO switch to TPL (Task Pool Library)
                Thread StreamTask = new Thread(() => MainStream.StartStreamMatchingAllConditions());
                StreamTask.Start();
            }
        }

        /// <summary>
        /// Root function of the tweet analysis algorithm
        /// </summary>
        /// <param name="TweetReceived">tweet received</param>
        public void ReceivedTweet(MatchedTweetReceivedEventArgs TweetReceived)
        {
            //DO STUFF
        }

Here, ReceivedTweet never got called.
Note that the whole thing works with AvalonDock as a window manager (in case there is some known issues) which is basically the only big third party reference used. I also controlled my console app with more than one Hashtag, and it still works fine.
Any guess on what I am doing wrong?
Any help would be greatly appreciated. Thanks in advance.

Hello,
There has been a new release (<IP_ADDRESS>) of Tweetinvi during the night. Would you please confirm which version of Tweetinvi you are using?
Also would you please let me know which type of project this code is not working on.
And finally, do you have multiple streams running at the same time?
Cheers,
Linvi

Hi Linvi,
I will confirme the exact version in the evening but  I am using the last version available on NuGet (I tried to update before my initial post but I was up to date). I think its the <IP_ADDRESS> but I'll confirm later.
I am not sure what you mean by "type of project" but basically I am using AvalonDock as a window manager. At the moment of execution it is loaded with one tool window very basic (one treeview and a toggle switch button that command the stream).  I also have references to Oxyplot (chart library) but nothing was loaded from that at the moment.
All the data (to construct the treeview, find the stream parameter, save the results, populate the charts if needed,....)  is hosted in a sql server 2008  r2 database that I access using Entity Framework.
Regarding the number of stream: just the one mentionned. Note that I test my main app with minimal other functions called (only the loading of  AvalonDock and the window used to command the stream as said earlier).
I try with a task instead of a threaf with the same lack of results. I will try without creating any of those to see if I have more luck.
Cheers

I was asking if the application was a WPF, Windows 10 Universal App, Windows Phone, ASP.NET...
The fact that you are using Avalon suggest that you are using WPF but can you confirm this?
I will investigate this issue when I have some available time.

Indeed its WPF

Linvi, I updated to <IP_ADDRESS> but I still got the same issue. I will create a new WPF app and gradually build it up to something similar to what I have and test it at every step. I will communicate when it stops working.

Sorry for not replying earlier, it was quite a busy day. I have just verified and I have successfully run a FilteredStream in WPF.
Please keep me up to date.

Hi Linvi,
I may have found something.
From a console app or a "blank" WPF app :
If I don't use threading, the method I call with MatchingTweetReceived must be static and can be either public or private.
If I use a thread, it needs to be static and private (quite the opposite of what I had in my app).
On my app though I still have something that bugs.

Please share your code, this is very hard to understand with words!!!

I kept on looking and anyway I was not fully right before. So with the code:
Assume that I have a blank new WPF project with only a button on my MainWindow.xaml
        private void Button_Click(object sender, RoutedEventArgs e)
        {
             Auth.SetUserCredentials(CREDENTIALS);

            // Access the filtered stream
            var filteredStream = Stream.CreateFilteredStream();
            filteredStream.AddTrack("#JACOBWIRED2015");
            filteredStream.AddTrack("#ComeTogether");
            filteredStream.MatchingTweetReceived += (sendertwt, argsstr) =>
            {
                received(argsstr);
            };
            var StreamThread = new Thread(() => filteredStream.StartStreamMatchingAllConditions());
            StreamThread.Start();
            StreamThread.IsBackground = true;
        }

        private void received(MatchedTweetReceivedEventArgs TweetReceived)
        {
            //DOSTUFF
        }

received is not called without the StreamThread.IsBackground = true; or if received is public instead of private.
On my main app, it was both without the IsBackground and with a public method. However, even if I fix this, it still does not work.

I would personally not do it this way. The reason is that you are creating a FilteredStream is a function that is invoked and finished right away.
As there is no external reference to the var filteredStream, the Garbage Collector will be free to collect the Stream. It will therefore result in the stream to be stopped.
Instead of doing this I would rather store the filteredStream as a private member of your class.
private ISampleStream _sampleStream;

public MainWindow()
{
    InitializeComponent();

    var dispatcher = Dispatcher;

    Auth.SetUserCredentials(...);
    _sampleStream = Stream.CreateSampleStream();
    _sampleStream.TweetReceived += (sender, args) =>
    {
        dispatcher.BeginInvoke(new Action(() =>
        {
            textBox.Text += args.Tweet.ToString();
        }));

    };
}

private void button_Click(object sender, RoutedEventArgs e)
{
    _sampleStream.StartStreamAsync();
}

private void button1_Click(object sender, RoutedEventArgs e)
{
    _sampleStream.StopStream();
}

As a matter of fact, the stream in my main app is stored as a private member of my class. So the Garbage Collector should not be the reason of my issue.

Does the code I sent to you work in WPF? This is how I would do it personally.

Linvi,
I adapted a bit your code to use it with a filtered stream (as I had no answer from the samplestream).
public partial class MainWindow : Window
    {
        private IFilteredStream _Stream;

        public MainWindow()
        {
            InitializeComponent();

            var dispatcher = Dispatcher;

            Auth.SetUserCredentials(...);
            _Stream = Stream.CreateFilteredStream();
            _Stream.AddTrack("#preorderpurpose");
            _Stream.AddTrack("#TheVoiceBrasil");
            _Stream.AddTrack("#AHSNoFX");
            _Stream.AddTrack("#aldubthirdmonthsary");
            _Stream.AddTrack("#buyconfidentalbumonitunes");

            _Stream.MatchingTweetReceived += (sender, args) =>
            {
                dispatcher.BeginInvoke(new Action(() =>
                {
                    textBox.Text += args.Tweet.ToString();
                }));

            };
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            _Stream.StartStreamMatchingAllConditionsAsync();
        }

    }

This doesn't give me one hit, while using the same hashtags in my console tester gives me tens per seconds

Ok, the fact that even the SampleStream does not return anything implies something is really wrong with the connection.
Would you please verify that no error is being raised?
var _Stream = Stream.CreateFilteredStream();
_Stream.StreamStarted += (sender, args) =>
{
    // Verify that this handler is called!
};

_Stream.StreamStopped += (sender, args) =>
{
    var exception = args.Exception;
    var disconnectMessage = args.DisconnectMessage;

    // Verify if you have any information in either of these variable
};

Hi Linvi,
I added your code in my app and there is indeed an exception:
Message = "Object reference not set to an instance of an object."
Source = "Tweetinvi.WebLogic"
StackTrace = "at Tweetinvi.WebLogic.TwitterClientHandler.SendAsync(ITwitterQuery twitterQuery, HttpRequestMessage request, CancellationToken cancellationToken) at Tweetinvi.WebLogic.TwitterClientHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption) at Tweetinvi.Streams.StreamTask.d__28.MoveNext()"
Let me know if you need more information. I will on my side start again looking from a blank WPF to an equivalent to my main app at which stage it start to bug (not sure when though I will have time though).

If it can help here is a larger code extract to show what I have:
From the View Model:
namespace TechnicalAnalyzer.Controls.Tools.Exchange
{
    public class TreeviewViewModel : DependencyObject
    {
private TwtCommand TwtCmd = new TwtCommand();

        private bool _streaming = false;
        public bool streaming
        {
            get { return _streaming; }
            set
            {
                if (value != _streaming)
                {
                    _streaming = value;
                    //TODO run or pause the stream
                    if (_streaming)
                    {
                        TwtCmd.StartStream();
                    }
                    else
                    {
                        TwtCmd.StopStream();
                    }
                }
            }
        }
    }
}

The in the TwtCommand
namespace TechnicalAnalyzer.Data.Twitter
{
    class TwtCommand
    {
        private IFilteredStream MainStream;
        List<streamParameters> Criterias = new List<streamParameters>();
        int tester;

        public void StartStream()
        {
            if (MainStream == null)
            {
                MainStream = Stream.CreateFilteredStream();
            }
            var dbcmd = new DbCommand();
            Criterias = dbcmd.GetStreamingCriterias(); // This reads my database using EntityFramework to return the list of parameters
            RunStream(Criterias);
        }

        public void StopStream()
        {
            MainStream.StopStream();
            MainStream.ClearTracks();
        }

        private void RunStream(List<streamParameters> SearchCriterias)
        {

            if (SearchCriterias.Count > 0)
            {
                Auth.SetUserCredentials(...);
                //TwitSetCredentials();
                for (int i = 0; i <= SearchCriterias.Count - 1; i++)
                {
                    MainStream.AddTrack(SearchCriterias[i].StreamCriteria);
                }

                MainStream.MatchingTweetReceived += (senderTwt, argsTwt) =>
                {
                    ReceivedTweet(argsTwt);
                };

                MainStream.StreamStarted += (senderTwt, argsTwt) =>
                {
                    tester = 1;
                };
                ExceptionHandler.SwallowWebExceptions = false;
                MainStream.StreamStopped += (senderTwt, argsTwt) =>
                {
                    var exception = argsTwt.Exception;
                    var disconnectMessage = argsTwt.DisconnectMessage;
                    tester = 2;
                };

                Thread StreamTask = new Thread(() => MainStream.StartStreamMatchingAllConditions());
                StreamTask.Start();
                StreamTask.IsBackground = true;
            }
        }

        private void ReceivedTweet(MatchedTweetReceivedEventArgs Tweet)
        {
            //DO STUFF
        }
    }
}

Wait a second here, are you using Tweetinvi version 0.9.10 or Tweetinvi <IP_ADDRESS> with this code?

0.9.10. But in order to be sure I just uninstall and reinstall it fully with NuGet ==> Same issue.

With the dispatcher code that you provided, and on my blank WPF, I have a different exception. Here is the code
namespace TweetinviTester
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private IFilteredStream _Stream;

        public MainWindow()
        {
            InitializeComponent();

            var dispatcher = Dispatcher;

            Auth.SetUserCredentials(...);
            _Stream = Stream.CreateFilteredStream();

            _Stream.AddTrack("#preorderpurpose");
            _Stream.AddTrack("#TheVoiceBrasil");
            _Stream.AddTrack("#AHSNoFX");
            _Stream.AddTrack("#aldubthirdmonthsary");
            _Stream.AddTrack("#buyconfidentalbumonitunes");

            _Stream.MatchingTweetReceived += (sender, args) =>
            {
                dispatcher.BeginInvoke(new Action(() =>
                {
                    textBox.Text += args.Tweet.ToString();
                }));

            };
            int tester;
            _Stream.StreamStarted += (senderTwt, argsTwt) =>
            {
                tester = 1;
            };
            ExceptionHandler.SwallowWebExceptions = false;
            _Stream.StreamStopped += (senderTwt, argsTwt) =>
            {
                var exception = argsTwt.Exception;
                var disconnectMessage = argsTwt.DisconnectMessage;
                tester = 2;
            };
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            _Stream.StartStreamMatchingAllConditionsAsync();
        }

    }
}

Here is the exception (which is not immediately triggered, contrary to the one I post earlier on my main app):
Message = "A task was canceled."
Source = "Microsoft.Threading.Tasks"
argsTwt.Exception.StackTrace = "   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Tweetinvi.Streams.StreamTask.d__28.MoveNext()"

I have just copied the exact same code and this is working properly for me.
As a result would you please tell me which version of the .NET Framework you are using.
Also you told me that the stream is working properly in a console, are you testing the Console App from the same computer?
You can find my test example here:
https://github.com/linvi/tweetinvi/releases/download/untagged-d1672a03d9b58527131f/WpfApplication1.zip

Is the solution working for you?

I will try to check in the afternoon.

Linvi,
The link gives a 404.
Just to be sure I started a new WPF from scratch and I still got the same error. I am using the .NET Framework 4.5, and the console is run from the same computer
I run the code from an other computer and got this error:
Message = "Object reference not set to an instance of an object"
Source = "Tweetinvi.Factories"

I will have a look into this. By the way the link works properly for me. Please try again to download it form Github directly (not from email).

I manage to download it. I see that you use the .Net Framework 4.5.2, while I am using 4.5. I will update my framework and check.

I updated to 4.5.2 ==> same issues.
I tried your file, with the 4.5.2 ==> same issues.
The exception remains different whether I am testing it on my laptop (A task was canceled) or on my desktop (object not set to an instance of an object).
For now I will adapt a console app to work in background and feed my database. Maybe I have something not properly installed or whatever on both of my computers. Don't quite get what it could be though. Unfortunately if you can't reproduce the exception, it may be hard to debug it :)

I manage to fix the tester app (will try on my main app later). The good news is that it doesn't come from your code. Though I still don't understand why it was buggy: I regenerated all my credentials (Access token, key, consumer secret, key) and now the testing app work.

Hi Linvi,
So here is what I can say following my try to reproduce my main app (more or less) starting from the WPF app you provided. It seemed there is a lot of things that go wrong but I will ended up fixing everything like this.
1/
Exception can be raised on your WPF depending on the Tracks that I put on my stream: current top trends will generally trigger a “a task was cancelled” exception. Ex: if I use the Tracks as set initially in the WPF it works fine. If I put the first two or three keywords trends (as seen on http://trends24.in/) I trigger the exception, prior to receiving any tweets.
2/
I put the credentials in my App.config such as
<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
    </startup>
  <appSettings>
    <add key="ACCESS_TOKEN" value="…" />
    <add key="ACCESS_TOKEN_SECRET" value="…" />
    <add key="CONSUMER_KEY" value="…" />
    <add key="CONSUMER_SECRET" value="…" />
  </appSettings>
  <runtime>
…
  </runtime>
</configuration>

And access it using
Using System.Configuration
…..
public void SetCredentials()
        {
            Auth.SetUserCredentials(ConfigurationManager.AppSettings["CONSUMER_KEY"],
                    ConfigurationManager.AppSettings["CONSUMER_SECRET"],
                    ConfigurationManager.AppSettings["ACCESS_TOKEN"],
                    ConfigurationManager.AppSettings["ACCESS_TOKEN_SECRET"]);
        }

And adding a reference to System.Configuration.
I now again got an exception “The task got cancelled” using a list of tracks that were giving good results prior to changing my way of setting the credentials
It seems that the exception is raised as long as I don’t delete the keys in my App.config
As this is still not enough to fix my main app I’ll keep looking and will let you know.

Hi again, tonight I had a user with a similar issue #64 as you can see above and we did a live conversation concerning the issue and it took around 5 minutes to identify what was wrong with the code.
Would you be up to do this?

linvi,
On my tester app, passing the credential still raise a task got cancelled exception if I try the top trend hashtag as sourced from http://trends24.in/
Here's my code

        public MainWindow()
        {

            InitializeComponent();

            var dispatcher = Dispatcher;

            _Stream = Stream.CreateFilteredStream();
            _Stream.Credentials = new TwitterCredentials(cred);
            _Stream.AddTrack("#itunes");

            _Stream.MatchingTweetReceived += (sender, args) =>
            {
                dispatcher.BeginInvoke(new Action(() =>
                {
                    textBox.Text += args.Tweet.ToString();
                }));

            };

            ExceptionHandler.SwallowWebExceptions = false;
            _Stream.StreamStopped += (senderTwt, argsTwt) =>
            {
                var exception = argsTwt.Exception;
                var disconnectMessage = argsTwt.DisconnectMessage;
            };
        }

        private void button_Click(object sender, RoutedEventArgs e)
        {
            _Stream.StartStreamMatchingAllConditionsAsync();
        }

Here, #itunes will work fine. On the other hand, using what I see on http://trends24.in/ (ex now, #DemiNoBrasil) will trigger the exception.

It also seem that the list of hashtag from my Main App is what triggers the exception. When I deploy this list on my tester app it raise the exception. Here's the list
            _Stream.AddTrack("#freemobile");
            _Stream.AddTrack("#freebox");
            _Stream.AddTrack("#total");
            _Stream.AddTrack("#cacib");
            _Stream.AddTrack("#creditagricole");
            _Stream.AddTrack("#amundi");
            _Stream.AddTrack("#lcl");
            _Stream.AddTrack("#peugeot");
            _Stream.AddTrack("#orange");
            _Stream.AddTrack("#citroen");
            _Stream.AddTrack("#ds");
            _Stream.AddTrack("#engie");
            _Stream.AddTrack("#vallourec");

I honestly have doubts that this list should trigger many hits per seconds.

I will try this tonight. The issue only occurs on WPF project? Also is it happening with the project I gave to you?

It doesn't seem to bug from your code... kind of weird regarding that both are using the same sets of references, similar app.config and app.xaml, with same kind of code.

I didn't try the console app (which never had any issues even while the other apps did) and I don't work with other type of projects. Does the same on from the code you provided. I will anyway try again in the morning just to be sure that I didn't got banned for too many opening/closing of stream (even though I didn't tried more than 10 times)

So i started again from your code, which works fine, and edited the App.config to add some keys to later use them to recover the credentials :
<appSettings>
    <add key="ACCESS_TOKEN" value="..." />
    <add key="ACCESS_TOKEN_SECRET" value="..." />
    <add key="CONSUMER_KEY" value="..." />
    <add key="CONSUMER_SECRET" value="..." />
  </appSettings>

At this stage, and while I didn't yet made any changes to the code behind (except to put the trending hashtags) the code crash with the a task got cancelled exception.
If revert the app.config to its original state it starts working fine again.

Still from a working version of your code, if I add a reference to the "System.Configuration" library, it crashes too (and this without any other changes to your code, except the hashtags list).
If I revert the change (delete the reference) the app still crashes. Is there any chances that a file kept a reference to the System.Configuration library? If so how to fix? I will anyway try again in the evening just to clear the risk to have been blacklisted by Twitter for too many stream open and close attempt (even though I didn't exceeded 6)

Sorry, I have been quite busy yesterday and I might be today too but I will do my best to test this.

Hi there, so I have tested with the reference to the System.Configuration without being able to reproduce your issue.
Do you think you'd be able to share your project?

You can download the project here: http://dl.free.fr/getfile.pl?file=/ycR7IeQT
The page is in French, clic on "Valider et telecharger le fichier" (=Validate and download the file)
I just tested it now and it was not working.
As it seems to bug only when the set of Tracks trigger a lot of hits, be sure to replace the one in the project by the 3/4 first "trends" from http://trends24.in/

Linvi, did you manage to reproduce the issue using the project I shared? I didn't work much on this project lately, and anyway I will try to put it in a dedicated project in order to avoid any bad interactions with other reference I may use in my main app, still I am interested in understanding what is going wrong. Thanks

Hi, I am sure you have noticed I am quite slow to reply, as I currently have very little time.
I have not received any issue during my last tests but I will try again before I release a new version.
I will keep you up to date.

I am also getting same problem - a simple console application, trying to use filter stream, going through the same cycle of events as mentioned above.
I added event handler for json object received and from the message, it appears twitter is denying the request.
e.Json = Proxy Authorization Required
any clue what could be possibly wrong? I am using same authentication tokens in R and I can get the data from twitter in R.

@risingsudhir Are you sure you have the same issue as me? My problems come from the use of a reference to System.Configuration. I have no problem using a console app and solve my issue in my main app by transfering all the Twitter commands into a dedicated project (which only reference what's needed for Tweetinvi).

sorry, I mean the sequence of events. I am not referencing System.Configuration anywhere, neither using WPF application. Tokens are hard coded in the application.
Did you try binding an handler for JsonObjectReceived event?

For what it looks like, we are not talking of the same issue: everytging works perfectly on a console app for me. I think the best would be for you to create a dedicated topic, and post your code. Rgds

Hi there. I just wanted to let you know that the issue has potentially been fixed in the coming version <IP_ADDRESS>. I will keep you up to date when it is released.

To verify in next release

Sure let me know and thanks + happy new year

Hello there, I have tried your application without even changing the DLL version and everything is working as expected.

Please verify that you still encounter this issue with the latest version of Tweetinvi.
In the meantime I am closing this thread.


Allow the random value to be discarded

https://github.com/GValiente/butano/blob/8d16ff389b8888ecac12da42375d7aeb982fac83/butano/include/bn_random.h#L40
Would like to request that the [[nodiscard]] here be removed as it could be useful to progress the internal state of the RNG while ignoring the return value.

You can call bn::random::update() directly to progress the internal state of the RNG without getting the value.
https://gvaliente.github.io/butano/classbn_1_1random.html#af576b431d31a4cf348dfddf17b5b6526

Ah, I had completely missed that api. Thanks!


World factory

Currently spawning a world requires several transactions to deploy the contract + register systems + components
We should implement a world factory that does this atomically, taking as arguments a world name, systems, and components. Additionally, it should expose methods to update the canonical world and executor class hashes
trait WorldFactory {
    fn set_world(class_hash: ClassHash);
    fn set_executor(class_hash: ClassHash);
    fn spawn(name: felt252, components: Array<ClassHash>, systems<ClassHash>);
}

Hello there, may I try to take a stab at this one?

gm, i saw this issue as a good way to get into cairo 1 and dojo so i created a PR


mediaelementplayer on Wordpress site - mobile version

I have a Wordpress site that has a Video Player plugin called EVP (Easy Video Player).
The Wordpress theme uses mediaelement-and-player.min.js
On mobile the autoplay function of EVP plugin doesn't function because mediaelement-and-player.min.js
is overriding it. The video is paused with a large 'Play' button in the center of the video on iPhone.
I need autoplay to function correctly on iPhone.
Is there a way of disabling the function in mediaelement-and-player.min.js that is causing this?

Make sure you call
https://github.com/jaapmarcus/mediaelement-wordpress/blob/346c6eb612d6935ebe84fd92fd1961264b4ae8e3/media-element/media-element.php#L23-L24
And it should work fine. If Media Elements is hardcoded in the theme remove it from the them.
This probally an issue with Wordpress / Theme and not related to ME it self.

Make sure you call
https://github.com/jaapmarcus/mediaelement-wordpress/blob/346c6eb612d6935ebe84fd92fd1961264b4ae8e3/media-element/media-element.php#L23-L24
And it should work fine. If Media Elements is hardcoded in the theme remove it from the them.
This probally an issue with Wordpress / Theme and not related to ME it self.

Closing the issue because @jaapmarcus said the solution. If it turns out to be a problem with the mediaelementjs library, please reopen the issue.


Receive events from "shared" agents created by other users

Part of https://github.com/cantino/huginn/pull/1593
Still WIP, probably to be merged after https://github.com/cantino/huginn/issues/1659 and along with https://github.com/cantino/huginn/issues/1660 after writing some tests.
This adds

A database migration that adds a shared boolean field to Agent
Updates to the agent form to allow shared agents as sources
A /agents/shared route to show the publicly shared agents

@TildeWill mentioned that it might be better as a concept of an Organization that a user is a member of.  Would that work for the underlying case you're trying to handle?

Hmm yes, in very large installs with lots of users I could see the list of shared agents and events starting to get very unwieldy. Organizations would definitely work too, but would be more complicated to implement I think. How would you think about implementing that @TildeWill - as a many-to-many of a new Organizations model with Users?

@albertsun I was wondering if there's a fairly "cheap" way of doing this. By representing organizations as a subclass of the User class. User already have all the right relationships to events and agents, the Organization < User would then hold the relationship to all the users that are members of that organization.
You could then reuse your 'becomes' feature to impersonate the organization.
UI changes would then be fairly limited to

asking the user if they want to act as their self or as one of the organizations they're a member of
allowing for organization membership admin

I'm sure it's not really that straightforward when you actually get in there, but maybe it's a path you could explore.

I'd be worried that subclassing User to be Organization would ultimately add complexity, although I'm having trouble articulating why.  I was thinking Users would be members of Organizations through an OrganizationMembership class.

@TildeWill are you thinking a single table inheritance thing with a "type" field in the database - the same way that Agents have subclasses?
I'm more concerned about database complexity over time than about UI complexity. That seems potentially more vexing for future development.
For the issue of large numbers of shared agents becoming noise - do you think of that as a problem in the UI being too hard to use? Or is the concern about permissions and privacy where people will want their shared events to be seen by some people but not all?

@albersun, yes I was thinking of single table inheritance. It isn't my first choice usually, but I think it could make sense here. I'm picturing that the organization owns a set of agents, separate from the agents that the members of that organization own. As a member of the org, you can create/edit/delete agents in that org. If that's what you're going for then you still need some sort of common owner class, otherwise you end up checking if(self.user == null) return self.organization all over the place.
If however you're envisioning that there are no agents directly owned by the organization, and instead members of an organization can all share, for some definition of share, their agents and events, then I agree with what @cantino describes.

Ah got it, ok I hadn't realized that you were suggesting agents be directly owned by organizations. That makes sense to me as a possible way of doing it.
I guess a broader question that should shape how we do this is - how are most people using Huginn? How many users does the typical install have? And looking forward how many users do we envision a typical install having? I'd guess right now there are a bunch of single user installs, one or a small number with lots (~how many @TildeWill?) of public users, and a handful of organizational installs with a moderate number of users. That sound roughly accurate?

it's been a while, can we close this PR?

I think the actual code of this PR is probably not relevant any more, but I would still like to see the underlying idea of agents that can be used at an organizational level or somehow shared between users move forward, if it still seems useful to others.