mitochondrion synonym

Can we have "mitochondria" as an exact synonym for
GO:0005739 "mitochondrion"?
In fact, there are about 22 GO terms that use
"mitochondrion", which is the proper singular form of
the word.  Maybe they should all get exact synonyms
using "mitochondira"?  It isn't unlikely that some
folks will search for "mitochondria" terms.
-Doug
Reported by: doughowe
Original Ticket: "geneontology/ontology-requests/3123":https://sourceforge.net/p/geneontology/ontology-requests/3123

thanks www.movied.org


Finish your interactive Dash app with R and ggplotly

rubric={accuracy:10, quality:5, viz:15}
Put together all the code your team members created for IA2 in an DashR in the UBC-MDS repo you created for milestone3.
The goal is to implement most of your milestone 2 dashboard, so that you can compare dashboard development in Python and R. But if the app it is not 100% identical we are still going to consider it correct.
The main reason to deviate from your milestone 2 dashboard is if your TA has given you feedback that you want to implement.
Update your README with a link to the deployed R dashboard and a new image/gif of the R dashboard in action.
Note that TAs will be grading your app on Heroku in a full-screen window.
Again, the app should be easily usable, so focus on the most important things first. include the link to your deployed dashboard clearly visible near the top of your README or in the ABOUT section of the repo.

I will add a new image/gif of the R dashboard in action.
I will add links to heroku deployment in Readme and in About section (with description).
I will add a few keywords describing which plots, widgets, and interactions you have used in your dashboards below the link


python manage.py oscar_populate_countries throws error -

Hello,
while running the following command I get this error -
./manage.py oscar_populate_countries
or
python manage.py oscar_populate_countries -
This' the log.
./manage.py oscar_populate_countries
/Users/akos/oscar/lib/python2.7/site-packages/django/utils/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
  return meta(name, bases, d)

/Users/akos/oscar/lib/python2.7/site-packages/django/core/management/__init__.py:345: RemovedInDjango110Warning: OptionParser usage for Django management commands is deprecated, use ArgumentParser instead
  self.fetch_command(subcommand).run_from_argv(self.argv)

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/akos/oscar/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/Users/akos/oscar/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/akos/oscar/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/akos/oscar/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/Users/akos/oscar/lib/python2.7/site-packages/oscar/management/commands/oscar_populate_countries.py", line 58, in handle
    for country in pycountry.countries]
  File "/Users/akos/oscar/lib/python2.7/site-packages/pycountry/db.py", line 22, in __getattr__
    raise AttributeError
AttributeError

I have been google to find the answer. And evening ended up creating a whole new project again. What Im I doing wrong?
Regards

Same for me on a 100% fresh installation.
These are my installed packages in the venv:
$ pip freeze
Babel==2.3.4
Django==1.9
django-extra-views==0.6.4
django-haystack==2.5.1
django-oscar==1.3
django-tables2==1.0.7
django-treebeard==4.1.0
django-widget-tweaks==1.4.1
factory-boy==2.8.1
Faker==0.7.5
mock==2.0.0
pbr==1.10.0
phonenumbers==7.7.5
Pillow==3.4.2
purl==1.3
pycountry==<IP_ADDRESS>
python-dateutil==2.6.0
pytz==2016.10
six==1.10.0
sorl-thumbnail==12.4a1
Unidecode==0.4.19

pycountry changes its API and its versioning scheme.
You can also make a fix for 1.3.

I had to hack the file, made changes to make to works some weeks back.
check this thread
https://groups.google.com/forum/#!topic/django-oscar/_Tfwlnvr43s
regards

Fixed in https://github.com/django-oscar/django-oscar/pull/2199


Improve SSR perf

Performance improvements:
Hyphenation benchmark
String escape benchmark
Also added correct handling of MS vendor prefixing

In the ESBench for escaping, here are the results I get:

My ESBench results look really close to what @trueadm posted.

Maybe use one(regex) when the string.length is at a certain threshold and another(control) for smaller strings. i wonder at what length does regex become the better option than the other.

interesting. i had this code in domvm about a week ago and replaced it with just a string iterator that seemed to bench faster. time to re-bench i guess :/

ok, so here's some data from making a benchmark.js script and running it in node v7.1, win10 x64, E8600  @ 3.33GHz.
TL;DR: escape() is always faster than control(); treatment() is always fastest for longer strings.
source: https://gist.github.com/leeoniya/f8e8930bce61a268a15f70e658bde0d8
I suspect the V8 JIT will also do different optimizations based on CPU features. Also, i get much higher perf on ESBench in Chrome 54 :/
control(shortStr) x 2,835,546 ops/sec ±0.66% (92 runs sampled)
treatment(shortStr) x 3,653,583 ops/sec ±0.82% (86 runs sampled)
escape(shortStr) x 3,981,875 ops/sec ±0.77% (89 runs sampled)
Fastest is escape(shortStr)

control(longStr) x 35,076 ops/sec ±0.86% (87 runs sampled)
treatment(longStr) x 1,385,293 ops/sec ±0.67% (89 runs sampled)
escape(longStr) x 49,923 ops/sec ±0.76% (90 runs sampled)
Fastest is treatment(longStr)

control(shortHtml) x 900,055 ops/sec ±0.59% (87 runs sampled)
treatment(shortHtml) x 760,868 ops/sec ±1.97% (85 runs sampled)
escape(shortHtml) x 1,276,467 ops/sec ±0.71% (90 runs sampled)
Fastest is escape(shortHtml)

control(longHtml) x 99,793 ops/sec ±0.86% (87 runs sampled)
treatment(longHtml) x 164,391 ops/sec ±1.65% (89 runs sampled)
escape(longHtml) x 142,273 ops/sec ±0.57% (88 runs sampled)
Fastest is treatment(longHtml)

@leeoniya interesting that escape is faster than control since number comparison is faster, maybe it's a case charAtCode vs [i] access.
I came across before, what i found was that if the regex is simple and the string is long, regex will beat a string iterator but will loose if the regex is complicated(parsing), short strings are better handled by an iterator since i assume regex+.replace+function will always have an initial payment regardless of the length of the string while a for loops payment is in the number of iterations.
It would be interesting to bench what that payment is(for regex)  and find the sweet spot in terms of string length where the scale is tipped to the side of regex.

I did a benchmark matrix across proportion of escape characters (0-30%) and across string lengths (8-1024)
╔══════╤═══════════╤═══════════╤═══════════╤═══════════╤═══════════╤═══════════╤═══════════╤═══════════╗
║      │ 8         │ 16        │ 32        │ 64        │ 128       │ 256       │ 512       │ 1024      ║
╟──────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────╢
║ 0    │ treatment │ treatment │ treatment │ treatment │ treatment │ treatment │ treatment │ treatment ║
╟──────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────╢
║ 0.15 │ control   │ control   │ treatment │ treatment │ treatment │ treatment │ treatment │ treatment ║
╟──────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────┼───────────╢
║ 0.3  │ control   │ control   │ control   │ control   │ control   │ control   │ control   │ control   ║
╚══════╧═══════════╧═══════════╧═══════════╧═══════════╧═══════════╧═══════════╧═══════════╧═══════════╝

Full benchmarks

control(8, 0) x 4,231,069 ops/sec ±0.69% (92 runs sampled)
treatment(8, 0) x 6,064,993 ops/sec ±0.93% (91 runs sampled)
Fastest is treatment(8, 0)

control(16, 0) x 2,174,277 ops/sec ±0.96% (93 runs sampled)
treatment(16, 0) x 5,690,671 ops/sec ±0.79% (91 runs sampled)
Fastest is treatment(16, 0)

control(32, 0) x 1,166,069 ops/sec ±0.80% (89 runs sampled)
treatment(32, 0) x 5,232,278 ops/sec ±1.04% (91 runs sampled)
Fastest is treatment(32, 0)

control(64, 0) x 622,090 ops/sec ±0.88% (94 runs sampled)
treatment(64, 0) x 4,544,193 ops/sec ±0.92% (89 runs sampled)
Fastest is treatment(64, 0)

control(128, 0) x 324,066 ops/sec ±0.79% (93 runs sampled)
treatment(128, 0) x 3,491,311 ops/sec ±0.81% (93 runs sampled)
Fastest is treatment(128, 0)

control(256, 0) x 166,943 ops/sec ±0.77% (95 runs sampled)
treatment(256, 0) x 2,480,741 ops/sec ±0.92% (89 runs sampled)
Fastest is treatment(256, 0)

control(512, 0) x 82,960 ops/sec ±0.77% (93 runs sampled)
treatment(512, 0) x 1,591,039 ops/sec ±0.90% (90 runs sampled)
Fastest is treatment(512, 0)

control(1024, 0) x 41,796 ops/sec ±0.81% (91 runs sampled)
treatment(1024, 0) x 912,642 ops/sec ±0.75% (89 runs sampled)
Fastest is treatment(1024, 0)

control(8, 0.15) x 4,572,382 ops/sec ±0.70% (94 runs sampled)
treatment(8, 0.15) x 1,967,208 ops/sec ±1.43% (81 runs sampled)
Fastest is control(8, 0.15)

control(16, 0.15) x 2,421,542 ops/sec ±0.78% (89 runs sampled)
treatment(16, 0.15) x 1,780,164 ops/sec ±1.12% (93 runs sampled)
Fastest is control(16, 0.15)

control(32, 0.15) x 1,252,882 ops/sec ±0.62% (93 runs sampled)
treatment(32, 0.15) x 1,302,110 ops/sec ±1.54% (92 runs sampled)
Fastest is treatment(32, 0.15)

control(64, 0.15) x 635,071 ops/sec ±0.77% (94 runs sampled)
treatment(64, 0.15) x 832,170 ops/sec ±1.22% (90 runs sampled)
Fastest is treatment(64, 0.15)

control(128, 0.15) x 321,105 ops/sec ±0.73% (91 runs sampled)
treatment(128, 0.15) x 489,911 ops/sec ±1.16% (88 runs sampled)
Fastest is treatment(128, 0.15)

control(256, 0.15) x 163,003 ops/sec ±0.81% (91 runs sampled)
treatment(256, 0.15) x 269,375 ops/sec ±0.78% (93 runs sampled)
Fastest is treatment(256, 0.15)

control(512, 0.15) x 81,570 ops/sec ±1.24% (94 runs sampled)
treatment(512, 0.15) x 138,517 ops/sec ±1.36% (88 runs sampled)
Fastest is treatment(512, 0.15)

control(1024, 0.15) x 40,068 ops/sec ±0.62% (92 runs sampled)
treatment(1024, 0.15) x 56,123 ops/sec ±0.67% (89 runs sampled)
Fastest is treatment(1024, 0.15)

