text:
Compilation Problem with Pip Install

I am unable to correctly install the package using the provided command because the build is failing:

pip install "git+https://github.com/patrick-kidger/generalised_shapelets/#egg=torchshapelets&subdirectory=torchshapelets"

The problem seems to be with OpenMp
I am using

Ubuntu 20.04
Python 3.8.10
Pytorch 1.10
x86_64-linux-gnu-gcc as my compiler

The error log is :
ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_1t8npic/torchshapelets/torchshapelets/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_1t8npic/torchshapelets/torchshapelets/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-68btjbfr
       cwd: /tmp/pip-install-_1t8npic/torchshapelets/torchshapelets
  Complete output (39 lines):
  running bdist_wheel
  /home/etienne/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:381: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
    warnings.warn(msg.format('we could not find ninja.'))
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/torchshapelets
  copying src/torchshapelets/regularisation.py -> build/lib.linux-x86_64-3.8/torchshapelets
  copying src/torchshapelets/discrepancies.py -> build/lib.linux-x86_64-3.8/torchshapelets
  copying src/torchshapelets/__init__.py -> build/lib.linux-x86_64-3.8/torchshapelets
  copying src/torchshapelets/shapelet_transform.py -> build/lib.linux-x86_64-3.8/torchshapelets
  running build_ext
  building '_impl' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/src
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/etienne/.local/lib/python3.8/site-packages/torch/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/TH -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/include/python3.8 -c src/discrepancies.cpp -o build/temp.linux-x86_64-3.8/src/discrepancies.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/etienne/.local/lib/python3.8/site-packages/torch/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/TH -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/include/python3.8 -c src/pytorchbind.cpp -o build/temp.linux-x86_64-3.8/src/pytorchbind.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/etienne/.local/lib/python3.8/site-packages/torch/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/TH -I/home/etienne/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/include/python3.8 -c src/shapelet_transform.cpp -o build/temp.linux-x86_64-3.8/src/shapelet_transform.o -fvisibility=hidden -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  src/shapelet_transform.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> torchshapelets::shapelet_transform(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int64_t, const std::function<at::Tensor(at::Tensor, at::Tensor, at::Tensor, at::Tensor)>&, at::Tensor)’:
  src/shapelet_transform.cpp:313:9: error: ‘num_shapelets’ not specified in enclosing ‘parallel’
    313 |         for (int64_t shapelet_index = 0; shapelet_index < num_shapelets; ++shapelet_index) {
        |         ^~~
  src/shapelet_transform.cpp:310:17: error: enclosing ‘parallel’
    310 |         #pragma omp parallel for default(none) \
        |                 ^~~
  src/shapelet_transform.cpp:316:116: error: ‘num_shapelet_samples’ not specified in enclosing ‘parallel’
    316 |             auto shapelet_times = torch::linspace(0, length.detach().item(), num_shapelet_samples, length.options());
        |                                                                                ^
  src/shapelet_transform.cpp:310:17: error: enclosing ‘parallel’
    310 |         #pragma omp parallel for default(none) \
        |                 ^~~
  src/shapelet_transform.cpp:360:66: error: ‘num_samples’ not specified in enclosing ‘parallel’
    360 |             std::tie(discrepancy, index) = detail::continuous_min(times[0], times[-1] - length, min_fn, num_samples);
        |                                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  src/shapelet_transform.cpp:310:17: error: enclosing ‘parallel’
    310 |         #pragma omp parallel for default(none) \
        |                 ^~~
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for torchshapelets

Hmm. You might be using a different version of OpenMP to what we used? FWIW OpenMP can be pretty flakey; in the edge cases it can be implemented in slightly different ways on slightly different OSs/etc.
(Incidentally I do notice that you're certainly not using the right versions of the other libraries, although that might not affect this.)
What might be simplest in your case is just to add the missing variables to the shared(...) specifiers.

Thank you for the quick response.
My OpenMp version is 4.5.
I will try to modify the source code, it should be easier like this.

authors: etibuteau patrick-kidger

license: MIT


text:
Question: Is it possible to implement this in other arcade games

Hi, I am new to reinforcement learning field. So, when I saw the YouTube video which by the way was awesome!!
I want to know if it is possible to use the same algorithms on other games like arkanoid.
Thank you in advance.

You will have to make other algorithms for other games, it really depends what type, for example, for snake, a PPO algorithm is usually sufficient, but for more complex games like chess, you should use a Double Deep Q Learning algotithm with replays.

source: gharchive/issue

repo: patrickloeber/snake-ai-pytorch

license_type: permissive

license_source: github-api


text:
Tool bar toggle button

I think it would be quite useful to have a Safari toolbar button for this extension.
Ideal functionality
Click: toggle the blocklist on and off.
Click-and-hold: display a dropdown menu to quickly customize which items are blocked.
Appearance
A focus icon like this one would be quite elegant:
https://www.flaticon.com/free-icon/focus_635908
Thanks for the great extension! It helps me avoid being sucked in a black hole of distraction when I watch a video on YouTube.

To include a toolbar icon, I'd need Focus to ask for greater permissions as well as have two panes in the Safari Extension preferences. For that reason, I decided against a toolbar item.

repo: patrickshox/Focus-for-YouTube


text:
toString2 support of old jaxb-basic argument

From an email by Falk Lehmann,

I am using your forked hisrc-higherjaxb40-maven-plugin with your hisrc-basicjaxb-plugin.

But when I use the toString function, the test result shows only the class name of the object with the memory ID, but not the underlying object values of that class. So I searched for the answer to the change and found that you are using the old toString function and not the new toString2 from org.jvnet.jaxb2_commons::jaxb2-basics.

Falk, thank you for your question. Since v2.1.0, the toString, equals and hashCode plugins in hisrc-basicjaxb-plugin are the newer advanced implementations with customizable strategies, locators, isset detection and logging.

Note: The 2 suffix was dropped from their name and the new methods replaced the older, obsolete methods.

For the toString strategy, you can configure the output format using the SLF4J logging level:

INFO: Displays the root object, its fields and summarizes list(s) to show only size.
DEBUG: As INFO but lists are expanded.
TRACE: As DEBUG but displays full class names and field names

Here are some examples from hisrc-basicjaxb-ex002-2.1.0-mvn-src.zip

org.slf4j.simpleLogger.log.org.jvnet.basicjaxb.lang.ToStringStrategy=INFO
PurchaseOrder@7c50877b[OPEN, 2022-05-04T16:04:30.009, Preference@2973cc95[OPEN, GROUND, DEBIT, ORD-955810], Address@7692eaf1[OPEN, Kimberly U. Nelson, 775 Sixth Terr, Franklin, NV, 88978, USA], Address@2ae8d51c[OPEN, Kimberly U. Nelson, 775 Sixth Terr, Franklin, NV, 88978, USA], Billing and shipping addresses are the same., <size=1>, ORD-955810]

org.slf4j.simpleLogger.log.org.jvnet.basicjaxb.lang.ToStringStrategy=DEBUG
PurchaseOrder@78c29de3[OPEN, 2022-05-04T16:04:30.009, Preference@14460ada[OPEN, GROUND, DEBIT, ORD-955810], Address@21be32a4[OPEN, Kimberly U. Nelson, 775 Sixth Terr, Franklin, NV, 88978, USA], Address@34f00523[OPEN, Kimberly U. Nelson, 775 Sixth Terr, Franklin, NV, 88978, USA], Billing and shipping addresses are the same., {Item@71dfa45c[OPEN, Product@556b6067[OPEN, 🍔, hamburger, 38.12, ZHRN-U1F354], 2, Shipping 2 of hamburger, 2022-05-04T16:04:30.010, ITM-9497099]}, ORD-955810]

org.slf4j.simpleLogger.log.org.jvnet.basicjaxb.lang.ToStringStrategy=TRACE
org.patrodyne.jvnet.basicjaxb.ex002.model.PurchaseOrder@55220662[stage=OPEN, orderDate=2022-05-04T16:04:30.009, preference=org.patrodyne.jvnet.basicjaxb.ex002.model.Preference@1acc79c5[stage=OPEN, carrierType=GROUND, paymentType=DEBIT, orderNum=ORD-955810], shipTo=org.patrodyne.jvnet.basicjaxb.ex002.model.Address@83f26e3[stage=OPEN, name=Kimberly U. Nelson, street=775 Sixth Terr, city=Franklin, state=NV, zip=88978, country=USA], billTo=org.patrodyne.jvnet.basicjaxb.ex002.model.Address@4c900fb3[stage=OPEN, name=Kimberly U. Nelson, street=775 Sixth Terr, city=Franklin, state=NV, zip=88978, country=USA], comment=Billing and shipping addresses are the same., items={org.patrodyne.jvnet.basicjaxb.ex002.model.Item@61424429[stage=OPEN, product=org.patrodyne.jvnet.basicjaxb.ex002.model.Product@5a3e64fa[stage=OPEN, picture=🍔, description=hamburger, price=38.12, partNum=ZHRN-U1F354], quantity=2, comment=Shipping 2 of hamburger, shipDate=2022-05-04T16:04:30.010, itemNum=ITM-9497099]}, orderNum=ORD-955810]

Thanks, it worked perfectly.
Can you include this information for other users in the readme file of the next version? Thank you very much =)

Reported as fixed.

authors: FalkLehmann patrodyne

repo: patrodyne/hisrc-basicjaxb


text:
chore: Update dependencies

Adding pfe-sass as a devDependency of any component using pfe-sass to compile.  This is important because when lerna looks at the dependency tree, if a component doesn't list it, it can lead to a race-condition where globbing is in process when another component's sass looks for it.
Testing instructions

npm run build

Ready-for-merge Checklist

[x] Expected files: all files in this pull request are related to one request or issue (no stragglers or scope-creep).
[x] Repository compiles and tests pass.

Merging
Please squash when merging and ensure your commit message uses conventional commit formatting.
Be sure to share your updates with the patternfly-elements-contribute@redhat.com mailing list!

@castastrophe Can you create an issue for the PR and link it?

@kylebuch8 Done.  Are we requiring issues for every chore we work on?

https://github.com/patternfly/patternfly-elements/issues/1394

@kylebuch8 Where are we with this?  The issue has been added.  Wondering when we'll have time to get this update in?  It will help us bring back parallelization on compile.

source: gharchive/pull-request

repo: patternfly/patternfly-elements


text:
Update v6 branch with latest main

RHCLOUD-34297
RHCLOUD-34197
closes #219

updated v6 branch with latest main
also resolved #216

Preview: https://react-component-groups-pr-component-groups-236.surge.sh

authors: fhlavac patternfly-build

repo: patternfly/react-component-groups


text:
alternative widget syntax in markdown

As a user I would like to have a simpler version to include widgets.
I would like to have
!(widget:list:{ query: "tags=Widget" })

!(widget:demo:{ id: "button" })

Good idea let's do this.

authors: chaosmonster marionebl

repo: patternplate/patternplate


text:
[Debian] Cameras at the wrong port

Hello,
I have two printers running on Debian with octoprint_deploy (ustreamer, no haproxy) without any problems (with the printers).
I have installed the printers on port 5001 and 5002. The associated webcams on 7001 and 7002.
When I open the two printers via OctoPrint in the browser everything is correct and works perfectly.
But on both instances of the cameras are assigned to "http://OctoPrint.local:7003?action=stream".
So I always see only the image of one camera.
If I manually switch to 7001 or 7002, no video appears on OctoPrint. Is this a bug?

Provide output from the following commands:
cat /etc/systemd/system/cam_instancename1.service
cat /etc/systemd/system/cam_instancename2.sevice
where instancename is replaced by the name of your instance.

Hallo,
Port 7001: (cat /etc/systemd/system/cam_Mega.service)
[Unit]
Description=the OctoPi(buntu) ustreamer daemon with the user specified config
After=network.online.target
Wants=network.online.target
[Service]
User=pi
ExecStart=/home/pi/ustreamer/ustreamer -d /dev/cam_Mega -s 0.0.0.0 -m MJPEG -r 640x480 -f 5 -p 7002 --device-timeout 8 --device-error-delay 8
[Install]
WantedBy=multi-user.target
Port 7002: cat /etc/systemd/system/cam_Vyper.service
[Unit]
Description=the OctoPi(buntu) ustreamer daemon with the user specified config
After=network.online.target
Wants=network.online.target
[Service]
User=pi
ExecStart=/home/pi/ustreamer/ustreamer -d /dev/cam_Vyper -s 0.0.0.0 -m MJPEG -r 640x480 -f 5 -p 7003 --device-timeout 8 --device-error-delay 8
[Install]
WantedBy=multi-user.target
Both Ports are one number higher then expected (and used in installation).
But ….
…. after a clean Debian reinstall and octoprint_deply install, I installed the cams on 7000 and 7001 and now they are correct in both *.service files with 7001 and 7002.
And the best: http://OctoPrint.local:7001?action=stream http://octoprint.local:7001/?action=stream and http://OctoPrint.local:7002?action=stream http://octoprint.local:7002/?action=stream are running with the correct cameras! :-)
So the problem with two ports showing the same camera must be my failure, but the increased number is a failure of octoprint_deploy. Correct?
cu, Alex Gebauer
--
Alexander Gebauer
Gruener Weg 8, 63571 Gelnhausen
Mobil +49 171 947 7 947

Am 20.05.2023 um 14:24 schrieb paukstelis @.***>:
Provide output from the following commands:
cat /etc/systemd/system/cam_instancename1.service
cat /etc/systemd/system/cam_instancename2.sevice
where instancename is replaced by the name of your instance.
—
Reply to this email directly, view it on GitHub https://github.com/paukstelis/octoprint_deploy/issues/87#issuecomment-1555900481, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASYKN64ECEGHJ3OBP5SE44TXHCZWDANCNFSM6AAAAAAYIV7KUQ.
You are receiving this because you authored the thread.

I'll have to look closer. It isn't an issue I have seen before, but forcing ports to be greater than 7000 is a feature I added fairly recently.

yeah, this was just poor planning on my part. I will be fixing the issue shortly.

completed. https://github.com/paukstelis/octoprint_deploy/commit/aea4c30e3e83dba253a7d8320f540d6e15d78fb0

authors: Yippiehh paukstelis


text:
Update Posts “license”

Automatically generated by Netlify CMS

👷 Deploy Preview for distracted-davinci-ed3898 processing.
🔨 Explore the source changes: 72ac01f422e96d5a780fb476e806f20a6969994b
🔍 Inspect the deploy log: https://app.netlify.com/sites/distracted-davinci-ed3898/deploys/611cdeeb7469ec000749a63d


text:
BaseOreBlock and other LootProviders break other mods expectations

Mods may have an expectation, in vanilla and beyond, that getting a loot table for a block will get those items that would be dropped from it. Several types of blocks provided by BCLib break this expectation needlessly - that is, without offering any functionality that could not be provided through a loot table. I have fixed this on my end where it came up - see lukebemish/excavated_variants#46 - but I thought I should make you aware that this can lead to mod compat issues. It could be fixed by using the new datagen system in fabric to generate loot tables instead, or even by using something like ARRP.

BClib, BN, BE and Eden blocks use internal loot overrides instead of json loot tables. Reason is simple - hundreds of blocks will require hundreds of jsons, which potentially will require updates with MC during version changes, will be almost identical and will increase jar size more than actual (wich is important for mods with huge amount of assets). Loot table replacement existed since 1.16.5 and didn't cause any problems before. LootProvider interface was introduced in the newest version as a replacement for many internal overrides existed before (which should reduce code amount, suggestion #78) - instead of overriding getDrops block will use getLoot implementation from interface and the logic is still same as before.
At this moment there are no plans to remove systems of procedural content generation, but they shouldn't cause major issues. If other mods call getDrops method to get block loot - it will work fine. If they use direct loot tables instead - they will just get empty table

Yes, this all makes sense - this is why I had recommended either using the new datagen system, or ARRP, either of which would let you avoid manually making large numbers of JSON files, while still allowing other mods to access loot tables in an expected way.

Probably good solution will be switch direct mixins to Fabric loot table API. Blocks will still use an interface and automatically generate tables, but all loot will be available in resource manager as loot tables. I will put this into roadmap plan

authors: lukebemish paulevsGitch

repo: paulevsGitch/BCLib


text:
I can't open my end stone smelter on my friends modded aternos server

For some reason I can't open my end stone smelter on my friends server.
It's a Fabric 1.16.5 server
The mods installed on the server are:
Fabric API
Fabric Waystones
Astromine
Origins
Extra Origins
Pekhui
lithium
Croptopia
Cosmetic armour
Curios
Fabric Tailor
better nether
and of course better end.
On my client I have REI, litematica and canvas as well as their respective library mods
I'm not sure whats happening but I think its something to do with aternos as their servers have given us some very weird issues so far and we'll be switching to a server hosted by me in the near future hopefully but for now, this is very annoying and completely halts my progress.
My hardware config is (If this even matters)
Intel Core i5 6600K
Nvidia Geforce GTX 1070
2x16GB 2933MHZ DDR4
MS windows 10

After some research we found that Aternos use its own rewritten API, as it is unofficial it will not be supported and this issue will be closed

authors: ShepBoi paulevsGitch

repo: paulevsGitch/BetterEnd


text:
🛑 Taqueria Bonjour is down

In c3b9f30, Taqueria Bonjour (https://bonjour.paulynomial.com) was down:

HTTP code: 502
Response time: 15139 ms

Resolved: Taqueria Bonjour is back up in 4bfd392.

repo: paulkiernan/paulynomial-uptime


text:
AnchorLink TypeError

If you run into this error:
...
File "/path/to/venv/lib/python3.7/site-packages/mkdocs/structure/toc.py", line 59, in _parse_toc_token
    anchor = AnchorLink(token['name'], token['id'], token['level'])
TypeError: string indices must be integers

The solution is to temporarily pin your version of mkdocs to 1.0.4.
I will soon release version 0.8.0 that will be compatible with mkdocs 1.1 (but not compatible anymore with mkdocs < 1.1, unless someone can advise me on how to support both!).

I wonder: should I add mkdocs >= 1.1 is the v0.8?

Yes

I would have said so

Just released version 0.8.0. Always a bit scared of releasing :fearful:, please tell me if there's issues with this version!

The original issue was fixed, but this introduces a new bug on my side.
(venv) ➜  whatlies git:(github) ✗ mkdocs serve
INFO    -  Building documentation...
INFO    -  Cleaning site directory
Traceback (most recent call last):
  File "/Users/vincent/Development/whatlies/venv/bin/mkdocs", line 11, in <module>
    sys.exit(cli())
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/__main__.py", line 143, in serve_command
    **kwargs
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/commands/serve.py", line 141, in serve
    config = builder()
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/commands/serve.py", line 136, in builder
    build(config, live_server=live_server, dirty=dirty)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/commands/build.py", line 288, in build
    _build_theme_template(template, env, files, config, nav)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/commands/build.py", line 114, in _build_theme_template
    output = _build_template(template_name, template, files, config, nav)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/commands/build.py", line 93, in _build_template
    output = template.render(context)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
    self.environment.handle_exception()
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
    raise value.with_traceback(tb)
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/material/404.html", line 4, in top-level template code
    {% extends "base.html" %}
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/material/base.html", line 108, in top-level template code
    {% block header %}
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/material/base.html", line 109, in block "header"
    {% include "partials/header.html" %}
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/material/partials/header.html", line 7, in top-level template code
    {% include "partials/logo.html" %}
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/material/partials/logo.html", line 5, in top-level template code
    <img src="{{ config.theme.logo | url }}" alt="logo">
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/utils/filters.py", line 14, in url_filter
    return normalize_url(value, page=context['page'], base=context['base_url'])
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/utils/__init__.py", line 223, in normalize_url
    path = path_to_url(path or '.')
  File "/Users/vincent/Development/whatlies/venv/lib/python3.6/site-packages/mkdocs/utils/__init__.py", line 251, in path_to_url
    return '/'.join(path.split('\\'))
AttributeError: 'dict' object has no attribute 'split'

This seems to be a problem with mkdocs or mkdocs-material and not mkdocstrings.
Do you have a link to a repo on which I could try to reproduce and debug?

It was related to https://github.com/pawamoy/mkdocstrings/issues/85#issuecomment-613409534.

authors: HuiiBuh StephenBrown2 koaning pawamoy

repo: pawamoy/mkdocstrings

license: ISC


text:
🛑 Nathan Hurde is down

In 45b2498, Nathan Hurde (https://nathanhurde.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nathan Hurde is back up in e823a0f after 9 days, 12 hours, 28 minutes.

repo: pawbyte/uptime


text:
🛑 SIGAA is down

In b4b4529, SIGAA (https://sig.unb.br/sigaa/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SIGAA is back up in efa3dd9.


text:
Value names missing in config flow

The form that pops up when adding the integration is missing the names of the fields.

As a comparison, here's the one for adguard: https://github.com/home-assistant/core/blob/master/homeassistant/components/adguard/config_flow.py

Great feedback thanks.  Let me work on it this weekend and get back to you with an update.   I am a bit of a novice on writing custom integrations myself.   Meanwhile you are completing the form correctly so everything should work correctly.

I tried to reproduce your results.  Here is what I see in my browser:

So I cannot reproduce this result.  I looked at your reference adguard and I do not see anything different that from what I did.  The displayed text in both cases is coming from the file "strings.json".  Did you use the same browser to create both of those screen shots?  I wonder if this could be one of the annoying rendering incompatibilities.  As far as I know (which is not much) there is nothing I can do inside a custom component to change anything about the way things are displayed.  This is all under the control of the HA environment.  I will Google around a bit to see if I can find anyone else with a similar issue but am otherwise not sure what I can do.

Very odd.  I mainly use Chrome but also tried this with Safari on Mac and iOS within HA app which IIRC should be using same-ish webkit rendering engine.  Using the default theme during the daytime.

I reproduced your result with Chrome.  I found that if I flushed my browser cache the text appeared.  But as all the text was not visible in any browser due to its length I shorted these descriptions.  And I also made 'localhost' the default for the host address as this makes this descriptive font smaller and more fits.  Weird browser juju I don't enjoy.
I think it is improved, thanks for your input on this.  I am closing this issue.

authors: pbix poldim

repo: pbix/HA-solark-PV


text:
Why GPL?

If this is an independent implementation, it shouldn’t be constrained by OpenSCAD’s original license… and it would probably be included in more projects with a less invasive license.
For instance, I think it would be a fun frontend for CascadeStudio: https://github.com/zalo/CascadeStudio

I am not entirely sure if my parser is not a "derived work" of OpenSCAD's parser, considering I have read their source code and the implementation of parsers are very similar anyway. @kintel is thinking about re-licensing their parser into a more permissive license, and I can change this license to something like Apache 2.0 at that point.
This may be too pedantic though, I don't think anyone will come here to say things about violating GPL, but just to play safe...

It seems that the core devs of openscad think that the implementation here is very different from the one in openscad. I will change the license to Apache 2.0 tonight.

Does it make sense to put it in as a submodule in manifold (as a file import format)?
Might be a universe where it makes sense to have a Manifold constructor that takes in a SCAD string…
(Or, perhaps an array of tuples representing the file contents and paths of each contributing .scad file)

I think this should be a dependency of the final CAD package instead of a dependency of manifold, e.g. dependency of manifoldcad or openscad. The way this is designed decouples the interpreter from the underlying geometry library, so the CAD package can choose which backend to use, perhaps even dynamically. I think this is the most flexible design.
And I don't really care about the actual file format here, as long as the user of sscad give me some path to file ID mapping and file ID to input stream mapping. The input stream can be from a file, fetched from the internet or just some strings. I does not matter.


text:
Het systeem kan een bestelvoorstel doen.

Het systeem kan een bestelvoorstel doen.

Check!

authors: Artimunor MehmetSo

repo: pcbuilderapp/pcbuilder-frontend

license_source: bigquery


text:
Allow temporary credentials

Allow using temporary credentials, for example when using amplify + cognito authentication.
Couldn't test because  currently I'm getting a failure in the viewer example,
Property 'media' does not exist on type 'Peer | undefined'.

here
  const {
    error,
    peer: { media },
  } = useViewer(config);

If you could help me with that issue I can polish this PR :)

@cyuste My mistake, the wiki example is missing a default value for peer. I've updated the example:
const {
  error,
  peer: { media } = {},
} = useViewer(config);

@pdcarroll , thank you very much for your help.
I've been playing a little bit with your (great) component and it works just fine in my webpage with these changes. I'm using Amplify/Cognito auth and the credentials I get are temporary, so I need to use sessionToken.
As you can see, I introduced another change that you might find useful: In my current scenario, I'm creating a webrtc connection to one of the many cameras that a device has and the user can switch over other camera using a drop-down menu. When I tried to switch I received errors complaining that the signalingChannel was already opened so I had to slightly modify how the closure is done to allow this.
If you are interested, take a look at it and let me know what you think. Maybe the code can be improved but the idea is there :)

@cyuste I agree, switching media devices seems like a useful feature. I think that change may require a bit more testing. Would you mind moving your changes related to channel switching into a new PR? That way I can go ahead and merge your sessionToken changes so that it's not blocked by the other feature. Thanks so much for the contrubutions!

@pdcarroll , reverted changes not related with the use of sessionToken. In the following weeks I will also test how well does it cope with connections issues, I'll keep you updated.
Thank you again!

authors: cyuste pdcarroll

repo: pdcarroll/react-kinesis-webrtc


text:
Save control point information on LTCurve

Feature request
Save control point information on bezier curves during parsing (as suggested by @jsvine in https://github.com/pdfminer/pdfminer.six/pull/530#issuecomment-774742279).
Description
I need to render bezier curves in pdfs with different levels of resolutions and what jsvine suggests in PR-comment would solve my problem.

(Relatedly: Are the maintainers open to adding a .path attribute (which would contain the full path-command information that .paint_path is using) to LTCurve objects? That would allow users to reproduce the Beziér curves themselves — currently not possible because the command types themselves (m/l/h/c/v/y) are not accessible through .pts. If that sounds like a good idea, I can submit a separate PR once this one is resolved.)

Since I could not find any discussion regarding jsvine's suggestion I made this issue. Maybe there already exists an issue for this?
Example of use case
Example, this file contains a simple circle. Using a function like cubic_bezier below, I would like to be able to render points on the circle. Moreover, I need to be able to generate the points with different levels of resolution (e.g.res=5, res=10 and res=100) so the original control points needs to be saved on the curve object somehow.
def cubic_bezier(p0, p1, p2, p3, res=10):
    pts = []
    for i in range(0, res):
        t = i / res
        pt = pow(1-t, 3) * p0 + 3 * pow((1-t), 2)*t*p1 + 3 * (1-t) * pow(t,2)* p2 + pow(t, 3) * p3
        pts.append(pt)
    return pts

Image of rendered points from bezier curve in pdf file

I need this feature too. Is someone working on it? Otherwise i can also offer to work on a PR?

@JulianFeinauer PR is more than welcome here!

license: mit


text:
Fix typos in converting_pdf_to_text.rst

Fix typos in converting_pdf_to_text.rst.
The word pdfminer.six as a whole should not be separated by newline, otherwise they are treated as two separated words by renderer, and incorrectly displayed as separated.
Trim redundant spaces.

@MapleCCC Thanks for this!

authors: MapleCCC pietermarsman


text:
Tests fail with cc1plus killed

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

mentioned in commit 27e8fa0faa4b86a046d9970bc721902643c44364

mentioned in commit 88506ee4fe37faf57eb2e42157cd43f3464f2aff

mentioned in commit dbe6ba1c0663ba88e51171ed703568ccaf3f3942

mentioned in commit fe32ff5b6e2d9c47ecf4a255642b157803e46243

repo: pdidev/pdi


text:
Support map "includes" to a different directory in site-packages

Currently the includes will be copied to site-packages as it is. For example, if I have includes = ["path/to/foo"], then path/to/foo will appear in the site-packages. Can we support mapping this path/to/foo in the source tree to a different directory in site-packages? For example, I might want to be able to do import foo after installing my package, so I would want path/to/foo in the source tree to be installed to foo in site-packages. That adds flexibility in the backend.

set package-dir config to path/to: https://backend.pdm-project.org/build_config/#the-src-layout, which means path/to/foo will be importable as import foo
This works the same as the equivalent in setuptools:
setup(
    package_dir={"": "/path/to"}
)

Yeah package_dir works, but it is a common value for all includes. I would like to have a way to customize the installation path for each includes.
For instance, if I am using the src layout, so the package_dir is by default src. Now my package in src/mypackage would be installed correctly. If I also have path/to/foo outside src and I want it to be installed to site-packages/foo, there would be no way to do it as far as I know.

Is there any special reason not putting it inside src/ instead?

repo: pdm-project/pdm-backend


text:
🛑 saparksfound is down

In a6e9f23, saparksfound (https://saparksfoundation.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: saparksfound is back up in a378044.

repo: pearanalytics/uptime


text:
Aba dos Correios na edição de produtos

Defini uma nova versão por conta do upgrade script. A aba é adicionada em todos os sets de atributos.

Excelente contribuição! Eu também organizava em uma aba exclusiva, mas fazia isso manualmente :\

@mateus007 ficou faltando um install para a nova versão v4.7.0 que você criou, como essa: https://github.com/pedro-teixeira/correios/blob/master/app/code/community/PedroTeixeira/Correios/sql/pedroteixeira_correios_setup/install-4.6.0.php
Será que poderia enviar uma PR?

repo: pedro-teixeira/correios


text:
compatibility windows mingw 64 bits

It compiles, but the unit tests fail (crash!)

fixed in d66f099

repo: pedrolcl/sonivox


text:
Lower Expected Min Length

When running npm exec parse-domain-update, an error was encountered:
Fetching public suffix list from https://publicsuffix.org/list/public_suffix_list.dat...
parse-domain update failed: AssertionError [ERR_ASSERTION]: Public suffix list is shorter than expected

This PR lowers the FETCH_PSL_EXPECTED_MIN_LENGTH to resolve the issue

That's interesting. I've encountered these as well. After executing it a couple of times it might succeed though. It seems that the response from the public suffix list sometimes contains fewer entries. However, I haven't yet had time to get to the bottom of this (for example, to examine the response with a diff tool).
I'm not sure if this is the right fix. It's probably a good temporary fix if you can tolerate that there might some entries be missing.

authors: atsui-affinity jhnns

repo: peerigon/parse-domain


text:
Plot Control and Test groups CTR for the action/treatment combination

Calculate z-score and visualize significance

Will create another pull request

repo: pegasystems/cdh-datascientist-tools


text:
Fix inverted width and height in decodeSize method

Description
The decodeSize() method has width and height inverted on the Size() constructor

I appreciate this PR.  Rather than merging it, I applied the fix as part of the Null Safety update, because that required additional changes to the same lines.
If after updating to 2.0.0 you still have an issue, please re-submit, and I'll take another look.


text:
[REQUEST] NuGet availability to be used in e.g. Xamarin

Hello,
this is a request to make this great project available to a bigger community.
It would be great if you could also make this project available on NuGet.
Many developers using MS Visual Studio would benefit from it and could use this project also in e.g. Xamarin made apps.
Thx a lot.

Hello Markus, thanks for your request and sorry for the late response.
I'm not very familiar with Microsoft's .NET ecosystem. Can Java libraries also be used there? Can you perhaps give me some starting point on how to make my library available within NuGet? Thanks.

Hello Markus, thanks for your request and sorry for the late response.
I'm not very familiar with Microsoft's .NET ecosystem. Can Java libraries also be used there? Can you perhaps give me some starting point on how to make my library available within NuGet? Thanks.

Hello Markus, thanks for your request and sorry for the late response.
I'm not very familiar with Microsoft's .NET ecosystem. Can Java libraries also be used there? Can you perhaps give me some starting point on how to make my library available within NuGet? Thanks.

Hello @pemistahl ,
Happy New Year to you.
You might start by having a look at:
https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli
You can choose the type of package you want to create:

.NET Standard
.NET Framework

When creating for Xamarin you should use .NET Standard.
The code is C# but when you come from Java it's almost the same ;).
Most external libraries your code might depend on you will also found on NuGet, so you can easily still use them.
Hope I could point you in the right direction.
Thx.

Hello Markus, thanks for your request and sorry for the late response.
I'm not very familiar with Microsoft's .NET ecosystem. Can Java libraries also be used there? Can you perhaps give me some starting point on how to make my library available within NuGet? Thanks.

Hello @pemistahl ,
Happy New Year to you.
You might start by having a look at:
https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio?tabs=netcore-cli
You can choose the type of package you want to create:

.NET Standard
.NET Framework

When creating for Xamarin you should use .NET Standard.
The code is C# but when you come from Java it's almost the same ;).
Most external libraries your code might depend on you will also found on NuGet, so you can easily still use them.
Hope I could point you in the right direction.
Thx.

Thank you @JMan7777. Happy new year to you as well. As soon as I find the time, I will take a look. But I cannot tell you when this will be exactly. I'm quite busy these days.

Thank you @JMan7777. Happy new year to you as well. As soon as I find the time, I will take a look. But I cannot tell you when this will be exactly. I'm quite busy these days.

repo: pemistahl/lingua


text:
Add Sinhala

with a unique alphabet

Thank you very much for adding Sinhala to my library, Kevin. :) And sorry for my late response. I don't always have as much time for my personal projects as I want to.

authors: kwhumphreys pemistahl


text:
🛑 Kecamatan Mustika Jaya is down

In 9c8e3ee, Kecamatan Mustika Jaya (https://kec-mustikajaya.bekasikota.go.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kecamatan Mustika Jaya is back up in e457997.

repo: pemkotbekasi/website-status


text:
Move spec testsuite into tests.

Move all spec testsuite into /tests directory.
So it means that several changes will happen:

Compilation will share common dependencies in target directory. This should make CI builds faster. This also should reduce space requirements.
Common Cargo.lock file
cargo test will include spec tests.
cargo check --tests will also include spec tests.

Lgtm

authors: NikVolf pepyakin

repo: pepyakin/wasmi


text:
K8SPXC-1408: don't block restore on binlog gap

https://perconadev.atlassian.net/browse/K8SPXC-1408
CHANGE DESCRIPTION
Problem:
Short explanation of the problem.
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?
[ ] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[ ] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[ ] Is an E2E test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?
[ ] Are OpenShift compare files changed for E2E tests (compare/*-oc.yml)?

Config/Logging/Testability

[ ] Are all needed new/changed options added to default YAML files?
[ ] Did we add proper logging messages for operator actions?
[ ] Did we ensure compatibility with the previous version or cluster upgrade process?
[ ] Does the change support oldest and newest supported PXC version?
[ ] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
failure

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
failure

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
failure

init-deploy-8-0
failure

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
failure

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
failure

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 41 out of 41

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1745/commits/462a480c355e27a2712e394d92fae0b42c2e8c3d
image: perconalab/percona-xtradb-cluster-operator:PR-1745-462a480c

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 41 out of 41

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1745/commits/462a480c355e27a2712e394d92fae0b42c2e8c3d
image: perconalab/percona-xtradb-cluster-operator:PR-1745-462a480c

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
failure

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 41 out of 41

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1745/commits/359bd4e1fc753a0b7df8049e8e3c5d76608013e3
image: perconalab/percona-xtradb-cluster-operator:PR-1745-359bd4e1

Test name
Status

affinity-8-0
passed

auto-tuning-8-0
passed

cross-site-8-0
passed

demand-backup-cloud-8-0
passed

demand-backup-encrypted-with-tls-8-0
passed

demand-backup-8-0
passed

haproxy-5-7
passed

haproxy-8-0
passed

init-deploy-5-7
passed

init-deploy-8-0
passed

limits-8-0
passed

monitoring-2-0-8-0
passed

one-pod-5-7
passed

one-pod-8-0
passed

pitr-8-0
passed

pitr-gap-errors-8-0
passed

proxy-protocol-8-0
passed

proxysql-sidecar-res-limits-8-0
passed

pvc-resize-5-7
passed

pvc-resize-8-0
passed

recreate-8-0
passed

restore-to-encrypted-cluster-8-0
passed

scaling-proxysql-8-0
passed

scaling-8-0
passed

scheduled-backup-5-7
passed

scheduled-backup-8-0
passed

security-context-8-0
passed

smart-update1-8-0
passed

smart-update2-8-0
passed

storage-8-0
passed

tls-issue-cert-manager-ref-8-0
passed

tls-issue-cert-manager-8-0
passed

tls-issue-self-8-0
passed

upgrade-consistency-8-0
passed

upgrade-haproxy-5-7
passed

upgrade-haproxy-8-0
passed

upgrade-proxysql-5-7
passed

upgrade-proxysql-8-0
passed

users-5-7
passed

users-8-0
passed

validation-hook-8-0
passed

We run 41 out of 41

commit: https://github.com/percona/percona-xtradb-cluster-operator/pull/1745/commits/2e9e79b989086189ac2f8051c20f0f1399b0f743
image: perconalab/percona-xtradb-cluster-operator:PR-1745-2e9e79b9

authors: JNKPercona pooknull

repo: percona/percona-xtradb-cluster-operator


text:
Use specific Compress versions

-To avoid a bug in latest compress perl modules, specify an older
version.

This should fix userenv builds, including CI tests

repo: perftool-incubator/toolbox


text:
feat: added alliance module into app, implement ictest for the flow

1. Overview
Implemented x/alliance intergration according to https://docs.alliance.money/guides/get-started
Note: this uses our fork with compat changes
2. Implementation details
Alliance module is on v3.4.x branch as it is compatible with Cosmos SDK 0.47.x. Branch on v4.x.x expects Cosmos SDK >= 0.50.
3. How to test/use
make local-image && make ictest-alliance
Test scenario TestAllianceBasic description:

create 2 chains - using persistenceCore and gaiad, 1 validator each
patch genesis so governance is fast, also alliance module doens't have a 7-day delay on rewards
setup IBC connection, channel between persistence and gaia, relayer
create user account on both chains
IBC-transfer 1000 ATOM from gaia to persistence
obtain IBC denom for ATOM on persistence
check all delegated tokes sum on persistence (5000000000000uxprt)
create an alliance on persistence using a governance proposal, denom is IBC denom of ATOM
weight is 1:1 ATOM - XPRT in that proposal
delegate alliance-enabled tokens to a validator on persistence (1000 IBC ATOM)
check that no IBC uatom left in user's wallet
check all delegated tokes sum on persistence including minted by alliance (10000000000000uxprt)
wait 5 blocks & query the rewards
claim all rewards from a delegation
check that uxprt balance on persistence chain increased after rewards claim

🥹

repo: persistenceOne/persistenceCore


text:
developer onboarding improvements

This is a suggestion of improving developer onboarding.
Objective Assumptions
As a new application developer for Personium:

need a quick way to obtain/request an account to be created. The account requires to be associated with at least one unit and cell. The application also require a unique domain name created.
need a visual way to understand how configurations can be applied to application - i.e. a section shows my CELL, USER, FQDN, etc so that it's easier for the devs to understand how to map them to application settings.
a section to show how to get started (e.g. examples linking to github, sdks for the programming languages)

As a unit/cell service provider:

would prefer to ensure resources consumption is manageable. At this stage, the service is built for testing and demonstration only. Thus, creating demo account needs to be controlled via an approval process.

structurally receive request that has been validated by the system; user should be able to pick a preferred/unique unit/cell name. Service provide will approve the demo account creation instead of using slack request channel.

Account and resources can be released if the account hasn't been used for over a time period
e.g. 3 months no activities -> move to achieve -> email notification to the unit owner
2 months no achieve retrieval -> move to delete -> email notification to the unit owner

As an organisation who may provide services to internal developers:

Reduce the need of manual operations internally to support developers and internal adoption.

@shimono @dixonsiu
This came from my experience when getting started to pick up the knowledge (aka. eating my own dog food), what's your thoughts?

@j1n6 Thank you for your suggestions. I agree with your comments. We will improve our documentation and the operations of the demo environment based on your comments. Thanks!

repo: personium/personium-core


text:
WIP: Add time measurement logging

Fix #446

Execute Engine Script
2019-07-30 13:26:46.996 [http-nio-8080-exec-9] [INFO ] PersoniumCoreLog [PL-SC-0001] - [Start] - [io.personium.core.rs.box.PersoniumEngineSvcCollectionResource#relaycommon:494] - [EngineRelay] method=GET Url=http://localhost:8080/personium-engine/unitadmin/testApp/service/test2
2019-07-30 13:26:47.615 [http-nio-8080-exec-9] [INFO ] PersoniumCoreLog [PL-SC-0001] - [End: 619ms] - [io.personium.core.rs.box.PersoniumEngineSvcCollectionResource#relaycommon:514] - [EngineRelay] method=GET Url=http://localhost:8080/personium-engine/unitadmin/testApp/service/test2

WebDAV Operation
Create file
2019-07-30 15:53:07.610 [http-nio-8080-exec-8] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doPutForCreate:587] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=0KB]
2019-07-30 15:53:07.612 [http-nio-8080-exec-8] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 2ms] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doPutForCreate:605] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]
2019-07-30 15:53:07.612 [http-nio-8080-exec-8] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavMetadataFile#save:217] - Operated a file. [path=\personium_nfs\personium-core\dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\.pmeta,size=0KB]
2019-07-30 15:53:07.613 [http-nio-8080-exec-8] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 1ms] - [io.personium.core.model.impl.fs.DavMetadataFile#save:229] - Operated a file. [path=\personium_nfs\personium-core\dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\.pmeta,size=0KB]

Update file
2019-07-30 15:53:51.992 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doPutForUpdate:646] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=0KB]
2019-07-30 15:53:52.000 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 8ms] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doPutForUpdate:670] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]
2019-07-30 15:53:52.000 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavMetadataFile#save:217] - Operated a file. [path=\personium_nfs\personium-core\dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\.pmeta,size=0KB]
2019-07-30 15:53:52.001 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 1ms] - [io.personium.core.model.impl.fs.DavMetadataFile#save:229] - Operated a file. [path=\personium_nfs\personium-core\dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\.pmeta,size=0KB]

Get file
2019-07-30 15:54:26.434 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavCmpFsImpl#get:703] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]
2019-07-30 15:54:26.518 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 84ms] - [io.personium.core.model.impl.fs.DavCmpFsImpl#get:728] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]
2019-07-30 15:54:26.523 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.file.StreamingOutputForDavFile#write:122] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=0KB]
2019-07-30 15:54:26.529 [http-nio-8080-exec-2] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 6ms] - [io.personium.core.model.file.StreamingOutputForDavFile#write:133] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]

Delete file
2019-07-30 15:56:34.523 [http-nio-8080-exec-9] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [Start] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doDelete:1012] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]
2019-07-30 15:56:34.524 [http-nio-8080-exec-9] [DEBUG] PersoniumCoreLog [PL-DV-0005] - [End: 1ms] - [io.personium.core.model.impl.fs.DavCmpFsImpl#doDelete:1020] - Operated a file. [path=/personium_nfs/personium-core/dav\u0_unitadmin\rAbvqiRjSF-dHqgZNvuwxQ\odRpNKykQkCRt5w5s9ZR0w\MyData\test.log\content,size=52KB]

Moved to #461.


text:
Create Dockerfile

Create a Dockerfile for testing as according to the milestone.

docker-compose.yaml exists

authors: ggwpez matthiasgeihs

repo: perun-network/perun-polkadot-backend


text:
Remove references to org.mortbay (jetty)

References to org.mortbay are no longer relevant in Jetty 9+
When the Jetty project moved from codehaus.org to eclipse.org the namespace changed from org.mortbay to org.eclipse.jetty
See: https://github.com/perwendel/spark/blob/2.2/src/main/java/spark/webserver/SparkServer.java#L56

Can't find any references, so this was done at some point.

authors: joakime tipsy

repo: perwendel/spark


text:
Import data from mojepanstwo.pl

Info

Description of API Mojego Państwa
https://api-v3.mojepanstwo.pl/swagger.json
Import data

Tasks:

[ ] import datasets: zamowienia_publiczne, zamowienia_publiczne_dokumenty, zamowienia_publiczne_wykonawcy, zamowienia_publiczne_zamawiajacy

[ ] one-time import (archive data)
[ ] regular import (new tenders and offers since last import)

Problemy z API:

kilka nieistniejących identyfikatorów zamawiającego (3 przypadki)
zapytanie: jak pobrać wszystkie identyfikatory z bazy zamówień
zapytanie: zamówienia zmienione od danej daty
co jest w zamówienia publiczne dokumenty? @danielmacyszyn pomożesz?

tymczasowo ściągam całość i wyparsowywuję identyfikatory wiec nie jest to bloker. Docelowo potrzebna usługa lub parametr dla samych ids, zarówno całość jak i od konkretnej daty

pobieranie zakresu identyfikatorów wciąż jest improwizowane, potrzebna działająca usługa która bez stronicowania poda zbiór identyfikatorów zamówień

Teraz tego nie będziemy w API zmieniać, ale zawrę to jako rekomendacje do zmiany API.

done

authors: KrzysztofMadejski dzierzy

repo: petabyte-research/redflags


text:
move to github actions for CI

move from Travis CI to Github Actions in order to test both on linux and windows
test install on python 3.5, 3.6, 3.7 and 3.8
remove matplotlib dependency (was breaking windows build)

@peteboyd I'm going to merge this, since this may help with #29


text:
changelog not updated for 2.0.0

There is no changelog entry for release 2.0.0

Fixed: https://github.com/petems/petems-hiera_vault/commit/82d667e1c1f620d6fc3993e93169a7e9bbd12acc

Hi,
This is still  not visible on https://forge.puppet.com/modules/petems/hiera_vault/changelog
Best regards

authors: TheMeier arcenik petems


text:
Two Errors

I have two errors that I can't crack. The first is on loading the module:
>>> import epaper
ViperTypeError: can't do binary op between types -1 and 2
ERROR: stack size not back to zero; got 1
ViperTypeError: can't do binary op between types -1 and 2
ERROR: stack size not back to zero; got 1
ViperTypeError: can't do binary op between types -1 and 2
ERROR: stack size not back to zero; got 1

This doesn't seem to impact too much, but the display doesn't write, so perhaps I'm wrong. The next issue encountered is on writing. I get TypeError: function does not take keyword arguments on writing. The issues seem to come from:
self._line_fixed(line, 0, set_voltage_limit = True)
I get:
TypeError: function does not take keyword arguments
The function def looks like:
    @micropython.native
    def _line_fixed(self, line, fixed_value, set_voltage_limit=False):

So I don't see the issue. Any ideas?
Thanks for publishing this library.

That is puzzling. What version of Pyboard firmware are you running? I suggest upgrading to the latest build. I'll do likewise and we can compare notes.
As the errors centre around my use of the native and viper emitters it is easy to remove the decorators. Removing native decorators is simply a matter of commenting them out: this might be worth doing to see if the second error goes away. Removing viper decorators needs a little more work: in the declarations you'll need to remove the type hints and in function bodies the ptr8 casts, e.g.
    def _setbuf_fixed(self, line, fixed_value):
        index = 0                           # odd pixels
        buf = self.linebuf #ptr8 removed

Removing the decorators will inevitably make updates slower. The viper optimised sections in  particular have had a considerable amount of testing and I'm puzzled that you're seeing this fault. If it isn't a firmware issue I might need to request some guidance from Damien.

I've now updated to today's build (named below): the test script from the README runs without error. Please let me know if your experience is similar or not:
Entering REPL. Use Control-X to exit.

Micro Python v1.4.5-74-g75a811a on 2015-09-08; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>>
>>> import epaper
>>> a = epaper.Display('Y')
>>> a.rect(20, 20, 150, 150, 3)
>>> a.show()
>>>

Hi Peter,
I concur. This was my fault. I had one pyboard flashed with the github version and one not updated. I was testing with the later. You code works great. Thanks for making your micropython code public, I've found all of it very useful. Best, Chris

authors: capaulson peterhinch

repo: peterhinch/micropython-epaper


text:
Sometimes leading 0 when entering digits after pressing C

How to reproduce:

Enter digits
Press the C-button - display shows the 0
Enter new digits

The 0 stays in front of the new digits.

Previous commit fixes this bug.

repo: petervanhoef/Calculator-Brain


text:
Possible typo in benchmark Readme.md

In bluebird/benchmark/README.md we can see in section
results for 10000 parallel executions, 1 ms per I/O op
the following text
Node.JS 1.1.0
full url
Is it Io.JS 1.1.0 or Node.JS?
Node.JS doesn't have version 1.x.x yet

Take it to io.js

authors: nshulipa petkaantonov

repo: petkaantonov/bluebird


text:
Reinert - Missing "Targetare.ro" button

ENVIRONMENT: production
URL: https://scrapers.peviitor.ro
Browser: Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open the URL in the browser
Search for "Reinert " Company
Click on the "Targetare.ro" button
Open page "Targetare.ro".

EXPECTED RESULTS:
The "targetare.ro" button is functional and the page is opend.
ACTUAL RESULTS:
Missing "Targetare.ro" button

Re-tested, The "targetare.ro" button is functional and the page is opend.

repo: peviitor-ro/Scrapers-UI


text:
Check if the arrows and the search field from "Cum poți ajuta tu?" section are aligned properly

Description: You must check if the arrows and the search field from "Cum poți ajuta tu?" section are aligned properly.
Precondition: The website is up and running

Step 1: Scroll down to "Cum poți ajuta tu?" section.
Expected result: The "Cum poți ajuta tu?" section should be displayed.

Step 2: Check if the arrows and the search field from "Cum poți ajuta tu?" section are aligned properly.
Expected result: The arrows and the search field from "Cum poți ajuta tu?" section should be aligned properly .

Step 3: Check if the arrows and the search field from "Cum poți ajuta tu?" section are aligned properly on your phone.
Expected result: The arrows and the search field from "Cum poți ajuta tu?" section should be aligned properly on your phone.

repo: peviitor-ro/oportunitatisicariere


text:
Check if the window is re-sizable

Description: You must check if the window minimize, maximize and close correctly.
Precondition: The website is up and running

Step 1: Resize from bottom-right corner.
Move the mouse cursor to the bottom-right corner of the window. Click and hold the mouse button. Drag the corner diagonally to enlarge the window. Relese the mouse button.
Expected result: The window can be resized from bottom-right corner.
The window's contents are still functional and displayed correctly after resizing.
The window adapts its layout to fit the new size without any graphical glitches.

Step 2: Resize from top-left corner.
Move the mouse cursor to the top-left corner of the window. Click and hold the mouse button. Drag the corner diagonally to reduce the window. Relese the mouse button.
Expected result: The window can be resized from top-left corner.
The window's contents are still functional and displayed correctly after resizing.
The window adapts its layout to fit the new size without any graphical glitches.

Step 3: Resize from right edge.
Move the mouse cursor to the right edge of the window. Click and hold the mouse button. Drag the edge to the right to enlarge the window horizontally. Release the mouse button.
Expected result: The window can be resized from right edge.
The window's contents are still functional and displayed correctly after resizing.
The window adapts its layout to fit the new size without any graphical glitches.

Step 4: Resize from bottom edge.
Move the mouse cursor to the bottom edge of the window. Click and hold the mouse button. Drag the edge downward to enlarge the window vertically. Release the mouse button.
Expected result: The window can be resized from right edge.
The window's contents are still functional and displayed correctly after resizing.
The window adapts its layout to fit the new size without any graphical glitches.


text:
Verify that "Fața" is listed in the drop-down menu

Description:
When user writes "Fața" the location appears in the drop-down menu next to the comune and the county witch is a part.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Fața"

Expected results
The location appears in search bar as "Fața" and in the drop-down menu appears as "Fața, Alba (Albac)"


text:
”Șopotu Nou”, ”Cârșa Roșie”, ”Driștie”, ”Poienile Boinei”, ”Ravensca” are listed in the drop-down menu

Description:
When user writes ”Șopotu Nou”, ”Cârșa Roșie”, ”Driștie”, ”Poienile Boinei”, ”Ravensca” the locations appear in the drop-down menu next to the comune and the county witch is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Șopotu Nou"

Expected results
The location appears in the drop-down menu as "Sat Șopotu Nou, CARAȘ-SEVERIN(Șopotu Nou)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Cârșa Roșie"

Expected results
The location appears in the drop-down menu as "Sat Cârșa Roșie, CARAȘ-SEVERIN(Șopotu Nou)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Poienile Boinei"

Expected results
The location appears in the drop-down menu as "Sat Poienile Boinei, CARAȘ-SEVERIN(Șopotu Nou)".

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Ravensca"

Expected results
The location appears in the drop-down menu as "Sat Ravensca, CARAȘ-SEVERIN(Șopotu Nou)".


text:
"Movileni" is listed in the drop-down menu

Description:
"Movileni" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Movileni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Movileni, GALAȚI (Movileni)" and "Comuna Movileni, GALAȚI".


text:
"Șamșud" , "Valea Pomilor" are listed in the drop-down menu

Description:
The villages are listed in the drop-down menu alongside its corresponding county and city, according to the law
Preconditions:  the  website is up and runing. After every step delete the text you typed from the search bar.

Step 1
Write in the search bar "Șamșud"

Expected results
The location appears in the drop-down menu as "Sat Șamșud, SĂLAJ (Șamșud)"

Step 2
Write in the search bar "Valea Pomilor"

Expected results
The location appears in the drop-down menu as "Sat Valea Pomilor, SĂLAJ (Șamșud)"


text:
"Băgău" is listed in the drop-down menu

Description:
"Băgău" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Băgău" in the search bar.

Expected results
The location is listed in the drop-down menu as "Băgău, Alba (Lopadea Nouă)".


text:
"SALCEA" is listed in the drop-down menu

Description:
"SALCEA" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "SALCEA" in the search bar.

Expected results
The location is listed in the drop-down menu as "Oraș SALCEA, SUCEAVA".


text:
"Cenade" is listed in the drop-down menu

Description:
"Cenade" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Cenade" in the search bar.

Expected results
The location is listed in the drop-down menu as "Cenade, Alba (Cenade)".


text:
Job is duplicate and error appear when try to validate in AUCHAN page!

ENVIRONMENT:
https://admin.peviitor.ro/
Browser: Chrome
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

enter URL in browser
go to "https://admin.peviitor.ro/" and check on search box "Cauta aici ..."
insert in box "Auchan"
Press ENTER.
go to icone "Auchan" and press on button "Vizualizeaza joburi"
on "Auchan" page check job "Operator polivalent Brutarier" click on button "Vizualizeaza jobul"

EXPECTED RESULTS:
Job for "Operator polivalent Brutarie" must to be valid.
ACTUAL RESULTS:
Job for "Operator polivalent Brutarie" is duplicate and error appear when try to validate.
See below screenshot:

Fixed

authors: Cristian-Emil lalalaurentiu

repo: peviitor-ro/validator-ui


text:
How to use with existing uasyncio loop?

I would like to incorporate picoweb into an existing project I have that uses an uasyncio loop for managing several blocking tasks (e.g. buttons), but I see that the WebApp.run implements a new uasyncio loop. Contrary to popular belief, running two of these loops concurrently doesn't seem to be working (I'm a newbie, please don't kill me).
Is the best way around this to have an optional argument to WebApp.run to specify an existing uasyncio loop to attach to and then return, and if an existing loop is not specified then create your own?
Here's a quick and dirty example of what I am talking about, I'm quite sure there's a more elegant way to implement this but I hope it expresses what I think the issue is and how it might be resolved.
    def run(self, host="127.0.0.1", port=8081, debug=False, lazy_init=False, loop=None):
        self.debug = int(debug)
        self.init()
        if not lazy_init:
            for app in self.mounts:
                app.init()
        if debug:
            print("* Running on http://%s:%s/" % (host, port))
        if not loop:
            loop = asyncio.get_event_loop()
            loop.run_forever()
            loop.close()
        else:
            loop.create_task(asyncio.start_server(self._handle, host, port))

Ok so I didn't quite understand how uasyncio's "get_event_loop" worked, apparently it's a global handle so my previous modifications are not really needed.
I have tried two different configurations:

I extend WebApp.run to just do loop.create_task and leave out the run_forever call (since I do that later in my main() function after setting more stuff up)

I leave WebApp as is, and just call the WebApp.run at the very end of my main() function, after setting up other tasks with loop.create_task previously in main()

In either configuration, the following happens:

picoweb starts the server and when I hit the server with a request from a http client, it never responds to the client. This is a problem.

other tasks I scheduled and 'sleep' with mwait asyncio.sleep(N), where N is a few hundred seconds, start firing repeatedly after the http request hits picoweb. This is another problem.

Any ideas on how to implement this correctly with picoweb?

Sorry for the comment spam, but I'm managed to reduce this to a really simple test that shows how the other task goes nuts when picoweb receives an http request:
test.py:
ROUTES = [
           ("/", lambda req, resp: (yield from picoweb.sendfile(resp, "html/index.html"))),
]

def simple_loop():
    while True:
        print("Yeehaw!")
        yield int(10 * 1000)

def light_alarm():
    loop = asyncio.get_event_loop()
    loop.create_task(simple_loop())
    webapp = picoweb.WebApp(__name__, ROUTES)

This outputs:
>>> light_alarm.light_alarm()
* Running on http://0.0.0.0:80/
Yeehaw!
pm open,type:2 0
Yeehaw!       <------------ http client connected at this point, remaining messages came out in about a 2s interval
Yeehaw!
Yeehaw!
542213010.787 <HTTPRequest object at 3fff3cd0> <StreamWriter <socket state=2 timeout=0 incoming=3fff90a0 off=26>> "GET /index.html"
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
542213010.787 <HTTPRequest object at 3fff4f60> <StreamWriter <socket state=2 timeout=0 incoming=3fff90a0 off=26>> "GET /styles.css"
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
542213010.787 <HTTPRequest object at 3fff57d0> <StreamWriter <socket state=2 timeout=0 incoming=3fff90a0 off=27>> "GET /favicon.ico"
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!

I added a note in the output where the http client connected to picoweb and the other task seemed to be completely ignoring the yield and printed to console a bunch of times.

@craftyguy : You're welcome to pose good questions and then try to find answers for them in a way which may be useful to other people (using "comment spam" and stuff, I like that). I don't have a good answer to your question(s) right away, but can says there're few known issues with uasyncio scheduling which gets tackled literally as we speak, like couple of things were fixed just last couple of days, and there're more to fix/implement, see e.g. https://github.com/micropython/micropython/pull/2909. It may take some time for me to look in detail at what you wrote, and even more to make uasyncio to do what I have in mind, and then even more to look into others' people features, but there's sustainable movement that way, and again, you're welcome to provide good feedback (like, based on your trying to do something).

@pfalcon Thank you for the encouragement :) I'm almost positive my issue stems from my very limited understanding of micropython and uasyncio, combined with my relatively novice experience with scheduling on Python. I'll continue to poke through the source code for uasyncio, picoweb, and keep all components up to date with the latest in git!

@craftyguy I am in the same place as you (very limited understanding of micropython and uasyncio, combined with my relatively novice experience with scheduling on Python).
With a daily build of firmware [MicroPython v1.9-25-g9db1c50f on 2017-06-06; ESP module with ESP8266]
Starting with https://github.com/pfalcon/picoweb/blob/master/example_webapp.py and using some of the code above....
#
# This is a picoweb example showing a centralized web page route
# specification (classical Django style).
#
import ure as re
import picoweb
import uasyncio as asyncio

def simple_loop():
    while True:
        print("Yeehaw!")
        yield int(10 * 1000)

def index(req, resp):
    # You can construct an HTTP response completely yourself, having
    # a full control of headers sent...
    yield from resp.awrite("HTTP/1.0 200 OK\r\n")
    yield from resp.awrite("Content-Type: text/html\r\n")
    yield from resp.awrite("\r\n")
    yield from resp.awrite("I can show you a table of squares.
")
    yield from resp.awrite("Or my source.")

def squares(req, resp):
    # Or can use a convenience function start_response() (see its source for
    # extra params it takes).
    yield from picoweb.start_response(resp)
    yield from app.render_template(resp, "squares.tpl", (req,))

def hello(req, resp):
    yield from picoweb.start_response(resp)
    # Here's how you extract matched groups from a regex URI match
    yield from resp.awrite("Hello " + req.url_match.group(1))

ROUTES = [
    # You can specify exact URI string matches...
    ("/", index),
    ("/squares", squares),
    ("/file", lambda req, resp: (yield from app.sendfile(resp, "example_webapp.py"))),
    # ... or match using a regex, a match result available as req.url_match
    # for group extraction in your view.
    (re.compile("^/iam/(.+)"), hello),
]

import logging
logging.basicConfig(level=logging.INFO)
#logging.basicConfig(level=logging.DEBUG)

loop = asyncio.get_event_loop()
loop.create_task(simple_loop())
app = picoweb.WebApp(__name__, ROUTES)
app.run(host="0.0.0.0", debug=True)

Now gives:-
>>> import example_webapp
* Running on http://0.0.0.0:8081/
Yeehaw!
25.000 <HTTPRequest object at 3fff3d40> <StreamWriter <socket state=2 timeout=0 incoming=3fff9aa0 off=16>> "GET /"
Yeehaw!
29.000 <HTTPRequest object at 3fff5260> <StreamWriter <socket state=2 timeout=0 incoming=3fff9aa0 off=16>> "GET /"
33.000 <HTTPRequest object at 3fff2f40> <StreamWriter <socket state=2 timeout=0 incoming=3fff9aa0 off=16>> "GET /"
35.000 <HTTPRequest object at 3fff6420> <StreamWriter <socket state=2 timeout=0 incoming=3fff9aa0 off=16>> "GET /"
Yeehaw!
Yeehaw!
Yeehaw!
Yeehaw!

No more going nuts ?
Maybe close this bug?
It gave me a very good start. Thanks.
BMS

Great! Yea I've since learned quite a bit about how to use uasyncio, though I no longer need picoweb. I may need it again in the future :)

authors: bmsleight craftyguy pfalcon

repo: pfalcon/picoweb


text:
Add .editorconfig file

To start with just .php files. According to the Developer Style Guide:

Use tabs for indentation (not spaces or a mixture of both)
Use a tab stop of 8, rather than 4
Ensure there is NO trailing whitespace at the end of a line, for example spaces or tabs when there is no more text afterward
Ensure there is NO whitespace on empty lines. For example, a line must not contain only spaces or only tabs

Additionally, I've added:

UTF-8 character encoding
LF line endings
Final newline

Proposed .editorconfig file (.php files for now):
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

root = true

[*.php]
indent_style = tab
tab_width = 8
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

GitHub will also read and apply this style to the repo.
See #1664.

Can you please add *.inc too?

:+1:

authors: jlduran rbgarga

repo: pfsense/pfsense


text:
Remove "orphaned" closing SPAN tag

Remove "orphaned" closing SPAN tag

Poor little orphan. Back to the workhouse he goes.

Applied by @sbeaver-netgate

authors: ExolonDX rbgarga sbeaver-netgate


text:
rsync failure results in a "successful" deploy

ember-cli-deploy-with-rsync isn't checking the result of executing rsync.
Here's a snippet from a failed deploy -- the directory was created and no files were synced.
[cem-ui-deploy] Running shell script
+ yarn deploy --mutex file:/tmp/.yarn-mutex -- production --activate
yarn deploy v0.24.6
$ ember deploy production --activate
cleaning up...
- Uploading `applicationFiles` to /data_storage/apps/cem/revisions/d191117
- Activating revision d191117
- Fetching Revisions
Done in 82.44s.
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Thanks for reporting this and sorry for not acknowledging or taking care of this sooner! This should be better in the just-released version 0.2.0.

authors: aczapszys pgengler

repo: pgengler/ember-cli-deploy-with-rsync


text:
rustup no space left error

Hello, I have a problem when using rustup. When it download the Rust toolchain (rustc, cargo etc.), it throws an error about no space left.
error: failed to extract package (perhaps you ran out of disk space?): No space left on device (os error 28)

The code is just this.
        with:
          base_image: ${{ matrix.image }}:2022-04-04
          shell: /bin/bash
          bind_mount_repository: true
          copy_repository_path: /opt/repo
          copy_artifact_path: artifacts
          copy_artifact_dest: $HOME/artifacts
          commands: |
            export PATH="/opt/repo/scripts:$PATH"

            # fix $HOME being no file or directory
            mkdir $HOME || printf '\x1b[1m$HOME exist!\x1b[0m\n'

            mkdir -p artifacts
            sudo apt-get update
            sudo apt-get install curl git -qy --no-install-recommends

            if ! ${{ github.event.inputs.skip-installing-deps }}; then
              [[ -e scripts/install-deps-${{ github.event.inputs.build }}.sh ]] &&
                bash scripts/install-deps-${{ github.event.inputs.build }}.sh
            fi

            ARTIFACTS=/opt/repo/artifacts bash scripts/build-${{ github.event.inputs.build }}.sh

For full code: https://github.com/UrNightmaree/build-things/blob/main/.github/workflows/build-v2.yml#L34

You need to enlarge the image to support the files you are adding.
The option is called image_additional_mb
https://github.com/pguyot/arm-runner-action#image_additional_mb

Oh thank you

authors: UrNightmaree pguyot

repo: pguyot/arm-runner-action


text:
Can't use mt_rand() in switch

We can't use function mt_rand, but can use rand. Why?
		switch mt_rand(1, 2) {
			case 1:
				echo "one";
				break;

			case 2:
				echo "two";
				break;
		}

On this code compiler we got
Zephir\CompilerException: Unknown expression: long in .../Test.zep on line 18

but code below is OK
		switch rand(1, 2) {
			case 1:
				echo "one";
				break;

			case 2:
				echo "two";
				break;
		}

Zephir version 0.7.0a [c6fe91a]

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/22031153-can-t-use-mt_rand-in-switch?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

Probably because mt_rand has an optimizer and rand doesn't.
Seems like that's why something goes wrong there, even if it shouldnt

authors: SliceOfLife steffengy

repo: phalcon/zephir


text:
Closes #156 assert character scalar does not give expected message when case sensitive equals false

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

[x] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
[x] Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
[x] Updated relevant unit tests or have written new unit tests - See Unit Test Guide
[x] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[x] Update to all relevant roxygen headers and examples.
[x] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[x] Address any updates needed for vignettes and/or templates
[x] Update NEWS.md if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
[x] Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
[x] Address or fix all lintr warnings and errors - lintr::lint_package()
[x] Run R CMD check locally and address all errors and warnings - devtools::check()
[x] Link the issue so that it closes after successful merging.
[x] Address all merge conflicts and resolve appropriately.
[x] Pat yourself on the back for a job well done! Much love to your accomplishment!

I've made another amendment to assert_character_scalar() and its corresponding testthat scripts: previously, it appeared that the code was attempting to return the function's input in lowercase if case_sensitive = FALSE. However, having looked at other functions in assertions.R, I think it would be more consistent to return the input in its original case, regardless of the value of case_sensitive, and indeed the roxygen header for assert_character_scalar() states "... Otherwise, the input is returned invisibly." and does not mention changing the case of what is returned depending on case_sensitive. As an aside, I noticed that there are some functions in assertions.R that don't return their input invisibly, even when the roxygen header states that they do--I've opened issue #167 to address this.

@fshanlee , please keep the return value as it is, i.e., return lower case if case_sensitive = FALSE. We use this to make the argument "case insensitive". If there are conditions on the value in the function code, we use lowercase, e.g.,
mode <- assert_character_scalar(mode, case_sensitive = FALSE)
if (mode == "first") {
...
}

@fshanlee , please keep the return value as it is, i.e., return lower case if case_sensitive = FALSE. We use this to make the argument "case insensitive". If there are conditions on the value in the function code, we use lowercase, e.g.,
mode <- assert_character_scalar(mode, case_sensitive = FALSE)
if (mode == "first") {
...
}

Hi @bundfussr , I reverted the last commit, so the function will always return lower case when case_sensitive = FALSE.

@fshanlee , looks good to me.

authors: bundfussr fshanlee

repo: pharmaverse/admiraldev


text:
First draft ADAE workflow

Check a combination of:

https://github.com/rinpharma/r-for-clinical-workflows
https://github.com/philbowsher/Intro-R-for-Drug-Development
https://github.com/pharmaverse/end_to_end_examples
Ongoing efforts for Posit::conf workshop from Denali/GSK/Roche

Create as Quarto file and update renv with dependencies
Use test data from {admiral.test} for now but note this is undergoing a rebrand and some clean-ups during Q3 as {admiraldata}
Derive an extra variable that could be used in a table example, and ensure all required variables exist to enable the TLFs and Shiny app to run

focusing on demog examples for now

repo: pharmaverse/examples


text:
Replace BLRBTextStyler by Shout

It would be nice to use the text styler of Pharo instead of having one specific to Album to reduce duplication and the need to maintain two stylers. (Alain agreed)

Are you interested on this task @jecisc  ?

I tried to do it already but examples using syntax highlight were broken so and I did not know Toplo enough to do the change "in the dark".
I'm interested to do it but I don't have the time right now and I'll have a few weeks of holidays soon

The deprecation message in the trait that BlRBTextStyler uses, suggests creating a subclass of RBProgramNodeVisitor. Is this the Shout solution?

Okay, I wrote too fast: immediately I've found SHRBTextStyler

The main particularity I detect when I read the code of BlRBTextStyler in reference to SHRBTextStyler is creating instances in the hierarchy of BlTextLinkAttribute. But, as you can see in the screen capture... this hierarchy is stub, it does nothing special; it ignores the names it receives:

what is the status of this issue ?

Ah this is closed by https://github.com/pharo-graphics/Bloc/pull/549

authors: jecisc plantec tinchodias

repo: pharo-graphics/Toplo


text:
DP-01 Creational Telecommunication Factory.

Create Telecommunication Factory.

Không nên copy ra rồi đổi tên như vậy.

Em nên có 1 ví dụ bằng code đề giải thích rõ cái Abstract Factory làm chi
Mấy class em làm ví dụ như Call, AxeCall, ImsCall nên đưa nhiều logic vào đó, chứ hiện tại em đang xài có mỗi $text giống như ví dụ của người ta.

authors: phattringuyen tuandm

repo: phattringuyen/design-patterns


text:
STREAM-96 Keep different destination and source table name

Added "TableNameStrategy" class. This is used to addPostfix, addPrefix, searchReplace and do nothing with the table name
Added Junit test cases

Looks great! Just the two minor changes and then let's push.
Approved

Looks great! Just the two minor changes and then let's push.
Approved

@brockn could you please point out the two minor changes? I could not find any new comments

repo: phdata/streamliner


text:
all times in KeyboardDragListener should be in milliseconds

Discovered while working on phetsims/gravity-force-lab#186. There are some values in step that are in seconds, and some in milliseconds. Today I talked to @jessegreenberg about it, and we thought about converting it to seconds because that is what the sim gives us in the step function. After poking around I don't think that is the direction we should go. All the following are public options, and seem nice as millisecond values:

hotkeyHoldInterval
*moveOnHoldInterval
moveOnHoldDelay

And each of these have an internal counter that is stepped. I think that these should continue to be in milliseconds.
In which case, we should see if the whole file can run in ms.

This small change seems good for the most part. For the velocity, @jessegreenberg and I thought it best not to change the public facing apis from "pixels/second" (i.e. dragVelocity), so I ended up just converting within the step function and it is sorta a wash. I don't think it is too horrible though, and this way you have 5 sections in a row doing actions from ms instead of 4 from ms and one from dt. @jessegreenberg please review. Close if all looks good to you.

Change looks good and has been working for a long time. Other scenery/PhET APIs like FireListener and axon timers are in ms so this was a good change. At the same time, the "velocity" options in pixels per second is also most intuitive.
Closing.

authors: jessegreenberg zepumph

repo: phetsims/scenery


text:
Rename isChild to hasChild

From https://github.com/phetsims/axon/issues/82 we should rename isChild to hasChild.  I'll assign to myself to see if this is easy.

Changes in 14 files across 9 repos.  I tested Area Builder and Bending Light and all seems well.  I'll commit shortly.

Changes committed above, reassigning to @jonathanolson in case he wants to review or look for other cases that should have a similar renaming.

Looks good, thanks!

authors: jonathanolson samreid


text:
parse issue with \newcommand{\be}{\begin{equation}}

With
\newcommand{\be}{\begin{equation}}

pylatexenc doesn't recognize the \begin{equation} as a command, but expects a closing statement which doesn't come.

This is an inherent limitation of how pylatexenc works. Pylatexenc is not a replacement for a full (La)TeX engine. Instead, it parses content in a markup-like fashion to build a node tree of a document.
In the upcoming version of pylatexenc, there will be support for better handling of commands with complicated argument structures, and there will be opportunities to better support commands such as \newcommand.
Closing as the core of the issue is already filed as #50.

Thanks for going through all the issues.
I had at first thought I might be able to use pylatexenc, but because of things like this one here, I started implementing my own TeX engine. (A parser won't cut it, as you correctly point out.)
If not important for you, feel free to close the issues I opened.

@nschloe  did you complete your latex engine ? I am in the same boat but reinventing a latex engine seems too much to me.

authors: harvetech nschloe phfaist

repo: phfaist/pylatexenc


text:
Feature Request: Combat MailGun's Rate limit

Note Mailgun imposes a rate limit for the Domains API endpoint.
Users may issue no more than 300 requests per minute, per account.
See the resultant rate limit response below.

source
I've temporarily resolved this issue by setting -parallelism=0 but it's slowing down the whole run (e.g. providers that are consuming the mailgun resources such as AWS's route 53 resources)
Is there a way to implement a back off / slowdown the number of requests the provider makes since we know what the rate limit is ahead of time?
I believe the AWS provider does something similar to avoid hitting the AWS rate limit.

Hm, interesting - how many domains are you managing? Just curious at what level this becomes an issue.

It became an issue around 70.
At that point I set parallelism to 5, which resolved it temporarily.
When it increased to 150 domains, I set parallelism to 3.
We are currently at 470 and now parallelism is set to either 1 or 0 😂
It usually fails when it's refreshing state.
* module.REDACTED_COM.mailgunv3_domain.acquired: mailgunv3_domain.acquired: Error retrieving domain: UnexpectedResponseError URL=https://api.mailgun.net/v3/domains/REDACTED.com ExpectedOneOf=[]int{200, 202, 204} Got=429 Error: max rate reached: retry-in 200ms

Interesting - that's quite a few domains 😀 .
In the AWS case it looks like it was solved by the upstream AWS library: https://github.com/hashicorp/terraform/issues/1051.
I've opened an issue with the upstream library to clarify: https://github.com/mailgun/mailgun-go/issues/199

Oh nice find! When I was digging through the AWS provider issues, they seemed to indicate that it was resolved in the provider.
Thanks! Sorry for the misinformation! I know the maintainer for mailgun-go is super responsive, so I have no doubt this will be resolved soon. Thanks for pushing this forward.

Looks like it'll be on the provider to handle this for the time being - I've got something that I think works, but writing some tests to confirm.

That is amazing!!!! You are a life saver!!!
Thank you!!!!!!!!

should be closed with b571775f9492db861b71b8f45d345724ce03bc77, released https://github.com/phillbaker/terraform-provider-mailgunv3/releases/tag/v0.3.2

Awesome!! I'll bump it in our providers!
Thank you so so much for handling this.
You really saved us.

Confirmed it's working. I took parallelism off 0, so it's defaulting to 10 now, I'd imagine and it's working perfectly. Thank you!!!!

authors: NicoleYson phillbaker


text:
Clarify the difference between https://github.com/terraform-providers/terraform-provider-mailgun

I found now, that https://www.terraform.io/docs/providers/mailgun/ is using the V3 API as well. Does it mean it no longer make sense to use this provider? Would be great to have the difference highlighted somehow.

I've tried migrating to the mentioned provider and it seem they use API v3 now and support region argument for resources, so I was able to even migrate existing resources to it.

Sounds like time to archive this provider then! I left a followup on https://github.com/terraform-providers/terraform-provider-mailgun/issues/17#issuecomment-680441956

Sounds reasonable to me, thanks!

authors: invidian phillbaker


text:
Calculation error in wiki/Tutorial

This is from looking at "https://github.com/philsquared/Catch/wiki/Tutorial", under the "Writing tests" section.  The factorial of 0 is 1, not 0 as you give in your example.
But instead of just silently correcting the error and being done with it, why don't you incorporate it as part of your example!  Maybe you can describe that some smart@$$ over the Internet told you to correct your test for the factorial of 0.  You do so in the test case, but now your tests come up with an extra error, because you never corrected the actual function!  Then you do that correction (quickest by changing the second occurrence of "number" in line 6 to "1") too.

Good catch (pun intended)!
I'd like to say it was a deliberate mistake, but I genuinely forgot about that.
That's especially embaressing give the, "Now the more awake among you..." quip.
I'll follow your suggestion of incorporating the "correction" into the flow as a further example - although I may have to do it next week.
Thanks for letting me know.

authors: CTMacUser philsquared

repo: philsquared/Catch