mailgun notification fails with stacktrace: TypeError: object generator can't be used in 'await' expression

Home Assistant release with the issue:
0.70.0
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Docker:
https://github.com/MansM/docker-homeassistant/blob/master/homeassistant/Dockerfile
Component/platform:
mailgun or slack?
Description of problem:
mailgun notification fails with stacktrace
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
mailgun:
  domain: !secret mailgun.domain
  api_key: !secret mailgun.apikey
  sandbox: False

notify:
  - platform: slack
    name: slack
    api_key: !secret slack.apikey
    username: 'home-assistant'
    default_channel: '#general'

Traceback (if applicable):
traefik    | time="2018-06-03T12:09:50Z" level=debug msg="vulcand/oxy/roundrobin/rr: begin ServeHttp on request" Request="{"Method":"POST","URL":{"Scheme":"","Opaque":"","User":null,"Host":"","Path":"/api/mailgun","RawPath":"","ForceQuery":false,"RawQuery":"api_password=apipass-dontthinkso","Fragment":""},"Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"Connection":["keep-alive"],"Content-Length":["15090"],"Content-Type":["multipart/form-data; boundary=someboudary hash"],"User-Agent":["python-requests/2.13.0"]},"ContentLength":15090,"TransferEncoding":null,"Host":"somefqdn.bla","Form":null,"PostForm":null,"MultipartForm":null,"Trailer":null,"RemoteAddr":"<IP_ADDRESS>:7884","RequestURI":"/api/mailgun?api_password=apipass-dontthinkso","TLS":null}"
traefik    | time="2018-06-03T12:09:50Z" level=debug msg="vulcand/oxy/roundrobin/rr: Forwarding this request to URL" ForwardURL=http://<IP_ADDRESS>:8123 Request="{"Method":"POST","URL":{"Scheme":"","Opaque":"","User":null,"Host":"","Path":"/api/mailgun","RawPath":"","ForceQuery":false,"RawQuery":"api_password=apipass-dontthinkso","Fragment":""},"Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"Connection":["keep-alive"],"Content-Length":["15090"],"Content-Type":["multipart/form-data; boundary=someboudary hash"],"User-Agent":["python-requests/2.13.0"]},"ContentLength":15090,"TransferEncoding":null,"Host":"somefqdn.bla","Form":null,"PostForm":null,"MultipartForm":null,"Trailer":null,"RemoteAddr":"<IP_ADDRESS>:7884","RequestURI":"/api/mailgun?api_password=apipass-dontthinkso","TLS":null}"
traefik    | time="2018-06-03T12:09:50Z" level=debug msg="vulcand/oxy/forward: begin ServeHttp on request" Request="{"Method":"POST","URL":{"Scheme":"http","Opaque":"","User":null,"Host":"<IP_ADDRESS>:8123","Path":"","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":""},"Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"Connection":["keep-alive"],"Content-Length":["15090"],"Content-Type":["multipart/form-data; boundary=someboudary hash"],"User-Agent":["python-requests/2.13.0"]},"ContentLength":15090,"TransferEncoding":null,"Host":"somefqdn.bla","Form":null,"PostForm":null,"MultipartForm":null,"Trailer":null,"RemoteAddr":"<IP_ADDRESS>:7884","RequestURI":"/api/mailgun?api_password=apipass-dontthinkso","TLS":null}"
traefik    | time="2018-06-03T12:09:50Z" level=debug msg="vulcand/oxy/forward/http: begin ServeHttp on request" Request="{"Method":"POST","URL":{"Scheme":"http","Opaque":"","User":null,"Host":"<IP_ADDRESS>:8123","Path":"","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":""},"Proto":"HTTP/1.1","ProtoMajor":1,"ProtoMinor":1,"Header":{"Accept":["*/*"],"Accept-Encoding":["gzip, deflate"],"Connection":["keep-alive"],"Content-Length":["15090"],"Content-Type":["multipart/form-data; boundary=someboudary hash"],"User-Agent":["python-requests/2.13.0"]},"ContentLength":15090,"TransferEncoding":null,"Host":"somefqdn.bla","Form":null,"PostForm":null,"MultipartForm":null,"Trailer":null,"RemoteAddr":"<IP_ADDRESS>:7884","RequestURI":"/api/mailgun?api_password=apipass-dontthinkso","TLS":null}"
hass_1     | 2018-06-03 12:09:50 ERROR (MainThread) [aiohttp.server] Error handling request
hass_1     | Traceback (most recent call last):
hass_1     |   File "/root/.homeassistant/deps/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 381, in start
hass_1     |     resp = await self._request_handler(request)
hass_1     |   File "/root/.homeassistant/deps/lib/python3.5/site-packages/aiohttp/web_app.py", line 322, in _handle
hass_1     |     resp = await handler(request)
hass_1     |   File "/root/.homeassistant/deps/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 88, in impl
hass_1     |     return await handler(request)
hass_1     |   File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
hass_1     |     return await handler(request)
hass_1     |   File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
hass_1     |     return await handler(request)
hass_1     |   File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
hass_1     |     return await handler(request)
hass_1     |   File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/auth.py", line 54, in auth_middleware
hass_1     |     return await handler(request)
hass_1     |   File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/http/view.py", line 98, in handle
hass_1     |     result = await result
hass_1     | TypeError: object generator can't be used in 'await' expression

Additional information:

Still not working in 0.74.2


config: add CLA for tidb-tools

and anyone knows if this PR can resolve the problem that we can't add CLA through https://cla-assistant.io/ ?


Language-Based Project Grouping

Description
The Language-Based Project Classification feature would allow users to easily classify and see projects based on the programming language used to develop them. This would involve grouping together all projects that were developed using a specific language, such as JavaScript, and displaying them in a separate section or category.
This would make it easier for users to quickly access and manage projects based on their programming language of choice. For instance, if a user primarily works with JavaScript, they could easily find and access all of their JavaScript projects in one place, rather than having to sort through a mixed list of projects in various programming languages.
Screenshots
No response
Additional information
No response

This is not relevant since we're including only one or at the most 2 languages per roadmap. These roadmaps are designed from the perspective of absolute beginners, hence including multiple languages would simply lead to confusion

I faced difficulty finding the relevant programming language project I am learning in the Fullstack development roadmap. I need to check every project to see if it was developed using my preferred language or not.


Add Yaml generator

Codecov Report

Merging #15 into master will decrease coverage by 0.06%.
The diff coverage is 96.15%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
- Coverage   85.61%   85.55%   -0.07%
==========================================
  Files          31       32       +1
  Lines        1050     1066      +16
==========================================
+ Hits          899      912      +13
- Misses        151      154       +3

Impacted Files
Coverage Δ

populous/backends/postgres.py
0% <0%> (ø)
:arrow_up:

populous/generators/__init__.py
100% <100%> (ø)
:arrow_up:

populous/generators/value.py
100% <100%> (ø)
:arrow_up:

populous/generators/yaml.py
100% <100%> (ø)

populous/backends/base.py
65.21% <0%> (-8.7%)
:arrow_down:

Continue to review full report at Codecov.

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


ENH: natural sorting on private/public study tables

Adds natural sorting plugin for dataTables, and applies natural sorting to private and public study tables.
Fixes #831
Replaces #862 (sorry, I couldn't git whisper a pull against @wasade's branch, so just created a new PR)

No worries! These connection resets are getting very annoying...

Restarting build, I think it was just a stochastic Travis failure

Ya, already restarted it once
On Feb 19, 2015 5:12 PM, "adamrp"<EMAIL_ADDRESS>wrote:

Restarting build, I think it was just a stochastic Travis failure
—
Reply to this email directly or view it on GitHub
https://github.com/biocore/qiita/pull/875#issuecomment-75166520.

Coverage remained the same at 78.69% when pulling c719a5973079149994834527cf6323a55a38cf2e on adamrp:issue_831 into d243968488bdea9cd0bb7fcef4402e79a0c75bf6 on biocore:master.

This should be ready to go

Thanks @ElDeveloper, I added a couple more commits.

Travis build keeps failing, but I'll keep restarting it...

Okay, this should be ready!

Thanks @adamrp! I'm seeing something rather odd, not sure if you can reproduce this on your end, see this animated image:

If you see, the order doesn't seem to be right at all, or am I missing something completely obvious here?

Ping @adamrp, comments from @ElDeveloper

Took me a while to figure this out... it's sorting that column based on the HTML, not the actual study title. the natsort plugin is not compatible with table entries that have HTML, so natsort is going to be limited to just columns 1,2,3 and 7.

I think the current failure is due to the IPython 3.0 issue that's already been discussed.

First one is, @josenavas, able to look? Its on the workflow object, looks like .pyout may no longer exist. The second failure looks like something else tho?

There is a PR that changes the ipython to use 2.4.1. My recommendation is to merge that PR first until we modify moi to support Ipython 3. I don't have time to take a look now.

Restarted the build

There hasn't been any evidence yet that there is an issue with moi. @squirrelo's traceback looked like an environmental issue, and this appears to be an issue with the parallel workflow.

Okay, as far as I can tell, this is now fixed, including the bug that @ElDeveloper recognized. Can someone verify?

:+1: I can verify this works as expected! Thanks @adamrp very useful!!

Anyone want to merge?


Maptiler contour's minzoom not taken into account

Hi there,
If I look at Maptiler's outdoor-v2 theme there is a contours source:  https://api.maptiler.com/maps/outdoor-v2/style.json?key=XXX
{
  "version": 8,
  "id": "outdoor-v2",
  "name": "Outdoor",
  "sources": {
    "outdoor": {
      "url": "https://api.maptiler.com/tiles/outdoor/tiles.json?key=XXX",
      "type": "vector"
    },
    "contours": {
      "url": "https://api.maptiler.com/tiles/contours/tiles.json?key=XXX",
      "type": "vector"
    },
    "terrain-rgb": {
      "url": "https://api.maptiler.com/tiles/terrain-rgb-v2/tiles.json?key=XXX",
      "type": "raster-dem"
    },
    "maptiler_planet": {
      "url": "https://api.maptiler.com/tiles/v3/tiles.json?key=XXX",
      "type": "vector"
    }
  },
  "layers": [
    {
      "id": "background",
      "type": "background",
      "minzoom": 0,
      "layout": {
        "visibility": "visible"
      },
      "paint": {
        "background-color": {
          "stops": [
            [
              5,
              "hsla(86, 41%, 93%, 1)"
            ],
            [
              14,
              "hsla(120, 4%, 95%, 1)"
            ]
          ]
        }
      }
    },
    {
      "id": "landscape",
      "type": "fill",
      "source": "maptiler_planet"
    }
  ]
// and lots more things
}

In this contours source, there is a minzoom defined:
{
  "id": "contours",
  "bounds": [
    -180,
    -66.513,
    180,
    74.02
  ],
  "center": [
    8.4773,
    47.0879,
    10
  ],
  "format": "pbf",
  "maxzoom": 14,
  "minzoom": 9,
  "version": "2.2",
  "tilejson": "2.1.0",
  "generator": "MapTiler Data"

// and lots more things
}

But if my zoom is below 10, I got these errors:
Unhandled Exception: Cannot retrieve tile: HTTP 400: https://api.maptiler.com/tiles/contours/8/129/91.pbf Out of bounds

And map remains blank.
Is minzoom of a source implemented?
I also have this bug on example app ;)
Thanks for your help!

Thanks for the issue!

Is minzoom of a source implemented?

no, it's not - but from your observation it should be.


Get session

[x] parsing capabilities
[x] parsing account
[x] parsing primary account
[x] test for session class
[x] test for capabilities converter

@dab246 @chibenwa please review it

@dab246 @chibenwa please check this PR. I make it generic for custom capability and unknown capability.


Can't draw rectangles with terrain layer enabled

Since 7.5 I have been having an issue with drawing rectangles. When terrain Layer is turned off it works as expected. I am getting this error.
foundry.js:3780 Error: Required field type not present in Drawing.
at Drawing._validateRequiredField (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/abstract.js:1)
at Drawing.validate (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/abstract.js:1)
at Function._onCreate (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/embedded.js:1)
at async Socket.handleEvent (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/sockets.js:1)
_handleError @ foundry.js:3780
(anonymous) @ foundry.js:3761
n.onack @ index.js:83
n.onpacket @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.ondecoded @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
a.add @ index.js:83
n.ondata @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.onPacket @ index.js:83
(anonymous) @ index.js:83
n.emit @ index.js:83
n.onPacket @ index.js:83
n.onData @ index.js:83
ws.onmessage @ index.js:83
foundry.js:3777 Uncaught (in promise) Error: Required field type not present in Drawing.
at Drawing._validateRequiredField (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/abstract.js:1)
at Drawing.validate (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/abstract.js:1)
at Function._onCreate (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/database/odm/embedded.js:1)
at async Socket.handleEvent (usr/lib/forgevtt/releases/foundryvtt-0.7.7/dist/sockets.js:1)

This problems occurs in conjunction with Multilevel Tokens and The Furnace.

Yes, Larkin is correct. It is the "advanced drawing tools" of furnace and terrain layer creating this issue.

Yes, Larkin is correct. It is the "advanced drawing tools" of furnace and terrain layer creating this issue.


Expose detailed Ecobee equipment status

Description:
Expose the running equipment status as an attribute. Currently, equipment status is parsed to a generic heat/cool/idle operation mode. I want to be able to get the detailed list of running equipment to differentiate between compressor stages. For example it will now have attributes:
...
fan: on
operation: heat
equipment_running: fan,heatPump2
...

Related issue (if applicable): n/a
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8414
Example entry for configuration.yaml (if applicable):
n/a

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Will equipment_status be better?

@nhorvath,
Will adding the additional modes fix #18244?

@ZetaPhoenix no this is information only. FWIW I don't see the green shaded area at all on my ecobee graph. Perhaps because I keep mine set to auto, not heat.

@ZetaPhoenix now it does...

Actually, this seems to break the Operation dropdown in the UI if the mode was Auto. It seems that dropdown uses state instead of the operation attribute. I'm going to revert it. Sorry @ZetaPhoenix


Possibility for a Docker file

Can we have a Docker file and export this to docker hub or some place so people have an easier time hosting this? I can take up this task if you want as it sounds easy and could benefit people a lot. Or even better export the Docker as a package directly to Github Packages.

Absolutely, thank you for the PR!


Please add ingress

We do not have load balancer integration on our internal clusters, instead we usually use ingress (nginx). Most helm charts have the same ingress template.  We will look into adding it too.

@TJM Have you been able to get ingress working? There was a small issue with ingress and HTTPS which has been resolved today with the release of v0.5.5. If you want, feel free to open a PR to add ingress to the Helm chart.

v0.5.5  does not seem to help having a working https ingress (hard reference to http in the code)

@mscbpi I think I have fixed the last full references by changing them to relative links (Laravel generates full URL's by default). If you'd be willing you could try the development build v0.5.5a-devel which should run correctly behind https ingress I believe.

@dnix101  sorry I was wrong: using v0.5.4 despite of upgrading the chart, because version was hardcoded in the values.yaml I use.
https works with v0.5.5 however settings/PSO page returns 500 Server Error (works with v0.5.4), no logs. Works again with v0.5.5a-devel
Using latest pso v6.0.2 version.

@mscbpi thanks for the update. In the meanwhile the helm chart and container image have been updated to 0.5.5a which fixes the 500 server error. The image tag to use for your values.yaml is v0.5.5a.

@mscbpi thanks for the update. In the meanwhile the helm chart and container image have been updated to 0.5.5a which fixes the 500 server error. The image tag to use for your values.yaml is v0.5.5a.

Sorry, I got sidetracked into another project (artifactory upgrades)... I do still want to see ingress on this :)

@TJM good news, I'm working on this in branch ingress. Just need to test a bit more before I merge.

@TJM the new release v0.5.6 now includes the ingress definitions which can be enabled using the Helm Chart / values.yaml.


Can I use ethernet or serial port to do remote debugging on WOA system?

Can I use ethernet or serial port to do remote debugging on WOA system?
[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 285cb5be-ed6f-aa62-79b3-c00ab1841eb2
Version Independent ID: 7fc06c4a-3faa-69a1-1fdf-997bb4e1f166
Content: Setting Up Kernel-Mode Debugging over USB EEM on an ARM device using KDNET - Windows drivers
Content Source: windows-driver-docs-pr/debugger/setting-up-kernel-mode-debugging-over-usb-eem-arm-kdnet.md
Product: windows-hardware
Technology: debugger
GitHub Login: @DOMARS
Microsoft Alias: domars

@HCHuang1971 - Thanks for reaching out to our team. This particular mechanism is monitored by the men and women who write the driver documentation posted on doc.microsoft.com. Unfortunately, we don’t have the resources to provide support on the use of the debugger.
Your best bet is to use one or both of the two really good forums where other driver developers and Microsoft engineers can be found. The first is Microsoft Q&A. The other is the OSR NTDEV forum. You can post your question there, and like-minded developers usually give feedback fairly quickly.
Again, thanks for reaching out. Best of luck with this issue.


TS-5019: Add header length checks in HPACK

Looks good.

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/1010/ for details.

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1116/ for details.

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1117/ for details.

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/1011/ for details.


Content migration: Moves wiki plugin directory to MCO docs

This commit provides a new directory for the plugins previously hosted on the Redmine wiki.
There may be some issues with formatting, but we need to move ahead with the migration to expedite the wiki content migration.

Waiting for CLA signature by @pdxmph
@pdxmph - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppetlabs.com/
Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppetlabs.com/community/trivial_patch_exemption.html

CLA signed by all contributors.


使用 Terra Bridge 将 UST 从 BSC 发送到 TERRA，但仍未收到

交易hash：0x37f90347946bd4b04c8995fd9aa9362d2a7b8432bfc7daafcff87682a8679f40，
我已经跨链了4个小时，一直无法到账，请处理。谢谢！

Hello @chaitao456  , A support ticket has been opened for you, with support ticket ID FLV9829. Talk to a Terra Dev on the Live support page so that you can get a response and transaction looked into. Thank you. CLICK HERE

交易hash：0x37f90347946bd4b04c8995fd9aa9362d2a7b8432bfc7daafcff87682a8679f40， 我已经跨链了4个小时，一直无法到账，请处理。谢谢！

Hello, A support ticket has been opened for you with Support ticket number NB366EG. You should talk to a Terra money Dev on the LIVE SUPPORT PAGE So that your issue can be looked into. Thank you. CLICK HERE

我的地址：terra1vn39vs08kgc8ca5cp3m3j8ejtnltymp85ahgrm

已经到账了，感谢处理


Add possibility to control used tasks from UserParams

Add possibility to control used tasks from UserParams.
Based on PR: #212 and should be accepted after that PR.
I didn't test it much, but did small tests by hand and it semms to work.
Because of limits of current JPetOptionsTools/json tasks to use are stored in vector, not vector of vectors/key pair values e.g.:

"JPetManager_useTasks_std::vectorstd::string": ["FilterEvents", "reco.unk.evt", "sino.mc", "SinogramCreatorMC", "sino.mc", "sino.mc.r"]

Found 5 violations:
Reporter: root-6-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManager.h L45
Technically the member function 'JPetManager::parseCmdLine' can be static.. The member function 'JPetManager::parseCmdLine' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-6-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManager.h L100
Technically the member function 'JPetManager::parseCmdLine' can be static.. The member function 'JPetManager::parseCmdLine' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-6-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManager.h L85
Technically the member function 'JPetManager::registerDefaultTasks' can be static.. The member function 'JPetManager::registerDefaultTasks' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-6-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManager.h L144
Technically the member function 'JPetManager::registerDefaultTasks' can be static.. The member function 'JPetManager::registerDefaultTasks' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-6-cppcheck
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 5 violations:
Reporter: root-5-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManager.h L45
Technically the member function 'JPetManager::parseCmdLine' can be static.. The member function 'JPetManager::parseCmdLine' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-5-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManager.h L100
Technically the member function 'JPetManager::parseCmdLine' can be static.. The member function 'JPetManager::parseCmdLine' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-5-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManager.h L85
Technically the member function 'JPetManager::registerDefaultTasks' can be static.. The member function 'JPetManager::registerDefaultTasks' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-5-cppcheck
Rule: functionStatic
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManager.h L144
Technically the member function 'JPetManager::registerDefaultTasks' can be static.. The member function 'JPetManager::registerDefaultTasks' can be made a static function. Making a function static can bring a performance benefit since no 'this' instance is passed to the function. This change should not cause compiler errors but it does not necessarily make sense conceptually. Think about your design and the task of the function first - is it a function that must not access members of class instances?

Reporter: root-5-cppcheck
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 1 violations:
Reporter: cppcheck-raporter
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/J-Pet-Framework-matrix-job/boost_version/boost_1_58/gcc_version/gcc-5.4.0/root_version/root_v6.08.06/src/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 1 violations:
Reporter: cppcheck-raporter
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/J-Pet-Framework-matrix-job/boost_version/boost_1_58/gcc_version/gcc-5.4.0/root_version/root_v6.08.06/src/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 2 violations:
Reporter: root-6-cppcheck
Rule: noExplicitConstructor
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetManager/JPetManagerTest.cpp L26
Class 'TestTask' has a constructor with 1 argument that is not explicit. Such constructors should in general be explicit for type safety reasons. Using the explicit keyword in the constructor means some mistakes when using the class can be avoided.

Reporter: root-6-cppcheck
Rule: unusedFunction
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetCommonTools/JPetCommonTools.cpp L70
The function 'currentDateTime' is never used.

Found 1 violations:
Reporter: cppcheck-raporter
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/J-Pet-Framework-matrix-job/boost_version/boost_1_58/gcc_version/gcc-5.4.0/root_version/root_v6.08.06/src/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 2 violations:
Reporter: root-5-cppcheck
Rule: noExplicitConstructor
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetManager/JPetManagerTest.cpp L26
Class 'TestTask' has a constructor with 1 argument that is not explicit. Such constructors should in general be explicit for type safety reasons. Using the explicit keyword in the constructor means some mistakes when using the class can be avoided.

Reporter: root-5-cppcheck
Rule: unusedFunction
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetCommonTools/JPetCommonTools.cpp L70
The function 'currentDateTime' is never used.

I added missing tests.

Found 1 violations:
Reporter: root-6-cppcheck
Rule: unusedFunction
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-6/Core/JPetCommonTools/JPetCommonTools.cpp L71
The function 'currentDateTime' is never used.

Found 1 violations:
Reporter: cppcheck-raporter
Rule: unmatchedSuppression
Severity: INFO
File: /var/jenkins_home/workspace/J-Pet-Framework-matrix-job/boost_version/boost_1_58/gcc_version/gcc-5.4.0/root_version/root_v6.08.06/src/Core/JPetManager/JPetManager.cpp L116
Unmatched suppression: unusedFunction

Found 1 violations:
Reporter: root-5-cppcheck
Rule: unusedFunction
Severity: INFO
File: /var/jenkins_home/workspace/j-pet-framework-PRs-root-5/Core/JPetCommonTools/JPetCommonTools.cpp L71
The function 'currentDateTime' is never used.


Add tests for check_http

Add tests for check_http. This also exposed some code that was logically unused in the CheckHTTP(). This code was removed for this PR.

Codecov Report

Merging #144 into master will increase coverage by 7.33%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #144      +/-   ##
==========================================
+ Coverage   76.41%   83.75%   +7.33%
==========================================
  Files          17       17
  Lines         564      560       -4
==========================================
+ Hits          431      469      +38
+ Misses        133       91      -42

Impacted Files
Coverage Δ

lib/app/nagiosfoundation/check_http.go
100% <100%> (+100%)
:arrow_up:

Continue to review full report at Codecov.

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


What each state signifies in Grid World

I understand that state_size is 15. Could you please elaborate on what each of the 15 values denote or signify?
Thanks,
Akilesh

Hi, Akilsesh.

Relative position of arrival point (x, y)
Label of destination
Relative position of the obstacle to the agent (x, y)
Labels of obstacles
Speed of Obstacle

3),4),5) for each obstacle. so the sum of them is 12.

for 2 and 2) for 1.

Total sum of state_size is 12+2+1 = 15.
Thanks,
Akilesh.

Hi Hyeokreal,
Thanks for your response. I specifically need help in understanding this portion of the code in get_state() function of environment.py
for reward in self.rewards:       reward_location = reward['state']       states.append(reward_location[0] - agent_x)       states.append(reward_location[1] - agent_y)
Could you please explain what's it trying to do?
Thanks,
Akilesh

Thanks Hyeokreal.


updated various files

updated various files, added dark mode, enhanced view
Type of change:

[x] Bug fix
[x] New feature
[ ] Breaking change
[x] Enhancement

Checklist:

[x] I have tested my changes and verified that they work
[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

@ABHISIKTAcommits resolve the merger conflicts

@Yashgabani845 I've resolved ma'am.... You can check


AssemblyResolutionException System.Runtime

When trying to repack a console application on OS-X which includes the nuget package Microsoft.Extensions.DependencyInjection.Abstractions I get:
INFO: IL Repack - Version 2.0.10
INFO: Adding assembly for merge: ILRepackRepro/bin/Debug/ILRepackRepro.exe
INFO: Adding assembly for merge: ILRepackRepro/bin/Debug/Microsoft.Extensions.DependencyInjection.Abstractions.dll
ERROR: Failed to load assembly ILRepackRepro/bin/Debug/Microsoft.Extensions.DependencyInjection.Abstractions.dll
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at ILRepacking.ILRepack.ReadInputAssembly (System.String assembly, Boolean isPrimary) <0x1c08a00 + 0x005d3> in <filename unknown>:0
  at ILRepacking.ILRepack.ReadInputAssemblies () <0x1c06cf8 + 0x000f7> in <filename unknown>:0
  at ILRepacking.ILRepack.Repack () <0x1bb16e0 + 0x0012f> in <filename unknown>:0
  at ILRepacking.Application.Main (System.String[] args) <0x1796f70 + 0x00123> in <filename unknown>:0

Doing the same on Windows works fine.
A simple solution demonstrating this issue can be found here: https://github.com/jonstoneman/ILRepackRepro
The OS-X repack command I am using is mono packages/ILRepack.2.0.10/tools/ILRepack.exe /out:ILRepackRepro.exe /wildcards ILRepackRepro/bin/Debug/ILRepackRepro.exe ILRepackRepro/bin/Debug/*.dll.

I don't have a MAC platform to test on, do you think you can debug it through ? supposedly this code should add the right platform folders to the search paths (probably Facades subfolder is the one including System.Runtime.dll).
You can also give a try to adding /lib:FOLDER option, pointing to the right platform folder (which includes the above dll).
Thx

Both Options.TargetPlatformDirectory and Options.TargetPlatformVersion are null.  ResolveSearchDirectories() is not registering any directories with the GlobalAssemblyResolver so it still contains only . and bin.
When using /lib:/Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5 (which contains what I believe is the correct System.Runtime.dll) the repack command succeeds and the generated exe runs.
I've updated repack.sh in my repro and also modified the application so that DependencyInjection.Abstractions is being used at runtime.
> mono ./ILRepackRepro.exe
Hello World! a, b

I just had a quite identical issue, and i managed to get it though thanks to this thread.
Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'System.Diagnostics.Debug, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x000f7] in :0
I used a /lib switch to the correct folder and it worked fine. And like jonstonemann no problem under Windows.
mono "/Users/me/Projects/myproj/packages/ILRepack.2.0.12/tools/ILRepack.exe" /lib:/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/xbuild-frameworks/.NETPortable/v4.5 /out:"my.Data.dll" "my.Data.dll" "fr/my.Data.resources.dll"

This should work in the latest version


Removed never-read inErrorState from index.js

Fixes #461.

This seems to have been added in 9c60d320 / #127, and then not properly cleaned up in e3f9d0193bdf2f8ce03912959fb762a56e908426 / #138.
(note, for future reference, there's no need to create an issue for stuff like this :-) )


I can't pull my image although login successful.

** I cant`t pull my images to Harbor , I alrealy try all the solution . Actualy, I could login success, Then I try to pull the image, But always  print  logs about this
"Error response from daemon: pull access denied for [IP]:5000/v2/lib/redis, repository does not exist or may require 'docker login'" **

docker version
Docker version 17.12.0-ce, build c97c6d6

docker-compose  version
docker-compose version 1.18.0, build 8dd22a9

harbor.cfg

`
Configuration file of Harbor
#The IP address or hostname to access admin UI and registry service.
#DO NOT use localhost or <IP_ADDRESS>, because Harbor needs to be accessed by external clients.
hostname = [IP]
#The protocol for accessing the UI and token/notification service, by default it is http.
#It can be set to https if ssl is enabled on nginx.
ui_url_protocol = http
#The password for the root user of mysql db, change this before any production use.
db_password = root123
#Maximum number of job workers in job service
max_job_workers = 3
#Determine whether or not to generate certificate for the registry's token.
#If the value is on, the prepare script creates new root cert and private key
#for generating token to access the registry. If the value is off the default key/cert will be used.
#This flag also controls the creation of the notary signer's cert.
customize_crt = on
#The path of cert and key files for nginx, they are applied only the protocol is set to https
ssl_cert = /data/cert/server.crt
ssl_cert_key = /data/cert/server.key
#The path of secretkey storage
secretkey_path = /data
#Admiral's url, comment this attribute, or set its value to NA when Harbor is standalone
admiral_url = NA
#NOTES: The properties between BEGIN INITIAL PROPERTIES and END INITIAL PROPERTIES
#only take effect in the first boot, the subsequent changes of these properties
#should be performed on web ui
#BEGIN INITIAL PROPERTIES
#Email account settings for sending out password resetting emails.
#Email server uses the given username and password to authenticate on TLS connections to host and act as identity.
#Identity left blank to act as username.
email_identity =
email_server = smtp.mydomain.com
email_server_port = 25
email_username =<EMAIL_ADDRESS>email_password = abc
email_from = admin<EMAIL_ADDRESS>email_ssl = false
##The initial password of Harbor admin, only works for the first time when Harbor starts.
#It has no effect after the first launch of Harbor.
#Change the admin password from UI after launching Harbor.
harbor_admin_password = Harbor12345
##By default the auth mode is db_auth, i.e. the credentials are stored in a local database.
#Set it to ldap_auth if you want to verify a user's credentials against an LDAP server.
auth_mode = db_auth
#The url for an ldap endpoint.
ldap_url = ldaps://ldap.mydomain.com
#A user's DN who has the permission to search the LDAP/AD server.
#If your LDAP/AD server does not support anonymous search, you should configure this DN and ldap_search_pwd.
#ldap_searchdn = uid=searchuser,ou=people,dc=mydomain,dc=com
#the password of the ldap_searchdn
#ldap_search_pwd = password
#The base DN from which to look up a user in LDAP/AD
ldap_basedn = ou=people,dc=mydomain,dc=com
#Search filter for LDAP/AD, make sure the syntax of the filter is correct.
#ldap_filter = (objectClass=person)
The attribute used in a search to match a user, it could be uid, cn, email, sAMAccountName or other attributes depending on your LDAP/AD
ldap_uid = uid
#the scope to search for users, 1-LDAP_SCOPE_BASE, 2-LDAP_SCOPE_ONELEVEL, 3-LDAP_SCOPE_SUBTREE
ldap_scope = 3
#Timeout (in seconds)  when connecting to an LDAP Server. The default value (and most reasonable) is 5 seconds.
ldap_timeout = 5
#Turn on or off the self-registration feature
self_registration = on
#The expiration time (in minute) of token created by token service, default is 30 minutes
token_expiration = 30
#The flag to control what users have permission to create projects
#The default value "everyone" allows everyone to creates a project.
#Set to "adminonly" so that only admin user can create project.
project_creation_restriction = everyone
#Determine whether the job service should verify the ssl cert when it connects to a remote registry.
#Set this flag to off when the remote registry uses a self-signed or untrusted certificate.
verify_remote_cert = on
#END INITIAL PROPERTIES
#############
`

Could you share the docker pull command you used ?

Closing due to inactivity.


Time scales not working

Hello,
The bug is simple, the time scale is not working in the new releases (tested with 2.4.0 and latest 2.5.0), while it works with oldest versions like 2.0.2.
You can see the working example here: http://jsfiddle.net/prfd1m8q/
If you use the new verions with the exact same code it doesn't work.

Seems to work ok when the position of the axis is explicitly set http://jsfiddle.net/py1bpf02/

Hello etimberg,
I don't knwo if its a problem with my pc, but in you link I cannot see the graphic neither.
I attach a screenshot of your link.
Thanks for the response

Weird, it's not working now but I definitely got it working on my phone. I'll take a look when I'm at a computer

My fiddle had an error with the position set to ' bottom' instead of 'bottom'. Not sure what the issue is.

Hello,
Indeed I think the problem was the white space in the bottom declaration.
Change position:' bottom',  for position:'bottom',  and It should work.
Thank you very much for the quick answer.

👍
I've opened a PR to automatically correct the position for axes if it's wrong. For example, if an x axis has position 'left' that will be updated to 'bottom' to avoid these kinds of problems

PR in #3893 was merged to automatically correct axis positions that are knowingly wrong

I've recently come across this bug and it appears to still be an issue in IE 11 with version 2.6.0.


Fix parsing of typed input with use-utc=true

Date.parse assumes non-UTC dates by default, which results in incorrect date calculation with use-utc=true. As Date.parse itself has no UTC variant, fix this problem by appending " UTC" into the end of the date to designate the timezone of the parsed date string.
This fixed at least #666 and may also fix some other issues.

Coverage remained the same at 100.0% when pulling 453a27f118b4b5c259431cf201f356bd6bedd789 on ij1:typeable-utc-fix into de0fc75fe6f6572eebf47f94da20716ab7690cff on charliekassel:master.

Thanks for the fix!
This fix updates initial date throwing incorrect date when not passing in an initial date with use-utc=true.
Would we be able to get this merged in the next update @charliekassel ?


Add tags for past workshops

Add a tag at the last commit before giving a workshop

This is done. See: https://github.com/benmvp/react-workshop/tags


Freezing the page in Firefox

Describing the bug:
I'm having a problem using this library in Firefox, when I click the Export Button, the page freezes and does not download the PDF file. I also receive the following error message. happens when there are too many elements on the page.
here's my code:
   <button @click="exportToPDF">Export</button>

    <vue-html2pdf
      ref="html2Pdf"
      :show-layout="false"
      :float-layout="true"
      :enable-download="true"
      :paginate-elements-by-height="1400"
      :pdf-quality="2"
      pdf-format="a2"
      pdf-content-width="500"
      pdf-orientation="landscape">
      <template slot="pdf-content">

 CONTENT

 CONTENT

      </template>
    </vue-html2pdf>

Method for downloading the file:
   exportToPDF() {       this.$refs.html2Pdf.generatePdf();     },
Error:
Uncaught (in promise) Exception { name: "NS_ERROR_FAILURE", message: "", result:<PHONE_NUMBER>,
columnNumber: 0
data: null
filename: "/app/_nuxt/c9fb7d694eca1709a462.js"
lineNumber: 2
message: ""
}

Package Version: 1.8.0
Additional context:
Just happens in Firefox and works well on Chrome.
One thing that I realized is the following element covers the page so the result is freezing the page:

CONTENT

In my case, the issue happened because of the 'html2canvas' scale option. If that option has a value above 1.2, Firefox freezes and does not download the PDF.
in beforeDownload function i did this
 if (navigator.userAgent.indexOf("Firefox") != -1) {         options.html2canvas.scale = 1.2       }


Add builtins for some checked ops

Extend Aeneas's Lean library with checked operations on scalars (e.g. checked_add, checked_sub, etc.).

I guess you're fine if I push changes directly into your branch?

Of course! Let me know if I need to update its permissions.

I substantially modified the definitions. However, I added lemmas like core.num.checked_add_spec which should give your what you need (you might have to state and prove your own auxiliary lemmas, but it should be easy to prove them by using the core.num.checked_*_spec theorems).


Automating Non Regression Test : How to get a ref() to the deferred version of the selected model ?

Describe the feature
Based on the new --defer feature, one would like to automate non regression test (NRT), comparing local model data with the same deferred model data. How one could get the ref() of the deferred model to be given to a NRT macro comparing the common columns on the common primary key values ?
Describe alternatives you've considered
No alternative so far
Additional context
Who will this benefit?
All dbt users who want to automate non regression testing.
Are you interested in contributing this feature?
Yes !

Interesting idea, @fabrice-etanchaud! Based on how we've defined --defer to work in v0.18.0, a model can either be selected or deferred at runtime. I don't think the current behavior would support ref'ing the same node across multiple manifests.
That said, the foundational work here around artifact/state comparison—the surface of which we've just barely scratched—could totally make something like this possible in the future. Maybe we add a "defer" argument to ref, like "use the other one if it's available," such that we could code up a new audit-helper macro ???

Hi @jtcohen6 ,
currently I am using the macro below to check for non regression.
I use it in deferred mode, the unmanaged model is the dev model, and in order to ref the managed version of the same model (in production, for example), I have to mention the database, schema and identifier explicitly.
Having a way to use ref() instead would be imho a terrific feature. Is there any plan ?
Can I help ?
Best,
Fabrice
{% macro non_regression_test(unmanaged_model, managed_model_database, managed_model_schema, managed_model_identifier, pk) %}
-- depends_on: {{ ref(unmanaged_model) }}
{% set unmanaged_model = ref(unmanaged_model) %}
{% set managed_model = api.Relation.create(database=managed_model_database, schema=managed_model_schema, identifier=managed_model_identifier) %}
{% set managed_cols = adapter.get_columns_in_relation(managed_model) %}
{% set managed_colnames = managed_cols | map(attribute='name') | list %}
{% set unmanaged_cols = adapter.get_columns_in_relation(unmanaged_model) %}
{% set unmanaged_colnames = unmanaged_cols | map(attribute='name') | list %}
{% set pk_cols = managed_cols | selectattr('name', 'in', pk) | list %}
{% set pk_colnames = pk_cols | map(attribute='name') | list %}
{% set nrt_cols = unmanaged_cols | rejectattr('name', 'in', pk) | selectattr('name', 'in', managed_colnames) | list %}
{% set nrt_colnames = nrt_cols | map(attribute='name') | list %}

select
  md5(concat({{ columns_csv('managed', pk_cols, alias=false) }})) as tnr_id
  ,{{ columns_csv('managed', pk_cols) }}
  ,'difference' AS change_type
  ,{{ columns_csv('unmanaged', nrt_cols, prefix='unmanaged') }}
  ,{{ columns_csv('managed', nrt_cols, prefix='managed') }}
from {{ managed_model }} as managed
join {{ unmanaged_model }} as unmanaged
  on ({{ join_on_columns('managed', 'unmanaged', pk_cols) }})
where {{ columns_inequality('managed', 'unmanaged', nrt_cols) }}

union all

select
  md5(concat({{ columns_csv('managed', pk_cols, alias=false) }}))
  ,{{ columns_csv('managed', pk_cols, alias=false) }}
  ,'missing'
  ,{{ columns_csv('unmanaged', nrt_cols, prefix='unmanaged', nullify=true, alias=false) }}
  ,{{ columns_csv('managed', nrt_cols, prefix='managed', alias=false) }}
from
  {{ managed_model }} as managed
where not exists (
  select 1
  from {{ unmanaged_model }} as unmanaged
  where ({{ join_on_columns('unmanaged', 'managed', pk_cols) }})
)

union all

select
  md5(concat({{ columns_csv('unmanaged', pk_cols, alias=false) }}))
  ,{{ columns_csv('unmanaged', pk_cols, alias=false) }}
  ,'unexpected'
  ,{{ columns_csv('unmanaged', nrt_cols, prefix='unmanaged', alias=false) }}
  ,{{ columns_csv('managed', nrt_cols, prefix='managed', nullify=true, alias=false) }}
from
  {{ unmanaged_model }} as unmanaged
where not exists (
  select 1
  from {{ managed_model }} as managed
  where ({{ join_on_columns('managed', 'unmanaged', pk_cols) }})
)

{% endmacro %}

{%- macro columns_csv(model, columns, alias=true, prefix=none, nullify=false) -%}
    {%- for column in columns -%}
        cast(
        {%- if not nullify -%}
          {{ model }}.{{ column.name }}
        {%- else -%}
          null
        {%- endif %} as {{ column.data_type }}){% if alias %} as
        {%- if prefix is not none %} {{ prefix }}_{%- else %} {% endif -%}{{ column.name }}{% endif %}
        {%- if not loop.last %}, {% endif -%}
    {% endfor -%}
{%- endmacro -%}

{%- macro join_on_columns(model1, model2, columns) -%}
    {%- for column in columns -%}
        {{ model1 }}.{{ column.name }} = {{ model2 }}.{{ column.name }}
        {%- if not loop.last %} and {% endif -%}
    {%- endfor -%}
{%- endmacro -%}

{%- macro columns_inequality(model1, model2, columns) -%}
    {%- for column in columns -%}
      {{ model1 }}.{{ column.name }} is distinct from {{ model2 }}.{{ column.name }}
      {% if not loop.last %} or {% endif -%}
    {%- endfor -%}
{%- endmacro -%}

Okay, here's what I'm thinking about:
A builtin defer_ref() macro. By default, it works exactly the same as ref(). In the event that you've passed --state, however, it will instead resolve to the namespace of the referenced relation provided by the state-comparison manifest.
It would be a close cousin of --defer, with two distinctions:

Finer-grained control. This macro says, "For one specific resource, I would like to defer its reference if possible." The --defer flag, by contrast, defers references for all unselected resources. In this world, we could think about the CLI flag as "switching" ref calls to defer_ref calls depending on the node selection criteria.
The ability to defer a self-reference. Using defer_ref(this.name), it would be possible to get this model from the other namespace. Then your regression check could look like:

{{ audit_helper.compare_relations(
    a_relation=this,
    b_relation=defer_ref(this.name),
    exclude_columns=[],
    primary_key="id"
) }}

What do you think @fabrice-etanchaud?

Hello @jtcohen6 , this is why I really love dbt : it's not only efficient, but also elegant !
Non regression tests could be written as simply as you already stated.
The problem is : my coworkers will not believe it, as they currently use ultracompare and a pair of eyes for that ;-)
Thank you Jeremy, have a nice week.

I'm also interested in non-regression tests (new term to me, thanks @fabrice-etanchaud!) and followed the rabbit-hole to here. :-)
During a dbt run in support of a non-regression test, I would also like a run-time option for my ref() to be switched with its normal parent node to a "test" node.
The strength of the --defer flag seems to be that ref() is able to be switch between namespaces, and makes it appealing for this use-case. However, the --defer flag appears to me to have been built with a different intention. So I question whether --defer provides the right mindset for non-regression testing.
Going a little off-topic from --defer... I was toying with this idea today in Jaffle Shop to "intercept" the ref() call and return a static dataset during dbt --run:
{% macro ref(model_name) %}
    {% if model_name == 'dim_customers' %}
        (
            select 1 as customer_id<EMAIL_ADDRESS>as email union all
            select 2 as customer_id<EMAIL_ADDRESS>as email
        )
    {% elif model_name == 'raw_customers' %}
        (
            select 1 as id, 33 as customer_lifetime_value union all
            select 2 as id, 23 as customer_lifetime_value
        )
    {% else %}
        {% do return(builtins.ref(model_name)) %}
    {% endif %}
{% endmacro %}

And the data test would look like:
{% set test_dataset_query %}
select<EMAIL_ADDRESS>as email, 33 as customer_lifetime_value union all
select<EMAIL_ADDRESS>as email, 23 as customer_lifetime_value
{% endset %}

{% set query_under_test %}
select
    email,
    customer_lifetime_value
from {{ ref('dim_customers') }} as dim_customers
left join {{ ref('raw_customers') }} as raw_customers
    on raw_customers.id = dim_customers.customer_id
{% endset %}

{{ audit_helper.compare_queries(
    a_query=test_dataset_query,
    b_query=query_under_test,
    primary_key="email"
) }}

The downside of this being that ref() macro will get quite unwieldy, so am thinking some other way is better. Lmk what you think!

@boxysean I really like the connections coming out of this issue—I'm finding this problem space very generative, even though I'm not yet sold on any one solution in particular (including my hypothetical defer_ref idea above).
I too was thinking about mock data today, having spent some time this morning writing out #2857 and thinking about improved UX for dbt test. You've just closed a mental loop for me.
Imagine that, for each important_model you want to test, you have a seed file named mock__important_model.csv. Here's something that is possible today by overriding the ref() macro:
{% macro ref(model_name) %}
  {% if var('mock', false) %}
    {% set rel = builtins.ref('mock__' ~ model_name) %}
  {% else %}
    {% set rel = builtins.ref(model_name) %}
  {% endif %}
  {% do return(rel) %}
{% endmacro %}

Then dbt test --vars 'mock: true' would execute your tests against the mock data instead. That feels a bit silly, since it's really just unit testing the SQL of your tests, but if you have a number of custom schema and data tests, it could be valuable. (The way I've written it above does presume that you'd have a mock__ seed for every model, which may be unrealistic, so it'd need a bit of tweaking.)
Even more interesting would be overriding the source() macro, with the opportunity to do fancier things for our incremental model or snapshot logic:
{% macro source(source_name, table_name) %}

  {% if var('mock', false) %}
    {% set src = builtins.ref('mock__' ~ source_name ~ '__' ~ table_name) %}
  {% elif var('mock', false) and var('mock_update', false) %}
    {% set src = builtins.ref('mock_update__' ~ source_name ~ '__' ~ table_name) %}
    {% set src = builtins.source(source_name, table_name) %}
  {% endif %}
  {% do return(src) %}

{% endmacro %}

You could then easily run an entire DAG of transformations and tests on top of fixture data, including equality tests against "expected" results. That's more or less how we run integration tests for open source dbt packages such as dbt_utils and snowplow.
In my personal view, I think that's more trouble than it's worth at most organizations—automatically generating realistic and up-to-date fake data is a massive undertaking—but I know that a rigorous and extensible unit testing framework is on the minds of several community members. Over in #2593, @bashyroger kindly linked me to a quite thoughtful post about what's missing from dbt testing today, and I've been mulling it over for the past month. In particular:

There is no tool to let us deterministically re-create a set of conditions, execute our code and validate the output. That is a basic definition of what tests are, yet we struggled to achieve the same with the so-called tests in dbt.

I think that piece would be possible with the custom ref/source override above. The requirement would be having mock data CSVs that are stable and stored in the data/ folder, or an external orchestration process that can generate on-the-fly CSVs (e.g. with faker) in advance of dbt seed. (Admittedly, this approach wouldn't do anything in the direction of a Gherkin / behave interface, but I do have things in mind to improve the UX of defining custom schema and data tests.)
Speaking of interesting connections, @fabrice-etanchaud, I'd be curious to hear more about how you see this tying into schema awareness. Is it the ability to compare adapters.get_column_in_relation(this) and adapters.get_column_in_relation(defer_ref(this.name))? What about PRs when you're intentionally changing the schema of a model, compared to the version currently in production?

@jtcohen6 , you are right, testing that schema is not evolving between prod and dev is not an model "invariant" test, but an ad hoc test. There are discussions elsewhere on how to build a schema repository, that's for sure the way to go.
Best

I have been playing around with a way to automate this and I have a working concept here: https://github.com/jmriego/dbt-bdd
The tests are run with behave which is a library for BDD testing which in my opinion is a great fit for DBT as it makes the tests easy to understand by analysts the same way it already does for ELT.
Here's an example unit test for a model that counts number of days in a month:
  Scenario: run a sample unit test
     Given calendar is loaded with this data
         | dt         | first_day_of_month |
         | 2020-01-01 | 2020-01-01         |
         | 2020-01-02 | 2020-01-01         |
         | 2020-02-02 | 2020-02-01         |
      When we run the load for fom
      Then the results of the model are
         | first_day_of_month | count_days |
         | 2020-01-01         | 2          |
         | 2020-02-01         | 1          |

The main trick is that the phrase "calendar is loaded with this data" will generate a seed file with that info and with a name specific to this test that it generates automatically. It does that with a scenario id prefix (i.e. abcd124_calendar).
Then, it will replace all ref to calendar with abcd124_calendar. This is really the main trick and I didn't find a better solution, but it does so by passing to dbt a var with the following key and value: {calendar: abcd124}. The code that detects the reference is here: https://github.com/jmriego/dbt-bdd/blob/master/macros/ref.sql
Before spending too much time on this, what do you all think of this approach? Does it make sense to continue in this direction?

@jmriego This looks cool! We played around with using behave to sketch out a few very basic sequences over in dbt-integration-tests. For a time, that was the repo used for testing adapter plugins, until we built a dedicated one with pytest.
Out of curiosity, why the need for the scenario ID prefix? We do something very similar for dbt integration tests, so as to reuse the same set of models while avoiding database namespace collisions across scenarios or testing invocations. If that's your reason as well, could you simply pass {{ var('scenario') }} into the alias config of those models?
Taking a step back, it would be great to move this line of conversation over to #2354, or into discourse. I think there's a lot of folks who are interested in the broader concept of unit testing / fixed data testing with dbt, and currently we've got various thoughts spread across long threads, tucked under niche feature requests.

@jmriego This looks cool! We played around with using behave to sketch out a few very basic sequences over in dbt-integration-tests. For a time, that was the repo used for testing adapter plugins, until we built a dedicated one with pytest.
Out of curiosity, why the need for the scenario ID prefix? We do something very similar for dbt integration tests, so as to reuse the same set of models while avoiding database namespace collisions across scenarios or testing invocations. If that's your reason as well, could you simply pass {{ var('scenario') }} into the alias config of those models?
Taking a step back, it would be great to move this line of conversation over to #2354, or into discourse. I think there's a lot of folks who are interested in the broader concept of unit testing / fixed data testing with dbt, and currently we've got various thoughts spread across long threads, tucked under niche feature requests.

thanks @jtcohen6 !
you're right, the idea about the scenario id prefix is to avoid collisions across scenarios. Passing a variable into the alias config sounds like would be simpler but I'm not sure how to do that. Can you give me a bit more info about how would that work? Where should that change be made(every model .sql file, changing the ref function)?
I'll continue the conversation in those two places. It would be great to have dbt have this kind of capability

thanks @jtcohen6 !
you're right, the idea about the scenario id prefix is to avoid collisions across scenarios. Passing a variable into the alias config sounds like would be simpler but I'm not sure how to do that. Can you give me a bit more info about how would that work? Where should that change be made(every model .sql file, changing the ref function)?
I'll continue the conversation in those two places. It would be great to have dbt have this kind of capability

@jmriego I think a custom generate_alias_name macro (docs) could be a big help to you here:
{% macro generate_alias_name(custom_alias_name=none, node=none) -%}
    {%- if custom_alias_name is none -%}
        {% set model_name = node.name %}
    {%- else -%}
        {% set model_name = custom_alias_name | trim %}
    {%- endif -%}
    {% set prefixed = var('scenario') ~ '_' ~ model_name %}
    {{ return(prefixed) }}
{%- endmacro %}

@jmriego I think a custom generate_alias_name macro (docs) could be a big help to you here:
{% macro generate_alias_name(custom_alias_name=none, node=none) -%}
    {%- if custom_alias_name is none -%}
        {% set model_name = node.name %}
    {%- else -%}
        {% set model_name = custom_alias_name | trim %}
    {%- endif -%}
    {% set prefixed = var('scenario') ~ '_' ~ model_name %}
    {{ return(prefixed) }}
{%- endmacro %}


盘符显示打不开

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS Version: [e.g. Windows 10 1903 18362.175]
App version: [v0.11.0]

Additional context
Add any other context about the problem here. Does this problem occur again after restarting the app?

Please describe your problem in details.

可以详细描述一下您遇到的问题吗？

Thanks for your feedback. We're having trouble understanding what you're requesting and need additional information to investigate this item. Please re-open when you've filled out the issue template to the best of your ability.


vagrant: 2.0.4 -> 2.1.1

vagrant informs user new version is available,
so thought I'd give updating it a try :).

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

It seems to work in my limited testing,
would be good to be vetted by someone else.

@grahamc -- is this something you can review, and if not perhaps suggest someone who can? Thanks! :)

Success on x86_64-linux (full log)
Attempted: vagrant
Partial log (click to expand)
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/bin/vagrant.orig: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/169rsknriyc5jml82c2wjsgizyffxa8y-ruby-2.4.4/bin/ruby"
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/bin/vagrant: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/169rsknriyc5jml82c2wjsgizyffxa8y-ruby-2.4.4/bin/ruby"
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/.runner.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/3r4wp5drzynkz6hccmjpifkzwgqbs5nb-bash-4.4-p19/bin/bash"
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/scripts/website_push_docs.sh: interpreter directive changed from "/bin/bash" to "/nix/store/3r4wp5drzynkz6hccmjpifkzwgqbs5nb-bash-4.4-p19/bin/bash"
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/scripts/website_push_www.sh: interpreter directive changed from "/bin/bash" to "/nix/store/3r4wp5drzynkz6hccmjpifkzwgqbs5nb-bash-4.4-p19/bin/bash"
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/scripts/sign.sh: interpreter directive changed from "/bin/bash" to "/nix/store/3r4wp5drzynkz6hccmjpifkzwgqbs5nb-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1...
running install tests
Vagrant smoke check passed
/nix/store/qyhx5b117h6yzvk7a8dlp8z7jrf5hvwd-vagrant-2.1.1

Failure on x86_64-darwin (full log)
Attempted: vagrant
Partial log (click to expand)
Result: FAIL
make[1]: *** [Makefile:47: prove] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-git-2.17.0.drv-0/git-2.17.0/t'
make: *** [Makefile:2484: test] Error 2
builder for '/nix/store/25scl53sq8xv1alp08rhmm862f5b626x-git-2.17.0.drv' failed with exit code 2
cannot build derivation '/nix/store/xd631754ax21zcndf3annsckfpshhdvy-vagrant-b95e42a.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/hkbvh8clnvjz800rv0y8s0d3q5jjgnfp-ruby2.4.4-vagrant-2.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7axxxap3v8pzrnjiq025al15hdihkpn4-vagrant-2.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/sbkcwrdgfxh3viy0m9p60j0ivliwx54h-vagrant-2.1.1.drv': 2 dependencies couldn't be built
error: build of '/nix/store/sbkcwrdgfxh3viy0m9p60j0ivliwx54h-vagrant-2.1.1.drv' failed

Success on aarch64-linux (full log)
Attempted: vagrant
Partial log (click to expand)
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/scripts/sign.sh: interpreter directive changed from "/bin/bash" to "/nix/store/vnb8q2h7951gd551nm2vq2g6n8296g5b-bash-4.4-p19/bin/bash"
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/plugins/provisioners/salt/bootstrap-salt.sh: interpreter directive changed from "/bin/sh -" to "/nix/store/vnb8q2h7951gd551nm2vq2g6n8296g5b-bash-4.4-p19/bin/sh -"
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/plugins/hosts/darwin/scripts/install_virtualbox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/vnb8q2h7951gd551nm2vq2g6n8296g5b-bash-4.4-p19/bin/bash"
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/bin/vagrant.orig: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/qfh0axi55q9aqzb4i5h1i9g2x9hyr68z-ruby-2.4.4/bin/ruby"
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/bin/vagrant: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/qfh0axi55q9aqzb4i5h1i9g2x9hyr68z-ruby-2.4.4/bin/ruby"
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1/lib/ruby/gems/2.4.0/gems/vagrant-2.1.1/.runner.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vnb8q2h7951gd551nm2vq2g6n8296g5b-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1...
running install tests
Vagrant smoke check passed
/nix/store/09kc8b50qjv7r5nwwnw6hkkjzc8ahsvk-vagrant-2.1.1

Closing in favor of #40972.


Clean-up stale debug code

The code to be cleaned up was for debugging a bug that has been resolved. When we cleaned corresponding code this particular one was left behind. This PR completes the clean-up.

keep

Could someone give this PR a review and merge it in? @markdroth @yashykt

Looks like sanity is failing.  You need to run clang_format_code.sh.

Please squash your commits, and I'll get this merged.  Thanks!

@markdroth - that is done, Mark. Please merge it in. Thanks!


Feature request "execute on paste with trailing line feed".

Please consider a setting "execute on paste with trailing line feed".
Currently a command will not execute when pasting text with a trailing LF (or CRLF).
This is a good feature for preventing unintentional execution, however there are times when this is desired.
When many commands are being pasted into the console, and pressing "Enter" is needed for each, it becomes cumbersome.
Any chance the setting "execute on paste with trailing line feed" (or similar) might be considered?
When pasting a command (text) with a trailing line feed, that command should be executed immediately.

Thanks for the feature request! However, I believe you can already do this:

Open settings (Ctrl+,)
Click "Open JSON file" in the bottom left
Add the following lines to the outer-most JSON object:"trimPaste": false,
"multiLinePasteWarning": true,

Let me know if that doesn't work for you.

Before:
"trimPaste": false,
"multiLinePasteWarning": false,
Since this was in the email notification of this request being updated, I tried:
"trimPaste": false,
"multiLinePasteWarning": true,
Then I thought "no I do not want that warning".
Back to:
"trimPaste": false,
"multiLinePasteWarning": false,
..  ..  and now it works..  ..  What the..???
Seems that me flipping multiLinePasteWarning has given it a kick along, and now it is behaving as expected.
Originally: false
Then: true
Then: false
No other changes. That's very strange behavior.

That's very strange behavior.

I hope we can fix that soon! But that aside, I'm happy to hear that it's now working for you. I'll close the issue then. 🙂


Wildcard Route

Is it possible to create a wildcard route?
Like:
Picker.route('/*', function() { })
Thanks!

to match all routes, i think you can do :
Picker.route('(.*)', function() { })


FIX MEGABIG README ERROR

many deaths will be avoided if this is merged

hope this hasn't caused many deaths already

This is why I love following this project 😆


Calculation error in dashboard: complete number is not the total of all visible numbers

Bug
Calculation error in dashboard: complete number is not the total of all visible numbers.
Note: we are not taking into account the "no department" one here.
Steps to reproduce

Go to dashboard
Go to datasets or publications
Count all records, for example for datasets: 39+4+6+11+3+1+1+5+12 = 82
Compare with total, for example for datasets: 78 VS 82

Datasets

Publications

@mietcls This isn't a bug. It's a question of "What exactly are we counting here?"
Some publications are associated with more then 1 faculty which causes them to become part of the count for multiple faculties.  However, the "all" column, shows the count for all discrete publications. Which will be a lower number because of de-duplication.
For instance, if a publication with number 12345 is tied to faculty WE and LW,  it will show  these numbers:
All = 1
WE = 1 (id: 12345)
LW = 1 (id: 12345)
If we have 2 publications, with one being associated with 1 faculty, and the other one being associated with 2 faculties:
All = 2
LW = 2  (id: 12345, id: 23456)
WE = 1 (id: 12345)
The "all" column just displays the exact number of unique publications across all faculties.  If you want the "all" column to match with the aggregate sum of the numbers for each faculty, then you're not counting unique publications, you're counting the number of relationships between publications and faculties. Which is a different thing.
The "all" row" is correct: it's the number of unique publications per faculty across all publication types (since publications can have only a single publication type).
The "all/all" cell in the top left also is a separate number from the aggregate totals of the faculties and the publication types in the "all" column and "all" rows. It's the grand total of all discrete publications which are Unclassified & belong to at least one of the faculties in the dashboard.
If this remains too confusing, we might need to rethink about renaming the "all" column / row header; or even split those off from the main table; or add a help / reminder text to make sure everyone understand how things are counted.

Ha! Interesting. Thank you.


Allow for multiple AppSync Api's in config

As per this issue: https://github.com/ConduitVC/aws-utils/issues/140
This PR allows for multiple API's in the YML config as this is supported by serverless-appsync-plugin
custom:
  appsync:
    - name: 'api 1'
       ...
    - name: 'api 2'

But not to make things too complex, only use the first api in the emulator for now... I'm not going to implement that support it's over and beyond what's needed.
I'm throwing a warning to stipulate that it's not supported and which API will be used in the emulator.

@barendb -- fantastic work!
Do you mind adding an update to the README and bumping the package patch version by 1?

@cbaron Updated :D


Add and Edit Area

Add panel to add a new area
Inline Edit experience for the area

Wendy did an over the shoulder review.


Fix spelling of "auxillary" in StaticIconName.java

Bug Report
The spelling of "auxillary" needs to be fixed in two places (including an actual type name) in the StaticIconName.java file.

Fixed with #1633


Is it possible to get the drive ID url of the uploaded file?

Hi Tanaike and people!,
I am doing great the code so far, but I am trying to get the url of the file I upload in GAS to be able to paste it into a cell that I choose from google sheet, is this possible ?, I understand that in "fields" of resource could If the ID is specified, also try adding "fr.readAsDataURL (file);", although without success. Could you help me?

Yes. It can be achieved. For this, I updated the sample script. Please check it.
https://github.com/tanaikech/AsynchronousResumableUploadForGoogleDrive#v101
In this updated, the file information is sent to Google Apps Script side. You can retrieve the URL of the file from it.

This work perfect to me!, thanks a lot for your help tanaikech you are awesome


"Could not authenticate you." Direct Message Twitter

Hi, i'm trying to send direct message and i have this error : {"code":32,"message":"Could not authenticate you."}
here it is my code :
 client.post('direct_messages/events/new', {
    type: 'message_create',
    message_create: {
        target: {
	    recipient_id: "4...",
            message_data: {
                text: "hi"
            }
        }
    }
})

I have surely activated the access level for enabling Direct Messages but still ....

Was there a ! character anywhere in the payload? We fixed that problem in twitter-lite and now DMs can send any characters.

Same problem. but your message_data should be moved up a level, same level as target.

I switched to https://www.npmjs.com/package/twit and it worked like a charm. The switch took about 45 seconds lol. Probably a header issue but ¯_(ツ)_/¯

I also switched. I think this repo is dead.

Repo is dead, thanks.


tidb: init at 6.5.0

Description of changes
TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics.

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@AndersonTorres I changed description, I made a mistake
Thanks

@AndersonTorres


BREAD relationships shouldn't use snake_case methods

Starting by the fact that All methods should be camelCase per PSR-1., eloquent gives nightmares when dealing with model's attributes and relationship names.
Actually, I'm struggling with #638 because of this.
I suggest switching from relations like user_id() to simply user().
Also, it would be nice to be able to specify foreign and primary keys.

Finally, the solution I found for #638 PR was using camelCase relationships. If approved, the documentation must be updated to

Note: the method used for this relationship, must match the camelCase version of the row's name from the pages table. Which is why we used authorId as the method name to tie the relationship.

Merged #638


Added support for cloning the appliance with virt-resize

The 'diskSizeGB' property is now optional in appliance-config.yaml
When 'diskSizeGB' is not specified, the virtual size is calcualted according to the actual content (i.e. to be as compact as possible). and the partition size is minimal.
Added details for virt-resize usage to the use-guide.

/cc @oourfali
/cc @filanov


Bokeh server basics

Start server without bokeh serve
https://stackoverflow.com/questions/54069272/how-to-run-a-bokeh-server-without-bokeh-server-show-command
e.g. this can be wrapped as
from contextlib import contextmanager
from bokeh.server.server import Server  # type: ignore

@contextmanager
def call_server(bkapp):
    server = Server({"/": bkapp})
    try:
        server.start()
        yield server
    except KeyboardInterrupt:
        pass
    finally:
        pass

def bokeh_app_wrapper(**kwargs):
    # setup settings before creating the app here

    def bokeh_app(doc):
        # now you can use settings previously defined
        # add items to `doc`
        doc.add_root(...)

    return bokeh_app

def app(**kwargs):
    # e.g. data handling
    return bokeh_app_wrapper(**kwargs)

def main(**kwargs):
    with call_server(app(**kwargs)) as app_server:
        app_server.io_loop.add_callback(app_server.show, "/")
        app_server.io_loop.start()

App layer could be skipped if there is no need to handle anything there.

bokeh_app then would contain all the bokeh creation and linking e.g.


Fix typo in proposed additionalArguments to match documentation

https://docs.traefik.io/observability/logs/#level suggests that the appropriate config path is log.level.  I've further confirmed this by trying to set logs.level as a container argument and receiving the error 2020/05/15 18:21:33 command traefik error: failed to decode configuration from flags: field not found, node: logs.  log.level appears to work as expected where logs.level failed.
Note that I have not tested this helm chart myself but instead manually configured using similar Kubernetes YAML.  My apologies if this violates contribution guidelines... I figured it's better to suggest this change and hope y'all appreciate it than to move along having only fixed my own problem.

Hi @akesling ,
Thanks for you contribution. This issue is already solved by #174


Merging in the culmination of pgstigcheck-inspec updates

@steve-hetzel Is this PR still needed or have the other updates covered the issues addressed here?

I haven't contributed to this for quite some time (since moving on from
Crunchy) - so I'll leave that decision to you.  Feel free to close at your
discretion.
Best,
Steve
On Tue, Dec 1, 2020 at 2:35 PM Aaron Lippold<EMAIL_ADDRESS>wrote:

@steve-hetzel https://github.com/steve-hetzel Is this PR still needed
or have the other updates covered the issues addressed here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/CrunchyData/pgstigcheck-inspec/pull/10#issuecomment-736835037,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFQ66NKKOK252XS3MMNL5ZDSSVORZANCNFSM4FFQN2OQ
.


Horovod

This solution might an interesting approach for distributed training (although I haven't test it yet on my own):
https://github.com/uber/horovod

https://eng.uber.com/horovod/

74ca05d, 1a262e8 Awesome! Any benchmarks :wink: ?

95%~97% speed of existing trainers on single machine.
Don't have the resource to try distributed now. Not sure it works..

Distributed training was supported. Didn't test speed but according to horovod benchmarks I assume it will be fast..


Issue 446/todo app changes

Replacing #445 as we move this forward.
Some incremental fixes and docs updates. Dependencies on this PR ready for review:

https://github.com/TBD54566975/incubating-web5-labs/issues/49
https://github.com/TBD54566975/web5-tutorials/issues/7
Whatever docs changes we need to make here which incorporate the fixes from the above release:

@angiejones This is now ready for your content review. Following the instructions in the guide I got this working, and it's updated to match the latest incubating-web5-labs tag 0.1.0 functional example that runs on Web5 0.6.3.
Please check any assumptions I've made in how easy it is to follow, and you may want to give specific focus to the prose pieces explaining the code to ensure they're clear. I focused primarily on getting everything working. :)
With your +1 on review, please send to @dayhaysoos for merge.
@dayhaysoos, you may want to put this in main because it reflects an update to bring the TODO tutorial and its supporting finished product (incubating-web5-labs) and starter template (web5-templates) in line with Web5 0.6.3. It does not include the final Phase 4 update, which will hopefully have minimal changes and come later this week after Web5 0.7.0 drops. Or, you may want to put this PR into phase-4 branch. Your call.
Thank you all for your help in getting this and all its dependencies sorted! Props @bobbilee19 @kirahsapong @dayhaysoos @frankhinek @michaelneale.

Addressed all of @angiejones's excellent feedback in separate commits on this PR, each linked to the code where she placed a comment. Updated web5-tutorials to match requirements, released it as 0.1.1, and upgraded here. Ran another QA round as a user and caught some fixes to make.
I believe this is good enough to go to main; subsequent issues found can be handled then.
This completes the upgrade of the ToDo tutorial, the finished example in incubating-web5-labs as 0.1.0, the starter template in web5-tutorials as 0.1.1, all using Web5 0.6.3.
This clears @bobbilee19 to have a smoother path when upgrading the full docs set to Web5 0.7.0 or whatever version is next.


Resolves Issue #19

Resolves #19

What would the category name be? README perhaps?

Yeah, i hadnt come up with a title so its good to have ideas

@teamshortcut or maybe IMPORTANT, or SERVER INFO

Server info or Important would be my preferences, only because README suggests you read it once and then forget about it in a sense where as the others infer referencing back more commonly.


glxgears works but bevy cant find my gpu

Bevy version
0.6
The release number or commit hash of the version you're using.
Operating system & version
Ubuntu 20.04 in docker .devcontainer https://github.com/lizelive/try-bevy/tree/main/.devcontainer
Nvida gpu
What you did
install docker + nvida container toolkit
install remote
clone
What you expected to happen
if glxgears works cargo run should work
What actually happened
thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.6.1/src/renderer/mod.rs:74:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Additional information

used bevy_game_template with no changes
wgpu works
this .devcontainers are really popular and save ton of money
allows going back to old project and have just work

vscode ➜ /workspaces/try-bevy (main ✗) $ glxinfo -B
name of display: :1
display: :1  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 10240 MB
    Total available memory: 10240 MB
    Currently available dedicated video memory: 8451 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3080/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 510.47.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 510.47.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 510.47.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

closing to centralise in #3191


[REQUEST] The all-reduce overlap in ZeRO 1 and ZeRO 2

Hello, when I use DeepSpeed to train a GPT-Based Model by using zero1 or zero2, I found that there is no any overlap between all-reduce and backward computation. I don't know whether I set the config correctly, the following is my config
{     "train_batch_size": 8,     "steps_per_print": 1,     "gradient_accumulation_steps": 1,     "optimizer": {         "type": "Adam",         "params": {             "lr": 0.00015,         }     },     "tensorboard": {     "enabled": true,     "output_path": "output/ds_logs/",     "job_name": "train_internlm"     },     "bf16": {         "enabled": true     },     "zero_optimization": {         "stage": 1,         "overlap_comm": true,         "reduce_bucket_size": 536870912,         "contiguous_gradients": false,     } }
Then I profiled the kernel, the profiling results are the following

As the above figure, the all-reduce(which is in purple color) can not be overlapped with the backward. So I found out that the all-reduce is the function allreduce_and_copy, which has a  copy operation at the end of the function here.

As we can see, it seems that these copy operation blocks the following backward. Therefore, can any body help me with this?
Aslo, I set the contiguous_gradients True, the all-reduce can overlap with backward

And there is no any copy operation. So I have some questions:

Does the copy operation in allreduce_and_copy can have effects in following backward computations, although they are in different stream?
It seems that the contiguous gradient could avoiding copy, but the avgsamples/sec doesn't increase.
What if I want to obtain the most efficient training performance in ZeRO1, how can I set the zero optimization config?

Looking forward to any replies.

Hi @yingtongxiong ,
could you set your contiguous_gradients to true and profile the result again? I suspect because non-continuous memory region for gradients which leads to extra memcpy and no overlapping

Hi @yingtongxiong ,
could you set your contiguous_gradients to true and profile the result again? I suspect because non-continuous memory region for gradients which leads to extra memcpy and no overlapping

Thanks for your reply. I have found the reason that I export the  CUDA_DEVICE_MAX_CONNECTIONS=1 environment variable, which cause no overlapping.

Thanks for the update @yingtongxiong  close this issue for now.


Coreboot parsing

First portion of code, which can:

Take two firmware binaries as input
Automatically distinguishes between coreboot images and vendor UEFI images (other image types unsupported for now).
Parse coreboot fmap layout to extract regions' properties.
Automatically recognize fmap regions with CBFSes.
Parse CBFSes regions to extract files' properties.
Checks for required utilities presence (cbfstool, UEFIExtract)

Additionally added known file types, definitions and names to categorize what will be considered open-source/closed-source/data components.
Sample output of current code processing binaries: https://paste.dasharo.com/?a85443607d32aedb#EWJfMA67HZhLKPoiWLbUZQY8YPhSn1TTTsjHFLabRjAm
Further development will also be conducted in portions implementing missing functionalities:

Add script to install required utilities (cbfstool and UEFIExtract).
Add CI file with pycodestyle checks and possibly sample binary checks.
Calculation of total size of open-source/closed-source/data/empty components per region/CBFS/whole image
4 Calculation of total size of closed-source/data/empty components in vendor UEFI image.
Extraction of coreboot config to check for known open-source/closed-source components, .e.g check for external LAN ROM efi file, check for iPXE PCI ID if iPXE is added as secondary payload for SeaBIOS, etc.
Plotting the pie charts with % share for each type of component compared to the whole image size.
Exporting numeric statistics to CSV files (optional).

@miczyg1 please assign a reviewer.
I don't know if the following feature requests should be part of this MR or another. Please let me know WDYT.

Script should run as part of CI/CD
Dasharo Openness Score should be published as part of the newsletter.
Dasharo Openness Score should be published as part of the DUG.
We should target the production version for DUG#2.
CI/CD should compare the Dasharo binary with reference binaries we obtained from hardware. We should not care about the privacy of hardware in the lab since it can already be considered public domain.
Dasharo documentation should be adequately improved to explain our methodology.
Versioning should be added.

For which releases and which platform do we plan to provide Openses Score?

I don't know if the following feature requests should be part of this MR or another. Please let me know WDYT.

Some (if not most) of these requests are already included in the first comment in the PR. Versioning v0.1 will be added when UEFI parsing is finished and the results are presented as pie charts artifacts with the metrics exported as CSV. This is the first milestone.

For which releases and which platform do we plan to provide Openses Score?

Ultimately this should be incorporated into our templates and used for all platforms

Some (if not most) of these requests are already included in the first comment in the PR. Versioning v0.1 will be added when UEFI parsing is finished and the results are presented as pie charts artifacts with the metrics exported as CSV. This is the first milestone.

We should be precise, which are not planned for v0.1? Can you put those in the v0.2 milestone, please?

Ultimately this should be incorporated into our templates and used for all platforms

It doesn't answer my question.

Ultimately this should be incorporated into our templates and used for all platforms

It doesn't answer my question.

Integrating into the templates means the Dasharo Openness Score will be published as part of the newsletter AND docs.dasharo.com (release notes probably) for ALL Dasharo platforms

It instead sounds that for ALL new releases for Dasharo support platforms. So key question would be which release would be next, so we can check Openness Score in action.


There is no remove option in the "Group by Day" view

@erenseymen
What would you expect to happen here? Remove all of the tidys for that day? I was afraid that was to destructive.

Maybe a confirmation message like "You are about to remove all the tab groups in this day. Are you sure?" would be the best way.


Mg branch

Hi @amlyon
Here are my modifications for the control channel (normalisation channel)

modified selections in the builder
added some branches in the builder and dumper (mainly some impact parameters and some gen information)

I don't have other commits and I don't think these commits should have an impact on the other channels, except for a tiny change to generalise the user: https://github.com/BParkHNLs/BParkingNANO/pull/16/commits/9919ed6fc474e434d794ad749a5f6cd07577a1af.
So I proceed with the merging, @amlyon, like we agreed.


after upgrade to 0.8.0 issue with working plan

Hi,
I don't understand why but after I've upgraded to 0.8.0 and removed the data of the overlay as mentioned in #169 i cannot plan nor apply nor plan anymore
i get this that i don't understand it
Error: buildKustomizeOverlay: Kustomizer Run for path '.' failed: yaml: unmarshal errors: │   line 119: mapping key "resources" already defined at line 87 │  │   with module.k.data.kustomization_overlay.srvc, │   on k/main.tf line 1, in data "kustomization_overlay" "srvc": │    1: data "kustomization_overlay" "srvc" {
any help would be really appreciated

never-mind i found my duplicated key
i wish the localisation of it was more explicit
anyway, thank you for your hard work !


Fix macos-latest docker build on github actions

macos-latest docker build was failing - https://github.com/paypal/junodb/actions/runs/7092295751/job/19305835061
due to docker not found on latest macos-latest
To fix, alternate macos image or manual docker installation

Hi, if this is not being worked on, can I take this up?

hi @NeetishPathak ,
I was trying to setup the project on my local device to solve this issue , however on following the instructions as mentioned in the readme step by step , I found an error in running the command docker/build.sh  and any commands after that . I did this on the latest macOs environment and the docker version is 25.0.2 . is this in any ways related to this issue or is this a different issue altogether ? I am attaching a screenshot of the same below .


Move upstream tag check to sync release task

It has to be run in the task directly, and not as a pre-check, since pre-check is part of process_message task that doesn't run in the long-running worker. Long-running worker is needed here as the Local project is being accessed.

RELEASE NOTES BEGIN
N/A
RELEASE NOTES END

@nforro actually, I opened #2150 which is probably a better fix than this, PTAL :pray:


Accidentally opening chat while writing in the news publisher will refresh the page, wiping the incomplete news article

This is still an issue, and is related to krgamestudios/chat-server#3.