control(8, 0.3) x 4,995,181 ops/sec ±0.76% (93 runs sampled)
treatment(8, 0.3) x 1,794,450 ops/sec ±1.19% (89 runs sampled)
Fastest is control(8, 0.3)

control(16, 0.3) x 2,484,147 ops/sec ±0.72% (92 runs sampled)
treatment(16, 0.3) x 1,433,019 ops/sec ±1.04% (91 runs sampled)
Fastest is control(16, 0.3)

control(32, 0.3) x 1,263,474 ops/sec ±0.90% (91 runs sampled)
treatment(32, 0.3) x 782,289 ops/sec ±0.63% (92 runs sampled)
Fastest is control(32, 0.3)

control(64, 0.3) x 647,209 ops/sec ±0.75% (89 runs sampled)
treatment(64, 0.3) x 511,862 ops/sec ±1.43% (88 runs sampled)
Fastest is control(64, 0.3)

control(128, 0.3) x 318,222 ops/sec ±0.77% (91 runs sampled)
treatment(128, 0.3) x 293,181 ops/sec ±1.13% (91 runs sampled)
Fastest is control(128, 0.3)

control(256, 0.3) x 159,527 ops/sec ±0.87% (92 runs sampled)
treatment(256, 0.3) x 153,046 ops/sec ±1.04% (94 runs sampled)
Fastest is control(256, 0.3)

control(512, 0.3) x 79,697 ops/sec ±0.86% (94 runs sampled)
treatment(512, 0.3) x 74,548 ops/sec ±1.24% (94 runs sampled)
Fastest is control(512, 0.3)

control(1024, 0.3) x 38,547 ops/sec ±1.26% (91 runs sampled)
treatment(1024, 0.3) x 28,911 ops/sec ±5.15% (82 runs sampled)
Fastest is control(1024, 0.3)

https://gist.github.com/rtsao/08e6db5409c034b842fe9523181e6410
So there the longer the string is and smaller the proportion of escaped characters, the better the RegExp method performs. Since it's not strictly better I'll probably just close this PR...


Missing error mechanism for StdStream

I have a standard hello world program that I'm using to start learning the language, and I'm trying to introduce an error by redirecting the output to a device that doesn't have any free space:
./hello-pony > /dev/full

(Inspired by https://blog.sunfishcode.online/bugs-in-hello-world/)
This (and other similar scenarios) should cause an error, however I see no way to detect it. Looking at the implementation of StdStream.flush() I see this comment:
  """
  Flush any data out to the os (ignoring failures).
  """

This seems like an important gap in the builtin library.
For what it's worth, from a non-Pony developer's perspective, the FileStream error mechanism (requiring a person to check File.errno()) seems less than ideal as well. Maybe that's just a difference in style / preference.
I'd follow the RFP process to suggest a general error mechanism for OutStream, but I'm afraid I don't have the bandwidth for that right now. Apologies.

Thanks. I'm closing this in favor of https://github.com/ponylang/rfcs/issues/205.


Bug 2099535: Adding target blank to error message href links

Signed-off-by: Matan Schatzman<EMAIL_ADDRESS>
📝 Description
Add target blank to open links of error in new tabs.
🎥 Demo

Please add a video or an image of the behavior/changes

/lgtm


React does not recognize the rollNavigation prop on a DOM element.

Hello, This property is causing an error when rendering the input. I'm using NextJS.

Hi! what version are you using?

I'm using the version 4.5.5. Even in your codesandbox example I get the same error in console Chakra Autocomplete Demo

Hi! @DeiverJC the error occurs because your rollNavigation is not on the AutoComplete component. you might have put it on the AutoCompleteList component instead, that was the mistake in the codesandbox demo.

Thanks a lot.


Integration with XygmaNAS and Cozystack to get a hyperconverged cloud-native HA storage

Hello,
What do you think about possibility of integrating your bhyve orchestrator into XygmaNAS to produce something similar to SmartOS immutable OS if using only LiveCD version of XygmaNAS?
Then we could create a VM with Talos Linux on several XygmaNAS nodes, install Cozystack into this K8s cluster and get a HA hyperconverged cloud-native HA storage managed by Linstor Piraeus K8s operator.
Actually Cozystack already includes many cloud-native components like Piraeus operator and easily installed into a ready Talos K8s cluster bootstraping of which could be automated by some tools like Ansible.
If having a VM guest with two block devices:

Give first block device to Talos for its local storage for K8s
Give second block device directly to DRBD managed by Piraeus in Cozystack WITHOUT creating LVM or ZFS pool for Linstor.

This VM is going to be run in a bhyve on FreeBSD XygmaNAS, which will pass through two ZFS zvols into VM as block devices to be used for Talos (first) and for DRBD (second).
I just need to enable HA storage using 2-3 nodes with a such VM on each of them.
It would be a so called hyperconvereged cloud-native storage on the same hosts (but in VM guests) where XygmaNAS itself runs.

Hi, thanks for submitting this issue/request.
I am investigating MooseFS and HAST as potential hyper-converged options for the hoster storage itself, and there are already CSI adapters that work with ZFS and MooseFS.
The setup you describe is very cool on paper/in theory, but overly complicated (at least it is to me), as troubleshooting any issues from that setup might become a nightmare in the long run. I am a really big fan of simple, but feature-complete systems, that's why I chose to develop under FreeBSD in a first place.
Here are my thoughts on how to improve and simplify your setup, but still keep the core concept - K8s with hyper-converged and highly available storage:

Use FreeBSD, not XigmaNAS (you'll have a freedom to release your own customised live images, instead of relying on XigmaNAS release cycles, + if something doesn't work on one release you can try another one or compile the kernel yourself to bake-in a missing feature)
If you can tolerate external storage (outside of your K8s cluster): use NFS, ZFS or MooseFS CSI storage adapters
If you can't tolerate external storage: use OpenEBS, Longhorn, RookFS or Linstor (which keeps the data on the 2nd hard-drive attached to the VM)
Just keep in mind what everyone in this industry says (this is true for any production-grade cluster): do not run K8s-based storage under K8s itself - because if your cluster breaks so does your storage
Hoster already handles most of the heavy-lifting in terms of VM management: fast VM deployments (under 1 second), CloudInit template generation, network and disk management for VMs, process supervision, WebUI, RestAPI, etc etc
I've been testing alternative K8s distros (k3s, k0s and microk8s) under Hoster, but  if need be I can release a Hoster-specific Talos image for easier PoC testing

All in all, I recommend keeping things simple - such setups are easier to maintain in the long run and troubleshoot in case you are having issues.


Update index.rst

Codecov Report

Merging #212 (eeab728) into main (2d7de8e) will decrease coverage by 1.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   81.61%   80.23%   -1.38%
==========================================
  Files          36       36
  Lines        3350     3350
  Branches      647      647
==========================================
- Hits         2734     2688      -46
- Misses        444      477      +33
- Partials      172      185      +13

see 2 files with indirect coverage changes


'MqttStateVacuum' object has no attribute 'async_start_pause'

Home Assistant release with the issue:

0.99.3
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):

Hass.io running on RPi.
Integration:

https://www.home-assistant.io/integrations/vacuum.mqtt/
Description of problem:
Steps to reproduce:

Go to Developer Tools -> Services
Select vacuum.start_pause
Select vacuum cleaner entity (vacuum.rockrobo in my case) from the list
Click "Call service"

Actual behavior
Attribute error as in the title
Expected behavior
Any of:

correct execution of the service (no error, actual start/pause of the vacuum cleaner)
entity not listed if vacuum.start_pause is not applicable to it
error message clearly saying the service is not applicable to the entity (preferably pointing at vacuum.start and vacuum.pause)

Same applies to any other methods of calling a service.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
vacuum object created automatically by mqtt integration (valetudo firmware on xiaomi mi)
Traceback (if applicable):
2019-10-06 16:36:14 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform yr is taking over 10 seconds.
2019-10-06 16:38:23 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1862162384] 'MqttStateVacuum' object has no attribute 'async_start_pause'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1234, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1259, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    self._platforms.values(), func, call, service_name, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 349, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 371, in _handle_service_platform_call
    await getattr(entity, func)(**data)
AttributeError: 'MqttStateVacuum' object has no attribute 'async_start_pause'

Additional information:
Similar to https://github.com/home-assistant/home-assistant/issues/23604

if you are using MQTT State vacuum you no longer have start/pause you must use start or pause service calls.  They are now split up and no longer together.  Maybe its a UI issue since you should not see those buttons?  They should be split up, are you using the old service call?

