Rails 6 - ActionView::Template::Error: wrong number of arguments (given 2, expected 1)

What Ruby, Rails and RSpec versions are you using?
Ruby version: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
Rails version: 6.0.0
RSpec version: RSpec 3.8

rspec-core 3.8.2
rspec-expectations 3.8.4
rspec-mocks 3.8.1
rspec-rails 3.8.2
rspec-support 3.8.2

Observed behaviour
When upgrading from rails 5.2 to 6.0 this spec started failing
1) CollectionsController GET index renders the index template
     Failure/Error: get :index

     ActionView::Template::Error:
       wrong number of arguments (given 2, expected 1)
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rspec-rails-3.8.2/lib/rspec/rails/view_rendering.rb:105:in `call'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:315:in `compile'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:285:in `block (2 levels) in compile!'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:182:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:382:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:284:in `block in compile!'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:276:in `synchronize'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:276:in `compile!'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:184:in `block in render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `block in instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:386:in `instrument_render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/template.rb:183:in `render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/template_renderer.rb:59:in `block (2 levels) in render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/abstract_renderer.rb:89:in `block in instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `block in instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/abstract_renderer.rb:88:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/template_renderer.rb:58:in `block in render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/template_renderer.rb:57:in `render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/template_renderer.rb:13:in `render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/rendering.rb:118:in `block in _render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/base.rb:304:in `in_rendering_context'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/rendering.rb:117:in `_render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/streaming.rb:219:in `_render_template'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/rendering.rb:103:in `render_to_body'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/abstract_controller/rendering.rb:25:in `render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/rendering.rb:36:in `render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/core_ext/benchmark.rb:14:in `ms'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:85:in `cleanup_view_runtime'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activerecord-6.0.0/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:43:in `render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/implicit_render.rb:35:in `default_render'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `tap'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/abstract_controller/base.rb:196:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/rendering.rb:30:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:135:in `run_callbacks'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/abstract_controller/callbacks.rb:41:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/rescue.rb:22:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `block in instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/notifications.rb:180:in `instrument'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activerecord-6.0.0/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/abstract_controller/base.rb:136:in `process'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionview-6.0.0/lib/action_view/rendering.rb:39:in `process'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/metal.rb:191:in `dispatch'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/test_case.rb:513:in `process'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rails-controller-testing-1.0.4/lib/rails/controller/testing/template_assertions.rb:61:in `process'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_controller/test_case.rb:392:in `get'
     # /Users/jcoyne85/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rails-controller-testing-1.0.4/lib/rails/controller/testing/integration.rb:13:in `block (2 levels) in <module:Integration>'
     # ./spec/controllers/collections_controller_spec.rb:16:in `block (3 levels) in <top (required)>'

Expected behaviour
The test should pass.
Can you provide an example app?
https://github.com/sul-dlss/was-registrar-app/compare/failing-rspec

Try rspec-rails 4.0.0.beta2.

@jasnow yep, that solves the problem. Thanks.


docs: correct Table import in usage example

docs: correct Table import in usage example

:tada: This PR is included in version 1.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Behavior agent makes collision with a wall

Hi! I'm a beginner to the Carla Simulator, and I got a question while running the simulation.
I'm not expert on using the simulator, so please let me know if there's any missing point.
Here are my settings below:
CARLA version: nightly (installed on 2023.02.14)
Platform/OS: ubuntu 18.04
Problem Statement:
I wrote my own code for the simulation, and I simply ran the simulation with behavior agent with the following configurations.

Starting point:

Transform(Location(x=239.623291, y=92.175323, z=0.573433), Rotation(pitch=0.000000, yaw=-88.605339, roll=0.000000))

Destination:

Transform(Location(x=234.623291, y=-57.824677, z=0.573433), Rotation(pitch=0.000000, yaw=-88.605339, roll=0.000000))

When I set the ego vehicle asset as vehicle.mercedes.coupe, I could find the collision below (at the end of the video, the ego vehicle collides with a wall on the left side)
https://user-images.githubusercontent.com/50267797/218995267-2e639482-5202-4713-ac00-2dd4260d848d.mp4
I expected the ego vehicle to steer to the right slightly for the avoidance, but it didn't.
For the verification purpose, I also tested from the given example code automatic_control.py with small modification on starting point, destination and ego vehicle asset, but the situation was the same.
I wonder if you have any idea on this(a reason of the collision, or something else...).
Thank you for reading this issue and I would really appreciate to you if you tell me any idea.

How do you generate the blingbling Xs in the simulator? They are so cool. Do you develop with Unreal Editor or is it a internal api from carla?

@cdefg They are arrows in 3D. You may enable those by switching debug option of the function run_step as True. In my case,
...
agent = BehaviorAgent(..., behavior='aggressive')
control = self.__agent.run_step(debug=True)

This is really more of a map design issue rather than a behavior agent one. As for why the behavior agent doesn't detect this, agents are designed to only look for vehicle / pedestrians as possible obstacles, so any otehr assets (such as props in the middle of the road) will be ignored.

@glopezdiest Thank you for the comment! Then I wonder if I should not report any of the collision between behavior agent and vehicles or pedestrians.


Task #249

I have left our RegexpCooker abstraction extracting to interface just in case if we decide to change regexp builder lib in the future.

everything looks fine, please find my small comments above.


failed to load swrast driver

