text:
Nameserver limits were exceeded

Every pod in k8s has these warnings in the events log, but the pod runs okay. Is this a kube-ovn problem?
  Warning  MissingClusterDNS  10m (x1131 over 23h)  kubelet, THE.NODE.IP.HERE  pod: "metrics-server-697746ff48-krmpt_kube-system(43584748-5bba-439f-ad38-f3fa5277cfa6)". kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to "Default" policy.
  Warning  DNSConfigForming   83s (x1138 over 23h)  kubelet, THE.NODE.IP.HERE  Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 213.133.100.100 213.133.99.99 213.133.98.98

ovn pinger pod
 k describe pod kube-ovn-pinger-kf7xw
Name:         kube-ovn-pinger-kf7xw
Namespace:    kube-ovn
Priority:     0
Node:          THE.NODE.IP.HERE/ THE.NODE.IP.HERE
Start Time:   Wed, 30 Sep 2020 17:44:11 +0200
Labels:       app=kube-ovn-pinger
              component=network
              controller-revision-hash=85c5d4fd85
              pod-template-generation=1
              type=infra
Annotations:  ovn.kubernetes.io/allocated: true
              ovn.kubernetes.io/cidr: 10.16.0.0/16
              ovn.kubernetes.io/gateway: 10.16.0.1
              ovn.kubernetes.io/ip_address: 10.16.0.4
              ovn.kubernetes.io/logical_switch: ovn-default
              ovn.kubernetes.io/mac_address: 00:00:00:72:BD:05
              ovn.kubernetes.io/network_types: geneve
              ovn.kubernetes.io/routed: true
Status:       Running
IP:           10.16.0.4
IPs:
  IP:           10.16.0.4