In lovelace UI indeed they are separate, but in HomeAssist-ng android app I have a single button (in fact the only app I've found that have any buttons for vacuum entity, others only show a state but no buttons).
I get the same effect calling vacuum.start_pause service manually. Regardless of the "proper way" of starting vacuum now, IMO AttributeError definitely is not expected outcome of calling a legitimate service... Do you mean @dshokouhi the vacuum.start_pause service should be removed?

@marmarek few things.  HomeAssist-ng app is not official so can't file bugs against it.
And yes correct you need to stop calling that service and call either vacuum.start or vacuum.pause service calls.
vacuum.start_pause is for legacy: https://www.home-assistant.io/integrations/vacuum.mqtt/#schema but you are not using legacy you are using state

Can the vacuum.start_pause be modified to include this information in the error message? AttributeError is really confusing here.

How app can distinguish them? Looking at schema, or is there some more generic way to get supported services for given entity?

the docs tell you what to use for your vacuum: https://www.home-assistant.io/integrations/vacuum.mqtt/#state-basic-commands
You just need to use your supported services.
There is no support for the HomeAssist app you will need to talk to the creator of that app for support on it.

I'm definitely not asking here about doing anything with HomeAssist-ng app. Lets forget about it. I've updated description to included only HomeAssistant issue, not android app one. For convenience of receiving notification, pasting it here too:
Description of problem:
Steps to reproduce:

Go to Developer Tools -> Services
Select vacuum.start_pause
Select vacuum cleaner entity (vacuum.rockrobo in my case) from the list
Click "Call service"

Actual behavior
Attribute error as in the title
Expected behavior
Any of:

correct execution of the service (no error, actual start/pause of the vacuum cleaner)
entity not listed if vacuum.start_pause is not applicable to it
error message clearly saying the service is not applicable to the entity (preferably pointing at vacuum.start and vacuum.pause)


PodeWebRadio - parameter passing

Hi,
I don't understand how to pass data from PodeWebTextbox to PodeWebRadio.
here is a sample code:
New-PodeWebTextbox -Id 'txtbox' -Name 'Filter' -Type Text -Value '' -AppendText Filter -NoForm
New-PodeWebRadio -Name RGruppen -Options @('1','2','3') -NoForm | Register-PodeWebEvent -Type Change -ScriptBlock {
                    if($WebEvent.Data.RGruppen -eq '1'){
                        if($WebEvent.Data.Filter){
                           $WebEvent.Data.Filter | out-host  ###???
                        }
                    }
}

why inside PodeWebRadio can I only get parameters of PodeWebRadio ?
Thanks

Hi @eugen257,
At the moment, for events, this isn't possible. An event is solely for the element it's registered for. A feature I have thought about is support for "grouping" or "linking" elements together; in this scenario, when the radio button event is triggered, it knows the radio buttons are apart of a group, and will serialise the group, not just the radio buttons.

Hi @Badgerati,
how can i filter by the content of 'Select' for example by typing in another 'textbox' or how can i organize it?


Debug hangs of Client.close at the end of test runs

At the end of test runs, we now had quite a few hanging CI jobs, and I could also locally reproduce this just using plain old pytest tests/. I dug into this and found out it hangs at the atexit function that closes the global client. One thing that came to light is that Client.close() of distributed doesn't pass on the timeout in the synchronous case - if I patch this in, I get the following traceback:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/clausen/.virtualenvs/libertem-debug/lib/python3.7/site-packages/distributed/client.py", line 4556, in _close_global_client
    c.close(timeout=2)
  File "/home/clausen/.virtualenvs/libertem-debug/lib/python3.7/site-packages/distributed/client.py", line 1346, in close
    sync(self.loop, self._close, fast=True, callback_timeout=timeout)
  File "/home/clausen/.virtualenvs/libertem-debug/lib/python3.7/site-packages/distributed/utils.py", line 328, in sync
    raise gen.TimeoutError("timed out after %s s." % (callback_timeout,))
tornado.util.TimeoutError: timed out after 2 s.

But now there are a few questions to answer:

Why is there a global client at all, where is it created? Did we miss a cleanup somewhere?

Idea: breakpoint: when the global Client is registered (or just raise an Exception there)

Is the timeout-ignoring of .close() a feature or a bug?
Why is the close function hanging at all? What is it waiting for?
Debugging with gdb showed quite a lot of threads, are we leaking somewhere?

client.coroutines contains the following:
[<Task finished coro=<Client._handle_report() done, defined at /home/clausen/.virtualenvs/libertem-debug/lib/python3.7/site-packages/distributed/client.py:1151> exception=RuntimeError('generator raised StopIteration')>]

Maybe these issues are also caused by our mocking of time.time? If there is some timeout functionality that relies on monotony of time, which is running in the background while we do our testing,  we may be breaking that...

A dump of threads running when the hang occurs:
[<_MainThread(MainThread, stopped<PHONE_NUMBER>41568)>, <Thread(PyFFTWCacheThread, started daemon<PHONE_NUMBER>23168)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>63008)>, <Thread(Profile, started daemon<PHONE_NUMBER>15872)>,
<Thread(TCP-Executor-20745-0, started daemon<PHONE_NUMBER>10144)>, <Thread(Dask-Offload_0, started daemon<PHONE_NUMBER>15040)>,
<Thread(TCP-Executor-20745-1, started daemon<PHONE_NUMBER>06848)>, <Thread(IO loop, started daemon<PHONE_NUMBER>14144)>,
<Thread(Profile, started daemon<PHONE_NUMBER>45024)>, <Thread(IO loop, started daemon<PHONE_NUMBER>18208)>,
<Thread(Profile, started daemon<PHONE_NUMBER>52320)>, <Thread(IO loop, started daemon<PHONE_NUMBER>03616)>,
<Thread(Profile, started daemon<PHONE_NUMBER>89024)>, <Thread(IO loop, started daemon<PHONE_NUMBER>10912)>,
<Thread(Profile, started daemon<PHONE_NUMBER>64000)>, <Thread(IO loop, started daemon<PHONE_NUMBER>25504)>,
<Thread(Profile, started daemon<PHONE_NUMBER>78592)>, <Thread(IO loop, started daemon<PHONE_NUMBER>96320)>,
<Thread(Profile, started daemon<PHONE_NUMBER>93184)>, <Thread(IO loop, started daemon<PHONE_NUMBER>59616)>,
<Thread(Profile, started daemon<PHONE_NUMBER>81728)>, <DummyProcess(Thread-1, started daemon<PHONE_NUMBER>07680)>,
<DummyProcess(Thread-2, started daemon<PHONE_NUMBER>22272)>, <DummyProcess(Thread-3, started daemon<PHONE_NUMBER>00480)>,
<DummyProcess(Thread-4, started daemon<PHONE_NUMBER>14976)>, <DummyProcess(Thread-5, started daemon<PHONE_NUMBER>71296)>,
<DummyProcess(Thread-6, started daemon<PHONE_NUMBER>93088)>, <DummyProcess(Thread-7, started daemon<PHONE_NUMBER>00384)>,
<DummyProcess(Thread-8, started daemon<PHONE_NUMBER>29568)>, <Thread(Thread-9, started daemon<PHONE_NUMBER>36864)>,
<Thread(Thread-10, started daemon<PHONE_NUMBER>22176)>, <Thread(Thread-11, started daemon<PHONE_NUMBER>29472)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>85888)>, <Thread(Profile, started daemon<PHONE_NUMBER>36768)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>51264)>, <Thread(Profile, started daemon<PHONE_NUMBER>51360)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>65856)>, <Thread(Profile, started daemon<PHONE_NUMBER>65952)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>07776)>, <Thread(Profile, started daemon<PHONE_NUMBER>80352)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>80448)>, <Thread(Profile, started daemon<PHONE_NUMBER>87648)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>94944)>, <Thread(Profile, started daemon<PHONE_NUMBER>87744)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>02240)>, <Thread(Profile, started daemon<PHONE_NUMBER>09536)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>24128)>, <Thread(Profile, started daemon<PHONE_NUMBER>09440)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>73152)>, <Thread(Profile, started daemon<PHONE_NUMBER>16736)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>24032)>, <Thread(Profile, started daemon<PHONE_NUMBER>31328)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>60416)>, <Thread(Profile, started daemon<PHONE_NUMBER>53216)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>75008)>, <Thread(Profile, started daemon<PHONE_NUMBER>45824)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>95040)>, <Thread(Profile, started daemon<PHONE_NUMBER>44064)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>03072)>, <Thread(Profile, started daemon<PHONE_NUMBER>82304)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>38624)>, <Thread(Profile, started daemon<PHONE_NUMBER>67712)>,
<Thread(IO loop, started daemon<PHONE_NUMBER>38528)>, <Thread(Profile, started daemon<PHONE_NUMBER>58560)>]

As the hangs did not re-appear since merging that commit, I'm going to close this issue


Add support for mock aliases

From<EMAIL_ADDRESS>on March 25, 2009 06:56:19
Both EasyMock and Mockito have support for mock aliases, the PowerMock API
should have support for this as well.
Original issue: http://code.google.com/p/powermock/issues/detail?id=96

From<EMAIL_ADDRESS>on April 27, 2009 09:56:49
Labels: Milestone-Release1.3

From<EMAIL_ADDRESS>on September 07, 2009 12:14:08
Labels: -Milestone-Release1.3 Milestone-Release2.0

From<EMAIL_ADDRESS>on July 23, 2014 02:02:16
Can I help?
Is too complex? Because I am new to powermock code.

From<EMAIL_ADDRESS>on July 23, 2014 11:41:58
I don't think it should be that difficult since both EasyMock and Mockit API:s supports it. I think the API's would need to be modified with additional overloaded methods for aliases. The aliases must then be delegated to the correct methods in the underluying API ( EasyMock and Mockito).


New function suggestion:

Safer /back:

If player dies at some dangerous places like lava or void, plugin could try to find a closet place (with a range) to make players back-ed at that place.
If plugin failed to found a safe place in range, when players type /back, plugin will teleport them to the actual position of death.

back-protection:
    # search a safe point for players to back, if no places could found within this, then send a message to player to mention that they need to face the dangerous situation on back.
    range: 10
    action: "notify"
    # notify, deny, teleport
    # in messages file:
    #     back-notify: "The place you want to go is not safe. Continue by typing command \"/back confirm\""
    #     back-denied: "You've died at a dangerous place and you can't back to there. Sorry :("
    #     back-teleport: "The place you want to go is not safe, however we teleported you there. :)"

Region limit:

Intergrate with WorldGuard or Residence.

WorldGuard: add flags, named huskhome-{commands}
{commands} should be replaced by command name, like back or tpaccept or sethome.
flag type: string, you could set three values:

notify: player will be notified if they performed this action at this area, meanwhile they need extra commands to confirm their action.
normal (the default value if not present): do nothing
deny: player will be denied if they try to perform this action.

Example:

To prevent some player wrongly set their waypoints (homes) at the world spawn, I created an area called spawn-region and set huskhomes-sethome flag to deny, so if a player typed /sethome in this region, they will be notified and need to type /sethomeconfirm or something else to confirm set their home there.

The Residence is same as WorldGuard, you could consider as you like. :)

Your first request is a duplicate of #36, the second is valid though


Invalid type NoneType for attribute 'gen_ai.request.model' and 'gen_ai.response.model' when instrumenting telemetry with openlit

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
openlit.init()
Error Message and Stack Trace (if applicable)
Invalid type NoneType for attribute 'gen_ai.request.model' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
Invalid type NoneType for attribute 'gen_ai.response.model' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
Invalid type list in attribute 'gen_ai.prompt' value sequence. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or None

Description
Using openLit 1.22.0 for instrumenting for injecting telemetry in our services, produces error in retrieving gen_ai.request.model, gen_ai.response.model and gen_ai.prompt when using langchain-openai >=1.19.0
langchain-openai 1.17.0 is not affected by this problem
System Info
langchain==0.2.14
langchain-community==0.2.12
langchain-core==0.2.36
langchain-openai==0.1.22
langchain-postgres==0.0.6
langchain-text-splitters==0.2.2

The same here

Solved the issue!
It is necessary to fill the optional parameter 'model' of the AzureChatOpenAI class


D-voting integration test with smart contract documentation

Added an integration test to create n nodes and v votes.
Running the test currently shows a comparison between the casted votes and the decrypted votes. However, the decrypted votes read in the proof are still empty, so that this test requires further debugging to understand why the decrypted votes are note the same as the casted votes:
Title of the election : Three votes election
ID of the election : 16a3b508398e330a412f03a2d3e1b45c009f4c063b10e91d553836508229a895
Status of the election : 3
Number of decrypted ballots : 0