Hello,
somehow it does not work I did everything according to the instructions.
Attached the log
Maybe someone can help me?
For the app I got all the code from sorlaman support /App_ID and App_Secret
and the other I have also adjusted by helper.js
	// define urls
	let url = 'https://globalapi.solarmanpv.com/device/v1.0/currentData?appId=' + this.config.appId + '&language=en&=';
	let urlH = 'https://globalapi.solarmanpv.com/device/v1.0/historical?appId=' + this.config.appId + '&language=en&=';

	var options = {

Thank you!
Require stack:

/home/matze/MagicMirror/modules/MMM-Solarman/node_helper.js
/home/matze/MagicMirror/js/app.js
/home/matze/MagicMirror/js/electron.js
/home/matze/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
at Module._resolveFilename (/home/matze/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:927:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/matze/MagicMirror/modules/MMM-Solarman/node_helper.js:9:15)
at Module._compile (node:internal/modules/cjs/loader:1269:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
at Module.load (node:internal/modules/cjs/loader:1124:32)
at Module._load (node:internal/modules/cjs/loader:965:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1148:19)
at require (node:internal/modules/cjs/helpers:110:18)
at loadModule (/home/matze/MagicMirror/js/app.js:180:19)
(Use electron --trace-warnings ... to show where the warning was created)
[08.09.2023 06:52.57.452] [ERROR] (node:2173) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: Kann die Shared-Object-Datei nicht öffnen: Keine Berechtigung (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver

Hi Matze,
honestly I have no idea what the swrast driver does or what the issue could be in your case.
Do you have this issue only when the solarman module is activ in your config.js?
Try to set a wrong accessToken in your config file and see if the module itself works then (of course without your data, but it would be a start)
all the best

Where you able to solve your issue or is it still open?

Hello Utzl,
Sorry for my late reply.
Thank you for your help, unfortunately I did not get any further.
I tried what you told me: the same error came back.
Is there something wrong with my installation? I have installed it again, but it did not work.
Maybe you have another idea?
Thanks !

Hi,
now I had a similar bug after npm installation of another module. and then nothing worked anymore...
I installed a newer version of node (18.18).
And full apt-get update/upgrade.
And I also updated to MagicMirror version 2.25.
Recommend to use on of these scripts:
https://github.com/sdetweil/MagicMirror_scripts
Hope this will also help you. Send me the pm2 log again if not.

Hi,
thanks for the feedback and Info.
I'll try it out when I get back from the field.
Thanks you, I will get back to you.
Br / Matze

Hi Matze, can I close this issue?

Hello utzl,
thanks for asking, at the moment you can close the issue.
Thank you !
Br / Matze
Am Di., 16. Jan. 2024 um 16:36 Uhr schrieb utzl @.***>:

Hi Matze, can I close this issue?
—
Reply to this email directly, view it on GitHub
https://github.com/utzl/MMM-Solarman/issues/2#issuecomment-1893993962,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCN5ZMOHUNMFIVM4MNIYCMDYO2NAJAVCNFSM6AAAAAA4QB7NVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTHE4TGOJWGI
.
You are receiving this because you authored the thread.Message ID:
@.***>


2023.07.26.post1 not working with Pillow 10.0.0

Pillow versions before v10.0.1 bundled libwebp binaries in wheels that are vulnerable to https://github.com/advisories/GHSA-hhrh-69hc-fgg7 (previously https://github.com/advisories/GHSA-j7hp-h8jx-5ppr). Pillow v10.0.1 upgrades the bundled libwebp binary to v1.3.2.
Unfortunately there are some functions removed in Pillow 10.0.0
https://pillow.readthedocs.io/en/stable/deprecations.html

ninepatch from pypi is not updated with the actual repo code as a workaround change pyproject.tomlto
"ninepatch@git+https://github.com/vindolin/ninepatch",to install code from github not from pypi
https://github.com/vindolin/ninepatch/issues/6
update pi3d to get rid of  ImageFont.getsize() (see issue https://github.com/tipam/pi3d/issues/262)

Yes, you will see that I have pushed pi3d to v2.50 However I am locked out of PYPI so can't update the pip source!! I must have replaced my phone since I last updated anything on PYPI and don't have a recovery option... so I have to push a randomly named branch to picframe and wait a few weeks.

Helge, that would be great short term. I'm away from home for a week yet so I can't update PYPI till I'm back at a computer.
As mentioned earlier, I expect there might be a few mods over the coming month with changes following RPi5. There may be more examples for getting OpenGL without X that I can work from...

I created a pr.
If I run locally pip install -e . --upgrade it seems to work.

should be fixed with 2024.02.19


Feature/add cpu and mem limits options

This PR will add --cpus and --memory options for cartesi run command. This way it will be possible to define these in alignment with the production deployment values and evaluate locally if those values are enough for the application to run smoothly.
Also, it was added a hidden --show-config to the run command, that will show the .yaml compose file in case it's needed to debug the compose file.

This is a 👍 change!

I see that the show-config option only shows the config, and don't actually run the service.
What do you think of calling the option --dry-run?

cartesi run --memory 512 --show-config

The command above produced the following output:
    deploy:
      resources:
        limits:
          memory: "536870912"

I don't know if that value is correct, as it should be a "byte value".
https://docs.docker.com/reference/compose-file/extension/#specifying-byte-values

cartesi run --memory 512 --show-config

The command above produced the following output:
    deploy:
      resources:
        limits:
          memory: "536870912"

I don't know if that value is correct, as it should be a "byte value". https://docs.docker.com/reference/compose-file/extension/#specifying-byte-values

The output is after the processing of the values.
The cartesi run --memory option should be in MB.


Allow to enable future in a per collection basis

Also allow to fetch past documents and future documents in RoqCollection


Invoking deployment process: FAILED

Here's the error I'm getting

You are probably deploying something to port 80 in your server, but there's something listening in it already.


Implement a emoji cum music system

Implement a music system which maps music to an specific emoji.
for example,
😀 - happy songs
😭 - sad songs
😡 - angry songs

Will this recommend some songs or playlists? Will some API be used or will it be hard code? Some more information would be appreciated.
Also would your team like to take up this issue?

So we could have some lists of hardcoded different mood songs and every time a user hits the emoji it will randomly pic a song from the specific mood list.
Yeah we will take up this issue.


Update archive-wechat-data.md

Wechat Archiver should be listed under Telemessage only.

@Durga-SC This PR doesn't fix the issue. I have fixed by updating the TOC.yml file.


How to run it in docker?

Consider the following step:
steps:
  - label: Build
    plugins:
    - gencer/cache#v2.3.6:
        backend: tarball
        key: "v1-cache-{{ runner.os }}-{{ checksum 'rust/Cargo.toml' }}"
        tarball:
          path: '/tmp/buildkite-cache-rust'
          max: 7
          compress: true
        paths:
          - '.cargo'
          - 'target'
    - docker#v3.2.0:
        image: amd64/rust
    command: |
      rustup toolchain install stable
      rustup default stable
      rustup component add rustfmt

      export CARGO_HOME="$PWD/.cargo"
      export CARGO_TARGET_DIR="$PWD/target"
      cargo build

I am getting
~~~ Running plugin cache pre-command hook
$ /usr/local/var/buildkite-agent/plugins/github-com-gencer-cache-buildkite-plugin-v2-3-6/hooks/pre-command
~~~ :bash: Cache Buildkite Plugin v2.3.6

🔍 Looking for v1-cache-macOS-090a069aa27940db9c0f7afcd20b33393f432de3

🚨 Error: The plugin cache pre-command hook exited with status 1
^^^ +++

Any ideas what is causing the status 1?

@jorgecarleitao I assume you've already found the answer? Let me know if you need anything.

@jorgecarleitao I assume you've already found the answer? Let me know if you need anything.

I actually haven't: I thought I did, but still does not work xD I have no idea why, though: exit status 1 is pretty generic and I was unable to find what could have been causing this yet.

I actually haven't: I thought I did, but still does not work xD I have no idea why, though: exit status 1 is pretty generic and I was unable to find what could have been causing this yet.

I've found the issue. Releasing v2.3.7 in few minutes. Stay tuned. I'll update here once its ready.

I've found the issue. Releasing v2.3.7 in few minutes. Stay tuned. I'll update here once its ready.

Could you please try v2.3.7 now?

Could you please try v2.3.7 now?

@gencer , I am closing this as solved in v2.3.7. Amazing response time and fix 🥇 . Thanks a lot!

@gencer , I am closing this as solved in v2.3.7. Amazing response time and fix 🥇 . Thanks a lot!


Record linkage attack notebook

Similar in nature to the reconstruction and membership attack notebooks, it would be useful to have a notebook demonstrating a record linkage attack. As in, show how individuals in a dataset where "public identifiers" are stripped can still be reidentified via linking with other, public datasets.

current attack examples: https://docs.opendp.org/en/stable/examples/attacks/index.html?highlight=attacks

See where/if https://docs.opendp.org/en/stable/user/first-look-at-DP.html is in the new doc structure, and add it to the theory/attacks/ area.


Fix nil pointer dereference when consuming events

If an event is received after the internal timer waiting for it has elapsed, it should be placed into the pending events queue to be handled by the next WaitForSingleEvent invocation. However, the internal timer expiration callback does not reset the pending task list correctly, causing the event consumer to attempt to dereference an element of an empty list.
This change adjusts the logic of the timer to completely eradicate the list from the pending event key map when it's empty, which matches the behavior of other orchestrator cleanup routines.

@microsoft-github-policy-service agree


[Feature Request] A  nodejs/web api

First off, Killer work on this project!
I'd like to request a nodejs/web api for this project. My use case for this would be a website I can visit locally on my phone (while playing mobile version) with an editor, that can compile code for me to copy right from the website and back into mindustry.
If your ok with it, I can give a whack at a pull request for this feature, and maybe even provide you with the editor (once finished) that you could bundle into this project if you'd like

Ha, I'm obviously blind, I just saw that module support is already here. I'm gonna get close this and get started on my web editor. Comment back here if you'd like me to provide the source when I'm done!

@stoneRdev, I was also thinking about doing a web version of it with an emulator included. If you need help with it, I will be happy to help you. We can be friends on discord if you want. wei#2893.

@str1z Of course I'm down for a collab. I'll start us a repo for it. As for discord, I havent used it in ages so I'll have to revive all that

@str1z Sent you a request on discord werlious#6136


tests: better arg names in link helper functions

Change the argument names in

AtPath::hard_link(),
AtPath::symlink_file(), and
AtPath::symlink_dir(),

from src and dest to original and link to match the arguments of
the corresponding functions from the Rust standard library. For example,
see std::os::unix::fs::symlink().
This is an improvement because (1) it matches the corresponding standard library convention and (2) src and dest were the reverse of what I would expect.

Most of the tests are failing, could you please have a look?

There is an error in test_sort, which is not related to this pull request.


update buttons across the app and remove the grid pattern

update all the buttons across the whole app based on the new design system
remove the grid pattern from the background of the screens
update horizontal padding across the app to respect the new design system
update places with sharp quadratic shapes to be rounded, so they go well with the new design:

e.g.

seed input box in the Create and Restore Wallet flow
shielding box on the Balances screen:

memo box in Transaction history:

Resolved in #1362


Linting, typography adjustments, meta tags edit for clarity.

(I'll take the liberty of merging this.)


Princess's Secret Slide failing down without respawn

Video: (Sorry for lag)
https://user-images.githubusercontent.com/71924055/102900639-96273d00-4492-11eb-8958-e71aa65dd828.mp4

It has not been implemented, however they will add it, they said.


[ETL-648] Modify comparsion job to only consider records from recent exports

Purpose
The purpose of this PR is to update the comparison job that compares parquet datasets between staging and main so that it incorporates the changes in #115 where we only submit the most recent ~2 weeks of exports for integration testing of running our staging pipeline all the way through.
See JIRA Ticket for the full description and reasoning but essentially we pull the data type / cohort / export_end_date from the JSON array that contains the exports to be used in the integration test: s3://{cloudformation_bucket_name}/{namespace}/integration_test_exports.json, then use those values to filter the production parquet datasets (the ones in main namespace) before running the comparisons.
There's also an extra layer of difficulty because we don't currently support comparisons of subtype datasets just the top level datasets (and now deleted datasets)
Changes
There's been a lot of maintenance changes other than the actual feature changes.
Feature Changes
Helper Functions
Addition of helper functions to help parse the exports for the filter values we need in order to filter our main dataset:

get_export_end_date
get_cohort_from_s3_uri
get_data_type_from_filename

A bunch of the code comes from s3_to_json.py but I only pulled out the snippets we need for the scope of this feature.
Main feature functions:

get_integration_test_exports_json
get_json_files_in_zip_from_s3
get_exports_filter_values
convert_filter_values_to_expression
get_parquet_dataset
This was a pre-existing function and has been redesigned. Note that we use pyarrow's dataset feature for reading in the main dataset because we want to utilize the predicate pushdown feature of pyarrow.datasets.dataset which allows us to filter data early in the reading process, which can significantly improve performance by reducing I/O. This is helpful as our comparison jobs are limited in memory available given it's just a Python glue job.

Maintenance Changes
From previous PRs

Need to update the code to account for the update of the index fields with ParticipantIdentifier in #110
Need to update the code to account for the update of added deleted tables to our table schema in #116

We needed to update the INDEX_FIELD_MAP in this PR to reflect those changes and also update all our staging dataset vs main dataset test examples to incorporate those changes (e.g: ParticipantIdentifier is a required index column now for all data types thus it is used to join the staging dataset and main datasets so they are comparable)
Mocking pyarrow's fileystem object using moto server

Need to have a way to properly mock and test the [pyarrow S3 Filesystem object] (https://arrow.apache.org/docs/python/generated/pyarrow.fs.S3FileSystem.html) (this wasn't available before)

We also added two new libraries: flask and flask-cors to the extra libraries for the compare parquet glue job and python shell glue docker as they are required dependencies of using the moto server. This server is the only way to test using a filesystem object to read parquet from mocked s3 buckets (ref: https://github.com/apache/arrow/issues/31811).
The function that use this moto server test are (and its respective unit tests):

get_parquet_dataset and its unit tests

Redesigning how we check if a namespace has data of a specific data type
Thanks to discussion here, we decided to re-do the check for a data type in a specific namespace. We have removed all related functions as mentioned in the discussion and replaced it with the new function:

has_parquet_files
This is used in main to check that both the "staging" and "main" namespaces have parquet data before running the comparison reports

Prior to merging, we will need to clear the staging namespace in the recover-intermediate-data bucket
Refactoring main function
We had a lot of duplicated logic in the main function prior (see comment here) with the s3.put_object calls for every kind of report we wanted to upload to s3. That logic has been refactored in main alongside a new helper function to upload to s3:

upload_reports_to_s3

Testing

[x] Unit tests
[x] Integration testing on dev pipeline
This runs successfully on the pipeline on the workflow: wr_77376de723cc0781cefc0d2775a2e19cc269f54b020ae4e774637eb32b144050. The comparison txt files are outputted to s3://recover-dev-processed-data/etl-648/comparison_result/ and the export_end_dates for the main vs staging datasets match up. The comparison files show the expected differences between etl-648 namespace and main namespace. See JIRA Ticket comment for more details on this.

Is there a way to split out the series of conditionals on L857-920? Conceptually they feel like they are all doing a similar thing and probably there is a way to cut out 50 lines of code by consolidating the s3.put_object calls, all while improving the readability of main. I don't think this function needs tests any more than main needs tests, but if there's a straightforward way to test that the put_object method is called when each of the conditions is true/false that ought to be sufficient. If it's too complicated to mock, don't bother.

Yes, I thought about it and have a potential solution

we have to create a fixture that outputs both the mocked with mock_s3 s3 client used to create the bucket and the bucket name we used.

Probably it's a bit cleaner to store the bucket name and any other S3-related references to their own fixtures, e.g.,
@pytest.fixture
def s3_bucket_name():
    bucket_name = 'test-bucket'
    yield bucket_name

then pass them as input to a mock_s3_environment fixture, which sets up the environment and then yields the mocked S3 client.
@pytest.fixture
def mock_s3_environment(s3_bucket_name):
    with mock_s3():
        s3 = boto3.client('s3', region_name='us-east-1')
        s3.create_bucket(Bucket=s3_bucket_name)
        yield s3

Then you could explicitly pass those references you need (bucket name, for example) to the test function, along with the mocked client, rather than implicitly passing them through a single fixture.
def test_function(mock_s3_environment, s3_bucket_name):
    mock_s3_environment.put_object(Bucket=s3_bucket_name, ...)

Sounds good. Let me try that out. I thought I originally tried that combo but I must have done it the opposite way (put the bucket creation in the bucket fixture) and that didn't work.


Weird behavior on latest CCL

Engine initializations goes into flow loop because of enableable mixin.
Related: https://github.com/borodust/trivial-gamekit/issues/16

cl-flow bug apparently


Plugin fails to call state.orchestrate after salt upgrade to 2017.7.1

We were running 2016.11.3 together with the saltstack-plugin 3.1.2 successfully but after upgrading to 2017.7.1 the plugin fails with the below error. The exact same command works when used on the command line which makes me think this is either a problem in the plugin or in the salt-api.
Sep 20, 2017 1:42:51 PM FINE com.waytta.saltstack
Discovered netapi: CherryPy/5.6.0

Sep 20, 2017 1:42:51 PM FINE com.waytta.saltstack
Sending JSON: {"client":"runner","mods":" orch.app.host-upgrade","pillar":{"data":{"organization":"example","cluster":"purple-nightly","version":"LATEST","upgradeManager":true}},"fun":"state.orchestrate"}

Sep 20, 2017 1:42:53 PM FINE com.waytta.saltstack
Received response: [{"outputter":"highstate","data":{"salt.dev.example.com_master":["No matching sls found for ' orch.app.host-upgrade' in env 'base'"]},"retcode":1}]

Gotcha. Seems this is related to the orchestration changes mentioned in saltstack/salt#42632. It seems there isn't a method for querying the salt-api version in use to allow for coordinating JSON sent with API expectation saltstack/salt#42491 making it difficult to support both pre and post 2017.
Maybe this could be handled with a manual version selection of the salt-api.

Manual version selection would be fine for me!

So... I've managed to get this to work and it seems my initial analysis was incorrect. If you look closely at the posted JSON you can spot a leading space in the value for mods. That was always there but it seems 2017.7.1 is stricter.
Closing this issue as it seems to have been PEBCAK.

Fantastic! Thanks for the update!


Swipe deck with Cursor adapter notifyDataSetChanged doesn't work perfectly

mSwipeDeck.setAdapter(mCursorAdatper);
...
@Override
public void onLoadFinished(Loader loader, Cursor data){
mCursorAdatper.swapCursor(data);
}
For the code above. Swipe deck cannot update UI immediately.

Please give me some suggestions.
I try to debug. seems like "nextAdapterCard" does not reset when adapter data set changed.
How can I solve this?
Thanks so much.

mmm, yes your suspicion is probably correct!
I've been thinking about changing this, it's been on my mental TODO list for a while, basically i made it so you can add things to the adapter but not change it completely. I haven't looked into it but this is probably the wrong way to do it.
I'll take a look at how adapters are supposed to be handled and implement the correct behaviour.

Ok go ahead and try the latest version and see if that fixes your issue.
if not then it's something else and i'll have to look into it.

Thanks soooo much. Let me try the latest version.

Still no luck.
I think at SwipeDeck.java.
private void removeTopCard(){
...
//if there are no more children left after top card removal let the callback know
if (getChildCount() <= 0 && eventCallback != null)
{
eventCallback.cardsDepleted();
nextAdapterCard = 0;
}
}
should also set nextAdapterCard to 0.

if you think there's an easy fix, feel free to add it and test it then let me know.
it's very easy to pull the code into your project instead of using the binaries.
http://stackoverflow.com/questions/24658422/android-studio-0-8-1-creating-modules-without-copying-files

this post has an ok method of including another project as a dependency. for now i'll read what the proper behaviour for an adapter view is and if my implementation breaks that contract i'll change it and get back to you.

from what i can tell, what i'm doing is the correct behaviour...
also could you let me know what you mean by your initial post so i can get a better idea of what's not working for you?
what do you mean by "For the code above. Swipe deck cannot update UI immediately."


Change of Default Credentials

How can we remove / change the default admin / admin credentials for the InSights UI application?
From what i have understood, the credentials being used are the ones from the Postgres DB for Grafana. How can i add another set of credentials for the same? Could you please share the query or the script to be run on the postgres DB?

You cannot remove Admin user, however, should be able to change password by logging in directly in Grafana

Closing this issue.


fix albedo burst cd, babara skill scaling

Forgot to add it in commit message... Barbara fix credit: Shizuka#7791


WIP Add support for basemap

As discussed in person, the basemap feature will probably be a traitlets Bunch instead of an integer so that people know what it corresponds to and have auto-completion.

I opened another PR (#87) iterating upon this one.


scripts: ci: testplan: Allow tag exclusion by exe

Allow tags to have a needs-exe option that gives a command to be run to ensure the tag can be built.  If the command isn't present or returns false, then always exclude the given tag.

This apparently doesn't work, but I wanted to share so those more familiar with twister can explain why.

This is trying to address #76705.

This was not needed for rust, as we decided to include the toolchain in the CI image.


update the migration after testing on staging

This is now working for most of the fields and completes on the whole staging data set in about 5 minutes. However the contact person is not getting set properly at this point (it doesn't save the complex attribute).

NIMS reviewed the results of the migration script. Almost all records are migrated correctly, and NIMS will fix some exceptional metadata (e.g. contact_person and multiple rights_statement) manually.


GPII-3590: reorganize and update docs

I did some reorganization of the docs in preparation for sending them to new users.
I tried to make targeted commits, but big refactors like this can be hard to understand by looking at diffs -- especially for documentation.
You can review the rendered markdown here:
https://github.com/mrtyler/gpii-infra/tree/gpii-3590-docs
The big ideas here are:

Make "Getting Started" path for new users clearer and more concise
Extract some areas into separate documents linked from the main READMEs: one-time setup steps, how to contact ops, principles
Copy relevant FAQ items from AWS to GCP

I suspect I'll find more things to change as I train new users on GCP, hence the WIP label. However I think there's enough here that an early look might be useful for reviewers.

LGTM!

I thought I had put the work-in-progress label on this PR but now I can't find it.
Anyway, I probably should have merged this earlier, but I did the initial GCP training today and added some things we discovered during that process. I think this is ready for a last review before merging, if anyone is so inclined.
I added a parking lot item about running update_exekube.

I thought I had put the work-in-progress label on this PR but now I can't find it.

:)
LGTM


Webhooks for #gaming and #tech

Is your feature request related to a problem? Please describe.
So, I like to curate some various content in those aforementioned channels. Although I track content from hundreds of sites, and many YouTube channels using a variety of means, I do understand that's somewhat tedious to do so by hand. If this is something members want, then I propose adding a webhook to those channels (mainly from YouTube, but certain sites would be great as well) from a select few high quality sources of information, this can be voted on if needed. Then I'll supplement that with other interesting articles as I find by hand.
Describe the solution you'd like
Webhooks for #tech & #gaming
Describe alternatives you've considered
The alternative is to carry on posting by hand for all of them.
Additional context
We all want the latest information as soon as it comes in. Whenever the next big Game is announced (looking at you Crysis remake) or teased I'm sure we all would like to know. Same goes for technology. The strides and innovations are far too great in number and complexity for me to grapple alone.

Don't see why not.

See, my problem with this is that it just turns into a link dump. #tech isn't too bad, but #gaming is currently just the "Stuff that Linus likes" show, and there are almost no messages that aren't links to YouTube, I'm not sure encouraging that would be a good thing. It pushes people to mute channels if they're just link spam, hell, I've muted #tech and #gaming for that reason.

Actually beano has raised some good points. I agree it would probably encourage the muting of channels so maybe not the best idea.

I mean if you're arguing #gaming is a link dump, #social exists

Yes but that's the point of #social


Cannot connect to Chase

When I try to connect to Chase via ofxclient in cmdline, I get the following:
`Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\name>ofxclient
+----------------------------------
Main
Edit C:\Users\name\ofxclient.ini to
change descriptions or ofx options
+----------------------------------
(A) Add an account
(Q) Quit
choice> a
+----------------------------------
Add account
+----------------------------------
Notice
You are about to search for bank connection information
on a third party website.  This means you are trusting
http://ofxhome.com and their security policies.
You will be sending your bank name to this website.
bank name eg. "express" (enter to exit)> chase
(0) Chase (credit card)
(1) JPMorgan Chase Bank
(2) JPMorgan Chase Bank (Texas)
choice> 0
Notice
You are about to test to make sure your username and password
are correct.  This means you will be sending it to the URL below.
If the URL does not appear to belong to your bank then you should
exit this program by hitting CTRL-C.
bank name: Chase (credit card)
bank url:  https://ofx.chase.com
username> my_username
password>
authentication failed: Please verify your identity within the next 7 days. Using your desktop computer, go to your banks website and visit the Secure Message Center for instructions.`
When I check my secure message center, nothing is there. I found another entry on Github that said to edit the ofxclient.ini file and change institution.client_args.ofx_version = 102 in your Chase config to institution.client_args.ofx_version = 103. But my ofxclient.ini file is completely blank when I open it in notepad. Anyone have any suggestions?
Also, does Chase require you to pay to be able to download your transaction history using ofxclient?

Matt,
I am having the same issue right now with Chase.  I've been using ofxclient successfully for 5 or 6 months now with 3 different Chase cards.  I had to replace one of the physical cards so the account number changed, and I have been unable to add the new card.  My existing 2 cards still work (I am amble to successfully download transactions), so I can say that in general I have a working configuration and that I have the same configuration that worked the last time I added all 3 cards.  In the past I had to go through the same process you described, but after seeing the "authentication failed: Please verify your identity within the next 7 days..." message I would receive a secure message on the Chase site.  Now I am not seeing any secure message get created on their site.
I first tried adding the new card a week ago, and I gave it a week thinking that Chase might have an issue on their end but today the problem persists.  I am stumped.

Matt,
Success!!!  I was able to resolve my issue by starting ofxclient like this:
ofxclient --ofx-version 103
Once I did it that way, the secure message showed up on Chase's site and I was able to complete the process of adding the account.  I vaguely recall that the last time I did this I found I had to leave ofxclient running (prompting me for username) while I authenticated at Chase, then come back and enter my user/password again in ofxclient (without stopping/restarting it).  In any case, that is the order I did it in this time and it worked.
Best of luck to you!

Eric,
I just saw both your responses, and I am glad that you were able to get it
up and running. I will have to give it another go in the next few days. Do
you pay to use the OFX client service? I saw in a few places that chase
charged for something like this and was sure if I read it correctly. Thanks
for your help!
On Sat, Feb 23, 2019 at 4:27 PM Eric Moyer<EMAIL_ADDRESS>wrote:

Matt,
Success!!! I was able to resolve my issue by starting ofxclient like this:
ofxclient --ofx-version 103
Once I did it that way, the secure message showed up on Chase's site and I
was able to complete the process of adding the account. I vaguely recall
that the last time I did this I found I had to leave ofxclient running
(prompting me for username) while I authenticated at Chase, then come back
and enter my user/password again in ofxclient (without stopping/restarting
it). In any case, that is the order I did it in this time and it worked.
Best of luck to you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/captin411/ofxclient/issues/62#issuecomment-466704654,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AtQZ36Hc-UHcJAAYxhfJhm4cN31VBw9Fks5vQcA2gaJpZM4azP8I
.

--
Regards,
Matthew Carlin
(972) 571-6121

Matt,
I do not pay to use the service.  I use ofxclient for 3 cards across two different Chase accounts (myself and my wife's) and neither charges a fee.

Eric,
I have finally tried what you suggested (I realize you suggested it quite
some time ago) and for some reason I keep getting the error:
"authentication failed: INVALID ID/PASSWORD"
I haven't been able to find much of anything about this online aside from
this article that I have no idea how to interpret.
https://github.com/captin411/ofxclient/issues/15
Would you be able to help me with this?
On Mon, Feb 25, 2019 at 1:58 PM Eric Moyer<EMAIL_ADDRESS>wrote:

Matt,
I do not pay to use the service. I use ofxclient for 3 cards across two
different Chase accounts (myself and my wife's) and neither charges a fee.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/captin411/ofxclient/issues/62#issuecomment-467160159,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AtQZ330Hx2p-UKHlZ4q_btQOtVWTU-B8ks5vREBkgaJpZM4azP8I
.

--
Regards,
Matthew Carlin
(972) 571-6121


fix: Use common framework for validations

:tada: This PR is included in version 0.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


PSA What should be specified for an empty group in an ActionSelector?

Attention to: @cc10512 @vgurevich @samar-abdi @antoninbas
I haven't carefully reviewed the latest PSA draft section on ActionSelector to see if it is explicit about this.  If it already answers this, please just point out a quote to me and we can close this.
Should an ActionSelector group be allowed to be empty, and at the same time active in the state of the data plane?
Possible answers:

No, we should not.  The control plane should disallow any operation that would result in this happening, e.g. adding an empty group as the action of a table entry, or removing the last member from a group that is currently in use by any table entry in the data plane.  Advantages - we do not need to define how the PSA data plane behaves in this case, because we never let it happen in the first place.  Yes, this does require a few extra checks in the control plane, but all such checks should be easily implementable in O(1) time given appropriate data structures in the control plane code, e.g. perhaps use ref counts for how many times each ActionSelector group is used by data plane table entries, and disallow removing the last member of a group when its ref count is not 0.

Yes, we should.  In my opinion, if we allow this, we should define a behavior in a PSA device for when a table entry is matched that has an empty group associated with it, one that is portable and required across PSA devices.  Anything else dilutes the "P" in PSA.  Antonin Bas suggested that if this is allowed, perhaps requiring the data plane to do a no-op in this case would be reasonable.

My personal preference is for #1, but feel free to comment.

I prefer #1 as well. Here is what I found in our meeting minutes for discussion:
Sept 18, 2017

Andy: if a group has no member, then it can not be added (current bmv2 behavior)
Samar: group size and member size parameters
Vlad: there are APIs that do allow 0-member groups and that do not allow sharing
Andy: P4runtime?
Andy: what happens when going outside the specified limits? The control plane should provide a clean error message.

Created a proposed PSA spec change in this PR to make this explicit: https://github.com/p4lang/p4-spec/pull/575

Should we also say the control plane may never remove an ActionProfile member that is used by at least one table entry in the data plane, for similar reasons?  -- then we do not need to define what the data plane might do when matching such a table entry.

Option 1 makes sense to me too.
Action profile members cannot be removed if they are referenced by groups or table entries. Similarly, groups cannot be deleted if they are referenced by table entries. P4Runtime should have this requirement in the spec (if not, I will add in next PR).

See #659, which is a duplicate, but indicates that there are at least a few people in the P4Runtime API working group who would prefer if there were defined semantics for matching a table entry with an ActionSelector implementation that pointed at an empty group.

PR https://github.com/p4lang/p4-spec/pull/662 has been merged in, which addresses this issue.


NUI-5954 Combox box v2 in a popover has small font size

set a default font size for a combobox-v2 component
updated visual tests to include combobox-v2 component with popover
add combobox-v2 to the example docs section with popover rich content

Maybe because I've created a PR from the fork CI fails?

Maybe because I've created a PR from the fork CI fails?
@pavlo-poimanov, that's probably the case. But, since the required ones are passing, I think you're fine.


Replace the RNG based IV with deterministic construction

Currently we use an PRNG based IV AES-GCM. NIST says that this limits the use of authentication function to 2^32 invocations.
By implementing deterministic IV generation construction we can get rid of this limit and go back to 2^96

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.


SIGSEGV when trying to use current head version with multi-profile and mfa

I've had a working setup for a while like this:
~/.aws/credentials
[default]
key_id/access with read-only privs
[me_mfa]
key_id/access for my aws role which requires mfa
~/.aws/config
[profile me]
source_profile = me_mfa
role_arn = ..Admin..
mfa_serial .../me
I did a go get -u today and the default profile was working fine, but when I tried to do anything with my me account, either by passing -p me or by using awl switch, it immediately returned a SIGSEGV:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1d61b71]

goroutine 1 [running]:
github.com/wallix/awless/commands.hasEmbeddedRegionInSharedConfigForProfile(0xc4203f5198, 0x3, 0x7fff5fbff932, 0x3, 0x0, 0x0, 0x2e7b680)
	/Users/me/go/src/github.com/wallix/awless/commands/hooks.go:250 +0xc1
github.com/wallix/awless/commands.applyRegionAndProfilePrecedence(0x0, 0x0)
	/Users/me/go/src/github.com/wallix/awless/commands/hooks.go:70 +0xb9
github.com/wallix/awless/commands.initAwlessEnvHook(0x2ebf5c0, 0xc4203fb2c0, 0x0, 0x2, 0x22c0e48, 0x117f509)
	/Users/me/go/src/github.com/wallix/awless/commands/hooks.go:50 +0xa7
github.com/wallix/awless/commands.applyHooks.func1(0x2ebf5c0, 0xc4203fb2c0, 0x0, 0x2)
	/Users/me/go/src/github.com/wallix/awless/commands/hooks.go:38 +0x88
github.com/wallix/awless/vendor/github.com/spf13/cobra.(*Command).execute(0x2ebf5c0, 0xc4203fb260, 0x2, 0x2, 0x2ebf5c0, 0xc4203fb260)
	/Users/me/go/src/github.com/wallix/awless/vendor/github.com/spf13/cobra/command.go:730 +0x237
github.com/wallix/awless/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2ec0a00, 0x0, 0x42, 0xc420036d70)
	/Users/me/go/src/github.com/wallix/awless/vendor/github.com/spf13/cobra/command.go:831 +0x2e4
github.com/wallix/awless/vendor/github.com/spf13/cobra.(*Command).Execute(0x2ec0a00, 0xc4201cbf78, 0xc4200aa058)
	/Users/me/go/src/github.com/wallix/awless/vendor/github.com/spf13/cobra/command.go:784 +0x2b
main.main()
	/Users/me/go/src/github.com/wallix/awless/main.go:22 +0x2d

I tried reverting back to the latest release installed view Homebrew and it works fine.
Please let me know what other info you might want to track this down.

@deinspanjer Thanks for reporting and sorry for the delay!! (I got resourced on another project).
Also I do not know which 2 versions (commit sha) you ran, I am pretty sure that it has to do with this commit.
I shall be fixing that today.

Okay, happy to test it out.  If necessary, I can probably go back and figure out the specific commits I was working against.

@deinspanjer Thanks for helping. It would be better if you give it a try with the latest master and show me the output. (Partial fix above should avoid nil reference and print what is wrong with the config I hope).
Can you do that?

Hmm.. well, I tried a simple brew install --HEAD awless, and it fails with Error: No such file or directory - awless.
  Here is the (sanitized) output I get from exercising the two profiles:
➜  ~ go get -u github.com/wallix/awless
# (Git commit installed: 9fba342)
➜  ~ ln -s ~/go/bin/awless /usr/local/bin
➜  ~ awl whoami
cannot check profile 'dre' has embedded region in shared config file: AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.
Assume Role MFA token code: ######
ResourceType: assumed-role, Resource: AdminRole/###, Id: XXX:YYY, Account: ZZZ
➜  ~ awl switch default
cannot check profile 'dre' has embedded region in shared config file: AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.
[info]    region precedence: 'us-east-1' loaded through profile 'default' (see AWS config files $HOME/.aws/{credentials,config})
➜  ~ awl whoami
Username: read_only, Id: XXX, Account: ZZZ

Attached policies (i.e. managed):
	- ReadOnlyAccess

Inlined policies: none
➜  ~ awl -p dre whoami
cannot check profile 'dre' has embedded region in shared config file: AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.
ResourceType: assumed-role, Resource: AdminRole/###, Id: XXX:YYY, Account: ZZZ
➜  ~

Thanks!
To clarify, the check that we make is only to detect if a region is in the running embedded profile as shown here.
The code for this check is legit but I am guessing some loading options are missing in the session.NewSessionWithOptions for more advanced configuration (failing in our case with the error AssumeRoleTokenProviderNotSetError).
@deinspanjer Can you confirm your configuration in ~/.aws/{credentials, config} is valid? (i.e. it works correctly with the AWS CLI). I am guessing yes ;)
If yes, on my side I will try some options to not fail on loading configuration such as yours.

Yes, the config definitely works fine with core aws cli as well as boto3 and other libraries/utils.
Also note that awless actually successfully performs whatever operations are requested, it just gives that error first in the current version, and in the version released in brew on March 1, it gave no error at all.

Here is the .aws/config and .aws.credentials file structures I'm running with:
[default]
region = us-east-1
output = text

[profile dre]
source_profile = dre_mfa
role_arn = arn:aws:iam::xxx:role/AdminRole
mfa_serial = arn:aws:iam::xxx:mfa/dre
region = us-east-1
output = json

[profile gfw_xxx]
source_profile = gfw_ecr_xxx
role_arn = arn:aws:iam::xxx:role/AdminRole

[profile gfw_ecr_xxx]
region = us-east-1

[profile kops]
region = us-east-1
output = json
[profile ecr]
region = us-east-1

[default]
aws_access_key_id = xxx
aws_secret_access_key = yyy

[gfw_ecr_dev]
aws_access_key_id = xxx
aws_secret_access_key = yyy
aws_session_token = zzz==

[dre_mfa]
aws_access_key_id = xxx
aws_secret_access_key = yyy

[ecr]
aws_access_key_id = xxx
aws_secret_access_key = yyy

I found an issue in the k8s github that mentions an AssumeRoleTokenProvider option added a few months back: https://github.com/kubernetes/kops/issues/226#issuecomment-352783632
I'll try that out real quick and see if it has any effect.

Thanks for the input! I will have a look at that. In the meantime, using the current master will only print out the error. Everything should work fine expect when you have an embedded region in that config profile: in that case awless will not pick up the region. That is what need to be fixed.

This is the right fix concerning awless. We use this option in our official way to load the AWS session as shown here (compared to the hook quick session loading to see if a region is embedded).
When I implemented the code to look for an embedded region I overlook this option!
So your PR is valid and I will merge it. I will also revert back to returning an error instead of printing it (i.e. used for debugging that issue)

It got closed automatically!
@deinspanjer Anyway you can pull master that contains a commit and your PR. Any issues let me know. And thanks for the work.
Hopefully the version 0.1.10 should be out soon.


Use new case syntax when possible

This PR is a follow up to #71. I only updated the instances of case where the identifier and operator were always the same across the case statement.
I also learned that the is operator is not supported by the new syntax, likely because it's not parsed as a Relate node in the AST. I'll chase that one down in a different PR.
This PR also adds a bit of documentation about the alternative syntax in docs/intro-vs-pony.md

Closing this in favor of #73 (so the branch lives in the same repo and the CI actually runs)


Namespace Issue on Laravel Generated Composer

This is how my autoload field in composer looks like
"autoload": {         "classmap": [             "database/seeds",             "database/factories"         ],         "psr-4": {             "App\\": "app/"         }     },
See Laravel generates composer files with a forward slash (app/). Even though Windows support both slashes, the default is a backward slash. Hence, when we create a new PHP class in Windows, the path uses backward slashes causing discrepancy with the composer forward slash.
The following condition will always fail in this scenario
 if (folder.startsWith(candidate['folder'])) {                    ...                 }
I suggest we use forward slash instead of path.sep. Can you fix this and release an update?
Thanks

Yes, i will fix this. Would it be possible for you to test the new Version? If yes please send me yours email address to<EMAIL_ADDRESS>


NPP allocation question

The text of Abramoff et al. (2017) says:

The change in POM (P) stock with time is governed by the balance between plant C input and aggregate C breakdown, aggregate C formation, and decomposition,
dP/dt = piFi  + paFa - Fpa - Fpl  [1]
where Fi is aboveground plant litter, root litter and root exudates, pi is the proportion of C input allocated to POM (1/3 of inputs to POM and 2/3 of inputs to LMWC after Oleson et al. 2013)

But in the code:
 807 	LMWC = LMWC + (f_PO_LM_dep + f_MI_LM_des - f_LM_leaching - f_LM_MI_sor - f_LM_MB_uptake - temp2) + forc_npp / 3.
 808
 809 	POM = POM + (f_SO_PO_break - f_PO_LM_dep - f_PO_SO_agg) + forc_npp * 2. / 3.

I.e. it looks like 2/3 of NPP is going to POM, and 1/3 to LMWC. Is this discrepancy intentional? If not which is correct? Thanks.

Oh good catch - the sentence is written wrong but equation 1 is right. pi is defined in Table 3 as 2/3 so piFi -> 2/3 of Fi to POM, and Fi(1-pi) -> is 1/3 of Fi to LMWC in equation 7.

OK good thanks!


EuroSciPy 2015

Scrapped and all automatic tests fixed.
Needs human review for tags, etc.

Sweet!


Issues with Autoware master branch.

Today I installed and tried out master brnach of Autoware (70bd1c2d7adbb6c8f8c859d75a46c3af3a853f3a).
I am running on Ubuntu 14.04, ROS Indigo, using ample_moriyama_150324.bag.
I encountered the following issues:
Compilation: https://github.com/CPFL/Autoware/pull/723
Running:

ndt_matching is off in yaw direction:

car is tilted:

running Gazebo fails with the following message:

Gazebo multi-robot simulator, version 2.2.3
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for masterGazebo multi-robot simulator, version 2.2.3
Copyright (C) 2012-2014 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

Msg Waiting for masterMsg Connected to gazebo master @ http://<IP_ADDRESS>:11345
Msg Publicized address: <IP_ADDRESS>
..[ INFO] [1499653025.473772218]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1499653025.474143987]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...

Warning [ModelDatabase.cc:334] Getting models from[http://gazebosim.org/models/]. This may take a few seconds.
Msg Connected to gazebo master @ http://<IP_ADDRESS>:11345
Msg Publicized address: <IP_ADDRESS>

Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Warning [gazebo.cc:215] Waited 1seconds for namespaces.
Error [gazebo.cc:220] Waited 11 seconds for namespaces. Giving up.
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found
Error [Node.cc:90] No namespace found

ndt_matching crashes if you compile in non-Release mode

NDT matching problem has been fixed . But it has not been merged into master branch yet.
https://github.com/CPFL/Autoware/issues/693

Ok, thx. I will try out develop then.


test: Disable flaky etcd test

Disable on all pipelines except for K8s 1.11/Linux net-next, since the test never flaked on that one so far.
Related: https://github.com/cilium/cilium/issues/11690

test-focus K8sDatapathConfig

test-focus K8sDatapathConfig

Coverage decreased (-0.001%) to 36.833% when pulling e4969127be44be5982bc33760703a902e29c51ba on pr/pchaigno/disable-flaky-etcd-test into 05daeef1c29a48928391cb1820c77752675d6bcd on master.

The test-focus run above should be enough to validate this. Marking as ready to merge.


whatsapp black screen

cant take screenshot of whatsapp . only black screen showing up . is any fix for that?

It's seem no problem to take Screen shoot in whatsapp,
what is your phone ?

Since Android 12, views with FLAG_SECURE may not be captured. See #36 #2129.

xiaomi redmi note 10 pro  android 12


Ability to store plain JSON as an attribute

Right now I have a data model that does not contain primary keys and is actually recursive. The backend actually stores the column a as JSON, but I'm currently having to build a model around it when it would be drastically simpler if I had the ability to have a dataType that was just a plain JSON object.
Example that I'm working with:
{
  type: "group",
  condition: "all",
  rules: [
    {
      type: "group",
      condition: "all",
      rules: [
        {
          type: "field",
          operator: "is",
          field: "a07eb0da-fe24-5dc8-93ef-511daa5a4fc7",
          value: "test"
        },
      ],
    },
  ],
}

All that being said, maybe there's an easier way to model this than what I'm thinking.

Looks like https://github.com/mswjs/data/issues/165 may resolve my issues. 🤔

Hey, @ericchernuka. At the moment we don't support creation of static fixtures (data without primary keys). We've got the task opened and will schedule it for the future.


Assignability of valid value to union of builtin subtypes of int depends on the order of definition

Description:
$title
Steps to reproduce:
import ballerina/io;

public function main() {
    int:Signed8|int:Unsigned32 a1 = 235262; // works
    int:Unsigned32|int:Signed8 a2 = 235262; // incompatible types: expected 'int:Signed8', found 'int'
}

Related Issues (optional):
#32686

@suleka96 This is fixed in Swan Lake Beta4 RC2. Right?

This is fixed in Ballerina 2201.3.0.


Feature request: Clip/vod search

I'm requesting a feature where the bot would search for new clips made of the same Twitch streamers being monitored with some longer interval like 10 minutes, or maybe even a few hours.

Thanks, I agree this would be a nice feature. unfortunately the lib I am using to interact with the twitch API (twitch-python) doesn't support clips yet, only vods, so I would need to implement the clips part myself or switch to a different twitch lib. Might do one of those eventually, but probably won't be in the next release. Will leave this open until then.


Consolidate all virtual environment path references

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1214
Originally created by @gtsiolis on 2019-10-25 13:30:31

Problem
The project is using virtual environments, which is completely fine, to avoid potential system conflicts and many more. However, in the documentation we reference multiple virtual environment paths that can cause confusion to the user trying out the project.
Currently, we reference the following paths:

~/virtualenvs
~/virtualenvs/meltano
~/virtualenvs/meltano-development
~/path/to/melt_venv (archive)
.venv (archive)

Background
The project now a) requires Python 3, b) which (Python 3) comes with venv, c) virtualenv is no longer needed, and d) documentation references only venv usage.
Proposal
To a) avoid confusing new users while reading the documentation, b) help users that are new to development with Python, c) hide the folder that contains the virtual environments since this is a common practice, and more:

Remove all pages from the /docs/archive.
Mention once /path/to/venv so that it's clear you can use any folder or your environment.
Use ~/.venv as the only path across all references, since this is the common target directory when using venv.
Rename all ~/virtualenvs path references to /.venv.

View 14 previous comments from the original issue on GitLab


MessageEntity with EntityMention type broken?

Can't receive User info from MessageEntity instance via such code:
			for _, v := range message.Entities { 				if v.Type == telebot.EntityMention || v.Type == telebot.EntityTMention {  					fmt.Println("[Entity]", v) 				} 			}
Possible output:

[Entity] {mention 0 8  {0   }}
[MSG]: From ... in chat #b2: @riketta
[Entity] {mention 4 8  {0   }}
[MSG]: From ... in chat #b2: qwe @riketta  aasas

Seems like entity.User contains nothing useful. Sorry if I'm doing smth wrong.

According to Telegram Bot API, MessageEntity.User is for users without username only (see https://core.telegram.org/bots/api#messageentity).
For users with username, you can just go and slice it like that: msg.Text[offset:offset+length]. It gets trickier for any other mentions though! Since UTF-16 code points may not be 1-byte long, you can't just slice them straight away (strings in Go are immutable []byte and UTF-16 is a variable-length encoding)... I guess we could to introduce a helper function for this very reason.


[api] inject fail points to each endpoint

#9193
API failpoint name pattern: "api::endpoint_"
Test:
cargo build -p diem-node --all-features

update node configuration to enable failpoints:
failpoints:
  api::endpoint_index: 100%return

Curl the index endpoint should return 500 error
curl http://localhost:8080/
{"code":500,"message":"unexpected internal error for endpoint_index"}

Having one test to ensure that failpoint.rs works as expected would give us a lot more confidence.
https://docs.rs/fail/latest/fail/#usage-in-tests

We will need create a fail-point-specific test binary for failpoint test, because failpoint is global resource, from the above doc:

Even if a test does not itself turn on any fail points, code that it runs could trigger a fail point that was configured by another thread.

I think compiler level check that failpoint related code is good enough for this case.

I envisioned a rust test as show below, but didn't realize it had that much overhead. Based on https://fb.workplace.com/groups/2044217752540140/permalink/2389820681313177/ it seems that we have significant test infra in place. Will approve to unblock but still feel a small rust unit test would be helpful.
#[test]
#[should_panic]
fn test_fallible_work() {
    let scenario = FailScenario::setup();
    fail::cfg("read-dir", "panic").unwrap();

    do_fallible_work();

    scenario.teardown();
}

/land

to enable it in unit test, you need to specify the required feature for that similar to the doc
[[test]]
name = "failpoints"
path = "tests/failpoints/mod.rs"
required-features = ["fail/failpoints"]

Is there work to be done to enable it in the smoke test? This is the existing test infra I was referring to.
https://github.com/zekun000/diem/blob/2f445d98d2e1f0c178964be6c50d27b72dda1bf3/testsuite/cluster-test/src/cluster_swarm/configs/validator.yaml#L54-L62
# this is only enabled when the binary is compiled with failpoints feature, otherwise no-op
failpoints:
  consensus::process_proposal_msg: 5%return
  consensus::process_sync_info_msg: 5%return
  consensus::process_vote_msg: 5%return
  consensus::process_block_retrieval: 5%return
  consensus::sync_to: 1%return
  consensus::compute: 1%return
  consensus::pull_txn: 1%return

This is indeed covered with https://github.com/xli/diem/blob/4d6089c6abb8fcba19ddbffb5bcc290eb69e225d/testsuite/cluster-test/src/cluster_swarm/configs/fullnode.yaml#L45-L57 👍

smoke test enables the feature by default, but there's no configurations of those failpoints (what you paste is for cluster test I think). smoke test uses the binary built here https://github.com/diem/diem/blob/d66e649fd62c92dd7f774ca29e95d0a7b1b9edd7/testsuite/forge/src/backend/local/cargo.rs#L158


Cut a release since removing console.log

Hello--
Thanks for the great color picker.  I appreciate all your effort building and maintaining it.
Would it be possible to get a release cut with the console.log removed in 011d746c9587e7b0a9d5a11ba133e6b4cf93ad6b?

+1

Sorry about that. New release at<EMAIL_ADDRESS>

🙇 thanks @casesandberg!


Adding catch-all Path

Without this I get
fai: Microsoft.ReverseProxy.Service.RouteValidator[51]
      Route `route` requires Hosts or Path specified. Set the Path to `/{**catchall}` to match all requests.

Stephen's fix is probably better: https://github.com/microsoft/reverse-proxy/pull/339


udp.GetRecv didn't work!

I ran the multi_pc_udp_recv.cpp in examples for accessing the msg that feed back from server, however, after excecuting the line udp.GetRecv((char*)&a); the recieved data  printf("%d\n", a.direction); is always emptry; I've try to access other data like HighState, still same.
Please give me some guidances of how to obtain the robot's state information (e.g. linear velocity, angular velocity ) though this sdk or any other ways. Thanks!

multi_pc_ related files are just as an example udp usage between different IP/port. If data is empty, please check your IP/port.
If your robot works fine, then the state will not empty. If there has problem with your robot, please contact our support team<EMAIL_ADDRESS>

multi_pc_ related files are just as an example udp usage between different IP/port. If data is empty, please check your IP/port.
If your robot works fine, then the state will not empty. If there has problem with your robot, please contact our support team<EMAIL_ADDRESS>


Error: Unable to get the list of tables to be exported

When issuing this command (wp mu-migration export all site.zip --plugins --themes --uploads) on any site I have tried, I get the following
Exporting site meta data...
Exporting users...
Exporting tables
Error: Unable to get the list of tables to be exported
A CSV file and JSON file are created and have a lot of data.
wp db export does export the whole database with no problem
wp db tables lists all of the WP tables
replacing $tables = \WP_CLI::launch_self( with $tables = \WP_CLI::runcommand( on line 104 of class-mu-migration-export.php lets it continue if you manually specify the tables but then I get
"Something went wrong while trying to export the database" but an .sql file is created with all of the tables and data.
I tried using $export = \WP_CLI::runcommand('db export', array('return' => true)); that I found in another post with that error message but I still get the same error.
IIS/My SQL 5.6/PHP 7.1.11

Related #47 Looks like something changed in the internal API of WP-CLI.
Thanks for you report. I'll look into this soon.

Was this ever solved? I'm having the same problem.

@geneellis @thewizard1002 Can you try again? I have just merged #61. Make sure to update to the latest version.

Will try again on the next migration. Thanks!

I'm still seeing this on the latest commit.

Can you post the full error and details of what you're trying to do?

This is my bad, my version of wp-cli wasn't up to date. Sorry for posting in haste :)

@azito122 so did updating wp-cli resolve your issue?

Indeed.

As at Feb 2020 this is STILL happening for me in 2.4. In Laragon and in Local
See terminal dialogue below
C:\laragon\www\Starter
? wp --version
WP-CLI 2.4.0
C:\laragon\www\Starter
? wp mu-migration export all starter
Exporting site meta data...
Exporting users...
Exporting tables
Error: Unable to get the list of tables to be exported
Any remedies>


docs: add terraform-docs

what

docs: add terraform-docs (preview of docs)

why

Document all input variables include var.runtime
Adding a comment in .python-version causes github action to fail since the actions do not support comments

references

terraform-docs

https://github.com/antonbabenko/pre-commit-terraform?tab=readme-ov-file#terraform_docs
https://terraform-docs.io/user-guide/configuration/
https://github.com/terraform-docs/terraform-docs
https://github.com/terraform-docs/terraform-docs/releases/tag/v0.19.0

install-gh-release action

https://github.com/jaxxstorm/action-install-gh-release
https://github.com/marketplace/actions/install-a-binary-from-github-releases

limitation with actions/setup-python https://github.com/actions/setup-python/issues/949

In my other open-source project, I implemented a Terraform docs GitHub Action which automatically updates every time a PR is submitted, and writes to a separate file, rather than the top-level README, so as to stop the README becoming overly long.
I quite like this approach as it avoids separate PRs for Terraform Docs - what do you think?
See example workflow


chore(Geometry): remove remaining open Classical

For two theorems in PartitionOfUnity, I'm unsure if this is the best fix, or adding a suitable decidability assumption is better. Feedback on this is welcome!

LGTM, but is it intentional that you are also deleting a lot of stuff from the nolints file?
bors d+

Not really: this removal is from #15752 (which I mistakenly included... the easiest way forward could be to merge that and then merge master here; that PR should be really easy to review).

Thanks for the review!
bors merge


Update to inline modular content object tags breaks Java SDK

Brief bug description
What went wrong?
The following attribute is now being added to the object element:
data-rel
This mismatches the regex matcher in the inline modular content resolver, as it matches on:
"<object type=\"application/kenticocloud\" data-type=\"(?<type>[^\"]+)\" data-codename=\"(?<codename>[^\"]+)\"></object>"
Repro steps

Update an existing content item's modular content
Rich text is returned without replacing the object element

Expected behavior
All object elements are replaced if resolvers for the type are configured, and the modular content is within the depth of the response.
Test environment

Platform/OS: com.kenticocloud:delivery (Java SDK)
Version 2.0.1

@petrsvihlik this is high priority.  This is affecting our production sites.  The SDK should have a regex that is more forgiving.  I can work on that.  I am not finding the new attribute anywhere on https://developer.kenticocloud.com/v1/reference
I'll be reaching out to Kentico support as well about this change.

I've merged in the change to complete a release.  Keeping this issue open for @petrsvihlik and @JanLenoch to review the issue.

Per Kentico support, a developer there has released a fix as well, until this goes out.


12419 Fixed misc issues (business address, schema, etc)

Issue #: /bcgov/entity#12419
Description of changes:
First commit:

added optional party email functionality
initialized office address valid flags + use and watch them for component validity
changed conv NOB textarea label to placeholder
updated error text for required NOB
added fallback contact point email and phone in conversion filing
updated unit tests
app version = 3.1.12

Second commit:

removed unneeded prop bindings and getters
renamed a prop to make it general
simplified validation in ListPeopleAndRoles
cleaned up condition for confirm checkbox
updated/generalized form validation getter
added conditions for SP and GP add buttons
updated required parties validation
updated watcher for parties/validation
omit Contact Point properties if empty
updated unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

looks good, just the one comment about contact point email.


make kpng vendorable: out-of-tree compilation of backends doesnt work

@uablrek mentioned that he couldnt externalize the compilation of his backend:
go: finding module for package sigs.k8s.io/kpng/client
go: found sigs.k8s.io/kpng/client in sigs.k8s.io/kpng v0.0.0-20210813170222-0c0a3c81012c
go<EMAIL_ADDRESS>requires

Is this bc we're vendoring the  kubernetes core bits ? ...
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

$ go build ./main.go
main.go:24:2: no required module provides package sigs.k8s.io/kpng/client; to add it:
        go get sigs.k8s.io/kpng/client
$ go get sigs.k8s.io/kpng/client
go get: sigs.k8s.io/kpng@none updating to
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

not sure what to do about this - im thinking maybe the issue is that, we vendor the k8s "non-vendorable" bits, and thats whats burning us.

reproducing

mkdir lars
cp examples/print-state/main.go lars/
cd lars ; go mod init test.com/example
observe that the mod init fails, bc of our attempt to import<EMAIL_ADDRESS>
➜  lars  go get sigs.k8s.io/kpng/client
 go: downloading sigs.k8s.io/kpng v0.0.0-20210813170222-0c0a3c81012c
go get: sigs.k8s.io/kpng@none updating to
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

https://github.com/kubernetes/kubernetes/issues/79384 <-- we'll need to fix this

We must not require backends consume k8s.io/kubernetes as a module, see  https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-505725449
It might be that kpng itself must do that, but definitely not a backend!

I think the problem is "k8s.io/klog". It is a K8s internal thing and MUST NOT be required by out-of-tree backends.

@jayunit100 Please remove ~make kpng vendorable~ from the title. This is not about vendoring, it's about go modules. (as much as I love go I hate vendoring)

tried to remove klog from the client but, for some reason even though the client doesnt depend on k8s.io, still seeing:
➜  lars go mod tidy
go: found sigs.k8s.io/kpng/client in sigs.k8s.io/kpng v0.0.0-00010101000000-000000000000
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

reproduce with
➜  lars cat go.mod
module test.com/example

go 1.17

replace sigs.k8s.io/kpng => ../kpng

It still doesn't work. Example:
cp -r examples/pipe-exec/ /tmp
cd /tmp/pipe-exec
rm -f go.mod go.sum
go mod init github.com/kubernetes-sigs/kpng/examples/pipe-exec
go mod tidy
go: finding module for package sigs.k8s.io/kpng/client
go: found sigs.k8s.io/kpng/client in sigs.k8s.io/kpng/client v0.0.0-20211015205115-eb27050d1b40
go: downloading sigs.k8s.io/kpng/api v0.0.0-00010101000000-000000000000
github.com/kubernetes-sigs/kpng/examples/pipe-exec/cmd/kpng-callout imports
        sigs.k8s.io/kpng/client imports
        sigs.k8s.io/kpng/api/localnetv1<EMAIL_ADDRESS>invalid version: unknown revision<PHONE_NUMBER>00

/open

/reopen

@uablrek I've gone through a cleanup step on all this, please try again :)

Now it works :+1:


Added Support, Info, and 404 pages, plus Alphabetical Sorting

Changes

For issue #6, the following pages were added:

Support
Info
404

For issue #5, it's now possible to sort hymns in the list alphabetically (using their title) or using the hymn number

Great stuff @YewoMhango I was also thinking that maybe instead of the home page, we default to English hymn and just list them like this https://cis-web-app-pr-58.onrender.com/songs/english/1
Maybe this can be handled in  a separate issue

Oh, okay. Is that really necessary, though?

Oh, okay. Is that really necessary, though?

No it's really not.


Add user meta and indexes to domain object conversion

And tests for same

Looks good, tests pass. +1 merge


Deno example

In the description you say it is possible to use the function in deno. Could you give us an example as of how this would be possible? Do you mean by using the compatability layer of deno?

I'm sorry, I've missed this issue. There is now a README in the examples folder that explains how to run the examples with Deno. Meanwhile, they run out of the box.


updates java version to 16

Description
Updates the Java version to 16.0.1+9 for all linux and windows images. No changes were made to macos images due to the comment below. All defaults remain set to an LTS version.
The reason for this update, is to close a multi year gap between the available and the newest version of Java.

Related issue:
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

Hello @chrigiansen , according to our guidelines, we install only LTS Java versions on Hosted images. Java 16 is not LTS. https://github.com/actions/virtual-environments/blob/main/docs/software-and-images-guidelines.md#software-and-images-support-policy
Java 13 was installed before accepting this policy so we can't remove it without impact.
Please use official action to setup any Java in runtime (it is pretty quick, actually): https://github.com/actions/setup-java#basic

Sorry to bother you, but there are three points that I deem user unfriendly or are unclear to me:

In the first link you provided, it is specified that you install all LTS versions for Java, there is no mention of of exclusivity.
The other software packages lack, or have a much more lenient restriction, either because some latest version is included or their update policy has a narrower timeframe. Keep in mind, that the Java LTS cycle is 3 years.
I am building my application on Azure. The only way on azure to install a custom Java version is to host it by oneself, making it bothersome for all people wanting to use a newer non-LTS version of java.

Right now it seems like Java is being penalised, in my opinion a restriction similar to .NET Core's would be more useful.
Anyway, I wish you a nice day, and i hope you take my words into consideration.

@chrigiansen , thank you for sharing these points.
There is no exclusivity. There are only two versions of Java that are LTS: 8 and 11 (Java 17 will be LTS and will be released on September 2021) and both are pre-installed. Any other Java versions are not LTS according to https://www.oracle.com/java/technologies/java-se-support-roadmap.html
Currently, Hosted images contain some non LTS Java versions like Java 13. They were installed before adding clear policy about it so we can't remove it without impact. For any further installations we follow policy.
Yes, policy is different for other tools because there are a bunch of factors that we need to keep on mind (like tool size, installation time, usage). We are trying to minimize the software list on Hosted images to be focused on stability of current software. It is why we need to follow this policy.
I understand your concern about JavaToolInstaller (Azure DevOps task) and it is less powerful than actions/setup-java (GitHub Actions task) that can install versions on-flight.
As an option, Java 16 can be installed on Azure DevOps on-flight without necessary to host it somewhere via the following steps (actually, it is what actions/setup-java does under hood) :
steps:
  - bash: |
      url="https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jdk_x64_linux_hotspot_16.0.1_9.tar.gz"
      wget -O "$(Agent.TempDirectory)/java16.tar.gz" $url
  - task: JavaToolInstaller@0
    inputs:
      versionSpec: '16'
      jdkArchitectureOption: 'x64'
      jdkSourceOption: 'LocalDirectory'
      jdkFile: '$(Agent.TempDirectory)/java16.tar.gz'
      cleanDestinationDirectory: true

I thought the toolset file define the toolset installed, if it is true in this file
https://github.com/actions/virtual-environments/blob/main/images/macos/toolsets/toolset-10.15.json#L153 we can see java 12 and 14
"8", "11", "12", "13", "14"


chore: bdd-nh-1590515111 to 0.0.1

chore: Promote bdd-nh-1590515111 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


OS Permission Denied Error during enable overcommit in sysctl step

Thanks for creating this playbook! I'm having a small problem during installation, and I'm not 100% sure if it's a problem with the package or my vagrant box, or with something I'm doing.
Here's the output I'm getting when I attempt to provision:
...

TASK: [DavidWittman.redis | install dependencies] *****************************
ok: [default] => (item=gcc,make,libc6-dev)

TASK: [DavidWittman.redis | install dependencies] *****************************
skipping: [default]

TASK: [DavidWittman.redis | enable overcommit in sysctl] **********************
failed: [default] => {"failed": true, "parsed": false}
Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1429466343.23-73074173030441/sysctl", line 1936, in <module>
    main()
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1429466343.23-73074173030441/sysctl", line 335, in main
    result = SysctlModule(module)
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1429466343.23-73074173030441/sysctl", line 118, in __init__
    self.process()
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1429466343.23-73074173030441/sysctl", line 164, in process
    self.write_sysctl()
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1429466343.23-73074173030441/sysctl", line 302, in write_sysctl
    fd, tmp_path = tempfile.mkstemp('.conf', '.ansible_m_sysctl_', os.path.dirname(self.sysctl_file))
  File "/usr/lib/python2.7/tempfile.py", line 300, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib/python2.7/tempfile.py", line 235, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/etc/.ansible_m_sysctl_lh1_3d.conf'

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/ryanisnan/vagrant.retry

default                    : ok=7    changed=5    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I managed to solve this issue by making ansible provision as root. For future reference, here's the provisioning statement.
config.vm.provision "ansible" do |ansible|
  ansible.playbook = "provision/vagrant.yml"
  ansible.sudo = true  # Added this line
end

Hey @ryanisnan, thanks for the update. I'll make some changes to the documentation to make this more clear.


Query Explorer Authentication Error

All CORS settings according to readme:
http.port: 9200
http.cors.allow-origin: http://localhost:1358,http://<IP_ADDRESS>:1358
http.cors.enabled: true
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
http.cors.allow-credentials: true

And Data Browsers works.
But Query Explore:

@bravecow you are seeing this error because of local elasticsearch version.
For using query explorer with a local build, you can try chrome extension.
Here is the link: https://chrome.google.com/webstore/detail/mirage/dcnlpfmnpoggchflmdnkgiepijgljoka?hl=en

Ahh, okay. It would be nice if this was more obviously from error message.

I'm seeing the exact same issue but I'm using the Chrome extension and connecting to a managed ES instance. Because it's a managed ES instance, I can't change the elasticsearch.yaml file. Why is  'https://opensource.appbase.io' involved in any of the requests?

I'm seeing the exact same issue but I'm using the Chrome extension and connecting to a managed ES instance. Because it's a managed ES instance, I can't change the elasticsearch.yaml file. Why is 'https://opensource.appbase.io' involved in any of the requests?

Same case here.
Can't query via Dejavu and can't change the elasticsearch.yml because it's managed by my organization.
The query via ElasticSearch Head plugin works just fine.

I'm seeing the exact same issue but I'm using the Chrome extension and connecting to a managed ES instance. Because it's a managed ES instance, I can't change the elasticsearch.yaml file. Why is 'https://opensource.appbase.io' involved in any of the requests?

Query Explorer seems to load a frame from https://opensource.appbase.io.
Add https://opensource.appbase.io to elasticsearch http.cors.allow-origin to allow this frame to call your ES instance.

Again, because I use a managed ES instance, I can't change the configuration for ES. More importantly, why is Deja Vu making an unnecessary request to "https://opensource.appbase.io" and thus causing this error?


fixes memory overalloc bug

fixes https://github.com/soumith/cudnn.torch/issues/33
also small readme fix

Nice!!! Thanks a lot


Host all the docker images/Dockerfiles we need under Camlistore's umbrella

from https://camlistore-review.googlesource.com/3959 comments:

"This is fine for now, but let's move them all to Camlistore's repo. We should put
all the Dockerfiles inside our tree, and even be able to run "docker build -t
foo" on-demand, not even requiring the hub."

What's the status of this one?

i think we're good with the critical images (needed for the GCE instance, or for the website), but the e.g. various databases images for the index tests are still from dockerhub or wherever.

I found out were are the images this issues is about: https://github.com/camlistore/camlistore/blob/master/pkg/test/dockertest/docker.go
Why aren't standard mysql and postgres images used?

postgres is very outdated btw.

Why aren't standard mysql and postgres images used?

I'd guess because at the time we did this, the standard images hadn't beet created yet.
Are you interested in fixing that?

I'll just looking into this project. I'm not sure yet. Definetly not yet, the build/test system is unconventional and codebase is fairly large. I need some time to properly understand how things work in general, and until then I'm not sure I'll do any changes...
I don't even know how I'd invoke the tests so far. Will usual go test -v ./... work? I mean to check this, and in general.

yes, go test should work as usual.
so while working on this, you should probably start with:
go test ./pkg/testdockertest
and
go test ./pkg/sorted/...
go test ./pkg/index
to test your changes

Thanks for a tip. I'll try to do something with this on my free time.


Suggestion: Range value on top mods

How searching top mods with range value like this? thx

Hello, thanks for creating an issue. This is currently not possible. Mod ranges were added after this section was developed. I'll add it soon.

0.6.6 (2020-03-17)

add dps mod range (#294)


[Bug]: OdhApplication CR: Having a kfdefApplication list defined removes feature flag enable button

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
The Feature "Enable" button is not displayed in a Dashboard Tile if an OdhApplication has a non-empty list of kfdefApplications defined.
Expected Behavior
The Enable/Disable functionality of the OdhApplication tile should still work if a kfdefApplication is defined.
Steps To Reproduce

Install ODH
Apply a kfdef with at least 1 application (named 'foo')
Create an OdhApplication using the provided yaml
Go to ODH Dashboard > Explore and click on the Test App Tile
Verify that an enable button is missing on the right-hand side panel

[1] Example OdhApplication YAML:
apiVersion: dashboard.opendatahub.io/v1
kind: OdhApplication
metadata:
  name: test-app-tile
spec:
  category: Test
  description: Test App
  displayName: Test App
  docsLink: https://www.example.com
  img: foo
  getStartedLink: https://www.example.com
  getStartedMarkDown: "foo"
  provider: Test
  support: Test
  kfdefApplication: ['foo']
  enable:
    title: test
    actionLabel: Enable
    description: Test
    validationConfigMap: test-tile-kfdefapplication-validator-result

Workaround (if any)
Set the kfdefApplications value to [].  This removes the kfdef-check functionality, however.
OpenShift Infrastructure Version
No response
Openshift Version
4.10
What browsers are you seeing the problem on?
Firefox
Open Data Hub Version
1.13

Relevant log output
N/A

Migrated to:  https://issues.redhat.com/browse/RHOAIENG-2968

Migrated to:  https://issues.redhat.com/browse/RHOAIENG-2968


Identify OGG as audio

When testing my importer, I came across this UTI. Since Obsidian embeds all attachments in the same way, it isn't really relevant for my purposes but I thought it'd be helpful for you.

Thanks for doing this! Looks good to me.


W:GPG error debian

**Operating system and architecture:18.04.1 / 64-bit
There is a problem with https://dl.bintray.com/resin-io/debian
W:GPG error: https://dl.bintray.com/resin-io/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 379CE192D401AB61, E:The repository 'https://dl.bintray.com/resin-io/debian stable Release' is not signed.

Hi there,
Did you follow instructions here https://github.com/resin-io/etcher#debian-and-ubuntu-based-package-repository-gnulinux-x86x64 ?