Controlled By:  DaemonSet/kube-ovn-pinger
Containers:
  pinger:
    Container ID:  docker://3287f43814753350dd798bac8bba0329a5d7596c0dde41dc4092db76e06348e1
    Image:         kubeovn/kube-ovn:v1.5.0
    Image ID:      docker-pullable://kubeovn/kube-ovn@sha256:f7945ae1104ae631d56c5acb7158b023e6e36a723b9556ee5bd0a6ccfa21fd42
    Port:          <none>
    Host Port:     <none>
    Command:
      /kube-ovn/kube-ovn-pinger
      --external-address=114.114.114.114
      --external-dns=alauda.cn
    State:          Running
      Started:      Wed, 30 Sep 2020 17:56:24 +0200
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     200m
      memory:  400Mi
    Requests:
      cpu:     100m
      memory:  300Mi
    Environment:
      ENABLE_SSL:  true
      POD_IP:       (v1:status.podIP)
      HOST_IP:      (v1:status.hostIP)
      POD_NAME:    kube-ovn-pinger-kf7xw (v1:metadata.name)
      NODE_NAME:    (v1:spec.nodeName)
    Mounts:
      /etc/openvswitch from host-config-openvswitch (rw)
      /lib/modules from host-modules (ro)
      /run/openvswitch from host-run-ovs (rw)
      /sys from host-sys (ro)
      /var/log/openvswitch from host-log-ovs (rw)
      /var/log/ovn from host-log-ovn (rw)
      /var/run/openvswitch from host-run-ovs (rw)
      /var/run/ovn from host-run-ovn (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from ovn-token-tgv9d (ro)
      /var/run/tls from kube-ovn-tls (rw)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  host-modules:
    Type:          HostPath (bare host directory volume)
    Path:          /lib/modules
    HostPathType:
  host-run-ovs:
    Type:          HostPath (bare host directory volume)
    Path:          /run/openvswitch
    HostPathType:
  host-run-ovn:
    Type:          HostPath (bare host directory volume)
    Path:          /run/ovn
    HostPathType:
  host-sys:
    Type:          HostPath (bare host directory volume)
    Path:          /sys
    HostPathType:
  host-config-openvswitch:
    Type:          HostPath (bare host directory volume)
    Path:          /etc/origin/openvswitch
    HostPathType:
  host-log-ovs:
    Type:          HostPath (bare host directory volume)
    Path:          /var/log/openvswitch
    HostPathType:
  host-log-ovn:
    Type:          HostPath (bare host directory volume)
    Path:          /var/log/ovn
    HostPathType:
  kube-ovn-tls:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  kube-ovn-tls
    Optional:    true
  ovn-token-tgv9d:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  ovn-token-tgv9d
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  kubernetes.io/os=linux
Tolerations:     :NoSchedule
                 node.kubernetes.io/disk-pressure:NoSchedule
                 node.kubernetes.io/memory-pressure:NoSchedule
                 node.kubernetes.io/not-ready:NoExecute
                 node.kubernetes.io/pid-pressure:NoSchedule
                 node.kubernetes.io/unreachable:NoExecute
                 node.kubernetes.io/unschedulable:NoSchedule
Events:
  Type     Reason             Age                     From                     Message
  ----     ------             ----                    ----                     -------
  Warning  MissingClusterDNS  8m15s (x1133 over 23h)  kubelet,  THE.NODE.IP.HERE  pod: "kube-ovn-pinger-kf7xw_kube-ovn(2b4eab0b-53c9-4e91-bde1-8630600beb09)". kubelet does not have ClusterDNS IP configured and cannot create Pod using "ClusterFirst" policy. Falling back to "Default" policy.
  Warning  DNSConfigForming   3m12s (x1137 over 23h)  kubelet,  THE.NODE.IP.HERE  Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 213.133.100.100 213.133.99.99 213.133.98.98

You have too many entries in /etc/resolve.conf.  K8s coredns and flannel nameserver limit exceeded might be helpful

authors: oilbeater robinbraemer

repo: alauda/kube-ovn


text:
After-job hook

This PR adds a function to the pool that gets executed each time a job is finished. Such function can be useful for monitoring.
I thought about adding a full-fledged middleware chains first, but it would add a lot of complexity without too many benefits. This implementation gets a function which can accept a Job via (Pool).SetAfterFunc() and runs it each time a job is finished regardless of its status, passing the job to the function.
Also, I moved the job.finished assgnment before the error checks (worker.go:85); this way the timings are saved even when the job returned an error.
(resubmitted, previous PR: #29)

@albrow didn't know about that trick. Neat!
Yeah, that's probably not needed then.

Looks great. I'm going to merge this and include it in a new release, hopefully tonight. I'll likely make this 0.4.0 and push back features planned for 0.4.0 to 0.5.0.

source: gharchive/pull-request

authors: albrow utrack

repo: albrow/jobs

license: mit

license_type: permissive

license_source: bigquery


text:
kornia collaboration

hi, I'm maintaining kornia an opencv like vision library for PyTorch.
We are discussing to provide some low level operators that could be useful for data augmentation using raw tensors. I believe that high level libraries like albumentations (and like others, see fastai ;) could be potential consumers of our low level operators. Would you be interested in starting a collaboration to integrate kornia into your backend stack ?
Cheers,
Edgar

@edgarriba greetings Edgar!
Definitely! Having GPU-accelerated image augmentation is one of our areas of interest and is pretty often asked by our users. There is already some study has been done by @Dipet (using PyTorch API) and myself (for OpenCL) and we really would appreciate your input on this.
We do have slack channel in ods.ai, where we can have more interactive discussion or you can drop me an email ekhvedchenya@gmail.com to schedule a call :)

hi @BloodAxe and @Dipet . Great! so we had an internal meeting and we decided that we will implement some of the existing functionalities using raw pytorch operators to leverage differentiable data augmentation. We will try to align with albumentations API and potentially with torchvision too.
Do you have any public roadmap so that we can join efforts ? I've seen that @Dipet already started to dig into kornia.
Would be great to brainstorm between frameworks so that both we can coexist instead of mutual excluding ourselves :D
Please check our updates: https://github.com/kornia/kornia/issues/312
Board meeting notes: https://github.com/kornia/kornia/wiki/2019#2019-10-31

source: gharchive/issue

authors: BloodAxe edgarriba

repo: albu/albumentations

license: MIT

license_source: github-api


text:
Failed to build

Hello.
I'm trying to install the latest version. I'm on the Almalinux 9.2 OS.
After a "git clone https://github.com/alchemy-fr/phrasea.git", I run bin/build.sh and I get the following error message:
bin/functions.sh: line 64: export: `BASH_FUNC_which%%=() { ( alias;': not a valid identifier
If I use release 1.0.12 it works ...
Any ideas?

Hello,
Here is the diff (at the moment writting) bin/functions.sh
Also, shell scripts now use docker compose instead of docker-compose which evaluates .env files differently.
Ensure are escaping values correctly in your .env.local (e.g. SECRET='my$Secret', note the single quotes).

First of all, thank you very much for your prompt reply.
I don't have an env.local file yet and, as a first step, I'm testing the installation with the .env provided ( without modifications ).
The docker-compose and docker compose commands work.

Can you please try with the latest commit?

repo: alchemy-fr/phrasea


text:
refactor(rn): clean things up so they're more digestable

Pull Request Checklist

[ ] Did you add new tests and confirm existing tests pass? (yarn test)
[ ] Did you update relevant docs? (docs are found in the site folder, and guidelines for updating/adding docs can be found in the contribution guide)
[ ] Do your commits follow the Conventional Commits standard?
[ ] Does your PR title also follow the Conventional Commits standard?
[ ] If you have a breaking change, is it correctly reflected in your commit message? (e.g. feat!: breaking change)
[ ] Did you run lint (yarn lint:check) and fix any issues? (yarn lint:write)
[ ] Did you follow the contribution guidelines?

PR-Codex overview
This PR focuses on updating the account-kit/rn-signer package, enhancing the RNSignerClient functionality, and refining the project's configuration and dependencies.
Detailed summary

Updated vocs version in package.json.
Replaced NativeTEKStamper import with RNSignerClient in index.tsx.
Modified dependencies in package.json to use @aa-sdk/core and updated @account-kit/signer.
Enhanced .eslintignore with additional patterns.
Improved metro.config.js to include repoRoot in watchFolders.
Refactored RNSignerClient in client.ts for better initialization.
Added HPKE key management functionality in TEKManager.kt.
Simplified NativeTEKStamperModule.kt to utilize HpkeTEKManager.
Cleaned up redundant code and improved error handling in various files.

The following files were skipped due to too many changes: .nx/workspace-data/file-map.json, .nx/workspace-data/project-graph.json, .nx/workspace-data/parsed-lock-file.json

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1134  👈
#1132
#1131
#1130
#1129
#1128
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @moldy530 and the rest of your teammates on  Graphite

repo: alchemyplatform/aa-sdk


text:
Update CI domain used for testing

Description
Update CI domain used for testing
Does this PR need a docs update or release note?

[ ] :white_check_mark: Yes, it's included
[ ] :clock1: Yes, but in a later PR
[x] :no_entry: No

Type of change

[ ] :sunflower: Feature
[ ] :bug: Bugfix
[ ] :world_map: Documentation
[ ] :robot: Test
[x] :computer: CI/Deployment
[ ] :broom: Tech Debt/Cleanup

⚠  Blocking this PR temporarily.  We have a repro in main, and if it's being affected by this, I don't want to risk losing the state.

authors: ryanfkeepers vkamra

repo: alcionai/corso


text:
Modernize publish workflow

Updated versions.
Used npm cache.

Thanks!

authors: alebcay lukasz-mitka

repo: alebcay/openlens-node-pod-menu


text:
FakerProvider not working

Similar to #30 , but i use latest version of scrapy-fake-useragent 1.4.4
here is my setting.py :
DOWNLOADER_MIDDLEWARES = {
    'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware': None,
    'scrapy.downloadermiddlewares.retry.RetryMiddleware': None,
    'scrapy_fake_useragent.middleware.RandomUserAgentMiddleware': 400,
    'scrapy_fake_useragent.middleware.RetryUserAgentMiddleware': 401,
}

# When i comment FAKEUSERAGENT_PROVIDERS out, all seems works fine
FAKEUSERAGENT_PROVIDERS = [
     "scrapy_fake_useragent.providers.FakerProvider",
     "scrapy_fake_useragent.providers.FakeUserAgentProvider",
     "scrapy_fake_useragent.providers.FixedUserAgentProvider",
]

Using :
python 3.10.0
Scrapy 2.5.1
faker 11.1.0
scrapy-fake-useragent 1.4.4

here is my console log:
2022-01-05 09:55:45 [scrapy.middleware] INFO: Enabled extensions:
['scrapy.extensions.corestats.CoreStats',
 'scrapy.extensions.telnet.TelnetConsole',
 'scrapy.extensions.feedexport.FeedExporter',
 'scrapy.extensions.logstats.LogStats']
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Error loading User-Agent provider: ['scrapy_fake_useragent.providers.FakerProvider', 'scrapy_fake_useragent.providers.FakeUserAgentProvider', 'scrapy_fake_useragent.pr
oviders.FixedUserAgentProvider']
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Unable to load any of the User-Agent providers
2022-01-05 09:55:45 [faker.factory] DEBUG: Not in REPL -> leaving logger event level as is.
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Using '<class 'scrapy_fake_useragent.providers.FixedUserAgentProvider'>' as the User-Agent provider
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Error loading User-Agent provider: ['scrapy_fake_useragent.providers.FakerProvider', 'scrapy_fake_useragent.providers.FakeUserAgentProvider', 'scrapy_fake_useragent.pr
oviders.FixedUserAgentProvider']
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Unable to load any of the User-Agent providers
2022-01-05 09:55:45 [scrapy_fake_useragent.middleware] INFO: Using '<class 'scrapy_fake_useragent.providers.FixedUserAgentProvider'>' as the User-Agent provider
2022-01-05 09:55:45 [scrapy.middleware] INFO: Enabled downloader middlewares:
['scrapy.downloadermiddlewares.httpauth.HttpAuthMiddleware',
 'scrapy.downloadermiddlewares.downloadtimeout.DownloadTimeoutMiddleware',
 'scrapy.downloadermiddlewares.defaultheaders.DefaultHeadersMiddleware',
 'scrapy_fake_useragent.middleware.RandomUserAgentMiddleware',
 'scrapy_fake_useragent.middleware.RetryUserAgentMiddleware',
 'scrapy.downloadermiddlewares.redirect.MetaRefreshMiddleware',
 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware',
 'scrapy.downloadermiddlewares.redirect.RedirectMiddleware',
 'scrapy.downloadermiddlewares.cookies.CookiesMiddleware',
 'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware',
 'scrapy.downloadermiddlewares.stats.DownloaderStats']
2022-01-05 09:55:45 [scrapy.middleware] INFO: Enabled spider middlewares:
['scrapy.spidermiddlewares.httperror.HttpErrorMiddleware',
 'scrapy.spidermiddlewares.offsite.OffsiteMiddleware',
 'scrapy.spidermiddlewares.referer.RefererMiddleware',
 'scrapy.spidermiddlewares.urllength.UrlLengthMiddleware',
 'scrapy.spidermiddlewares.depth.DepthMiddleware']
2022-01-05 09:55:45 [scrapy.middleware] INFO: Enabled item pipelines:
['crawler.pipelines.CrawlerPipeline']

I was struggling with this as well
Read the docs: https://docs.scrapy.org/en/latest/topics/settings.html#downloader-middlewares-base
scrapy-fake-useragent has outdated order of how you should setup your DOWNLOADER_MIDDLEWARES
scrapy.downloadermiddlewares.useragent.UserAgentMiddleware now ordered under 500 so you should update your order to not consume the 400 as you have it now
DOWNLOADER_MIDDLEWARES = {
    "scrapy.downloadermiddlewares.useragent.UserAgentMiddleware": None,
    "scrapy.downloadermiddlewares.retry.RetryMiddleware": None,
    "scrapy_fake_useragent.middleware.RandomUserAgentMiddleware": 500,
    "scrapy_fake_useragent.middleware.RetryUserAgentMiddleware": 501,
}

  DOWNLOADER_MIDDLEWARES = {
    "scrapy.downloadermiddlewares.useragent.UserAgentMiddleware": None,
    "scrapy.downloadermiddlewares.retry.RetryMiddleware": None,
    "scrapy_fake_useragent.middleware.RandomUserAgentMiddleware": 500,
    "scrapy_fake_useragent.middleware.RetryUserAgentMiddleware": 501,
}

That did not solve it for me sadly. I have this problem with:

python 3.10.0
Scrapy 2.5.1
faker 11.1.0
scrapy-fake-useragent 1.4.4

The problem stays when I use the newest version of these packages and python3.11.
Am I missing something?

authors: JoshuaSeth axiangcoding devfox-se

repo: alecxe/scrapy-fake-useragent


text:
🛑 SimplyTranslate is down

In 9883a61, SimplyTranslate (https://st.alefvanoon.xyz) was down:

HTTP code: 525
Response time: 115 ms

Resolved: SimplyTranslate is back up in 8bb6dfe.

repo: alefvanoon/Status


text:
🛑 Piped-API is down

In a6c0ab8, Piped-API (https://piped-api.alefvanoon.xyz/trending?region=US) was down:

HTTP code: 404
Response time: 6992 ms

Resolved: Piped-API is back up in 552b224.


text:
Query on result for nuscenes data with centerpoint and mmdetection_cascade_x101 detections

Dear Kim,
Thanks for sharing your code. I am trying to run tracking on v1.0-mini version of the nuScenes dataset downloaded from here, with the detections you provided in the drive centerpoint and mmdetection. Gave SPLIT as mini_val and modified the val/test in the detections folder to min_val/min_test and ran the code to see the results.
I was getting below result which I couldn't understand. Please help me understand the tracking results and if the dataset and detections are properly provided.
Console output after I ran run_tracking.py:

Thanks,
Gayathri.

running fresh removing the eagermot_workspace folder helped fixing this issue.

Hello @gayathri81 . Were you able to visualize the results (the output json)? Can you guide me too?
Thanks,
Sahil.

你好@gayathri81。您是否能够可视化结果（输出 json）？你也可以指导我吗？
谢谢， 萨希尔。

I have the same problem ,have you solved it?

authors: SahilChachra gayathri81 zzm-hl


text:
🛑 h23 is down

In de6f939, h23 (https://h23.seohost.pl:2222/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: h23 is back up in a48c9dc after 11 minutes.


text:
Fix: Relay startup event through AlephApp

Problem: @app.on_event("startup") would not be triggered on uvicorn startup
Solution: Relay "lifespan" events from the AlephApp to the http_app

I'm not sure where you find the on_event decorator on the AlephApp class? The fix looks correct but I don't 100% get your use case.

Works for me on this app: https://github.com/yourtrading-ai/fishnet-cod/blob/main/src/fishnet_cod/api/main.py#L93

Usecase is performing actions before the API gets ready. In this case its recreating the indices from POST messages with AARS

More on this topic is found here: https://fastapi.tiangolo.com/advanced/events/

Usecase is performing actions before the API gets ready. In this case its recreating the indices from POST messages with AARS

I meant: I don't see where the on_event method/decorator is implemented. It's a really useful feature indeed.

Here: https://fastapi.tiangolo.com/advanced/events/#startup-event
It somehow works

Can it be merged? @hoh

authors: MHHukiewitz odesenfans

repo: aleph-im/aleph-sdk-python


text:
Cannot find module 'formdata-polyfill/esm.min.js' & Cannot find module 'fetch-blob/from.js'

node_modules/node-fetch-commonjs/index.d.ts:4:24 - error TS2307: Cannot find module 'formdata-polyfill/esm.min.js' or its corresponding type declarations.

4 import {FormData} from 'formdata-polyfill/esm.min.js';

node_modules/node-fetch-commonjs/index.d.ts:12:8 - error TS2307: Cannot find module 'fetch-blob/from.js' or its corresponding type declarations.

12 } from 'fetch-blob/from.js';

maybe caused by these lines:

[ ] https://github.com/alex-kinokon/node-fetch-cjs/blob/master/build.js#L53
[ ] https://github.com/alex-kinokon/node-fetch-cjs/blob/master/build.js#L15

PR welcome

authors: alex-kinokon jemikanegara

repo: alex-kinokon/node-fetch-cjs


text:
Extra attribute

I think I can filter with extra attribute. But I can't :(
daftar = MyModel.objects.extra(
			select = {
				'hede' : 'kode'
			}
		).values('hede', 'kode', 'judul')

class DepeFilter(django_filters.FilterSet):
	class Meta:
		model = MyModel
		fields = ['hede', 'kode', 'judul']

ERROR: Meta.fields contains a field that isn't defined on this FilterSet

Closing as I can't see how this is an addressable Issue.

authors: carltongibson wirasto

repo: alex/django-filter


text:
Layer ordering

Hey again,
Do you have a suggested approach to ensure layers are always ordered correctly on z axis?
Here is a paste of my messy map JSX:
const journeyTotal = journeys.length;
return (
  <MapGL style={MAP_STYLE} accessToken={API_TOKEN} {...this.state.viewport}>{
    journeys.map((type, idx) => (
      <Layer key={idx} type="line" {...type.style}>{
        type.segments.map((segment, idx) => (
          <Feature key={'segment-'+idx} coordinates={segment.coordinates}  />
        ))
      }</Layer>
    ))
    }<Layer key={journeyTotal} type="circle" paint={LOCATION_SHAD_STYLE}>{
      this.props.locations.map((location, idx) => (
        <Feature key={'location-shad-'+idx} coordinates={location.lngLat} />
      ))
    }</Layer>
    <Layer key={journeyTotal+1} type="circle" paint={LOCATION_STYLE}>{
      this.props.locations.map((location, idx) => (
        <Feature key={'location-'+idx} coordinates={location.lngLat} />
      ))
    }</Layer>
    <Popup {...this.props} />
  </MapGL>
);

Have a look at the key attribute on my layers.  This approach is the only way I found to ensure the layers are ordered as they appear in the JSX.  Without the sequential indexes (I tried arbitrary high numbers like 9999 without success), the layer order is unpredictable.  Once I filter the data using other functionality, the indexes can become out-of-sequence and breaks ordering.
The order of layers in this array is how mapbox-gl will render the layers.  The package doesn't appear to take advantage of this, using componentWillMount and addLayer, which appears to be asynchronous as my most expensive layers are rendered last / on top (the journey polylines).
Any ideas?

This is how react fundamentally works. The key ensures an order and identification for each child element of a React component. We could add sth else that overrides this behavior, but that would just be a redundancy ;)

Follow up actually, we can make use of the key actively and pass the elements to mapbox gl in a stable order, but I'm not sure if that adds a lot of value. Can you elaborate on the purpose here a bit?

Sure,
I have routes which are styled based on transport type - different colours, and flights have an arc. Since styling happens at the Layer level, I've made an array of layer types under journeys with their own 'paint' and 'layout' objects along with a LineString.
Then I have locations which are waypoints along these polylines, and need to sit on top or else they are obscured.
If you can suggest some ideas as to how to fix this I'd be happy to get it done and submit a PR.

This is my first React project, so I'm no expert, but something that's related is it's not obvious how to go about splitting the map layers into different components.  For example it felt natural in this scenario to create a new component for Map, Journey Layers, and Location Layers.  Using JSX and regular HTML, I could render several items wrapped in a <div>, but I couldn't think of an alternative using the <Map><Layer ... /></Map> syntax for Journeys.
I'm wondering if what is really needed is a new Source component, as child of Map, which can have multiple Layers as children, and the ability to keep different Sources ordered, and keep it's source data separated (as in mapbox.getSource()).
Then the map could be simple and optimised for simple maps, or have a bit more control for more complex maps.
Thoughts?

Hi @daviestar,
I have added support for the before property when adding a layer to the map. https://github.com/alex3165/react-mapbox-gl/commit/f4917fa7cd06374f6f7bc862f3455d8f3487095e
This should solve your problem of ordering the layers, you have to specify the id of another layer (it imply to generate the id yourself and pass through the props) and the layer will be displayed just  before the id of the layer you specified.

Great, that seems like a really nice and simple solution - I have been thinking how I would fix it and had only come up with much more complicated approaches!

authors: alex3165 daviestar philpl


text:
Add markers from an array of objects

I have an array of objects and each object has it's coordinates and other data. How can I add a simple marker by that coordinates? I just iterate over the array and create markers from it and it doesn't work. If I try with just the first element of the array it works. Why? Do I need a "Cluster"?

Use the component Layer and Feature, check this example: https://github.com/alex3165/react-mapbox-gl/blob/master/example/src/demos/londonCycle.tsx

Thank you for the fast response! @alex3165


text:
Push rejected, no Cedar-supported app detected

My heroku deployment works fine without buildpacks.  When I add your build pack heroku fails to detect that I have a node app.  Any suggestions?   Thank you.

@bozzltron how have you added my buildpack?

$ heroku buildpacks

https://github.com/alex88/heroku-buildpack-vips.git#7.40.11.0
https://github.com/heroku/heroku-buildpack-nodejs.git

You've to use https://github.com/ddollar/heroku-buildpack-multi as I wrote in the readme

Perfect!  Thank you.


text:
Pi Zero "issues" with audio, power management, and usb

Discussion for running on the Pi Zero.
Audio/USB Hub/Power/etc...

awsome! so i hear no sound, but no errors.
Working on pi 3, but with analog.
Switched to pi zero and have no sound with the sound dongle. Have changed the default sound in top bar to USB card.
Its frustrating because i remember its something simple like the config file to change the output but i cant remember for the life of me!

Maybe you have audio via HDMI by default?
@illperipherals I'm not sure how much AlexaPi-related this is. If you guys have specific issue - sound output for example, name the issue accordingly. Let's prevent these issues where there's discussion about multiple things.

@renekliment "Have changed the default sound in top bar to USB card." so thats not it. And the script is not working for Zero "out of the box" so this thread will help anyone who is trying to set up a Zero. Maybe we can add to the README or update the code after we are finishing debugging and finding solutions.

Okay, does that topic work better? This is actually a Zero related problem, as he stated, the same card works in a Pi3.

@bchuckles, by top bar, are you running a GUI? Although it can be done, I would recommend against it if possible on the Zero. Can you post the output of those commands that I listed in the other thread? Thanks!

@illperipherals @bchuckles In order to establish that this is an AlexaPi issue (for PiZero or any other Pi), let us first check if the system sound works. Try the following command -
aplay /usr/share/sounds/alsa/Front_Center.wav

Did you hear a sound?
Paste the result of aplay -l
Also paste the result of aplay -L

@renekliment Firstly, excellent work on alexa-pi. I just got it working on my Pi3 today! I am using an external sound card (did not have a USB microphone so I used a 3.5mm one instead. Hence the need to use an external sound card). I might port AlexaPi to Node at some stage (if possible).

@illperipherals thanks for the help. Yea I'm using a GUI for the time being. I'll switch to headless once it's in a state of working order. I'll run those command tomorrow I'm outta town.
@CEOgavin 3.5mm has always worked with this project and yes that is working win a pi 3. When u switch to a dongle some stuff needs changed so we are trying to figure out what needs changed to help people. If you write this in node let me know cause I'll help you! That's why I struggle cause I'm a node developer and this is python :/

@bchuckles I would love to write it in Node (this is my first time using Python). Any suggestion how I should start? Anyone else done something similar?

No, don't do that, help us here instead :-D
But seriously, if you're bothered by the audio issues, you're gonna have to solve a similar thing on Node.js too. I think we'll make it work more-less out-of-the-box when we switch to pyaudio and do some kind of detection so users can just choose the I/O devices. No one just bothered to do that with the current pyalsaaudio library when we're going to abandon that.
A part of Amazon's official sample app is written in Node.js so I think that's a place to start: https://github.com/alexa/alexa-avs-sample-app

Thanks so much @renekliment . Ideally I would have loved to help but I don't know Python at all. Plus the lack of drive to get into Python while I am spending all my free time with Redux and React Native.
The list of things to learn is always disproportional to the time available :)
Frankly, the only reason why I am considering porting it to Node is simply to brush-up my Node skills and learn more in the process.
Could I persuade you to switch to Node instead? ;)

Nope, I'm sticking with python :) I don't know Node.js at all, even though I do some JS and I think there's a long way from one to the other. Another reason is that I think python is more multi-platform and I personally want to run AlexaPi on OpenWRT routers eventually and Node.js on mips, mipsel or even PowerPCSPE is not easy / real.

@bchuckles, I know you are out of town, but I just wanted to drop a couple things in here.
Depending on what your aplay shows you:
Change device ordering:
sudo nano /usr/share/alsa/alsa.conf
Scroll down and change the following two lines:
From:
defaults.ctl.card 0
defaults.pcm.card 0
To:
defaults.ctl.card
defaults.pcm.card
You can also edit /boot/config.txt and comment the following line:
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
This will stop the loading of the on-board audio. (if you are using USB for all your sound)
If that does not help, and you cannot default to the USB card, you can override this by stating -D sysdefault:CARD=
Also, make sure your username belongs to the "audio" group in /etc/group
sudo nano /etc/group
Let me know when you get back in. I am setting a new Zero up from scratch to walk through it with the new builds.

When you guys find solution to the Zero problem, please add it to the documentation (the wiki here).

10-4

the way i use usb audio is
 i = vlc.Instance('--aout=alsa  --alsa-audio-device=sysdefault:CARD=Device')

in main.py at def play_audio

@amahlaka
We'll do #22 so you don't have to do that nasty workaround. Soon hopefully :)

@illperipherals thanks I had a demo i needed to give, so i had to switch back to the 3. Hopefully my schedule will free up next week, and will have a free weekend to hack on the zero. These tips help though ill see if i can get an hour to test these out.

Hi, I've installed Alexa-pi on a Pi Zero with some success.
The sound card is USB one, and here you have what I did to get it work:
in /etc/modprobe.d/fbdev-blacklist.conf
blacklist snd-bcm2835
in /etc/asound.conf
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

in /etc/modprobe.d/alsa-base.conf
options snd-usb-audio index=0
and finally, in /etc/opt/AlexaPi/config.yaml
  device: "plughw:0"
The only issue is with trigger, it doesn't work.
It  did once and that's it. I don't know why actually.

@benbois Could you please test if with #66, you can leave all this audio settings and just set everything in config.yaml?

@renekliment I changed the line : device: "plughw:0" in the configuration file as described in my previous post.

Yes, I know. My point is that with #66 you shouldn't need all the

in /etc/modprobe.d/fbdev-blacklist.conf
blacklist snd-bcm2835
in /etc/asound.conf
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

in /etc/modprobe.d/alsa-base.conf
options snd-usb-audio index=0

beucause you can also set output audio device in config.yaml.

Well, I tried to remove the 2 settings (blacklist.conf + asound.conf) and nothing worked!
Then, I supposed that the Zero needs this.

Are you trying out the code from #66? What config options did you try?

I just tried the patch #66, it doesn't work for me.
I don't even get any sound now, I have to come back to the previous conf./files.

Ah, too bad :disappointed: I hoped setting the output device only in the configuration file would work.

So are there still issues with the Zero? Is there anything we can do to help?
If there are no issues anymore, please put up the relevant info in the wiki (if any) and close this. Thank you.

@illperipherals @benbois Forgot to tag you in the previous comment.

I will load a new Zero test up tonight.

Hopefully a fix comes soon. All I have is a Pi Zero at the moment :/ . It seems like everything is working for me except audio output.

Any progress on this?

Yes I did manage to fix it. I don't remember exactly what I did and I will post when I figure out. What I did was blacklist hdmi and analog output then changed a value on a PulseAudio file, rebooted And it works.

@garrettheking Pinging you on this so we can hopefully close this. Thank you.

The Pi Zero requires external network and audio (aside from the audio hack outlined here: https://learn.adafruit.com/introducing-the-raspberry-pi-zero/audio-outputs )
This brings much higher power requirements to the table.

I managed to make audio work. However, “Hey Alexa” Will not work because the CPU goes to 100% and I do not know how to prevent that. You will have to use a button connected to GPIO. On a pi zero, I’m using a cheap eBay sound card and not HDMI audio, so I blacklisted HDMI and Analog output.
in:
/etc/modprobe.d/fbdev-blacklist.conf
Go to the bottom of the document and add:
blacklist snd-bcm2835
(Again, this WILL MAKE HDMI AUDIO AND ANALOG NOT SHOW UP)
After blacklisting, you have to change where the audio goes
Go to:
/usr/share/alsa/alsa.conf
Find:
defaults.ctl.card 0
and
defaults.pcm.card 0 (Should be right below)
CHANGE THE 0 TO 1 In both of those.
Reboot and you should hear “hello” when boot is complete
I tried my best to follow my steps. However, this should be all though. And once again, I do not know how to prevent CPU going over 100%. It causes the keyword to stop working. You have to use a button.

authors: CEOGavin amahlaka bchuckles benbois garrettheking illperipherals renekliment

repo: alexa-pi/AlexaPi


text:
Cross platform compatibility + other fixes

Thanks for this project, I'm looking forward to using this in my workflow. Some fixes:

Add instructions for development setup
Detect sclang correctly on Linux and Windows
Change "off" emoji to ⭕ for colorblind-friendliness
Add scvsc.useScideKeybindings option to emulate some SCIDE shortcuts
Clicking status bar icon boots or quits sclang

Thanks for the prompt response, I've addressed the comments.

@nhthn https://github.com/alexander-daniel/scvsc/releases/tag/0.1.0
Let me know if you have any issues!

authors: alexander-daniel nhthn

repo: alexander-daniel/scvsc


text:
Retrying

In a lot of installs (anecdotally) ied fails with weird connection or HTTP errors to the registry involved.
I think it's very important that ied retries at least once or twice for every failed fetch.

:+1: !

authors: jippi rauchg

repo: alexanderGugel/ied


text:
imdb.com overlays

I'm continuing with issues related to IMDB. The dropdown search results are hiding behind news section.

PS: I'm using Iron, if that helps.

Fixed. Reopen your browser and try to visit it now.

perfect!

authors: bigpalu risualiser

repo: alexanderby/darkreader


text:
Fix minor typos

Thank you for this repository - it really made my day.
I found a few typos in the notebook and wanted to correct them.

Hi, I am glad that you like the repository, and thanks for the typos corrections:)

authors: AmaliePauli mortenhauberg

repo: alexandrainst/danlp


text:
Update to scikit-learn 0.22

Importing pyriemann.clustering.Kmeans raises a deprecation warning for scikit-learn
FutureWarning: The sklearn.cluster.k_means_ module is  deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes / functions should instead be imported from sklearn.cluster. Anything that cannot be imported from sklearn.cluster is now part of the private API.
I'll push an PR quickly

Thanks for reporting this.
Yes, please make a PR :) Also, don't forget to update the requirements.txt with the correct version number.

Fixed

authors: alexandrebarachant sylvchev

repo: alexandrebarachant/pyRiemann


text:
env: node\r: No such file or directory

Hi there,
I was checking out this awesomeness, however when trying to execute tscg it gives the following error:
env: node\r: No such file or directory
My env:
mac osx el capitan
tried with node 4, 5 and 6.
Thanks for any help!

Linux Mint 17.2 Rafaela with commands
npm install typescript
npm install typescript-with-globs
npm run tsc  # run-script executes tscg with no args

npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/home/pettymt/.nvm/versions/node/v4.2.3/bin/node',
1 verbose cli   '/home/pettymt/.nvm/versions/node/v4.2.3/bin/npm',
1 verbose cli   'run',
1 verbose cli   'tsc' ]
2 info using npm@2.14.7
3 info using node@v4.2.3
4 verbose run-script [ 'pretsc', 'tsc', 'posttsc' ]
5 info pretsc sillyapp@1.0.0
6 info tsc sillyapp@1.0.0
7 verbose unsafe-perm in lifecycle true
8 info sillyapp@1.0.0 Failed to exec tsc script
9 verbose stack Error: sillyapp@1.0.0 tsc: `tscg`
9 verbose stack spawn ENOENT
9 verbose stack     at ChildProcess.<anonymous> (/home/pettymt/.nvm/versions/node/v4.2.3/lib/node_modules/npm/lib/utils/spawn.js:17:16)
9 verbose stack     at emitTwo (events.js:87:13)
9 verbose stack     at ChildProcess.emit (events.js:172:7)
9 verbose stack     at maybeClose (internal/child_process.js:818:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid sillyapp@1.0.0
11 verbose cwd /home/pettymt/Projects/somecompany/sillyapp
12 error Linux 3.16.0-38-generic
13 error argv "/home/pettymt/.nvm/versions/node/v4.2.3/bin/node" "/home/pettymt/.nvm/versions/node/v4.2.3/bin/npm" "run" "tsc"
14 error node v4.2.3
15 error npm  v2.14.7
16 error file sh
17 error code ELIFECYCLE
18 error errno ENOENT
19 error syscall spawn
20 error sillyapp@1.0.0 tsc: `tscg`
20 error spawn ENOENT
21 error Failed at the sillyapp@1.0.0 tsc script 'tscg'.
21 error This is most likely a problem with the sillyapp package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error     tscg
21 error You can get their info via:
21 error     npm owner ls sillyapp
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]

On my Chromebook/Ubuntu machine I had to change the CRLF to LF in the 'bin/tscg' file to make it work

Archiving repo...

authors: alexandrudima maybenull roelleor wwwouter

repo: alexandrudima/typescript-with-globs


text:
Add Ingress autologin to Calibre-web

As discussed in the previous days, this PR adds Ingress autologin through the Reverse Proxy Header Name feature of Calibre-Web.
Since now Ingress is fully functional, direct exposure of Calibre-web on port 8083 is disabled.
The user used to autologin defaults to admin but can be customized.
Also cleaned up some remains from previous tests...

Amazing, thanks!

That was fast!!! Did you managed to try it? 😁
/M
Inviato da iPhone

Il giorno 9 giu 2022, alle ore 19:02, Alexandre @.***> ha scritto:

Merged #358 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

I haven't tried it, but read through the commits.
I think modifying /defaults/app.db in the Dockerfile will only work for a first install, so it will probably be needed for existing users to delete their current database and restart the addon to recreate it.
Other than that, indeed I see that you cleaned "useless" code that was remnant from copy/paste or test. For the upstream backend for which you changed the port, it is actually not needed as we specify the proxy_pass to an ip:port instead of just using the backend value.
The only thing I am ambivalent with is the line allow 172.30.32.2; deny all; in the ingress.conf. I usually avoid hard-coding the ip, and rather using the %%interface%% variable replaced at addon start to ensure that the correct ip is used. It should be indeed 172.30.32.2 but on some configs it jumps by to another ip (I haven't really investigated why). But as long as no one complains, that's good :-)

So thanks very much for all that!
I've just added a comment in the CHANGELOG.md to describe the change for other users. And now that I think about it, we'll need to describe also the new variable in the README.md file

Tested, looks good everything is working as intended!

repo: alexbelgium/hassio-addons


text:
⚠ Secret Website 3 has degraded performance

In c6fa359, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2291 ms

Resolved: Secret Website 3 performance has improved in 7012306.

repo: alexchapar/status-page


text:
Include the GCP SDK so that run-job can execute against Google Kubernetes Engine

Description
Include the GCP SDK so that run-job can execute against Google Kubernetes Engine
Why is this needed?
run-job runs out of cluster, and GCP requires an additional import to work.
Generally, it means just adding this to main.go
	// required to authenticate against GKE clusters
	_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"

See also: https://github.com/openfaas/faas-netes/blob/master/main.go
I'd like someone to test this against a real GKE cluster as part of the PR submission.

@Jasstkn thoughts on contributing this? 🙂

Unfortunately, I don't have an access to up & running GKE cluster. Only EKS 😅

As I understand it - the first control plane is free - and there's 300 USD of credit when signing up. A single preemptable VM costs ~ 6-8 USD / mo.
https://cloud.google.com/free
We could try this out of cluster on EKS though - it may have a similar issue?

As I understand it - the first control plane is free - and there's 300 USD of credit when signing up. A single preemptable VM costs ~ 6-8 USD / mo.
https://cloud.google.com/free
We could try this out of cluster on EKS though - it may have a similar issue?

Yep, I'm well aware of the GCP pricing - have been working with it for years. Let me quickly check it on EKS and over the weekend I'll try to setup gke.

No errors in EKS.
Created job cows.default (232d5ccd-e49a-4836-931a-9897dab48663)
..
Job cows.default (232d5ccd-e49a-4836-931a-9897dab48663) succeeded
Deleted job cows

Recorded: 2023-03-31 08:44:27.920483 +0000 UTC

                       _,-----.
         _,------.__,-'        `.  .            .
      .-'                        `//__          \\
     |                           ((___`-_____    ))
     |                            \_alf)     \`=:'
     |                               `=|      |=,'
    /                                  | O   (|
   /  /\                               |      |
  /  /  \    .                          \     |
 |  /   /|  / `--.   ___            __,,-.    |
 | /   //  /      `-'   \  ,_    /''     |  o o|
/ |   | |  |             \ \ `.  |        ``--'
mmm   | |  |              \ \ |  |
      | |\ |              |  ||  |
      | | ||              / / `. )
       \ \ \\            / /   | |
        |_| ||          / /    | |
            |_\         \_|    |  \
                                \__\

Thanks and that's an oddly satisfying ASCII :cow2:

I'll just add the code myself.
Perhaps @jsiebens would be interested in trying it out as a GCP user?

jsiebens@orion:~/tmp$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.24.2
Kustomize Version: v4.5.4
Server Version: v1.24.9-gke.3200

jsiebens@orion:~/tmp$ run-job -f cows.yaml
Created job cows.default (6b4f6fee-6a89-4739-ab4b-7fc036824b81)
......
Job cows.default (6b4f6fee-6a89-4739-ab4b-7fc036824b81) succeeded
Deleted job cows

Recorded: 2023-04-01 14:35:54.141527982 +0000 UTC

         (__)
         (oo)
  /-------\/
 / |     ||
*  ||----||
   OO    OO

Looks good :+1:

Thank you @jsiebens 💪

authors: Jasstkn alexellis jsiebens

repo: alexellis/run-job


text:
Dot lots of things

now!

hello

repo: alexisaperez/lets-chat


text:
Picture tag not working with media breakpoint

Hi @alexjoverm , I'm using v-lazy-image to lazy load some banners that use the picture tag.  I've followed the readme to set this up, and while the picture images do lazy load as expected at mobile dimensions, they are not lazy loading at desktop dimensions above the media breakpoint.
Here is how I am using it:
<v-lazy-image :src="mobileImg"
                  :alt="altText"
                  :intersection-options="{rootMargin: '10%'}"
                  use-picture>
        <source :srcset="desktopImg" :media="breakpointQuery" />
    </v-lazy-image>

which is rendering as:
<picture>
    <source srcset="/path/to/mobileImage.jpg" media="(min-width: 800px)">
    <img src="/path/to/desktopImage.jpg" class="v-lazy-image v-lazy-image-loaded" alt="Alt">

</picture>

So at screen sizes below 800px, all of the picture tags lazy load the mobile images.  But at screen sizes above 800px, all picture tags are requesting/loading the desktop images upon page load.  Have you seen this issue?
@anthonygore I saw your involvement in getting the picture tag supported.  Have you run across this issue yet? Can you guys reproduce this?

I'll take a look now

Okay I think the issue is that the slot contents are not being lazy loaded.
I think the solution is to only render the slot contents when the picture enters the viewport. Will submit a PR to fix it.
Will that cause any bad side effects?

I don't believe so, but I guess it depends on how the browser evaluates which src from the  to show, given that the  is now injected at a different time. But I think that will work

Closed by #37. Thanks to @anthonygore
Keep in mind this issue might be related to #29 as well, according to the example. Feel free to continue the discussion in there if so.

@alexjoverm @anthonygore you guys rock. Thanks for the quick resolution.

authors: alexjoverm anthonygore cbaxter713

repo: alexjoverm/v-lazy-image


text:
Issue with gif images

I am able to get the datauri of the image part of all the images. But with gif images the cropped one losing animation effects.
Is this issue with the plugin ?

It's because the only supported result image formats are jpeg, png, and webp. It's on the documentation. https://github.com/alexk111/ngImgCrop#result-image-format

authors: albertonaperijr govindclickdesk


text:
Cheat sheet

I think having a single page of all available queries and methods with short descriptions would be really cool. Something people could open up or even print and use as a reference. Anyone want to build that?

Yeah, I think this would be a good thing to do in conjuction with https://github.com/alexkrolick/testing-library-docs/issues/56. And the react-testing-library section can also list waitForElement, wait, fireEvent, etc. and link out to the main docs for those.

Exactly. Kind of like a: here's everything you can do with dom-testing-library
And then another page that's a: here's everything you can do with react-testing-library
And people could make one for all other variants as well. I think it could be really helpful as an overview.

Do you have examples of other things like the one you're looking for?

Something kind of like this, but probably as a single column for now? https://devhints.io/enzyme
Basically a list of all the methods ands queries and a single like explaining what they do

authors: alexkrolick bcarroll22 kentcdodds

repo: alexkrolick/testing-library-docs


text:
uninitialized constant Class

I am getting this error
uninitialized constant Class::Tweet
This is my rake task
require 'big_sitemap'
include Rails.application.routes.url_helpers # Allows access to Rails routes
BigSitemap.generate(:url_options => {:host => 'mysite'}, :document_root => "#{Rails.root}/public") do
Add some URLs with additional options
Tweet.find(:all).each do |tweet|
add tweet_path(tweet), :change_frequency => 'daily', :priority => 0.5
end
end

Are you doing that within a rake task? If so, insert the "environment" through the block:
namespace :sitemap do
task :generate, [ :needs ] => [ :environment ] do
end
end
And now you're able to access the Twitter ActiveRecord class from your rails environment :)

authors: gerbdla urieljuliatti


text:
plagiarism?

hey there, i was looking to purchase book on ml/ai for/in swift when i came across your book. i also came across this book supposedly published (?) a few months ago whose contents appear to be word for word a copy of yours. just thought i’d let you know just in case it hadn’t come to your attention yet.

Dear @futuristudios thanks for letting me know. It's funny, they even left all my personal details in there, just replacing the name. Originally Packt published an unfinished draft of my book and messed up the pictures and formulas. I assume that's what they still sell. They added a second co-author on the Amazon who never contributed anything to the book. And there's an (unlicensed?) Chinese translation of the book out there. Most importantly Packt didn't pay me monthly royalties as per the contract, so TBH I couldn't care less if people download the book for free from libgen or elsewhere.

authors: alexsosn futuristudios

repo: alexsosn/SwiftMLBook


text:
Provide function to call http requests in commands

Description
Provide a function in the API to call http requests (RESTful) in commands & plugins.
This function should be simple to use and display logs when Jarvis is run in troubleshooting mode to help diagnosis.
Example
*ALLUME*LAMPE*==jv_http "http://12.34.56.78/action?turnon" && say "Done"

Jarvis in troubleshooting mode
You: Allume la lampe
DEBUG: executing: jv_http "http://12.34.56.78/action?turnon
DEBUG: response: {"status": "done"}
Jarvis: Done

Doc updated:
http://domotiquefacile.fr/jarvis/content/public-api-reference

repo: alexylem/jarvis


text:
speech duration was 00

Salut,
Très bon travail avec Jarvis, je galère un peu depuis quelques temps et j'ai pas trouvé d'issue qui me corresponde, donc je tente ...
Ma config :

R Pi2B+
Jabra Speak 410 (tout est ok de ce coté là avec le fix)

Niveau setup Jarvis m'entend et je l'entends très bien dans le Wizard.
J'ai essayé snowboy pour le STT mais j'ai pas réussi à le faire marcher, donc je suis passé par Bing qui a l'air d'aller plus loin, en troubleshoot le truc me dit que la durée est de 00
J'ai testé le fichier de test STT de Bing et ça m'a l'air plutot correct du coup je seche un peu, après j'ai ptet raté un truc ...
Et sinon bonnes fêtes ;-)
Clem
Description
DEBUG: speech duration was 00 (10 = 1 sec)
DEBUG: too short for a trigger (min 0.2 max 1.5 sec), ignoring...
Result
pi@raspberrypi:~/jarvis/stt_engines/bing $ ./test.sh
cat: version.txt: No such file or directory
{"debug":"DEBUG: token missing or expired"},{"debug":"DEBUG: json=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6Imh0dHBzOi8vc3BlZWNoLnBsYXRmb3JtLmJpbmcuY29tIiwic3Vic2NyaXB0aW9uLWlkIjoiNjI3M2Y5M2VhYzRlNDZkOTlhNzM0MjY3NjdlMmQwYTIiLCJwcm9kdWN0LWlkIjoiQmluZy5TcGVlY2guUHJldmlldyIsImNvZ25pdGl2ZS1zZXJ2aWNlcy1lbmRwb2ludCI6Imh0dHBzOi8vYXBpLmNvZ25pdGl2ZS5taWNyb3NvZnQuY29tL2ludGVybmFsL3YxLjAvIiwiYXp1cmUtcmVzb3VyY2UtaWQiOiIiLCJpc3MiOiJ1cm46bXMuY29nbml0aXZlc2VydmljZXMiLCJhdWQiOiJ1cm46bXMuc3BlZWNoIiwiZXhwIjoxNDgzMTEyNTc4fQ._A7vPbSaVgBQXauJrim9BArwDlMeFijOJ89yUwIQGM4"},{"debug":"DEBUG: token will expire in 590 seconds"},{"debug":"DEBUG: curl https://speech.platform.bing.com/recognize/query?version=3.0&requestid=XXXXXXXXXXXXXXXXXXXXXXXXXXX&appid=XXXXXXXXXXXXXXXXXXXXXXXXXXX&format=json&locale=en-US&device.os=osx&scenarios=ulm&instanceid=XXXXXXXXXXXXXXXXXXXXXXXXXXX&result.profanitymarkup=0"},{"debug":"DEBUG: json={"version":"3.0","header":{"status":"success","scenario":"ulm","name":"hello","lexical":"hello","properties":{"requestid":"XXXXXXXXXXXXXXXXXXXXXXXXXXX","HIGHCONF":"1"}},"results":[{"scenario":"ulm","name":"hello","lexical":"hello","confidence":"0.9443262","properties":{"HIGHCONF":"1"}}]}"}hello
Mon ecran de config (moins mes tokens  que j'ai remplacé par des XXXXXXXXXXXXXXXXXXXXXXXXXXX)
┌────────────────────────────────┤ Jarvis ├────────────────────────────────┐
│ Configuration > Voice recognition                                        │
│                                                                          │
│  Recognition of magic word (bing)                                        │
│  Recognition of commands (bing)                                          │
│  Snowboy sensitivity (0.5)                                               │
│  Snowboy token (XXXXXXXXXXXXXXXXXXXXXXXXXXX)                │
│  Snowboy train a hotword/command                                         │
│  Bing key (XXXXXXXXXXXXXXXXXXXXXXXXXXX)                             │
│  Wit key ()                                                              │
│  PocketSphinx dictionary (stt_engines/pocketsphinx/jarvis-dictionary.di  │
│  PocketSphinx language model (stt_engines/pocketsphinx/jarvis-languagem  │
│  PocketSphinx logs (/dev/null)                                           │
│                                                                          │
│                                                                          │
│                                                                          │
│                                                                          │
│                                        │
│                                                                          │
└──────────────────────────────────────────────────────────────────────────┘

Tu peux s'il te plait faire l'essai plusieurs fois de suite et coller le résultat de la console en mode troubleshooting?
$> ./jarvis.sh -lv

-l pour passer directement en mode écoute d'une commande (bypass du hotword)
-v pour le mode troubleshooting

Pour vérifier que c'est bien toujours 00. Mets-toi au calme, évite les bruits parasites.

Tu peux s'il te plait faire l'essai plusieurs fois de suite et coller le résultat de la console en mode troubleshooting?
$> ./jarvis.sh -lv

-l pour passer directement en mode écoute d'une commande (bypass du hotword)
-v pour le mode troubleshooting

Pour vérifier que c'est bien toujours 00. Mets-toi au calme, évite les bruits parasites.

Pas de nouvelle de @clem2k depuis le 30 décembre 2016.
Je suppose donc que le problème est résolu.
Ne pas hésiter à ré-ouvrir le ticket d'incident pour y intégrer le résultat du mode troubleshooting si ce n'est pas le cas :-)

authors: alexylem clem2k wikijm


text:
docker exec /bin/bash or logs error

command enter docker output the following error
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: "/bin/bash": stat /bin/bash: no such file or directory": unknown

can only use /bin/sh enter docker
2.Through docker view log is empty, enter the container content view has log

Are you trying to shell in with bash? Alpine images don't have bash installed by default, just sh.

authors: AKcheng alfg

repo: alfg/docker-nginx-rtmp


text:
Search for countries

Adding a search bar to search for country names in Stats tab would be useful.

@alfianlosari I have added a search bar for searching countries in my pull request( #4 ) to address this issue by @FaroukZeino .
Please have a look

Closing this. Merged @SagarSDagdu  commit with search country included.

authors: FaroukZeino SagarSDagdu alfianlosari

repo: alfianlosari/CoronaVirusTrackerSwiftUI


text:
Suggest Edit: fedecalendino/world-clock

Gallery URL
https://alfred.app/workflows/fedecalendino/world-clock/
Website
No response
Report Bug
No response
Forum
No response
About
The current globe icon takes up a significant amount of space without offering much information. I propose replacing it with the respective country flag. This adjustment would allow users to quickly identify the correct timezone at a glance.
Notes
No response

If you want to request a new feature for a workflow, click the Website link and contact the workflow’s creator. The link you clicked is to suggest edits to the Gallery page.

authors: vbshubham vitorgalvao

repo: alfredapp/gallery-edits


text:
broken gpg support for debian repos

this should never happen:
$ merfi gpg
--> Starting path collection, looking for files to sign
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/merfi/bin/merfi", line 10, in <module>
    execfile(__file__)
  File "/home/ubuntu/python/merfi/bin/merfi", line 6, in <module>
    main.Merfi()
  File "/home/ubuntu/python/merfi/merfi/main.py", line 38, in __init__
    self.main(argv)
  File "/home/ubuntu/python/merfi/merfi/decorators.py", line 45, in newfunc
    return f(*a, **kw)
  File "/home/ubuntu/python/merfi/merfi/main.py", line 60, in main
    parser.dispatch()
  File "/home/ubuntu/.virtualenvs/merfi/local/lib/python2.7/site-packages/tambo-0.2.0-py2.7.egg/tambo/dispatcher.py", line 22, in dispatch
    return instance.parse_args()
  File "/home/ubuntu/python/merfi/merfi/backends/base.py", line 16, in parse_args
    self.sign()
  File "/home/ubuntu/python/merfi/merfi/backends/gpg.py", line 36, in sign
    repo_paths = RepoCollector.debian_release_files(repo)
  File "/home/ubuntu/python/merfi/merfi/collector.py", line 69, in debian_release_files
    root, dirs, files = next(walk(dists))
StopIteration

It also seems like I need to be in a specific directory for this to work, which should never be the case. There is no need to call next either, one can just loop over the iterator here.

Fixed with a8e3214cbd36232d983374927d382472aae69f02

repo: alfredodeza/merfi


text:
Save parameters from previous backtest run for the papertrade run

Once a strategy has been backtested, if a user wants to papertrade on the same strategy for same parameters as backtesting, allow him to just call .papertrade() function with only strategy, start/end times.
The other parameters, which are same as BT, should be picked up from BT automatically
This issue is taken in this PR: #31

repo: algobulls/pyalgotrading


text:
clearCache safe while multiple queries are in flight?

Do you want to request a feature or report a bug?
Report a documentation bug
What is the current behavior?
Documentation on whether it is safe to invoke clearCache while multiple queries are in flight is missing.
I am using algoliasearch within a ReactNative app.  It's fast and awesome, thanks!  :-)
However, I'm having issues where when I use an index just to provide ranked results (e.g. return the most recent posts from index posts_most_recent ordered by published time desc) then once I do the search once, the results get cached and the search never updates on the client.  The search has  no actual query, it's just "return results from this index according to its sort criteria", literally:
const query = ...; // '' or undefined
client.search(
          {
            query,
            page,
            hitsPerPage: 20,
            attributesToHighlight: [],
          },
         ...
);

I am caching the client instance.  My question is, would it be safe to clear the cache just before invoking search if the page is zero?  As in:
if (!page || page < 1) {
    console.log("clearing cache for page", page);
    client.clearCache();
}

const query = ...; // '' or undefined
client.search(
          {
            query,
            page,
            hitsPerPage: 20,
            attributesToHighlight: [],
          },
         ...
);

Will this be safe if client already has searches ongoing?  For example, if using the same client instance I do:
clear cache
start search 1 on query = ''
clear cache
start search 2 on query = '', same index as search1
search1 returns page 0
search2 returns page 0
clear cache
search1 returns page 1
...

In other words, does interspersing clearCache and search calls in any way cause race conditions in algoliasearch js client, or is it safe?
Or alternatively, is there any kind of cache-busting technique I can use like add some kind of searchId: random-uuid to make each query seem the different even if there actual query value is the same?
Or alternatively, could I just create a new algoliaseachclient instance for each search?  Is that expensive to new an instance for each search?  Are there any globals that might get stomped on?
Thanks!
If the current behavior is a bug, please provide all the steps to reproduce and a minimal
JSFiddle example or a repository on GitHub that we can npm install
and npm start.
What is the expected behavior?
Documentation on whether it is safe to invoke clearCache while multiple queries are in flight is missing.

Hi @joelgetaction and thanks for your very detailed question.

In other words, does interspersing clearCache and search calls in any way cause race conditions in algoliasearch js client, or is it safe?

Yes it is safe, the call to clearCache is synchronous and very fast (it's actually just var cache = {}).

Or alternatively, is there any kind of cache-busting technique I can use like add some kind of searchId: random-uuid to make each query seem the different even if there actual query value is the same?

There's no public option to disable the cache, you could try _useCache: false in client options but it's private for now. I think it's a good idea to make it public.

Or alternatively, could I just create a new algoliaseachclient instance for each search? Is that expensive to new an instance for each search? Are there any globals that might get stomped on?

Yes that will work too.
For now I recommend just calling clearCache() before every search.
Thanks!

authors: joelgetaction vvo

repo: algolia/algoliasearch-client-javascript


text:
fix(insights): add Algolia agent on subscribe

Summary
This adds an Algolia agent on the Insights client when the plugin subscribes so that Insights calls coming from the plugin can be identified as such.
I'm making a direct call on the passed client and didn't implement an addAlgoliaAgent on the wrapped client that we expose in methods. This saves a few bytes, and we don't want users to ever add agents anyway.
Now that the Insights client sends at least one event on subscribe, some tests had to be tightened as they were causing false positives.
FX-2062

maybe instantsearch-autocomplete-plugin, but that's longer, and would be inconsistent with InstantSearch

authors: Haroenv sarahdayan

repo: algolia/autocomplete


text:
fix(is-jquery): Add back clear labels

Current version does not have the labels to clear some part of the current query.
This version fixes that.

I would say ESLINT was already confused before that so no big deal..

Thanks @Haroenv @vvo for the review :)

authors: bobylito vvo

repo: algolia/examples


text:
rangeSlider should support more formatting functions

The rangeSlider should support formatting for the min/medium/max values, similar to how it formats the tooltip.
This is how timestamps look currently:

Do you want to request a feature or report a bug?
Feature
Feature: What is your use case for such a feature?
Handling dates.  For example, a facet of timestamps.
Feature: What is your proposed API entry? The new option to add? What is the behavior?
Maybe something like
templates: {
   values: function(value) {
       return moment(value, 'X').format('ll');
   }
}

Where values refers to the min, medium, and max values shown under the rangeSlider.
What is the version you are using? Always use the latest one before opening a bug issue.
Latest

Thanks for the feedback @gzzo This is not planned as we speak. In the mean time you could be interested in trying to implement your own slider using the connector.

authors: bobylito gzzo


text:
Browser crash when going three levels deep in hierarchical

An image is worth a thousand words:

No errors in console.

Cannot reproduce it also

Was able to reproduce it by clicking the exact same things than you :)

@pixelastic found the relevant loop, will let @redox handle it

authors: pixelastic vvo


text:
docs(react-instantsearch): remove mentions of ris

Since we moved react-instantsearch to
https://github.com/algolia/react-instantsearch/ and
https://community.algolia.com/react-instantsearch/
We can now remove mentions of the old repo organisation

Travis fails because this PR is done to master, and not to develop
./scripts/validate-pr-done-on-develop.sh
Error: Pull request cannot be done on master

Thanks for all the review @Haroenv, much appreciated because I forgot many things :)

authors: Haroenv vvo


text:
feat(connectFrequentlyBoughtTogether): implement sendEvent

Summary
This PR backports the changes in https://github.com/algolia/instantsearch/pull/6126/commits/8498792747eb81793aee96599ef670aedca6c632 to the relevant branch where it impacts the connector.

Moving this back to draft for now (see discussion thread).

repo: algolia/instantsearch


text:
Replace "option{,ed} in" with "opt{,ed} in"

https://www.merriam-webster.com/dictionary/opt in
https://www.lexico.com/definition/opting-in

I'll resolve these merge conflicts by end of week.

Resolved merge conflicts.

repo: algorand/docs


text:
[Feature Request]: HaaSEDUK1 flash driver for new driver framework

Contact Details
No response
What do you want?
HaaSEDUK1 flash driver for new driver framework.
Version
master (Default)

感谢您提出的宝贵问题，我们有7x24小时服务的“HaaS百事通”客服系统，
您可以先尝试能否解决您的问题(https://haas.iot.aliyun.com/?ask=1&f=a2cre.b82925042)

如果“HaaS百事通”没有解决您的问题，请回复“人工支持”，我们会在工作日(10:00-12:00/14:00-18:00)10分钟内回复您。

Done.

repo: alibaba/AliOS-Things


text:
IssueID:1578:HaaS100 flash driver for new driver framework

[Detail]
HaaS100 flash driver for new driver framework.
[Verified Cases]
Build Pass: helloworld_demo@haas100
Test Pass: helloworld_demo@haas100

感谢提交 Pull Requests！
Thanks for submitting a pull request.

Security Check : aa8e07a8e89b9b950079f83c649db5db2d03bebc

auto build success,number:82

autotest success,number:1159


text:
Add the performance & tunning page for GAE

Related issue number
Part of #2628

Cool! An essentially but missing piece of the GAE docs.
Comment: how do you think about attaching some performance reports conducted by Shumin as micro-benchmarks?

how do you think about attaching some performance reports conducted by Shumin as micro-benchmarks?

Will be handled by @vegetableysm in a separate PR.

authors: sighingnow yecol

repo: alibaba/GraphScope


text:
Activate stale app

What do these changes do?
Add an stale app that automatically mark issues and prs as stale after a fixed time.

Codecov Report

Merging #48 (665317a) into main (39e3985) will decrease coverage by 12.31%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main      #48       +/-   ##
===========================================
- Coverage   78.04%   65.72%   -12.32%
===========================================
  Files          49       48        -1
  Lines        4472     4295      -177
===========================================
- Hits         3490     2823      -667
- Misses        982     1472      +490

Impacted Files
Coverage Δ

python/graphscope/interactive/__init__.py
0.00% <0.00%> (-100.00%)
:arrow_down:

python/graphscope/interactive/query.py
0.00% <0.00%> (-94.65%)
:arrow_down:

python/graphscope/deploy/kubernetes/utils.py
12.50% <0.00%> (-61.46%)
:arrow_down:

python/graphscope/deploy/kubernetes/cluster.py
23.13% <0.00%> (-51.12%)
:arrow_down:

...n/graphscope/deploy/kubernetes/resource_builder.py
29.03% <0.00%> (-32.56%)
:arrow_down:

python/graphscope/analytical/app/triangles.py
80.00% <0.00%> (-20.00%)
:arrow_down:

python/graphscope/client/utils.py
79.16% <0.00%> (-16.92%)
:arrow_down:

python/graphscope/client/rpc.py
66.93% <0.00%> (-16.89%)
:arrow_down:

python/graphscope/client/session.py
63.44% <0.00%> (-9.62%)
:arrow_down:

python/graphscope/framework/vineyard_object.py
83.33% <0.00%> (-4.17%)
:arrow_down:

... and 13 more

Continue to review full report at Codecov.

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


text:
Perhaps more information can be exposed to the Executor to guide scheduling

Search before asking

[ ] I searched the issues and found no similar issues.

What happened + What you expected to happen
有些场景是在同一个Executor上运行一些具有不同优先级的任务；
有些场景下用户将运行的任务根据id分为几个集合，并希望Executor尽可能同时执行完这些任务；
也许可以将lazel_local暴露给Executor，用户的Executor实现可以根据lazy_local信息执行各种调度策略。
Reproduction way
Anything else
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

感觉对 Executor 的修改还是以通用/兼容的方式去更改比较好。例如在 Executor 增加 Lazy_locals 的接口看上去就没有直接在 Executor 中增加优先级相关的接口好。
这样可以在用户自定义的 awaiter 中写：
await_suspend() {
    void *lazy_local = get lazy locals
    user_type *u = convert lazy_local to user_type
    priority_type p = get priority from u
    executor->schedule(resume_fn, p);
}

这样看上去会更好一些

首先肯定是要满足前向兼容的，这里优先级只是一个例子，我的意思是我们可以直接加一个schedule(func, void*)的接口，默认实现就是调用schedule(func)，然后把现在所有调用schedule的地方重构，检测lazy_local是否为nullptr，是的话调用schedule(func)，不是的话从promise拿到lazy_local，然后调用schedule(func, void*)。
这样，只有用户同时自定义了schedule(func, void*)并且提供了lazy_local，才会调用新的接口，其他情况都是走schedule(func)，是完全兼容的。
这样的好处是async_simple完全不需要感知Executor的设计，只需要负责传递void*指针，由实现者把它转为优先级或者id或者其他更复杂的类型来指导调度。
其实我们缺少的是一个将用户信息透传给Executor的设计，async_simple只需要做中间层传递信息就行。

但 schedule(func, void*) 这种接口的语义太奇怪了，void* 基本没有任何语义。多态接口的意义是可以在不同的实现间迁移，但  schedule(func, void*)  明显不满足这种要求。

async_simple完全不需要感知Executor的设计

异步库可以和 Executor 的具体实现解藕，但肯定是需要感知 Executor 的设计接口的。

emmm是这样的，这种接口擦除了太多信息，好处是非常灵活，可扩展性强，坏处是由于信息擦除导致不能提供一个完备的抽象层，实际上将上层应用和Executor耦合起来了。
那就先加一个优先级的接口吧，支持固定计算资源的条件下跑一些不同优先级的任务场景。

是的，现在看编程的主流趋势都是 prefer explicit than implicit 的。Implicit 的很多东西都被看成 hack 了，感觉不是很受欢迎。

感觉对 Executor 的修改还是以通用/兼容的方式去更改比较好。例如在 Executor 增加 Lazy_locals 的接口看上去就没有直接在 Executor 中增加优先级相关的接口好。
这样可以在用户自定义的 awaiter 中写：
await_suspend() {
    void *lazy_local = get lazy locals
    user_type *u = convert lazy_local to user_type
    priority_type p = get priority from u
    executor->schedule(resume_fn, p);
}

这样看上去会更好一些

优先级应该和lazy_local类似，是绑定到RescheduleLazy的属性吧，否则resume_fn的优先级只能保留到下次挂起，需要用户每次在suspend中显式指定。

感觉对 Executor 的修改还是以通用/兼容的方式去更改比较好。例如在 Executor 增加 Lazy_locals 的接口看上去就没有直接在 Executor 中增加优先级相关的接口好。
这样可以在用户自定义的 awaiter 中写：
await_suspend() {
    void *lazy_local = get lazy locals
    user_type *u = convert lazy_local to user_type
    priority_type p = get priority from u
    executor->schedule(resume_fn, p);
}

这样看上去会更好一些

优先级应该和lazy_local类似，是绑定到RescheduleLazy的属性吧，否则resume_fn的优先级只能保留到下次挂起，需要用户每次在suspend中显式指定。

这是什么意思呢？没太看明白

额，等我先实现一版再讨论吧，有点抽象。

感觉对 Executor 的修改还是以通用/兼容的方式去更改比较好。例如在 Executor 增加 Lazy_locals 的接口看上去就没有直接在 Executor 中增加优先级相关的接口好。
这样可以在用户自定义的 awaiter 中写：
await_suspend() {
    void *lazy_local = get lazy locals
    user_type *u = convert lazy_local to user_type
    priority_type p = get priority from u
    executor->schedule(resume_fn, p);
}

这样看上去会更好一些

优先级应该和lazy_local类似，是绑定到RescheduleLazy的属性吧，否则resume_fn的优先级只能保留到下次挂起，需要用户每次在suspend中显式指定。

这是什么意思呢？没太看明白

我的意思是这种由用户在suspend中指定优先级调度的方式，优先级只能保留到下一次被挂起，例如：
Lazy<void> test() {
    // 用户在awaiter1中指定了优先级调度
    co_await awaiter1();
    // ...
    // awaiter2中是默认的schedule调度，这之后优先级就丢失了。
    // awaiter2可能是Mutex、Dispatch等
    co_await awaiter2();
    // ...
}

我的这个实现是将优先级（int8_t类型，默认为0）绑定到RescheduleLazy，启动RescheduleLazy可以为其指定一个初始优先级。
并且提供一个UpdatePriority的接口来更新优先级，这种更新可以是延迟的（只更新不重新调度），也可以是立即的（更新并立即重新调度）。
Executor新加一个scheduleWithPriority接口，默认实现就是调用schedule，这样保证前向兼容。然后把async_simple内部使用的schedule替换为scheduleWithPriority，这样Lazy的优先级信息就不会丢失。
https://github.com/alibaba/async_simple/pull/336

我的意思是这种由用户在suspend中指定优先级调度的方式，优先级只能保留到下一次被挂起，例如：
Lazy<void> test() {
    // 用户在awaiter1中指定了优先级调度
    co_await awaiter1();
    // ...
    // awaiter2中是默认的schedule调度，这之后优先级就丢失了。
    // awaiter2可能是Mutex、Dispatch等
    co_await awaiter2();
    // ...
}

我感觉这种场景本来就不应该支持吧？callee 的 context 改变影响 caller 的 context 的改变，这个感觉比较奇怪啊。因为在 async_simple 的层面，整体的设计都是 top-down 的：由用户指定调度器，之后在用户给定的 await_suspend 中进行处理（一般是 IO）。从另一个角度来说，可以将同一个执行流下的若干个 Lazy 看作是一个任务（例如，一个查询）。这也是我们设置 Executor 和 lazy_local 的原因。回到 Priority 中，我们可以接受一个任务有与其他任务不同的优先级，但一个任务的不同部分有着不同的优先级就比较怪了。

我的这个实现是将优先级（int8_t类型，默认为0）绑定到RescheduleLazy，启动RescheduleLazy可以为其指定一个初始优先级。
并且提供一个UpdatePriority的接口来更新优先级，这种更新可以是延迟的（只更新不重新调度），也可以是立即的（更新并立即重新调度）。
Executor新加一个scheduleWithPriority接口，默认实现就是调用schedule，这样保证前向兼容。然后把async_simple内部使用的schedule替换为scheduleWithPriority，这样Lazy的优先级信息就不会丢失。

我的主要 concern 是在这个思路里 Priority 并不是一个具有特殊性的属性。即今天我们想要优先级最高特性，那么明天该怎么保证我们不会想要其他特性呢？例如 Promt。在这种情况下，现在的更改方式看上去不 scalable。

另外一个思路是将现在 Lazy.via(Executor) 中的 Executor 看作是一个调度器适配器，而不是一个单独的调度器。不同的调度器适配器可以对应同一个调度器的不同调度策略。
所以可以有：
Lazy<int> task():

ThreadPool pool;
auto DefaultExecutor = pool.getExecutor();
auto Priority10Executor = pool.getExecutorWithPriority(10);

task.via(Priority10Executor).start();

...

Lazy<int> task() {
    // ...
    co_await dispatch{DefaultExecutor};
}

这样就可以在兼容 async_simple 现有设计的情况下，去进行各种调度器的扩展了。

我的意思是这种由用户在suspend中指定优先级调度的方式，优先级只能保留到下一次被挂起，例如：
Lazy<void> test() {
    // 用户在awaiter1中指定了优先级调度
    co_await awaiter1();
    // ...
    // awaiter2中是默认的schedule调度，这之后优先级就丢失了。
    // awaiter2可能是Mutex、Dispatch等
    co_await awaiter2();
    // ...
}

我感觉这种场景本来就不应该支持吧？callee 的 context 改变影响 caller 的 context 的改变，这个感觉比较奇怪啊。因为在 async_simple 的层面，整体的设计都是 top-down 的：由用户指定调度器，之后在用户给定的 await_suspend 中进行处理（一般是 IO）。从另一个角度来说，可以将同一个执行流下的若干个 Lazy 看作是一个任务（例如，一个查询）。这也是我们设置 Executor 和 lazy_local 的原因。回到 Priority 中，我们可以接受一个任务有与其他任务不同的优先级，但一个任务的不同部分有着不同的优先级就比较怪了。

我的这个实现是将优先级（int8_t类型，默认为0）绑定到RescheduleLazy，启动RescheduleLazy可以为其指定一个初始优先级。
并且提供一个UpdatePriority的接口来更新优先级，这种更新可以是延迟的（只更新不重新调度），也可以是立即的（更新并立即重新调度）。
Executor新加一个scheduleWithPriority接口，默认实现就是调用schedule，这样保证前向兼容。然后把async_simple内部使用的schedule替换为scheduleWithPriority，这样Lazy的优先级信息就不会丢失。

我的主要 concern 是在这个思路里 Priority 并不是一个具有特殊性的属性。即今天我们想要优先级最高特性，那么明天该怎么保证我们不会想要其他特性呢？例如 Promt。在这种情况下，现在的更改方式看上去不 scalable。
另外一个思路是将现在 Lazy.via(Executor) 中的 Executor 看作是一个调度器适配器，而不是一个单独的调度器。不同的调度器适配器可以对应同一个调度器的不同调度策略。
所以可以有：
Lazy<int> task():

ThreadPool pool;
auto DefaultExecutor = pool.getExecutor();
auto Priority10Executor = pool.getExecutorWithPriority(10);

task.via(Priority10Executor).start();

...

Lazy<int> task() {
    // ...
    co_await dispatch{DefaultExecutor};
}

这样就可以在兼容 async_simple 现有设计的情况下，去进行各种调度器的扩展了。

额，我的意思也是这种使用方式不合理，因为你举得这个例子我以为你是这么想的。由RescheduleLazy启动的一系列Lazy可以被看做一个“任务”（或者叫其他什么名字不重要），这些任务具有一些共有的属性（Executor、lazy_local、priority等），这一点我们是达成共识的。

回到 Priority 中，我们可以接受一个任务有与其他任务不同的优先级，但一个任务的不同部分有着不同的优先级就比较怪了。

关于这个问题，其实是为了支持计算密集型任务动态调整优先级（比如周期性的根据执行情况调整任务的优先级，使得多个任务尽量公平的获得cpu），貌似async_simple目前的设计主要还是用来跑io型任务偏多。对于计算密集型任务而言，现在Executor拿到的信息太少了，甚至无法区分哪些func属于同一个或不属于同一个任务，因此一些调度算法就无法使用。（无栈协程的使用具有传染性，并不是专门用协程来跑计算密集型任务）

我的主要 concern 是在这个思路里 Priority 并不是一个具有特殊性的属性。即今天我们想要优先级最高特性，那么明天该怎么保证我们不会想要其他特性呢？例如 Promt。在这种情况下，现在的更改方式看上去不 scalable。

额，这个主要是考虑到之前的设计和兼容性问题，现在的改动确实是这样，也许需要一个更好的实现。

另外一个思路是将现在 Lazy.via(Executor) 中的 Executor 看作是一个调度器适配器，而不是一个单独的调度器。不同的调度器适配器可以对应同一个调度器的不同调度策略。

这样理论上是可行的，但是需要在调度之前提前定义好调度器适配器，适配器的优先级是静态的，然后通过lazy_local传递给Lazy调用栈使用。有点不灵活但是应该也可以用。

emm这个pr我先关了，这种特殊的使用情况可能还是需要fork一份自己定制化，设计总有取舍，确实比较难搞。

关于这个问题，其实是为了支持计算密集型任务动态调整优先级（比如周期性的根据执行情况调整任务的优先级，使得多个任务尽量公平的获得cpu），貌似async_simple目前的设计主要还是用来跑io型任务偏多。对于计算密集型任务而言，现在Executor拿到的信息太少了，甚至无法区分哪些func属于同一个或不属于同一个任务，因此一些调度算法就无法使用。（无栈协程的使用具有传染性，并不是专门用协程来跑计算密集型任务）

这个涉及到调度器的实现了，我们生产用的调度算法是将 scheduler 的 task 分到多个由调度器定义的 Execution Context 中，然后对这些 Execution Context 进行动态调度，包括优先级调整、Stealing 等等。

这样理论上是可行的，但是需要在调度之前提前定义好调度器适配器，适配器的优先级是静态的，然后通过lazy_local传递给Lazy调用栈使用。有点不灵活但是应该也可以用。

虽然没实操过，但我感觉还行吧。因为虽然调度器适配器的定义是静态的，但调度器适配器的选择则可以是动态的。感觉要求提前显式将调度策略对应的适配器声明出来并不是坏事，哪怕在策略种类比较多且复杂的情况下，通过一些元编程技术应该都是可以比较好解决的。


text:
关于druid对hint的解析

#2160 曾经对hint的问题进行了提取发现以下问题（在对1.1.9进行测试后同样存在）

在debug跟踪后发现

在解析selectItem时，这个item后面有注释的话，就当成这个selectItem本身的注释，而不是整个sql的注释（直接调用nextToken()，从而未加入整个语句的comments数组中去）。
看了下mysql的官方对comment的归属也没有做详细的介绍，不知道druid是如何考虑这个hint的归属问题，为何直接将这个hint赋予了selectItem。

不给selectItem，输出时搞不定

@wenshao 我们在应用场景中有些自定义路由是通过hint来定义的，如果hint解析在selectItem中的话会难以找到这个自定义路由，能不能修复一下呢

authors: TimeEraser wenshao

repo: alibaba/druid


text:
Revert "监控配置/sys/druid/*将项目部署到ROOT404问题修改"

Reverts alibaba/druid#2023

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant wenshao


text:
[BUG] 直接反序列化URL字符串报错

version: 2.0.47
JSON.parseObject("http://127.0.0.1:9999/path", String.class)

这样才是合法的
JSON.parseObject("\"http://127.0.0.1:9999/path\"", String.class);

authors: Swiftlyfisher rowstop


text:
文档过于分散

实际阅读文档感觉太分散了，每个.md 文件的内容也没有多少，放在一个文件里可能阅读体验更好，在涉及到其他概念时就不用再去目录找了直接点击就可以跳转到对应的地方

这其实是个集中还是分治的问题。

authors: bxdjsm hyjfine

repo: alibaba/fish-redux


text:
[connector] FlinkRowToFlussRowConverter pass byte[] rather than string From Flink StringData to Fluss BinaryString.

Purpose
fix #255

@loserwang1024 adds some ut tests?

repo: alibaba/fluss


text:
程序过段时间会无法启动

用freeline编译后的程序再过一段时间就打不开了，logcat提示如下
I/Freeline.Service: onStartCommand Received start id 55, intent: Intent { cmp=com.ryx.payment.ruishua/com.antfortune.freeline.FreelineService }
 I/Freeline.Service$Inner: onStartCommand Received start id 1, intent: Intent { cmp=com.ryx.payment.ruishua/com.antfortune.freeline.FreelineService$InnerService }
I/Freeline.Service: onStartCommand Received start id 56, intent: Intent { cmp=com.ryx.payment.ruishua/com.antfortune.freeline.FreelineService }
 I/Freeline.Service$Inner: onStartCommand Received start id 1, intent: Intent { cmp=com.ryx.payment.ruishua/com.antfortune.freeline.FreelineService$InnerService }

@lwmukx1208 无法启动是指app crash了？还是python log反复提示无法连接上设备？

没有crash是反复提示无法连上设备,就像上面的日志那样提示

@lwmukx1208 是否参考过 #152 呢？应该有能够解决你的现象的方法，有可能是使用不当导致的。

repo: alibaba/freeline


text:
antd物料出码效果和预览效果存在较大差异

antd物料，设计态和预览态效果基本一致，但出码后运行差异较大。
1.通过https://github.com/alibaba/lowcode-materials下载物料到本地：
git clone https://github.com/alibaba/lowcode-materials.git
2.进入package下面的antd物料
 cd lowcode-materials/packages/antd-lowcode-materials
3.安装依赖
 npm i
4.运行dev
npm run lowcode:dev
5.打开运行的调试页面，http://loaclhost:3336/
6.拖入表单容器组件：

7.预览

8.出码并下载zip包

9.打开zip包并解压
10.进入解压后的目录，安装依赖
yarn install
11.运行
npm start
12.打开发现很多排版错乱，和预览渲染页面差异较大。

13.如果把物料直接换成转化前的antd组件，则效果正常。

直接访问 antd 和通过 antd-lowcode-materials 间接访问，Rate 组件 className 不一样，手动修改后可以正常渲染，不太明白这是 antd 的什么机制~
@hujiulong 知道么？

问题还在处理吗？

authors: LeoYuan huadw

repo: alibaba/lowcode-engine


text:
not rebase code ,then cI error

Issue Description
Type: feature request
if not rebase code from head , then ci show error.
Describe what feature you want
Additional context
Add any other context or screenshots about the feature request here.

one more additional advice : i think there is no need to run CI build process every time when pr was created.

@kakaZhou719 we need to build it most cases

authors: cuisongliu fanux kakaZhou719

repo: alibaba/sealer


text:
springCloud 整合nacos服务发现 服务注册成功但是feign服务发现时调用失败 同一套代码使用eureka进行feign调用正常

在nacos 的github上提交的问题  他们叫我来这找答案   菜鸟一枚请谅解
springBoot 2.6.3
spring-cloud-dependencies 2021.0.1
spring-cloud-alibaba-dependencies 2021.0.1.0
nacos服务端使用的是1.4.2 nacos控制台中服务已经注册成功

可能是Feign配置问题？方便提供一下Feign配置的代码嘛
具体Feign调用可以参考一下社区的Example具体配置
Example文档

可能是Feign配置问题？方便提供一下Feign配置的代码嘛 具体Feign调用可以参考一下社区的Example具体配置 Example文档

我的demo的naocs注册中心的服务都是一样的cv过来的
`
   <dependency>
        <groupId>cn.hutool</groupId>
        <artifactId>hutool-all</artifactId>
        <version>5.3.10</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>

    <dependency>
        <groupId>com.alibaba.cloud</groupId>
        <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        <exclusions>
            <exclusion>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-loadbalancer</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bootstrap</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

`

可能是SkyWalking的问题，看日志最后一行

Could you provide a demo let us produce the problem?

Long time without response and close first.

authors: HaojunRen Layfolk-zcy TrevorLink steverao

repo: alibaba/spring-cloud-alibaba


text:
schema-editor add button

Add tree button.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.ziyi.hzy seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: ascoders claassistantio

repo: alibaba/uform


text:
Python runs into "exception: access violation reading 0xFFFFFFFFFFFFFFFF"

2023-01-28 13:09:25.610 | ERROR    | __main__:slot_tab1:226 - exception: access violation reading 0xFFFFFFFFFFFFFFFF
Traceback (most recent call last):

  File "C:\deepl-tr-webui\.venv\lib\site-packages\webui\webui.py", line 88, in events
    self.cb_fun_list[element_id](e)
    │    │           │           └ <webui.webui.event object at 0x000002B1C393D790>
    │    │           └ 2
    │    └ [64, <function close_the_application at 0x000002B1C3868820>, <function slot_tab1 at 0x000002B1C3868940>, <function slot_tab2 ...
    └ <webui.webui.window object at 0x000002B1C38EB700>

> File "C:\mat-dir\pypi-projects\deepl-tr-webui\deepl_tr\__main__.py", line 222, in slot_tab1
    evt.window.show(_)
    │   │      │    └ '\n\n<!DOCTYPE html>\n<html>\n    <head>\n        <title>deepl-tr-webui v0.1.0a1</title>\n\n\t\t<meta charSet="UTF-8"/>\n\t\t...
    │   │      └ <function window.show at 0x000002B1C3240790>
    │   └ <webui.webui.window object at 0x000002B1C38EB700>
    └ <webui.webui.event object at 0x000002B1C393D790>

  File "C:\deepl-tr-webui\.venv\lib\site-packages\webui\webui.py", line 109, in show
    WebUI.webui_show_cpy(self.window, html.encode('utf-8'), 0)
    │     │              │    │       │    └ <method 'encode' of 'str' objects>
    │     │              │    │       └ '\n\n<!DOCTYPE html>\n<html>\n    <head>\n        <title>deepl-tr-webui v0.1.0a1</title>\n\n\t\t<meta charSet="UTF-8"/>\n\t\t...
    │     │              │    └ c_void_p(2962450691904)
    │     │              └ <webui.webui.window object at 0x000002B1C38EB700>
    │     └ <_FuncPtr object at 0x000002B1C39225F0>
    └ <CDLL 'C:\deepl-tr-webui\.venv\lib\site-packages\webui\webui-2-x64.dll', handle 7ffe91cd0000 at 0x2b1c3...

OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFF
[nodemon] app crashed - waiting for file changes before starting...

I use the newest python binding of webui2. Very often when I try to swap html (my ui implments some tabs, each tab is a some html), webui crashes with the error message above. The webui-2-x64.dll', handle 7ffe91cd0000 at 0x2b1c3... part seems to be the same in each crash. My environ: Win10, python 3.8.10, webui2 2.0.3 (pypi).
Is there anything I can do to fix it?  Thanks a lot.

Thank you for sharing this. I'm not sure, but I guess there is a mix between the WebUI v2.0.3 in the PyPI package and WebUI v2.0.5 in this GitHub repo.
C:\deepl-tr-webui\...\webui-2-x64.dll should be the same version as C:\deepl-tr-webui\...\webui.py
For now, try to building WebUI source code using any C compiler to get the latest webui-2-x64.dll, I will update the PyPI package in the next few days after finishing implementing some new features.

Thanks very much for the reply. I look forward to pypi webui2 v2.0.5.
I seem to have successfully compiled build/Windows/MSVC. But when I try to run main.py in webui\examples\Python\dev, I got
$ python main.py
WebUI Exception: [WinError 193] %1 is not a valid Win32 application

I also copied   webui-2-static-x64.lib  webui-2-x64.dll  webui-2-x64.lib from build/Windows/MSVC and the webui.py in the repo to .venv\Lib\site-packages\webui and of course still got the message.
I guess I'll just wait for the official pypi webui2 v2.0.5.

I think your system is 32-bit
and the library webui-2-x64.dll is 64-bit
check it out.
If that, You must compile the library in 32-bit
Sorry for my bad english

Thanks for the hint. But my system is actually a 64bit:
wmic os get osarchitecture
OSArchitecture
64-bit

I tried to reproduce the error using https://github.com/ffreemt/deepl-tr-webui but it always works. Probably you have a non-committed code in your machine that has this issue.

Hm... I tried again, still a lot of crashes with similar exceptions. I was not able to fix it with what I thought might cause the problem and had to put the little side project on hold.
I've pushed everything to the github repo. If you can find the time, please give it another try. Maybe try to click the Translate tab, edit a cell/save it and click another tab. It will most likely crash.
Maybe I should try a different Python version. I use Python 3.8.10. What python version do you have? Thanks.

Sure, I will give it a try soon. I'm using Python 3.10.5

Hi @ffreemt, I tried many times to reproduce the issue but I can't. Those are the steps I did:

Run Windows Sandbox
Install Python 3.8.10 (default settings) - https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe
Install Git (default settings) - https://git-scm.com/download/win
Install GCC TDM  (default settings) - https://jmeubank.github.io/tdm-gcc/download/
Install VS Code
Terminal -> pip install git+https://github.com/ffreemt/deepl-tr-webui
Terminal -> cd Downloads\webui-main\webui-main\build\Windows\GCC -> mingw32-make debug
Copy webui-2-x64.dll to AppData\Local\Programs\Python\Python38\Lib\site-packages\webui
Copy webui-main\packages\PyPI\src\webui\webui.py to AppData\Local\Programs\Python\Python38\Lib\site-packages\webui
Terminal -> git clone https://github.com/ffreemt/deepl-tr-webui
Terminal -> cd deepl-tr-webui
Terminal -> python -m deepl_tr

I noticed that the tabs have an empty ID. Probably the tabs need to have a bigger Z level to bring it to the top.

I tested manually sending the click event using the console and it works.

I guess it will be helpful to identify the issue if you re-build the WebUI in debug mode so you can see the debug info in the console, then try to crash it and share the whole console here.

pre-compiled-webui-debug.zip
You can simply use my built files to save time, just copy the files into the Python package folder. Or re-build it using those steps

Install GCC TDM (default settings) - https://jmeubank.github.io/tdm-gcc/download/
(Optional) To also see the logs in DevConsole in the browser change _webui_log to true https://github.com/alifcommunity/webui/blob/e56b1e5ea32313c48e775d1f414c7e88e7c60b96/src/webui.c#L27
Terminal -> cd Downloads\webui-main\webui-main\build\Windows\GCC -> mingw32-make debug

Thanks a lot. I give another try.
I tried previously with python 3.10, still crashes too often. I used the official pypi webui2 2.0.3
My Win10 has VSC. I successfully compiled webui2 2.0.5 but was not able to use it (some errors).
I really wonder what's the reasons for those crashes.

I guess it will be helpful to identify the issue if you re-build the WebUI in debug mode so you can see the debug info in the console, then try to crash it and share the whole console here.

To identify the reason let's start by capturing the WebUI logs and shared here

To enable the logs, just open the Visual Studio example project, and uncomment #define WEBUI_LOG in webui.c

I tried your pre-compiled-webui-debug.zip. I can start python -m deepl_tr alright, but i can't switch to 2nd tab. So it appears not working or maybe I missed something.
I noticed there is a webui-2-x64.so file in Lib\site-packages\webui while your pre-compiled-webui-debug.zip just has webui.py and webui-2-x64.dll. Also, aftering copying your two files to Lib\site-packages\webui, pip show webui2 still shows Version: 2.0.3.
I'll try to follow your 12 steps and give another try. I am not too sure about Step 6

Terminal -> pip install git+https://github.com/ffreemt/deepl-tr-webui

Shouldn't I instead git clone webui2 repo to the current directory?
Thanks again.

webui-2-x64.so is a WebUI library for Linux.
pip show webui2 will still show the version in the config file which is 2.0.3 even if you update the .dll file
The purpose of doing this is so you can see the logs in your terminal then copy all the logs and share it here

You can also keep the same old code you have, just uncomment #define WEBUI_LOG and re-build, then share here the logs from the terminal.

I hope you find some free time to share the console logs to help us fix this issue.

I tried your pre-compiled-webui-debug.zip. I can start python -m deepl_tr alright, but i can't switch to 2nd tab.

As I mentioned previously, if I use the files in your pre-compiled-webui-debug.zip, I can‘t switch to other tabs when running python -m deepl_tr, hence I cannot reproduce a crash.
I also tried to compile following your steps. When I used the compiled files, I got the same outcome: unable to switch to other tabs (hence unable to crash).
I tried various combinations: comment/uncomment #define WEBUI_LOG, mingw32-make/mingw32-make debug. The result is always the same: unable to switch to other tabs.
Is there anything else I should try, or just wait for the new version of webui2 and hope it will fix my problem?

WebUI PyPI v2.0.6 is available. You can upgrade using the command pip install --upgrade webui2
A New Python Example is added for using WebUI to serve a folder.

authors: AlbertShown ffreemt hassandraga mohamedke

repo: alifcommunity/webui


text:
Abandoned?

@alinz Would be nice to know if you're just busy, or if you're done maintaining this -- for the sake of knowing whether we should invest time building on top of this.

@alinz I second @ivanakimov.

@ivanakimov very busy at the moment, I have done some major refactor but it's not nearly ready for production. My plan was to put it into the core but things keep coming up. Please bear with me or fork it for now until I finish all my stuff.

@alinz Fair enough. Bearing in progress ;)

Is there an estimate for the baring time ^^;

Closing, since @hmedney is kicking ass and taking names :muscle: :smirk:

@ivanakimov could you explain what @hmedney is doing?

authors: adamkdean alinz amrdraz ivanakimov jqn

repo: alinz/react-native-webview-bridge


text:
Items in cart does not fully refresh

When you click on the Add button pon a product to add it to your cart it never updates the counter on the cart button until after a page refresh.
This happens on the product listing page as well as the product page

Modified the thunk for adding an item to the cart to chnage the state variable update and added a selector export so components can utilise the value.
In the main app component added the selector result as a dependency on the useEffect for laoding data so when an item is added the cart count is updated properly.

repo: alittlebroken/ecommerce-client


text:
refine case

优化case。1. 测试配置红环境变量中读取； 2. 增加case稳定性。

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

commit

authors: CLAassistant baiyubin

repo: aliyun/aliyun-oss-go-sdk


text:
player do NOT release? console log a lot

AliPlayerSDK_iOS (5.1.1):
12-28 18:18:15.561 60771 0x7dc1c D [12905526] [demuxer_service]: /Users/yuanzhan/.emas/build/12905526/workspace/work/CicadaPlayer/framework/demuxer/demuxer_service.cpp:233(GetProperty)
12-28 18:18:15.811 60771 0x7dbf3 D [12905526] [GLRender]: video fps is 0
12-28 18:18:16.164 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 22.965254
12-28 18:18:16.164 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:16.165 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:16.165 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:16.165 60771 0x7c696 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: loop index is 22.905287
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 22.904236
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:16.314 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:16.340 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: loop index is 22.953932
12-28 18:18:16.414 60771 0x7c79f D [12905526] [GLRender]: video fps is 0
12-28 18:18:16.810 60771 0x7dbf3 D [12905526] [GLRender]: video fps is 0
12-28 18:18:17.174 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 22.780037
12-28 18:18:17.174 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:17.174 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:17.174 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:17.175 60771 0x7c696 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:17.350 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: loop index is 22.783895
12-28 18:18:17.353 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: loop index is 23.081673
12-28 18:18:17.354 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 23.082405
12-28 18:18:17.354 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:17.354 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:17.354 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:17.354 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:17.413 60771 0x7c79f D [12905526] [GLRender]: video fps is 0
12-28 18:18:17.811 60771 0x7dbf3 D [12905526] [GLRender]: video fps is 0
12-28 18:18:18.176 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 22.960667
12-28 18:18:18.176 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:18.176 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:18.176 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:18.176 60771 0x7c696 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:18.351 60771 0x7c696 D [12905526] [MeidaPlayerUtil]: loop index is 22.981958
12-28 18:18:18.395 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: loop index is 23.049574
12-28 18:18:18.395 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadLoopIndex is 	 23.047338
12-28 18:18:18.395 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadAgainIndex is	 0.000000
12-28 18:18:18.395 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadGotIndex is	 0.000000
12-28 18:18:18.395 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]: mReadTimeOutIndex	 is 0.000000
12-28 18:18:18.396 60771 0x7dbd9 D [12905526] [MeidaPlayerUtil]:
12-28 18:18:18.415 60771 0x7c79f D [12905526] [GLRender]: video fps is 0

Try to set log level higher than debug

Try to set log level higher than debug

Sorry，my fault
My scene is
I have stopped and destroyed the player, but there is still log output

Sorry，my fault
My scene is
I have stopped and destroyed the player, but there is still log output

authors: I-m-SuperMan Wu-Dong-Hui

repo: aliyunvideo/AliPlayerSDK


text:
Use TCP_NODELAY for subscriber (ROS publisher)

This will prevent nats-ros-connector from buffering packets with Nagles alg on the ROS publisher.
Solved by adding rospy.Publisher(..., tcp_nodelay=True) on https://github.com/aljanabim/nats-ros-connector/blob/4fb6cc8b15bcf739e0943053b39eae67c010c70f/src/nats_ros_connector/nats_subscriber.py#L31
https://stackoverflow.com/questions/3761276/when-should-i-use-tcp-nodelay-and-when-tcp-cork
http://wiki.ros.org/rospy/Overview/Publishers and Subscribers

Note that the user might still publish to nats using tcp_nodelay=False since they set up the publisher. This fix merely fixes the ROS publisher that is created for any nats subscriber

repo: aljanabim/nats-ros-connector