don't we have a way to block / observe ?

my bad, I thought we slept more than we actually do


[5.1] Update Mailgun API's Base URL To V3

Have you tested this?

Yes, tested and functional in 4.2 and 5.0

http://blog.mailgun.com/default-api-version-now-v3/
Apparently backwards compatible.


Update Hackathon.md

Changes per @goelvidhi in https://github.com/Comcast/low-latency/issues/1

 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.


[Feature request] myvalenstate

Which country or state would be more befitting to me for a beautiful valentine, if could go there?
I would like you to write a bot, that based on my tag name, would find a state with the most matching characters. And that state will be my (probably) next valentine vacation spot.
Implementation details

[ ] Write the bot command !myvalenstate
[ ] Return a state with the most matching character with tag name (plus some comment).

Example
.myvalenstate
Your valenState is Sweden
Sweden is a Scandinavian nation with thousands of coastal islands and inland lakes, along with vast boreal forests and glaciated mountains.

I'll do that. However there's one question I need to ask. Should I take all countries of the world or just from a specific region, or am I free to choose what countries I use?

@darthdelay Since there are about 195 + 3 countries in the world, (country-state) then, there are additional territories / dependencies. Excluding the substate divisions ( departments, us-states, etc ...)
So, to answer your question, YES, you are free to choose.
You may also create a subset thereof of beautiful states/cities/vacation destinations  as well.

completed


Syntax error with fresh app

When creating a new app as described I get the following error:
Module build failed: /node_modules/bs-loader/index.js:84
      )
      ^

SyntaxError: Unexpected token )

Hi! Could you please provide the versions of Node, Yarn, npm, CRA, and reason-scripts you are using?

node v6.11.3, yarn 1.3.2, npm 3.10.10

It looks like you need to upgrade to at least node 8. We use trailing commas in the bs-loader codebase, which is not supported in node 6.
https://github.com/reasonml-community/bs-loader/blob/master/packages/bs-loader/index.js

This indeed fixed it


No space left on device blocks Provider upgrades

Some recent changes in Go SDK generation pushed the builds over the limit of disk space.

https://github.com/pulumi/pulumi-aws-native/pull/1083
https://github.com/pulumi/pulumi-aws/pull/2792
https://github.com/pulumi/pulumi-azure/pull/1350
https://github.com/pulumi/pulumi-kubernetes/pull/2556
https://github.com/pulumi/pulumi-google-native/pull/925

build_sdk (go)](https://github.com/pulumi/pulumi-azure/actions/runs/6116569557/job/16603257286)
Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/runners/2.308.0/_diag/Worker_20230908-024953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at System.Diagnostics.TraceSource.Flush()
   at GitHub.Runner.Common.TraceManager.Dispose(Boolean disposing)
   at GitHub.Runner.Common.TraceManager.Dispose()
   at GitHub.Runner.Common.HostContext.Dispose(Boolean disposing)
   at GitHub.Runner.Common.HostContext.Dispose()
   at GitHub.Runner.Worker.Program.Main(String[] args)
System.IO.IOException: No space left on device : '/home/runner/runners/2.308.0/_diag/Worker_20230908-024953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
System.IO.IOException: No space left on device : '/home/runner/runners/2.308.0/_diag/Worker_20230908-024953-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Common.Tracing.Error(Exception exception)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)

I've not investigated deeply but this can be also related to Go build dependency caching. If changes in dependencies invalidate the cache but we don't track cache key accurately, it can download the previous cache, and then download new packages again anyway during go build, this can psh things over the line.  Workaround to try here is tinkering with cache keys to force a miss.
Or it can be excessively chatty logging we might need to compress here.

https://github.com/pulumi/pulumi-aws/pull/2792/commits/0301de42af65062534284d290c766b4910dd50d8 fixed the build error. This is a bandaid more then a cure, but it will get us going again.

Yeah this is what @aq17 and I landed on trying based on @thomas11 idea earlier in the day. More power.

Unfortunately K8S repo now fails in test(go) target with the same OOD. This is in on the way to my P1s fixes so I'd like to take this and chase it down a bit deeper.

We've leaned heavily into scheduling workloads on the pulumi-ubuntu-8core runner. This solution seems ok for now but may cause problems if the custom runner is out of capacity. In that case recommendation is to use the GitHub runners with more disk space. I was not able to full root cause for lack of time but I was able to measure K8s disk draw in the Go test job:
free: 231G
$ install stuff
free: 226G (-5G)
$ go test -run COMPILEONLY
free: 218G (-8G)
$ go test
free: 213G (-5G)

This runs out of 14G available on stock runners.
There are multiple reasons Go is very resource hungry here but I don't have exact data. 1. Azure SDK and 2 AWS SDKs and GCP SDKs are pulled into the compilation unit via program test  pulumi/pkg spurious dependencies on Pulumi state backends; 2. when tests are run, more disk space is used by ProgramTest creating project copies; there might be some cleanup opportunity that's being missed.

I'll close for now as I'm not sure it affects us anymore atm with the workarounds in place.

It's worth noting that pulumi-aws fails when building the complete go SDK, before it reaches go integration tests.

Yes most providers just fail to build but K8S also fails to test. In both cases the compilation burden of either SDK or the tests with all the transitive dependencies is what I think sinks the runner.


Enable trimming

Enable trimming. Using multitargeting since .NET Standard doesn't support trimming.

Thanks for the PR. I've merged it. It's included in release 2.0.5.


Wallet Issue -  Wallet icon appears on bottom row of win 64 loads but then

My wallet will not display on the desktop.....  It is listeed

Please help.  Anyone else  having this issue?

Hi @WendyCoin,
is your chain completely synchronized or did you start Omni Core for the first time?

Please feel free to reopen this issue or create a new one, if you have another question.


undefined symbols

During the build:
warning: implicit declaration of function 'FREE_ZVAL'; did you mean 'ZVAL_ZVAL'? [-Wimplicit-function-declaration]
warning: implicit declaration of function 'MAKE_STD_ZVAL' [-Wimplicit-function-declaration]
warning: implicit declaration of function 'zend_objects_get_address'; did you mean 'zend_object_release'? [-Wimplicit-function-declaration]
warning: implicit declaration of function 'ALLOC_INIT_ZVAL' [-Wimplicit-function-declaration]
etc

Trying to load the extension:
PHP Warning:  PHP Startup: Unable to load dynamic library 'NTS/modules/sdl.so' (tried: NTS/modules/sdl.so (NTS/modules/sdl.so: undefined symbol: zend_objects_store_add_ref), /opt/remi/php72/root/usr/lib64/php/modules/NTS/modules/sdl.so.so (/opt/remi/php72/root/usr/lib64/php/modules/NTS/modules/sdl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Instead of fixing all these warnings I decided to remove the code knowing that it is not critical to have it and is going to be better to reimplement it using PHP7 APIs rather than upgrading it.


Add passthrough for VC1, WMV3, MPEG2 and VP9

Note: MPEG2 and VP9 require the following extensions for passthrough:

MPEG-2 Video Extensions
VP9 Video Extensions

Both are free. VP9 requires Windows 1809. I disabled passthrough for these codecs by default, they must be manually enabled. I think it is possible to check if the extensions are installed through UWP APIs, and automatically trigger installation if they are missing. But I never tried those Store APIs, so no promises.

What is still missing here are switches in the sample apps. I felt that the UI gets overcrowded when I'd add 4 more switches. We might have to change the layout somehow. Or maybe we just don't show all the config items.

Nice work!
Regarding the UI, i think we need granular passthroughs for audio and a single switch for video. We never use all the video passthroughs in a single instance since we only have one video stream.

Good idea. One video passthrough switch would simplify the UI significantly.

I updated the samples and added an SDK version check for VP9.

I think we need to do some research on hardware support for these pass-throughs, and adjust the default values accordingly. For exmaple, HEVC should be "false" by default, as not a lot of hardware out in the wild supports it.

I just checked in a class that helps detect if the required extensions are installed for MPEG2 and VP9 (and allows you to open store entry for them).
Since checking for store entrys or hardware devices is expensive, I'd rather not do this automatically, each time a config class is created. It's probably better to leave this to the app, to call it once when appropriate, and fill passthrough themselves.

About detecting hardware support: While there could be a better way, it definitely is possible to get hold of a ID3D11VideoDevice from a MediaStreamSource.
I asked about this on UserVoice (to see if custom DXVA hardware acceleration is theoretically possible):
https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/31915711-mediastreamsource-add-way-to-use-imfgetservice-fr
I tested it and indeed I could get to the device instance. This is quite some time back, but the APIs are not that hard. From the device you can get the video service, there you enumerate the profiles. Profiles are well known GUIDs, such as "D3D11_DECODER_PROFILE_H264_VLD_NOFGT". So if you find that profile, you know that H264 hardware acceleration is available.
The downside is that I think you can get the device only once the MSS gets opened. So we should check if there are better ways to get access to a device in UWP. But as a fallback, it would be possible to create a fake MSS, open it with a MediaPlayer, do our checks as above and close it.

We don't need to wait for mss, we can query that device at any time. I had some code samples somewhere to get the device at any time. It is like 3 lines of code.

I don't think it is worth it to do it in our class. It should be the app that decide this.

I actually got it working yesterday already. Will try to come up with some prototype implementation...

I pushed a first implementation of hardware acceleration check, just to test things out. It is pretty fast, usually <20ms in release mode on my system. If we call it only once when first video is opened and cache values, it is probably a very good solution - much better than trying to manually select formats and having users complain if things don't work. We could also keep the Initialize method public, so it can be called by the app during startup (async, while other stuff is loaded). Then there would even be zero delay.
Not sure how to integrate it. We could add a property "AutoSelectVideoPassthrough" which is true by default. If set to false, it uses the old per-format properties. Or we use a enum VideoPassthroughMode { Auto, Manual, ForceSoftwareDecode, ForcePassthrough } where Manual meanse use the old properties and the last two options would force either software decode or passthrough for all formats.

For reference, this is how VLC decides on HW acceleration. It is also good for knowing which profile levels are supported by a HW decoder.
https://github.com/videolan/vlc/blob/master/modules/codec/avcodec/directx_va.c

Just thinking, maybe we should remove HW detection here and make a separate PR for that? HW detection is a complex topic and could take a longer time to get right. Better have the new passthrough formats on master already.

Agreed. We should merge all the PRs we have active right now, and then we can approach this topic again.

Regarding auto-detection: I think it could work. And would probably simplify the approach to passthroughs. Let's keep it simple with a bool "auto detect he support", rather than making it complicated with enums.

I removed the codec checker stuff. Ready to merge?

Yes.

Done


[tests] Fix p2p_sendheaders race

p2p_sendheaders has a race in part 1.3.
part 1.2 sends a block to the node over the 'test_node' connection, but
doesn't wait for an inv to be received on the 'inv_node' connection. If
we get to part 1.3 before that inv has been received, then the
subsequent call to check_last_inv_announcement could fail.

What bitcoin PR is this from?

@PastaPastaPasta sorry, I accidentally cherry-picked the single commit instead of the merge commit. Updated everything and force-pushed.


Deprecation Warning Fixes

This fixes deprecation warnings for setScalesWhenResized for 10.6 and convertScreenToBase for 10.7.

Just merged, thanks.
Simple Comic should be active for a while a least.


Some default options are $expensive$ for a low-throughput example program

Default for Cosmos DB is Provisioned throughput. Serverless should be much cheaper for this sample program.
Default for Prompt Flow deployment is 3 instances. Would 1 work? What about different instance types?

Question
If I create a new Cosmos DB using Serverless, can I swap it out with my current provisioned DB? Can I just create a new connection for it in Azure and update .env in the Codespace.
Or I could start over with the updated repo and edit the bicep file section for Cosmos DB, but that seems like a lot more work.

You can choose the SKU and instances based on the needs your application. So you are able to scale down to 1 instance if that is all that is needed.
You can use any datasource you prefer. We are using cosmosdb in this sample but you could always update to a different data resource.
This sample is meant to show how to do things and be a starting point. You could and should update based on the requirements of your application and scenario.


Test coverage tracker

async

set provider
IPFS.get abis
contract abstractions
getLogs
buildListings
dispatch listings

render

filtered listings
available actions

Use factories to produce expectations:
const createChat = ({
  id = 0,
  msg = '',
  user = 'Anonymous',
  timeStamp =<PHONE_NUMBER>680
} = {}) => ({
  id, msg, user, timeStamp
});

const createState = ({
  userName = 'Anonymous',
  chatLog = [],
  statusMessage = 'Online',
  currentChat = createChat()
} = {}) => ({
  userName, chatLog, statusMessage, currentChat
});

Notice these both provide default values, which means I can override properties individually to create only the data I’m interested in for any particular test.
describe('chatReducer()', ({ test }) => {
  test('with no arguments', ({ same, end }) => {
    const msg = 'should return correct default state';

    const actual = reducer();
    const expected = createState();

    same(actual, expected, msg);
    end();
  });
});

Action creator test
describe('addChat()', ({ test }) => {
  test('with no arguments', ({ same, end}) => {
    const msg = 'should add default chat message';

    const actual = pipe(
      () => reducer(undefined, addChat()),
      // make sure the id and timestamp are there,
      // but we don't care about the values
      state => {
        const chat = state.chatLog[0];
        chat.id = !!chat.id;
        chat.timeStamp = !!chat.timeStamp;
        return state;
      }
    )();

    const expected = Object.assign(createState(), {
      chatLog: [{
        id: true,
        user: 'Anonymous',
        msg: '',
        timeStamp: true
      }]
    });

    same(actual, expected, msg);
    end();
  });

  test('with all arguments', ({ same, end}) => {
    const msg = 'should add correct chat message';

    const actual = reducer(undefined, addChat({
      id: 1,
      user: '@JS_Cheerleader',
      msg: 'Yay!',
      timeStamp:<PHONE_NUMBER>682
    }));
    const expected = Object.assign(createState(), {
      chatLog: [{
        id: 1,
        user: '@JS_Cheerleader',
        msg: 'Yay!',
        timeStamp:<PHONE_NUMBER>682
      }]
    });

    same(actual, expected, msg);
    end();
  });
});

// helpers

const pipe = (...fns) => x => fns.reduce((v, f) => f(v), x);

const fn1 = s => s.toLowerCase();
const fn2 = s => s.split('').reverse().join('');
const fn3 = s => s + '!'

const newFunc = pipe(fn1, fn2, fn3);
const result = newFunc('Time'); // emit!

Selector tests
describe('getViewState', ({ test }) => {
  test('with chats', ({ same, end }) => {
    const msg = 'should return the state needed to render';
    const chats = [
      createChat({
        id: 2,
        user: 'Bender',
        msg: 'Does Barry Manilow know you raid his wardrobe?',
        timeStamp:<PHONE_NUMBER>00
      }),
      createChat({
        id: 2,
        user: 'Andrew',
        msg: `Hey let's watch the mouth, huh?`,
        timeStamp:<PHONE_NUMBER>00 }),
      createChat({
        id: 1,
        user: 'Brian',
        msg: `We accept the fact that we had to sacrifice a whole Saturday in
              detention for whatever it was that we did wrong.`,
        timeStamp:<PHONE_NUMBER>00
      })
    ];

    const state = chats.map(addChat).reduce(reducer, reducer());

    const actual = getViewState(state);
    const expected = Object.assign(createState(), {
      chatLog: chats,
      recentlyActiveUsers: ['Bender', 'Andrew', 'Brian']
    });

    same(actual, expected, msg);
    end();
  });
});

https://medium.com/javascript-scene/10-tips-for-better-redux-architecture-69250425af44

https://facebook.github.io/jest/docs/en/tutorial-react.html
https://facebook.github.io/jest/docs/en/using-matchers.html
https://medium.com/javascript-inside/some-thoughts-on-testing-react-redux-applications-8571fbc1b78f

utils/_units
0377fc6ec4fae53fc1a515ad388a5900f434b1ac

implement test env deployment pipeline


Missing config file error message

Hi,
I am getting error messages for not having a configuration file, despite configuring my MathJax properly elsewhere. Using the MathJax single file, I am able to get everything working properly in the following manner:
<script src='public/js/MathJax.min.js'>

and my configuration in the constructor of a React component:
MathJax.Hub.Config({
  jax: ['input/TeX', 'output/AMS_SVG'],
  tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
});

I have also tried the alternative in placing the configuration as follows, which produces the same results:
<script type='text/x-mathjax-config'>
  MathJax.Hub.Config({
    jax: ['input/TeX', 'output/AMS_SVG'],
    tex2jax: { inlineMath: [['$', '$'], ['\\(', '\\)']] }
  });
</script>
<script src='public/js/MathJax.min.js'></script>

The single file seeks out a config file in the path: /jax/output/AMS_SVG/config.js?V=2.7.1, which produces an error message (in both the left-hand corner of the browser window File failed to load: /jax/output/AMS_SVG/config.js?V=2.7.1 for brief period of time and in the developer console Failed to load resource: the server responded with a status of 400 (Bad Request)). How can I silence this message?
Thank you again for your help,
timolawl

Remove the jax configuration block; besides AMS_SVG being an invalid value, the single-file builds do not allow for configuration that way (all jax components are set at build time and cannot be altered).

Thank you! This solved my problem.

Thanks for following up.


一些已知 Bug

[ ] meterscao/Speechless#42
[x] meterscao/Speechless#38
[ ] meterscao/Speechless#35

修复图片比例变形问题：

https://github.com/Konano/Speechless/commit/07f791bf93baea94daed7c9aa2dd359144916238
https://github.com/Konano/Speechless/commit/44765c07957f63b0236c842de87c2828662a9bc8


NameError: name 'file' is not defined

Hi,
I think you made a typo in arya.py:
https://github.com/datacenter/arya/blob/master/arya/arya.py#L443
Shouldn't it be
with open( instead of with file(
Same at https://github.com/datacenter/arya/blob/master/arya/arya.py#L468
My understanding is that file was an alias for open in Python2 but got removed in python3.

Hey camrossi,
Thanks for catching that.. this fixed my problem

When this will be fixed? It still doesn't work for me.

me too. thanks Cam


Service upgrade doesnt work if Sidekicks are present

Rancher Version:
v1.2.0-pre4-rc2
Docker Version:
1.12.2-rc3
OS and where are the hosts located? (cloud, bare metal, etc):
Linux Mint 18 4.4.0-21-generic / Local VM
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Single node Rancher, external MariaDB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
Run any service from catalog, which uses sidekick containers. Eg. Jenkins or Drone.
After service is deployed, choose "Upgrade".
Results:
A blank page with just the headline: "Upgrade X services"  (X=number of services, with Jenkins its 3)

Expected:
Get upgrade page to change values as desired. At v1.1.x there were checkboxes to choose, which container(s) to upgrade.

Version - master 10/10
Easy steps to just create a service with sidekick.  Doesn't have to be from catalog.

@vincent99 when I click Upgrade, the UI sends this request that never finishes:
GET http://localhost:8080/v2-beta/projects/1a5/services?limit=-1&sort=name
I can execute this request manually fine. @vincent99 what do you think could cause it?

Seeing these UI errors on the list request:
component.js:169 Uncaught TypeError: l.get is not a function(anonymous function) @ component.js:169(anonymous function) @ component.js:166f.get @ ember.prod.js:14029r @ ember.prod.js:18663t.compute @ ember.prod.js:12122t.value @ ember.prod.js:11997e.value @ ember.prod.js:40501e @ ember.prod.js:11828e.create @ ember.prod.js:10213t.evaluate @ ember.prod.js:41229e.execute @ ember.prod.js:47710t.handleException @ ember.prod.js:48160e.handleException @ ember.prod.js:48340e.throw @ ember.prod.js:48057t.evaluate @ ember.prod.js:43555e.execute @ ember.prod.js:48044e.rerender @ ember.prod.js:47983s.render @ ember.prod.js:9562f @ ember.prod.js:9511e._renderRoots @ ember.prod.js:9822e._renderRootsTransaction @ ember.prod.js:9860e._revalidate @ ember.prod.js:9899invoke @ ember.prod.js:328flush @ ember.prod.js:396flush @ ember.prod.js:520end @ ember.prod.js:590(anonymous function) @ ember.prod.js:1156
firebug-lite.js:18877 Uncaught InvalidStateError: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'blob').

@alena1108 This is because the type is missing from the secondaryLaunchConfig entries

having exact same issue, any way to be able to upgrade service in version 1.2.0-pre4-rc2 or will building from master help with upgrading functionality? or do we need to wait for the next version to try it out?

Version - v1.2.0-pre4-rc4
Verified fixed


Handle error if new routes system doesn’t find a file in the old folders

@murfious This should fix the errors that were getting thrown, I don't want to merge into main last thing when there's research tomorrow so it's here ready for us when we want it.


Check Bright ID Solution

Scope:
Our main question is if we can access the users discord handle, twitter etc.
Once we have that handle is it possible to get connected discord users via the discord api, Same servers, discord friends, etc.
Resources:
https://www.brightid.org/
https://apps.brightid.org/
https://dev.brightid.org/

I've walked through the documentation and haven't found anything related to Twitter, Discord, etc. handles.
For example, the API for user info and profile info returns data that is unrelated to our case. It contains verification data and which apps are used to verify the account.
There are user identifiers but they are BrightID-specific and not related to social networks.


Pass crate root to custom subcommands

I believe most of the subcommand need the path to the crate's root, so this should be passed to subcommands on invocation. Would environment variables be an option?

Finding the crate root is a one-line call to cargo::util::important_paths::find_root_manifest_for_cwd: https://github.com/sfackler/cargo-tree/blob/ebc89804becb489266c86d5bb376a21f78216dc2/src/main.rs#L146

Yeah for now this is up to the subcommands as they may not all require crate roots (e.g. something like cargo search) so it's up to the subcommand to find the root. As @sfackler pointed out when linking to the cargo support library it should be easy enough to find.


Limited Supported Time Formats

Currently, Bun has 9 explicitly defined date formats here and uses 1 extra one, time.RFC3339Nano, as a failsafe. I have a TIMESTAMP value in the database (It went through bun to be written and was being read successfully somehow 6 months ago), the date is: 2022-07-31T22:00:00.  This fails to be parsed by any of Bun's accepted time formats. I'm wondering if there's a smarter way to detect the time format without us having to write a custom deserializer.

This ended up not being a bug with Bun. I saved a time as a string, bypassing Go's SQL time format conversion. I later switched it to a time.Time which caused the read to fail as the time format wasn't parsable.


Improve print stylesheet formatting

Adjusted print rules for a, hopefully, much improved layout in print. This includes a jquery script that formats all visible links into annotated footnotes, with the link addresses inserted as a footnote list at the end of the page.
Resolves: https://github.com/gios-asu/ASU-Web-Standards-Wordpress-Theme/issues/267

Just uploading some screenshots for comparison:

Overall this is a huge improvement! Well done! :godmode:


Ansible output not in log_terry.log

"Shoot I guess I'm not logging the ansible output in the logs 🫠"

Wow, calling me out like that huh?


(Somewhat) silly question: what is a 'dataframe'?

TLDR
I'm just curious 🙂
Too long to read
I think I know what 'dataframe' means. I've been thinking of writing my own 'datacube' Elixir library, basically an 'in-memory database table'.
But I'm still not exactly sure what 'dataframe' means and some other people are similarly (somewhat) confused; see:

Explorer - Dataframes for Elixir : elixir

What's a little annoying/frustrating (in a very specific kind of way that these things sometimes are nowadays) is that doing a web (Google) search for "dataframe" or "dataframe definition" or "dataframe wikipedia" all return results about specific dataframe products/projects and all of them seem to assume you already know what a 'dataframe' is.
Here's an example result that's not quite entirely satisfying:

What are DataFrames? - Databricks

It kinda seems like 'dataframe' is so abstract that regular RDMS DB tables themselves are, in a sense, 'dataframes'. But that doesn't seem quite right to me!
The docs are a little helpful:

The Explorer library is a set of functions and data types to work with tabular data in Elixir.

In what sense is Ecto also (or not) a 'dataframe' library for Elixir?

This post (on a blog about a new Unix shell, of all things) actually seems to be trying to answer this very question:

What Is a Data Frame? (In Python, R, and SQL)

From that post:

What Is a Data Frame? (In Python, R, and SQL)

A data frame is a table-like data structure available in languages like R and Python. Statisticians, scientists, and programmers use them in data analysis code.
...

In the last post, I analyzed Oil's code with data frames.
When writing the praise in that section, I looked for a friendly intro to the idea, but the best hit was from an inactive Clojure project. Surprisingly, Wikipedia doesn't have a page on data frames! This post aims to fill that gap.

...
Typical Operations
Before I show source code, here's some more color on how data frames are used. You may:

Create a data frame from the results of a SQL query, or from a CSV file. The columns have types like string, number, and date.
Filter a data frame down to the rows and columns of interest.
Clean its values with arithmetic and string operations.
Summarize groups of rows.
Compute new columns based on existing columns.
Join a data frame with others, for further analysis.
Plot one column vs. another (in many different ways)
Mathematically model one column as a function of another — e.g. with linear regression.

Logically, data frames look like SQL tables, but:

They're manipulated directly in the memory of your program. They don't live on a remote server.
They more suited to complex, "offline" analysis with statistics, visualization, and mathematical modeling.

The first item in that last list doesn't seem to be entirely true – or at least not according to Databricks about their Spark DataFrames:

... a Spark DataFrame can span thousands of computers

So SQL tables are kinda 'dataframes' but typically a 'dataframe' 'lives' closer to the 'processing', e.g. 'in-memory' versus accessible over the network or (for Elixir) outside the BEAM VM (?).

Good point. As things evolve, should we make sure to write the docs in a way we don't assume everyone has a ML/Pandas background.


Azure arm ex_customdata causes json error

Summary
For Azure arm, create_node, the ex_customedata parameter is not properly decoded after base64 encoding. This results in invalid json. When the driver creates the request the error Object of type bytes is not JSON serializable occurs.
Detailed Information
libcloud 3.7.0
Python 3.10.11
Linux ubuntu/debian
To replicate, call azure arm driver.create_node with parameter:  ex_customdata=str.encode(deployment_script),
suggested fix: https://github.com/foospidy/libcloud/commit/20df1c327da71d364132ff8b6e8152dd4554aaad

@foospidy Thanks for reporting this.
Please feel free to open a PR with a suggested fix (+ ideally a unit test). We've had similar issues in the code in the past, most were related to Python 2 -> Python 3 migration.


0.9.14 Carla simulator version

Hello , did someone work with carla 0.9.14 instead of 0.9.13 ?can i use it without problems?

Dreyevr is supported for 9.13 only

We currently do not have plans to support 9.14 nor have we tried it so I cannot help, sorry.


Suggest names and images from Steamgrid when adding games

This also allows you to add your own URL to an image, but it heavily incentivizes using Steamgrid. I also made the name field required in the front end, since it already was in the back end.

How it works is:

You type the game's name
Suggestions show up for the name
You click the name of your game
Some images are shown from Steamgrid
You click an image
The url of the image is set as banner url

Amazing!
A few issues I noticed while testing:

It looks like we are sending a search request after each keystroke. If you type really fast, we can exceed the rate limit and receive an error.  I also often see an old search result end up being sent AFTER the latest result, for example, I type "Super Mario World" but the results correspond to "Super Mario" appear. Deleting one letter and retyping it slowly forces resending the request and gives the correct results. Perhaps there should be a delay after typing stops before sending the search request.
If steamgriddb doesn't know about the game there is no way to make the drop down disappear. Hitting ESC or clicking away to cancel the search dropdown would be ideal. Starting to type again should probably bring it back.
When editing a shortcut, you cannot choose a different banner from steamgriddb.

Your suggestions have been implemented now. I've added the following:

It now only shows suggestions if the name field has more than 2 characters and it hasn't changed for 250ms.
Clicking anywhere removes the suggested names.
If you open the edit page it will suggest images if you had selected a suggested name before. It needs to match exactly with what's in the steamgrid, though.


Create Kotlin Test Envionment

Stand up a Kotlin runtime to act as the test environment for the Dev Site. Will be called by pnpm or similar as part of the test script. Exit code of the process should plug into the main site build and a non-0 exit code will signal that tests failed.
May be later annotated with Shnip to be leveraged in code snippits.
Done in coordination for handof to @dayhaysoos

Done in 556def63466aa9faa347ccebe63851011fd65bd8


target attr in ion-item for html5mode

I think it would be good if target attr can be made optional. I can't navigate properly when I use html5Mode

Greetings, @abdurrachman-habibi!
Due to the age of this issue, and possibility it may have already been fixed or no longer applicable, my sensors indicate that this issue should be closed.
If you are still experiencing this issue, please feel free to reopen and provide the following information so that I may assist you.

Can you provide a detailed description of this issue?
How would a robot go about replicating this issue?
What platform does this happen on? (iOS, Android, all, etc.)
What platform versions does this happen on? (Android 4.2, iOS 7, all, etc.)
Is this an issue with the Ionic Framework, or Ionic CLI?

Additionally, providing a codepen which replicates the issue is extremely helpful.
If you wish to get help using the framework itself, the recommended place is the forum.
Thank you for allowing me to assist you.


How to connect store/index.js

Not found $fireAuth
nuxtServerInit({ dispatch }) {
     const user = this.$fireAuth.currentUser
     dispatch('auth/setUser', user)
}

@ruslanraupoff You can access it on the second parameter of nuxtServerInit
nuxtServerInit({ dispatch }, ctx) {
     const user = ctx.$fireAuth.currentUser
     dispatch('auth/setUser', user)
}

@ruslanraupoff You can access it on the second parameter of nuxtServerInit
nuxtServerInit({ dispatch }, ctx) {
     const user = ctx.$fireAuth.currentUser
     dispatch('auth/setUser', user)
}

Hey guys
As you can see in the example in nuxt-fire-demo both, ctx and this should actually work.
@ruslanraupoff
Let us know if both options don't work, then something with your vuex store setup might be wrong.

@fachrihawari this absolutely return null
nuxtServerInit({ dispatch }, ctx) {
     const user = ctx.app.$fireAuth.currentUser
     console.log(user)
     dispatch('auth/setUser', user)
}

@lupas
console Info
'Nuxt-fire Objects can be accessed in nuxtServerInit action via this.$fire___ and ctx.$fire___'

@ruslanraupoff
ctx.app.$fireAuth.currentUser should also work, but $fireAuth.currentUser should work in the first place so not sure what is going on in your case.
Hard to tell why it is not working on your side, can you share your entire store action and nuxt.config.js files?

@lupas
store/index.js file
`
export const state = () => ({
error: null
})
export const actions = {
nuxtServerInit({ dispatch }) {
const user = this.$fireAuth.currentUser
console.log(user)
dispatch('auth/setUser', user)
}
}
export const mutations = {
setError(state, error) {
state.error = error
},
clearError(state) {
state.error = null
}
}
export const getters = {
error: state => state.error
}
nuxt.config.js file
module.exports = {
mode: 'universal',
/*
** Headers of the page
/
head: {
title: 'NYC Admin Panel',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/
** Customize the progress-bar color
/
loading: { color: '#409EFF' },
/
** Global CSS
/
css: [
'element-ui/lib/theme-chalk/index.css',
<EMAIL_ADDRESS>],
/
** Plugins to load before mounting the App
/
plugins: [
'@/plugins/axios',
'@/plugins/globals',
'@/plugins/element-ui'
],
/
** Nuxt.js dev-modules
/
buildModules: [
],
/
** Nuxt.js modules
/
modules: [
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
[
'nuxt-fire',
{
// Required:
config: {
development: {
...
},
production: {
...
}
},
// The following options are optional:
useOnly: ['auth', 'firestore', 'functions', 'storage', 'realtimeDb', 'messaging', 'performance'],
customEnv: false,
functionsLocation: 'us-east4',
}
]
],
/
** Axios module configuration
** See https://axios.nuxtjs.org/options
*/
axios: {
},
env: {
appName: 'Admin Panel'
},
/*
** Build configuration
/
build: {
transpile: [/^element-ui/],
/
** You can extend webpack config here
*/
extend (config, ctx) {
}
}
}
`

@ruslanraupoff
Looks alright.

Does this.$fireAuth work in all other parts of your application, like your .vue file methods? If not, it's not because of nuxtServerInit but because of the setup.

I assume you defined the config values (...) properly? If not there should be an error message when building, stating that nuxt-fire has not properly been set up. Can you check if there is a message?

Hmm.... what could it be.. :O

@lupas
frontend side work brilliant only not working $fireAuth into store

store/auth.js file login action is working
async login({ commit, dispatch }, formData) {
        try {
            await this.$fireAuth.signInWithEmailAndPassword(formData.email, formData.password)
                .then((firebaseUser) => {
                    //console.log(firebaseUser.user.uid)
                    dispatch('auth/setUser', firebaseUser.user)
                }).catch((error) => {
                    this.$store.commit('setError', {message: 'User not found!'}, { root: true })
                })
        } catch (e) {
            commit('setError', e, { root: true })
            throw e
        }
    }

@ruslanraupoff
Okay, that means there is no issue with the setup, so we can ignore nuxt.config.js.
Ah I think I see the issue.... let's see:
Can you do a console.log(this.$fireAuth) in nuxtServerInit and see if this returns not null? If it returns an object everything is working fine.
this.$fireAuth.currentUser ALWAYS return null if the user is not logged in. And since you call it on server-side, there is most likely no user logged in yet. This is meant to happen client-side with Firebase.
Let me know if that was the issue, if yes you probably want to rethink your authentication process.

@lupas
problem only in nuxtServerInit
console.log(this.$fireAuth) return null, console.log(ctx.$fireAuth) and console.log(ctx.app.$fireAuth) too

@ruslanraupoff
Hmm I'm out of ideas. Can you check if you have installed the latest versions of nuxt, nuxt-fire and firebase? Just to be sure that's not the issue.

@lupas
"nuxt": "^2.10.2",
"firebase": "^7.2.1",
"nuxt-fire": "^2.3.0",

I change code after refresh page not get the current user
store/index.js
    nuxtServerInit({ dispatch }) {
        dispatch('auth/autoLogin')
    }

store/auth.js autoLogin action
    autoLogin({ dispatch }) {
        const user = this.$fireAuth.currentUser
        console.log(user)
        dispatch('setUser', user)
    }

or
autoLogin({ dispatch }) {
    this.$fireAuth.onAuthStateChanged(user => {
        if (user) {
            dispatch('setUser', user)
        }else {
            dispatch('logout')
        }
    })
}

I change code after refresh page does not work get the currentUser or onAuthStateChanged
store/index.js
...

I don't know what the issue with the nuxtServerInit was, but this.$fireAuth.currentUser on server-side twill never return currentUser, the currentUser object will always be null on server-side.
If you want to make that work, you would have to work with session cookies or service workers. Read here:
https://medium.com/@hiranya911/firebase-introducing-session-cookies-for-server-side-web-apps-fb46cce40b2
The onAuthStateChanged approach will be easier. Here I would suggest you to create a nuxt.js plugin that gets executed on client-side only (no-ssr: true), you can follow the tutorial here:
https://hackernoon.com/vue-nuxt-firebase-auth-database-ssr-example-tutorial-facebook-login-setup-authentication-starter-app-a6dfde0133fc
Hope that helps.
This is a generic firebase & nuxt topic and not a nuxt-fire related issue anymore though, so I'll close this issue for now.


zed-editor: 0.132.2 -> 0.132.3

Description of changes
Changelog: https://github.com/zed-industries/zed/releases/tag/v0.132.3
cc @jansol @niklaskorz

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.


Potential Form of Some Intelisense

This repository  contains some of the S&Box API (it hasn't been updated for a while so it's probably outdated), so this could be used to reduce the amount of errors and get some Intelisense, of course not all of it needs to be used but some of it being used could help a bit

Yeah I was made aware of it a while ago, the reason I decided not to use it is that s&box's API changes daily, so instead of wasting time implementing things without being able to test them, I might as well keep going on in a game agnostic manner.
I do have some stubs, notably the player class, but that's about it.

Makes sense, in my opinion just taking a couple of files (ex. Player) could help but it's your decision


y-scale missing in stacked_violin for 1.5.2.dev

The y-scale label on the right of the stacked_violin is missing in the version of 1.5.2.dev

import scanpy as sc
pbmc = sc.datasets.pbmc68k_reduced()
marker_genes = ['S100A8', 'GNLY', 'NKG7', 'KLRB1', 'FCGR3A', 'FCER1A', 'CST3']
sc.pl.stacked_violin(pbmc,marker_genes,groupby='louvain',row_palette='muted',figsize=(7,4),log=False)
sc.logging.print_versions()

Versions:

scanpy==1.5.2.dev123+g0cf308c anndata==0.7.3 umap==0.4.4 numpy==1.18.5 scipy==1.4.1 pandas==1.0.4 scikit-learn==0.23.1 statsmodels==0.11.1

@fidelram, could you take a look at this?

Should be possible to turn the y ticks legends on. But I just tested it and didn't work. I will try to fix it.
The syntax is:
sc.pl.stacked_violin(adata,marker_genes,groupby='louvain', return_fig=True).style(yticklabels=True,row_palette='muted').show()

style needs to be used to tune the graphical parameters to avoid overcrowding the parameters list. But I am open to have a discussion on what the users think is best.
Documentation is here: https://scanpy.readthedocs.io/en/latest/api/scanpy.pl.DotPlot.style.html#scanpy.pl.DotPlot.style

Solved in #1342


feat: add Bilibili OAuth

@jiak94 plz resolve conflicts

@jiak94 can you also help add it to docs? https://casdoor.org/docs/provider/oauth/baidu


error running Deutsches Museum demo

I am following the Cartographer ROS integration page to install Cartographer. The build and install ran without any errors but when I try to run the demo bag it gives the following error
Command : roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=${HOME}/Downloads/cartographer_paper_deutsches_museum.bag
Error : [demo_backpack_2d.launch] is neither a launch file in package [cartographer_ros] nor is [cartographer_ros] a launch file name
The traceback for the exception was written to the log file.
Any suggestions ?

Have you sourced setup.bash file in your catkin workspace?
e.g. source ~/catkin_ws/devel/setup.bash

Yes I did. It still gives the same error.

If you had sourced setup.bash,you can try run
source ~/catkin_ws/devel/setup.bash
than run
rospack profile


Add --secret-b64 option to accept a b64-encoded DER

ArgGroup means we must have one, and only one, of --secret and --secret-b64

Summary
Preflight checklist

[X] Code formatted with rustfmt
[X] Relevant tests added
[ ] Any new documentation added

Any new documentation added

The new --secret-b64 flag is doc'd in clap; is there another place you'd like that sort of thing added?

Ah! So the motivation for this is just that you can't pass a raw Der as an
argument, because it is binary, not a string. If one had a
differently-encoded file, I assume one could trivially convert from (say)
base32 to base64 for that purpose. So I'm not terribly worried at the
moment about supporting encodings beyond "not binary".
On Wed, Sep 11, 2019, 6:43 PM Kevin Lanni<EMAIL_ADDRESS>wrote:

@therealklanni commented on this pull request.
In src/main.rs
https://github.com/mike-engel/jwt-cli/pull/37#discussion_r323504747:

@@ -215,9 +215,15 @@ fn config_options<'a, 'b>() -> App<'a, 'b> {
.help("the secret to sign the JWT with. Can be prefixed with @ to read from a binary file")
.takes_value(true)
.long("secret")

                   .short("S")

                   .required(true),

           ),

                   .short("S"),

           ).arg(

               Arg::with_name("secret-b64")

Good question. My thought was just for it to be used for encodings (base64
to start, but maybe someone could add others in the future, i.e. base32?).
I'm not sure how string/file should be handled. My intuition is they
shouldn't be included in the -e arg because they're not encodings (unless
you want to consider ASCII/Unicode encodings).
Maybe @mike-engel https://github.com/mike-engel has some input.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mike-engel/jwt-cli/pull/37?email_source=notifications&email_token=AABKFFQL3BU4F55N5MS54KLQJF7B5A5CNFSM4IVK5HO2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEOUD4Q#discussion_r323504747,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABKFFQCW62MORLO2VYI7JLQJF7B5ANCNFSM4IVK5HOQ
.


Implement Key Generate

Signed-off-by: Luke Hinds<EMAIL_ADDRESS>

Just noticed I had the wrong curve (updated now).


redirect all json api logs into separate test file

We should have possibility to redirect all output based on log_all_json property into separate api.log or json.log
it should be done to be able to remove them for already passed tests and keep only those log where problem exists.

after communication with stockholders we agreed to implement this feature in different way:

all logs should be written into the single file as before
new property must be added onto the Configuration.Parameter:
max_log_file_size=150Mb
ThreadLogAppender should analyze test.log file size and as only it achieve max_log_file_size raise exception.

This approach allow to keep log messages in the same file and limit log output and invalid test structure

https://github.com/qaprosoft/carina/pull/334


Add BaseDataSummary

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (002750a) 100.00% compared to head (c1006c4) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8        11    +3
  Lines          308       337   +29
  Branches        51        51
=========================================
+ Hits           308       337   +29

Impacted Files
Coverage Δ

src/arctix/data/__init__.py
100.00% <100.00%> (ø)

src/arctix/data/base.py
100.00% <100.00%> (ø)

src/arctix/data/noop.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Navigation Header Title Update from View

I have a profile view that is loaded when selecting the profile tab. I'm not doing a push route so I can't send the title of the current users username that way.
How would I go about updating the navigation header title from the profile view?
I was trying to create a redux action so I can send the new title, but not sure how to actually update the navigation state in the reducer.

@zachrnolan
can't you pass params to View using the pushRoute function?
this.props.pushRoute('Profile'), {
    title: `${this.props.name}'s profile`,
    name: this.props.name,
})

The new way is doing react-navigation
https://www.youtube.com/watch?time_continue=1156&v=C96piR3FRww


COUNT() returning no results instead of zeros

Bug report
InfluxDB v0.12.1 (git: 0.12 e094138084855d444195b252314dfee9eae34cab)
Check out these two simple queries. The first query returns zeros for all of the grouped minutes for which there are no observations to count. That is the expected behavior -- return zero when there are no observations to count. The second query returns no results at all. That seems incorrect. The two queries only differ in the time part of the WHERE clause, but there is time overlap between them.
> SELECT COUNT("myField") FROM "myMeasurement" WHERE time ><PHONE_NUMBER>000000000 AND time <<PHONE_NUMBER>000000000 GROUP BY TIME(1m)
name: myMeasurement
------------------------
time                count
1460757540000000000 0
1460757600000000000 0
1460757660000000000 19
1460757720000000000 0
1460757780000000000 0

> SELECT COUNT("myField") FROM "myMeasurement" WHERE time ><PHONE_NUMBER>000000000 AND time <<PHONE_NUMBER>000000000 GROUP BY TIME(1m)
>

Why does the second query not return any results? COUNT() should be returning zeros. Instead of not returning any results I would expect the second query to return:
name: myMeasurement
------------------------
time                count
1460757720000000000 0
1460757780000000000 0

This bug is killing my Kapacitor alerts which only sometimes fire, rendering them inconsistent and essentially useless. Kapacitor alerts that test for "count" == 0 can't be relied upon to fire when expected. But this doesn't seem like it's Kapacitor's fault -- shouIdn't Influx be returning zeros when there is no data to count?

/cc @jsternberg

@gargooza this is expected. In order to know what series need to be filled in, there needs to be at least one point with that name/tag combination. Since tags can be any arbitrary combination, it's impossible for us to know which combinations to fill without having some basis. If there's a name/tag combination such as cpu,host=server01 we can't assume that we should fill in values for cpu,host=server02 as zero values since we don't know if that's a valid name/tag combination.
The FILL(0) option is just to fill in transient missing data and shouldn't be relied on as a substitute for reporting an actual zero value.
Does this explanation help?

Thank you, that explanation does help. I can see why you can't assume what values you can/should fill in for all of the tags. The exponential number of possible tag value combinations alone would stop a query dead in its tracks.
I'll have to think about this problem I am having some more. My first thought was to do some kind of outer join on tag values with my count() query. Then I could fill null count values with zeros. But it seems that any join that isn't strictly time based is not supported by Influx.
Since the issue I am having is manifesting itself in Kapacitor, I'll go back there to see what options I might have to deal with missing counts.

@gargooza can you open a feature request about this? While technically it's needed, it is a bit weird and it's something that we'll try to keep in mind. If you think of anything that works, you can also include it on the feature request.
At the moment, you might need to have a third party aggregate the counts and report them separately as integers to influxd.
@jwilder thoughts on this?

@jsternberg sure thing re: feature request.

Actually that explanation doesn't help me one bit. You don't need to know "what series to fill in". It's a bug in the count() function, which should return a count of 0 if there is no data. It shouldn't be undefined. The count function doesn't need to know what series had a count zero, it just needs to return a zero.
Yes, the host tags and all other tags on that query would be empty. But why should that stop COUNT() to return a 0 instead of nothing? Yes, obviously if the count is 0 and it's grouped by host or something, then host is undefined or emtpy, but not the count.
@jsternberg : I think your answer assumes that the bug is in the fill(0) functionality… it's not. It's in the COUNT() function that returns "no result" instead of 0 (as the bug title already clearly states)

I am not happy write in an old issue but I wonder why is this not fixed? Is it not considered as a bug or is it hard to fix because of some internal design?
Count() should always return a non-negative integer and return 0 if there is no value. I've read about flux and if statements, yet using an if statement for this is not intuitive in my opinion. Using join | .fill( ) in kapacitor worked for me for a certain case but dashboarding is painful when count in INFLUXQL returns null. Dashboards becomes meaningless and ugly.
Regards,

Would also love to see a fix for this

+1
Otherwise, dashboards become useless. For example, in the Grafana, visulisation replace the return null from the count() to zero.
And as just a suggestion for improvement to Chronograf.
In Grafana in tables have mapping, which is convenient for a number of data obtained from the SNMP. you can change the returned data as numbers to clear text.


fix(@angular/cli): treath arguments after no- as positional

Fixes #12579

Superseeded by https://github.com/angular/angular-cli/pull/12627


New conference: ConFrontJS 2018

Details:

Website: https://confrontjs.com
Location: Warsaw, Poland
Date: 2018-10-29
Registration: https://eventil.com/events/confrontjs-2018
Call for Proposals: https://eventil.com/events/confrontjs-2018/cfp
Twitter: @confrontjs
Twitter Hashtag: #confrontjs

hey
@piecioshka we are interested in data-related confs only.
But thank you for info.


Add group info page with assigned systems

Codecov Report

Merging #11 (4e7ae9c) into master (5315d89) will decrease coverage by 3.05%.
The diff coverage is 20.83%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   51.45%   48.40%   -3.06%
==========================================
  Files          32       33       +1
  Lines         274      314      +40
  Branches       33       38       +5
==========================================
+ Hits          141      152      +11
- Misses        112      136      +24
- Partials       21       26       +5

Impacted Files
Coverage Δ

src/App.js
0.00% <ø> (ø)

src/Routes/Groups/NewGroup.js
0.00% <ø> (ø)

src/components/InventoryForm.js
0.00% <0.00%> (ø)

src/components/form/FormInventory.js
19.23% <0.00%> (+19.23%)
:arrow_up:

src/store/groupsDetail.js
50.00% <28.57%> (-50.00%)
:arrow_down:

src/api/index.js
76.08% <37.50%> (-19.04%)
:arrow_down:

src/Routes/GroupsDetail/GroupsDetail.js
62.06% <40.00%> (-11.62%)
:arrow_down:

src/Routes/Groups/Groups.js
56.00% <100.00%> (ø)

... and 4 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 5315d89...4e7ae9c. Read the comment docs.

Codecov Report

Merging #11 (4e7ae9c) into master (5315d89) will decrease coverage by 3.05%.
The diff coverage is 20.83%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   51.45%   48.40%   -3.06%
==========================================
  Files          32       33       +1
  Lines         274      314      +40
  Branches       33       38       +5
==========================================
+ Hits          141      152      +11
- Misses        112      136      +24
- Partials       21       26       +5

Impacted Files
Coverage Δ

src/App.js
0.00% <ø> (ø)

src/Routes/Groups/NewGroup.js
0.00% <ø> (ø)

src/components/InventoryForm.js
0.00% <0.00%> (ø)

src/components/form/FormInventory.js
19.23% <0.00%> (+19.23%)
:arrow_up:

src/store/groupsDetail.js
50.00% <28.57%> (-50.00%)
:arrow_down:

src/api/index.js
76.08% <37.50%> (-19.04%)
:arrow_down:

src/Routes/GroupsDetail/GroupsDetail.js
62.06% <40.00%> (-11.62%)
:arrow_down:

src/Routes/Groups/Groups.js
56.00% <100.00%> (ø)

... and 4 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 5315d89...4e7ae9c. Read the comment docs.


[EmitC] Remove the forked emitter and generate all the code in the conversion pass

This resolves the longstanding painpoint of having a custom fork of the EmitC dialect to C emitter infrastructure in IREE. This is done by generating emitc.verbatim ops for the missing pieces in the conversion.
Things that need to be addressed:

General cleanup of code and stale comments
Move createModuleStructure into a separate file. Skipped for now as it introduces  hundreds lines of diff noise
The creation of the descriptor arrays are a 1:1 copy from the old CModuleTarget. Helper structs/functions around these would help readability.
Convert the vm.module to a builtin.module in the conversion. (Would need to make the conversion pass run on the outer builtin.module and nest the pass manager correctly, I think?)
The FuncAnalysis became kind of a sink where different pieces of information are mashed together with subtle bugs around uninitialized variables from the different constructos.

This is awesome! I take a closer look tomorrow :)

Mainly checking for what changed in the tests, this look good to me beside some minor suggestions.
However, I was wondering if we should add / register the Func to EmitC conversion patterns with populateFuncToEmitCPatterns() as part of this PR. Seems there were multiple func.func ops with an {emitc.static} attribute (I added TODOs to those). If we mark the func.func ops private and apply the conversion, those are automatically emitted as static functions. However, we can also do this in a follow up or even better directly create emitc.func ops directly whenever possible. WDYT?

Done.

Mainly checking for what changed in the tests, this look good to me beside some minor suggestions.
However, I was wondering if we should add / register the Func to EmitC conversion patterns with populateFuncToEmitCPatterns() as part of this PR. Seems there were multiple func.func ops with an {emitc.static} attribute (I added TODOs to those). If we mark the func.func ops private and apply the conversion, those are automatically emitted as static functions. However, we can also do this in a follow up or even better directly create emitc.func ops directly whenever possible. WDYT?

Done.

It was not actually my intention that the switch to emitc.func should be part of this PR. I would have kept the PR as small as possible, thus I would have preferred a follow up. Anyway, as the changes are already there you should adjust the PR description.

you'll need to add a dep on
        "@llvm-project//mlir:ControlFlowDialect",

to fix the bazel error:
ERROR: /work/compiler/src/iree/compiler/Dialect/VM/Target/C/BUILD.bazel:15:25: Compiling compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp failed: (Exit 1): clang failed: error executing command /usr/lib/llvm-17/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 ... (remaining 176 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox
compiler/src/iree/compiler/Dialect/VM/Target/C/CModuleTarget.cpp:17:10: error: module //compiler/src/iree/compiler/Dialect/VM/Target/C:C does not depend on a module exporting 'mlir/Dialect/ControlFlow/IR/ControlFlow.h'
   17 | #include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
      |          ^

(and rerun bazel-to-cmake)

LGTM, now!


Thanos0.3.1 rules  cannot dynamic loading configuration?

Thanos, Prometheus and Golang version used

What happened
What you expected to happen
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components

Anything else we need to know

when I modify the rule files, rule component should reload it dynamic.

Why it was closed? (: This feature should work.

I found nobody response me for several days, and I move back the rules to promethues , It works for me now,thank you.

It is recommended to store rules locally yes, but still this issue makes sense, just we need to edit description for others to be able to read the details through: how to reproduce this and what is expected (: