swagger-check: new CI tool to cross-check swagger

New script cross-references r.Handle() and r.HandleFunc()
calls against the preceding '// swagger:operation' comments,
and exits failure (with descriptive error messages) if any
comments do not match the code.
This script should not be necessary: the swagger comments
should be autogenerated from the source code.
Signed-off-by: Ed Santiago<EMAIL_ADDRESS>

Note: This is going to fail. There are still four errors in the swagger code:
pkg/api/server/register_containers.go:
-       // swagger:operation POST /libpod/containers/{name}/pause libpod libpodPauseContainer
+       // ................. .... /libpod/containers/{name:..*}/pause ......
        r.HandleFunc(VersionedPath("/libpod/containers/{name:..*}/pause"), s.APIHandler(compat.PauseContainer)).Methods(http.MethodPost)

pkg/api/server/register_info.go:
-       // swagger:operation GET /info libpod libpodGetInfo
+       // ................. ... ..... compat
        r.Handle(VersionedPath("/info"), s.APIHandler(compat.GetInfo)).Methods(http.MethodGet)

pkg/api/server/register_events.go:
-       // swagger:operation GET /events system getEvents
+       // ................. ... ....... compat
        r.Handle(VersionedPath("/events"), s.APIHandler(compat.GetEvents)).Methods(http.MethodGet)

-       // swagger:operation GET /libpod/events system libpodGetEvents
+       // ................. ... .............. libpod
        r.Handle(VersionedPath("/libpod/events"), s.APIHandler(compat.GetEvents)).Methods(http.MethodGet)

@baude, @jwhonce, I cannot resolve those myself. I don't know if I should fix the source code, or add special-case exceptions to my script, or (something else). I need your advice.

@edsantiago Have you looking into parsing the yaml as well?  The tags stanza might help here.

I just (rebased and) pushed a new version with more hardcoded exceptions. The one remaining discrepancy is now:
pkg/api/server/register_containers.go:
-       // swagger:operation POST /libpod/containers/{name}/pause libpod libpodPauseContainer
+       // ................. .... /libpod/containers/{name:..*}/pause ......
        r.HandleFunc(VersionedPath("/libpod/containers/{name:..*}/pause"), s.APIHandler(compat.PauseContainer)).Methods(http.MethodPost)

How should I deal with that one? That is: is :..* likely to appear again? Should it just be stripped off and converted to plain {name}?

Or is that swagger comment actually wrong, and in need of fixing?

Ping @edsantiago, @jwhonce, @baude.
I can't really help on swagger issues.

/hold
Do not merge, more bugs sneaked into master so we have more broken swagger to fix

Force-pushed, now with fixes for broken #5638
@jwhonce @baude I know you're sick of me complaining but can  we please please please please give some attention to this so we can get it merged? Once again, I am awaiting instructions on what to do about this inconsistency:
pkg/api/server/register_containers.go:
-       // swagger:operation POST /libpod/containers/{name}/pause libpod libpodPauseContainer
+       // ................. .... /libpod/containers/{name:..*}/pause ......
        r.HandleFunc(VersionedPath("/libpod/containers/{name:..*}/pause"), s.APIHandler(compat.PauseContainer)).Methods(http.MethodPost)

Force-pushed, now with fixes for broken #5638
@jwhonce @baude I know you're sick of me complaining but can we please please please please give some attention to this so we can get it merged? Once again, I am awaiting instructions on what to do about this inconsistency:
pkg/api/server/register_containers.go:
-       // swagger:operation POST /libpod/containers/{name}/pause libpod libpodPauseContainer
+       // ................. .... /libpod/containers/{name:..*}/pause ......
        r.HandleFunc(VersionedPath("/libpod/containers/{name:..*}/pause"), s.APIHandler(compat.PauseContainer)).Methods(http.MethodPost)

i see no reason why pause should be different than the others ... remove the :..*

@baude thank you! Fixed, and I now expect tests to go green.

From flake-summarize:
test ubuntu-18 ubuntu-18
2020-04-06T09:21:22  integration_test

Podman login and logout [It] podman login and logout with flag --authfile
Podman login and logout [It] podman login and logout with --tls-verify
Podman login and logout [It] podman login and logout with flag --authfile
[same]
Podman login and logout [It] podman login and logout with --tls-verify
[same]
Podman exec [It] podman exec preserve fds sanity check
[same]

The common factor in the login tests is:
Error: Error copying image to the remote destination: Error initializing destination docker://localhost:5002/test-apline:latest: error loading registries: error loading registries configuration "test/registries.conf": open test/registries.conf: no such file or directory

I don't understand why this passed on re-run; and from a quick glance at the e2e sources I can't figure out how/where/why test/registries.conf gets created to see if there's a race somewhere. I sure would appreciate someone looking into this.
The other flake is two instances of:
time="2020-04-06T15:10:52Z" level=error msg="failed to close libpod db: \"db file close: close /tmp/podman_test367686297/crio/libpod/bolt_state.db: bad file descriptor\""
         Error: error saving container d0a8298d9c817c05447d2e055b0bce54239b8d924102a9f3659d7ff07154fef1 state: write /tmp/podman_test367686297/crio/libpod/bolt_state.db: bad file descriptor

@mheon would you mind taking a look at the boltdb ones?

@edsantiago Can you confirm that the BoltDB one only happens with exec preserve-FDs? I think I have an idea there if so.

@mheon I'm sorry, I can't confirm. This failure is new to me, one I haven't seen before. (I do try to monitor and investigate flakes, and am writing tools to help me do so, but there are still countless flakes that I've never even looked at yet). I will keep my eyes open for it; and if you file an issue (or ask me to) I'll aggregate them there if/as I find more.

To clarify my thoughts there, I think that podman exec is closing FDs if --preserve-fds is given, and that it's being too aggressive when it does this and also closing the FD BoltDB is using to talk to the database.

/hold cancel
@baude @jwhonce PTAL. I would really like to get this merged so I can get out of the business of manually correcting swagger typos every week.

/approve

/lgtm


Roundrobin fails for records with zero weight.

When dns server returns SRV record like
_cool_service._tcp.cluster.local. 60 IN SRV 0 0 12345 cool_service.cluster.local.
In this https://github.com/Mashape/lua-resty-dns-client/blob/master/src/resty/dns/client.lua#L1173 loop weightList[i] will be 0, so rrwList will be empty after loop. I gues it may be fixed by for _ = 0, weightList[i] do.

Reopening this because the same issue will be present in the balancer, and needs fixing.
@quark-tekliner thx for the report!

ref, see weight at the bottom of page 2: https://www.ietf.org/rfc/rfc2782.txt


atMouse() is not available

Hi,
In my scripts there is a need to click at the current mouse location (after the previous click triggers a change in the original pattern).  I found a Sikuli solution which mentioned atMouse():
https://answers.launchpad.net/sikuli/+question/244304
However, it seems to be missing in Lackey.  It is not mentioned in http://doc.sikuli.org either.  So not sure if it's an extra feature of SikuliX.
The workaround is to use click(reg.getLastMatch()).
Thanks

Hmm... I'll have to go over the Sikuli source code instead of relying solely on the documentation. Thanks for the tip.
Fortunately, clicking at the last match should already be implemented in the latest release:
click() # Will click at the last matched location of the global Screen region
reg.click() # Will click at the last matched location for the 'reg' region

If these don't work, let me know - there may be other bugs here.
To get the mouse's actual current location, you can call getPos() on the internal Mouse handler. This returns a Location object, which can be fed directly to click():
click(Mouse().getPos())

Be aware that this functionality may change in the future as Mouse is an internal class and its API is not guaranteed. I'll get atMouse() implemented soon.

Implemented a few methods. Listing remaining missing methods below (some may be experimental or deprecated, in which case they can be skipped).

Region()

setImageMissingHandler()
getObserveScanRate()
setObserveScanRate()
setRepeatWaitTime()
getRepeatWaitTime()
showScreens()
resetScreens()
getTarget()
setCenter()
setTopLeft()
setTopRight()
setBottomLeft()
setBottomRight()
setSize()
setRect()
getROI()
setLocation()
add()
saveScreenCapture()
getLastScreenImage()
saveLastScreenImage()
contains()
asOffset()
rightAt()
leftAt()
aboveAt()
belowAt()
union()
intersection()
highlight() [overloads]
findAllByRow()
findAllByColumn()
findBest()
compare()
findText() [OCR function?]
findAllText() [OCR function?]
dragDrop() [overloads]
mouseUp() [overloads]
mouseMove() [overloads]
atMouse()
write()
delayType()
text() [OCR function?]
listText() [OCR function?]

Location

getScreen()
getMonitor()
isOtherScreen()
setOtherScreen()
getColor()
getOffset()
grow()
moveFor()
translate()
moveTo()
move()
copyTo()
hover()
click()
doubleClick()
rightClick()

Mouse
Mostly internal class, but should be implemented to match Sikuli for consistency

at()
reset()
getMouseMovedResponse()
setMouseMovedAction()
setMouseMovedCallback()
setMouseMovedHighlight()
hasMoved()
click()
move()
down()
up()
wheel()

Pattern

isImagePattern()
isValid()
setFilename()
getSimilar()
setImage()
setTimeAfter()
getTimeAfter()

Screen

getCurrentID()
all()
as()
setAsScreenUnion()
setAsScreen()
getScreen()
showMonitors()
resetMonitors()
getPrimaryId()
getPrimaryScreen()
getScreen()
getID()
getIdFromPoint()
newRegion()
getLastScreenImageFromScreen()
newLocation()
cmdCapture()
captureforHighlight()
doPrompt()
closePrompt()
resetPrompt()
hasPrompt()
userCapture()
saveCapture()
showTarget()

Man, there are a lot of undocumented methods in Sikuli.
I'll work my way through these as I have time. If anyone else wants to start on some of them, the original Java classes that contain these methods are over at the Sikuli repository.

I burned through most of these today and reconciled any issues with the current test cases. I've also added a Powershell script to build a combined coverage report for Python 2.7 and 3.5. I'll be using this to build new test cases covering the new methods we've added.
If anyone wants to help, feel free to submit a pull request to add some of these test cases!

All except OCR and overlay methods should now be implemented with version 0.7.0. Those will be tracked in other tasks.


Changes default version to 2.0.0-alpha1 and fixes CVE-2020-36518

Description
Changes in this PR:

Updates default version qualifier to alpha1
Fixes more mapping type changes and return type of method based of core changes
updates Jackson databind to <IP_ADDRESS>, jackson core to 2.13.2 and jacson annotations to 2.13.2.
Jackson databind <IP_ADDRESS> fixes this issue https://github.com/opensearch-project/anomaly-detection/issues/436
Removes JDK 14 support

Issues Resolved
resolves https://github.com/opensearch-project/anomaly-detection/issues/436
resolves #479
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Since this PR is editing the workflow, want to remove JDK 14 from test matrix per #479 as well?

Since this PR is editing the workflow, want to remove JDK 14 from test matrix per #479 as well?

Removed :)

Codecov Report

Merging #478 (6cb6d3d) into main (407e061) will decrease coverage by 0.19%.
The diff coverage is 84.61%.

@@             Coverage Diff              @@
##               main     #478      +/-   ##
============================================
- Coverage     78.14%   77.95%   -0.20%
+ Complexity     4159     4147      -12
============================================
  Files           296      296
  Lines         17659    17652       -7
  Branches       1879     1877       -2
============================================
- Hits          13800    13760      -40
- Misses         2964     2999      +35
+ Partials        895      893       -2

Flag
Coverage Δ

plugin
77.95% <84.61%> (-0.20%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../handler/AbstractAnomalyDetectorActionHandler.java
61.63% <81.81%> (-0.55%)
:arrow_down:

...opensearch/ad/indices/AnomalyDetectionIndices.java
72.12% <100.00%> (-0.06%)
:arrow_down:

.../java/org/opensearch/ad/AnomalyDetectorRunner.java
37.64% <0.00%> (-5.89%)
:arrow_down:

...c/main/java/org/opensearch/ad/util/ParseUtils.java
73.83% <0.00%> (-3.95%)
:arrow_down:

...va/org/opensearch/ad/feature/SearchFeatureDao.java
82.78% <0.00%> (-3.86%)
:arrow_down:

...ain/java/org/opensearch/ad/model/ModelProfile.java
70.90% <0.00%> (-1.82%)
:arrow_down:

...rch/ad/transport/AnomalyResultTransportAction.java
80.13% <0.00%> (-0.69%)
:arrow_down:


MAISTRA-1831 use objectSelector in injector webhook

Signed-off-by: rcernich<EMAIL_ADDRESS>

I haven't tested this yet.  I left the logic for istio.io/rev always enabled to allow users to control which injector they want to use for the app.  This allows fine grained control over the upgrade process.  That said, I think we need to put a little more thought into how we will manage revisions going forward.  (I could see using ServiceMeshMember to select which control plane (revision) for the namespace and then put the correct istio.io/rev label on the namespace as part of SMMR reconciliation.)

I was thinking over night that requiring the revision might be a little burdensome for applications, as they'd need to know the name of the SMCP resource they want to use.  Furthermore, this is a break from 1.1, where the only requirement was adding the inject label to their pod.  Given that, I think it's best to remove the revision requirement, possibly adding it to the namespace selector in the future.
Regarding the name-generation, I'm not sure we'd want to do that as I think this could cause pods that were injected to not be injected after an update occurs, because it's referencing the older generation, e.g. if the pod were rescheduled because of cluster maintenance, the new pod would not get injected.

And I need to test it too. ;)


RFC for wikilinks

I'm on the fence about this one, but [[wiklink]] could be normalized to a /slashlink such that it's actually just an alternative notation.
Advantages:

Wikilinks are used in a number of other applications. Surface-level familiarity and compatibility.

Disadvantages:

Complexity of having two notations for the same thing
Wikilinks are sorta ugly

I like the single character / for links also.
Some more inspiration - orgmode uses the wikilink syntax -
https://orgmode.org/guide/Hyperlinks.html

Q. How would you handle spaces with a slash?
with quotes? (looks weird)
This is a link: /"foo bar"

or brackets? (better)
This is a link: /[foo bar]

or backslashes? (like linux, but hard to read)
This is a link: /foo\ bar

or just not allow them? I guess it depends on what links point to -
This is a link: /foobar

More from your wikilink.md file - https://github.com/subconsciousnetwork/subtext/blob/main/explorations/wikilink.md -

Wikilinks and search links
"Any sufficiently advanced search is indistinguishable from a hyperlink". Rather than linking to file paths or URLs, links could include a search string, allowing a client to choose the best match from an index. This "search link" approach is inspired by Notational Velocity's  treatment of [[WikiLinks]] as search strings.
& French toast recipe

Important: we must consider how this would interact with multiple reference links. How might the syntax for search strings and URLs be differentiable?

On the last point, maybe [[french toast recipe]] could be a search, /[french toast recipe] could be a link?

That exploration references an earlier version of Subtext that has been superseded by the latest spec. Subtext now has a link form called a /slashlink that may be embedded in the text body. You can think of it as roughly a relative URL.
My preferred approach given Subtext today is to normalize [[Link Text]] to /link-text. You can write either one. Wikilink style allows you to includes spaces, cases, etc.
The major advantage to this approach is that wikilinks then have a defined semantics for normalization to paths/URLs.
We went forward with this approach in Subconscious 0.0.4 Alpha and it works well in practice. I need to put together and RFC for the language spec to reflect this. https://subconscious.substack.com/p/subconscious-alpha-004


[usps] [sba] Reports are falling through the cracks between pages

As described in #213, the USPS document library uses an unstable sort algorithm. If more than one report with the same date span a pagination boundary, we may see one report on both pages while missing another report entirely. We could probably detect this and re-fetch the offending pages until we make up the difference.

The SBA scraper has the same problem

Really? I would not expect this to be a common issue.
The easiest way to solve both issues would seem to be to specify an explicit sort order.

I can certainly see how it could happen, writing ORDER BY datetime DESC or ORDER BY year DESC, month DESC, date DESC seems like the sensible thing to do. I have a plan for retrying pages when we miss rows, going to try it out on SBA first.

Closed by #223


[BUG] Supabase token refresh not handled in Next.js example/

Describe the bug
When automatically creating a project with npm create refine-app@latest using Next.js and Supabase, the authProvider creates a copy of the token created at login time. Cookies.set("token", data.session.access_token, {expires: 30, path: "/",});. This does not take into account the need to refresh the token (which supabase internally does in the client, storing it in local storage).
Remark that this token is used to check the auth:
check: async () => {
  const token = Cookies.get("token");
  const { data } = await supabaseClient.auth.getUser(token);
...

Steps To Reproduce
npm create refine-app@latest # (supabase and nextjs)
Expected behavior
Refresh the token.
Packages
@refinedev/supabase
Additional Context
No response

This is not a bug with Refine itself, however can be done as an improvement here.
Template is living in @pankod/superplate-core-plugins repository.


[Feature] Suppress the program specified by user

Suppress win-vind for the program specified by user
Hi @pit-ray, I am addicted to win-vind ever since I've used this tool.
In my daily work, I use MS Edge Browser with plugin Vimium frequently.
However, it's annoying that I have to switch to 'RESIDENT MODE' manually every time I open an Edge window.
I noticed that there is a suppress_for_vim function built in this tool.
My question is can we implement a function to make win-vind suppress for the program specified by user?
Like set suppress_program=msedge.exe.
Related projects (Optional)
Here I found the source code of suppress_for_vim:
https://github.com/pit-ray/win-vind/blob/2d7c1cda120eef31083ba689e94e855eb31f9bf3/src/opt/suppress_for_vim.cpp#L49
Maybe we could use a variable to replace the constant string 'vim' during string matching.

As mentioned in #89, we must solve this problem.
The plan is to determine this based on the executable name or path (relative or absolute) with a notation similar to arrangewin_ignore option in  arrange_windows.
https://github.com/pit-ray/win-vind/blob/2d7c1cda120eef31083ba689e94e855eb31f9bf3/src/bind/window/arrange_win.cpp#L193-L203
If possible, please send a pull request.
I will accept any discussions and questions for implementation in the pull request thread, so please feel free to do so.
Otherwise, I would like to implement this as v4.5.
Thanks for your contribution.

Oh, sorry for missing the previous issue. I will subscribe this #89..
The feature seems to be feasible since there already has a config arrangewin_ignore running fine. I am still busy in recent days, so maybe I could attempt to modify the source code when I am get more spare time.
Thanks for your great job.

Since there seems to be a lot of requests, I will implement this as a priority.
Thanks.

Great to hear that! Can't wait to see the new feature.
Thank you for your hard effort.


No config to turn off "OpenID Connect RP-Initiated Logout" when using an external OIDC provider

Current behavior

Configure UAA to use an external OIDC provider
Log into UAA via the external OIDC login
Click UAA logout button
See that the user is redirected to the external OIDC provider logout endpoint

In this case, UAA acts as an RP (relying party) to the OP (OIDC provider). This "OpenID Connect RP-Initiated Logout" behavior is defined by this OIDC spec (note that the spec does not require that RPs must initiate this logout, just provides an option for RPs to do so).
Problem statement
This "OpenID Connect RP-Initiated Logout" behavior is sometimes not what UAA operators want. This Okta discussion talks about how whether an operator wants this behavior highly depends on their use cases (in general, they likely do not want this under a one-OP-multiple-RPs system).
Currently, UAA offers no config (API, uaa bosh release, or uaa.yml) to opt out of this behavior.
Proposal
Add an external OIDC provider config field that controls whether "OpenID Connect RP-Initiated Logout" is performed after logging out of UAA. Default to the current behavior (does perform the RP-Initiated Logout) to avoid a breaking change.

There is no option in Bosh for a global behavior but if you would create your OIDC provider similar to what is described in
https://docs.cloudfoundry.org/api/uaa/version/76.25.0/index.html#oauth-oidc
then the logout would not be triggered.
Why.
You can create OIDC providers with 2 options,
a) with discoveryUrl
b) with tokenUrl ,  authUrl , logoutUrl etc. only
If logoutUrl is not set here, because Google for example does not provide it in OIDC metadata, then it wont be called.
So maybe with option b) it works for you?
Does UAA have similar option for SAML2 ?

If logoutUrl is not set here, because Google for example does not provide it in OIDC metadata, then it wont be called.
So maybe with option b) it works for you?

In our use case, the discoveryUrl option is used because it's a simpler operator UX, and there's no easy way to change it.

Does UAA have similar option for SAML2 ?

I don't see a API or uaa-release config for SAML. Based on this test, UAA does not initiate an external SAML logout only when the SAML XML Metadata lacks a SAML logout URL.
For your comment in Slack:

A local logout is something I see as feature we can have, but then I would offer this with an option in logout.do (or create one endpoint for local one for global logout) . So I would let the decision to the callee and not to the admin (Bosh option).

Focusing on the specific use case in our org first:

Almost all of our UAA client apps are just internal components within the same system (e.g. CF components), so whether UAA initiates "RP-Initiated Logout" is more of a system-wide decision rather than an individual client app decision. So it's more convenient on our side to let it be a UAA operator level config.
Also, letting the UAA client apps decide (e.g. via a param for UAA logout.do) does not cover the case where you are clicking the logout button on UAA UI directly.

Broadening to more general use cases outside of our org:

I think letting a UAA client app alone decide "whether when their users log out of the app, they also automatically get logged out of UAA" is fair, in most cases. This is the status quo today: client apps can choose to opt-in to this behavior with the UAA logout.do endpoint. One might argue that this is giving clients too much power (because they now have the power to end user's session with UAA, which might impact all the other clients; this is likely why those "super OIDC providers" like Google do not offer this feature to clients?), but I don't think we have received feedback that this is a significant issue for UAA?
However, letting a UAA client app alone decide "whether when their users log out of the app, they also automatically get logged out of the external OIDC provider that UAA's integrated with" might be giving client apps too much power, because the impact is now much broader, affecting not only all the other UAA clients, but also the clients of the external OIDC provider.

However, I do think this allocation of power could be fair in some cases. So perhaps if there's enough demand for this feature (letting the UAA client apps decide), we could add both the client-level config (a param for UAA logout.do, or maybe the client config) and the operator-level config (uaa-release, API)? So that operators can choose to allow client apps to have this power, or not.

ok, but if we add an option , then I would do it in config of https://docs.cloudfoundry.org/api/uaa/version/76.25.0/index.html#oauth-oidc
means the setting would be per OIDC IdP ? So the issue should be moved to UAA because we dont need a bosh setting. ? or did I missing something

Yes, adding it to the config per external OIDC provider is the proposal.
You can add an external provider via uaa-release too. It's best to keep all three settings consistent (uaa-release, API, uaa.yml). But you are right, the main code change would be in UAA src and perhaps uaa-release only needs an change in the example configs in the spec file.
I just opened an equivalent issue in UAA: https://github.com/cloudfoundry/uaa/issues/2589

A local logout is something I see as feature we can have, but then I would offer this with an option in logout.do (or create one endpoint for local one for global logout) . So I would let the decision to the callee and not to the admin (Bosh option).

I think such a local logout could also be helpful for OIDC front-channel SLO.
Imagine a few clients (e.g. UAAs) have a session with the same OIDC IdP. And the user logs out from the IdP directly. Afterwards the IdP calls the SLO endpoints of all connected clients. Consequently, these clients terminate the local session but would also call the IdP again (if I am not mistaken).


MTDSA-20619: Remove self-employment-business-api v4

Couple suggestions:
v4Handler can be removed from test/routing/VersionRoutingRequestHandlerSpec.scala
We can delete the commented-out code in DocumentationControllerISpec and ApiDefinitionFactorySpec


[v1.24] Update go-build version and run mod tidy

Description
Pick of #1717

For PR author

[ ] Tests for change.
[ ] If changing pkg/apis/, run make gen-files
[ ] If changing versions, run make gen-versions

For PR reviewers
A note for code reviewers - all pull requests must have the following:

[x] Milestone set according to targeted release.
[ ] Appropriate labels:

kind/bug if this is a bugfix.
kind/enhancement if this is a a new feature.
enterprise if this PR applies to Calico Enterprise only.

This wasn't needed as the update was already done in a different PR.


Getting bunch of compiler errors when trying to run bernoulli example

Summary:
Freshly installed CmdStan, trying to run the Bernoulli example, but the compilation of the model fails with lot's of error messages.
Description:
Running on computer cluster with CentOS Linux 7, compilation of Stan programs with rstan work fine, but I now tried cmdstanr and got errors, so decided to try directly with cmdstan. Tried both with the cmdstan installed by cmdstanr and then manual cloning from github.
Reproducible Steps:
I ran
git clone https://github.com/stan-dev/cmdstan.git --recursive
cd cmdstan
make examples/bernoulli/bernoulli

Current Output:
bash-4.2$ make examples/bernoulli/bernoulli
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare     -I stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.69.0 -I stan/lib/stan_math/lib/sundials_4.1.0/include    -DBOOST_DISABLE_ASSERTS      -c -o src/cmdstan/main.o src/cmdstan/main.cpp
In file included from src/cmdstan/command.hpp:42:0,
                 from src/cmdstan/main.cpp:2:
stan/lib/stan_math/stan/math/opencl/opencl_context.hpp:176:38: warning: missing terminating ' character [enabled by default]
     double gp_exp_quad_cov_simple = 1'250;
                                      ^
In file included from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/src/Core/MatrixBase.h:130:0,
                 from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Core:415,
                 from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Dense:1,
                 from stan/lib/stan_math/stan/math/prim/mat/fun/Eigen.hpp:13,
                 from stan/lib/stan_math/stan/math/prim/mat.hpp:4,
                 from stan/src/stan/io/dump.hpp:6,
                 from src/cmdstan/command.hpp:18,
                 from src/cmdstan/main.cpp:2:
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:22:25: error: expected type-specifier
 using double_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
                         ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:26:26: error: expected type-specifier
 using reverse_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
                          ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:31:23: error: expected type-specifier
 using vari_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
                       ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:36:26: error: expected type-specifier
 using forward_return_t = std::conditional_t<std::is_const<std::remove_reference_t<T>>::value,
                          ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:60:5: error: ‘enable_if_t’ in namespace ‘std’ does not name a type
     std::enable_if_t<std::is_pointer<T>::value, reverse_return_t<T>>
     ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:66:5: error: ‘enable_if_t’ in namespace ‘std’ does not name a type
     std::enable_if_t<(!std::is_pointer<T>::value && !is_fvar<T>::value
     ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:73:5: error: ‘enable_if_t’ in namespace ‘std’ does not name a type
     std::enable_if_t<is_fvar<T>::value, forward_return_t<T>>
     ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:79:5: error: ‘enable_if_t’ in namespace ‘std’ does not name a type
     std::enable_if_t<std::is_arithmetic<T>::value, double_return_t<T>>
     ^
stan/lib/stan_math/stan/math/prim/mat/eigen_plugins.h:117:5: error: ‘forward_return_t’ does not name a type
     forward_return_t<T> operator()(T &v) const { return v.d_; }
     ^
...
...

Full list of error messages do not fit into the terminal buffer.
Expected Output:
Nothing?
Current Version:
Just cloned from GitHub.

This looks like a compiler version thing. Can you check gcc -v?
Maybe R is installed on the cluster with a different compiler.

(The oldest compiler Stan is regularly tested on is gcc 4.9.3: https://github.com/stan-dev/stan/wiki/Supported-C---Compilers-and-Language-Features)

what Ben B says - please check gcc version.
this FAQ suggests that Centos 7 is gcc 4.8 - https://www.cyberciti.biz/faq/centos-rhel-7-redhat-linux-install-gcc-compiler-development-tools/

Yeah, should have guessed it is (once again) compiler issue:
bash-4.2$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj--with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)

Interestingly compiling via rstan works fine?

It seems likely R is using a different compiler. If you can figure out which one that is, you can try to point cmdstan at it.

in CmdStanPy there's a utility https://github.com/stan-dev/cmdstanpy/blob/master/cmdstanpy/install_cxx_toolchain.py
which, sadly, doesn't have anything implemented for linux.
should we add the shell script equivalent of this to CmdStan?
opinions from @bbbales2, @jgabry, @ahartikainen, @rok-cesnovar ?

Sadly I don't have permissions to install new compiler, and I just realised that I asked the admin to install new version a year ago. And I though he did, as rstan etc works fine. But, I can't actually find newer compiler version anywhere on the system, checking the Sys.getenv("PATH") and R CMD config CXX both point to system default compiler i.e. the old one...
Anyway, this isn't really about cmdstan anymore so feel free to close this.

You might try installing an old cmdstan: https://github.com/stan-dev/cmdstan/releases . Rstan is probably using the 2.19 stuff. 2.17 was a good vintage I think.
Good luck!


Revert "Update engine xcode"

Reverts flutter/infra#306
One test is failing with the new version of xcode: https://ci.chromium.org/p/flutter/builders/prod/Mac iOS Engine/8133?

Landing as tbr to get the engine tree back to green.


Request to bump to CF-CLI BOSH Release v1.15

This request if for both notifications and notifications-ui releases.
What
Please adopt the CF-CLI BOSH Release v1.15.0 and consider enabling auto-bumpng of the package.
Why
Security vulnerabilities in the cf CLI will require teams to update to the latest version of cf CLI in order to address the following:
Issue #1: Running cf login in verbose/debugging mode did not properly redact passwords which contains regex. This issue was introduced in the CF CLI in May 2018.

Status: Fixed in CF-CLI Bosh Release 1.13

Details: See tracker story

Issue #2: Running cf CLI commands in verbose/debugging did not properly redact refresh tokens. This has been a known issue since approximately 2014.

Status: Fixed in CF-CLI Bosh Release 1.13

Details: See tracker story

Issue #3: When a user uses cf auth --client-credentials to authenticate as a client, the CF CLI writes the client id and secret to its config.json file. This issue was introduced in the CF CLI in March 2018.

Status: Fixed in CF-CLI Bosh Release 1.15

Details: See tracker story

When
Please prioritize as these issues have been identified by the Security team as High severity CVEs
Any Questions, please reach out to the CF CLI team on Pivotal Slack at #cf-cli

Please hold off on adopting v1.15 because of a regression issue found with using cf oauth-token with client credential. Will update as we have more details.

@chenl23 cf notifications doesn't use any of those features, so I'm unsure why there is a need to bump.

@osis Even if your product does not use the above mentioned #1,#2,#3 use cases, someone can still exploit the system by running those CF CLI commands since they are available. Unless notification does not use CF CLI, then there is no chance of that happening. cc @abbyachau

@chenl23 The CF CLI exists in CF Notifications in the form of an ephemeral VM when deployed. The CF CLI does not stick around for general use at any time. Will be dealt with via the next maintenance cycle.

@osis
FYI, CLI BOSH v1.16.0 is available. Please adopt it.
Important: Please read the release notes for a known issue with log-cache; we expect this to affect users running CATs in particular.


Dumper doesn't dump yaml document

I tried this code in DMD 2.071.0,:
import std.stdio;

import yaml;

void main() {
    char[] test =   "Hello World : [Hello, World]\n"
                    "Answer: 42".dup;
    //Read the input.
    Node root = Loader.fromString(test).load();

    //Display the data read.
    foreach(string word; root["Hello World"])
    {
        writeln(word);
    }
    writeln("The answer is ", root["Answer"].as!int);

    //Dump the loaded document to output.yaml.
    Dumper("output.yaml").dump(root);
}

then this code dumped this.:
[239, 187, 191][37, 89, 65, 77, 76, 32][49, 46, 49][10][45, 45, 45][10][72, 101, 108, 108, 111][32][87, 111, 114, 108, 100][58][32][91][72, 101, 108, 108, 111][44][32][87, 111, 114, 108, 100][93][10][65, 110, 115, 119, 101, 114][58][32][52, 50][10]

I think this is caused by dyaml.stream's writing buffer as ubyte[], not char[].
https://github.com/kiith-sa/D-YAML/blob/master/source/dyaml/stream.d#L64

I ran into the same thing yesterday, although using the dyaml-dlang-tour version, since this one is broken and doesn't even compile at the moment.

I think this is caused by dyaml.stream's writing buffer as ubyte[], not char[].
It seems you were correct.
I created a pull request for this fix.


Infinite loop crashes new tab but isn't cleared

I was being dumb and caused an infinite loop which crashed the tab, because it is saved, every time I reopen the tab it crashes before I can get in and delete the offending code.
I deleted the extension and reinstalled it to fix it, but maybe have a start button when you first open the tab which then auto runs after that?

Yes, it's happened to me a few times 😁
It should be fixed with https://github.com/spite/chrome-sketchtab/commit/18fab6d9f98768d0630f33b8817c837703e6b2dc and updated on 0.7 on the chrome store.
Thanks for reporting!


Pagination well runs dry (shows empty results)

@jbraswell discovered that if you paginate enough, eventually the well runs dry.

This is because we are limiting the result set to the BMLT to the first 50 results.  The BMLT root server does not support pagination, so we would have to continue increasing the result size.  This would cause increasing load on the Tomato server potentially.
There are a couple of approaches I think could be taken:

Bump up the results area incrementally on demand (by a small amount per additional query), basically infinite scroll.  There could potentially be a case when every single meeting in the world would be returned by https://github.com/jbraswell/tomato.git.

Show a message indicated you've reached the end of the result set and to run another query.

Any other alternatives?

I opt for showing a message that indicates the end of the result set has been reached instead of showing those empty results.
As for pagination, I could add a secret pagination option to GetSearchResults on tomato. I think it would be trivial to add page_size and page_num parameters.

If pagination is added, then an empty result set would almost never happen.

I'll do a bit of research to see how easily I could add page_size and page_num params without messing up the lazy streaming of results to the client.

Handle at postgres.  LIMIT and OFFSET.

I will still need to display end of result messages for when pointing directly to a root server (not-tomato)

It is handled at postgres, but it has to be passed through the ORM to postgres.
The results from postgres are lazily evaluated, so that adds a bit of complexity. Evaluating the result set sooner than the client needs it results in memory bubbles.
Good point about non-tomato root servers.

Okay, yeah. This looks easy. Adding limit/offset to a Django QuerySet no longer forces evaluation of that QuerySet.

https://github.com/jbraswell/tomato/pull/24

I can certainly add pagination parameters to the semantic interface. Giving it some thought, here's the kind of thing I envision:
Added to the query for &switcher=GetSearchResults and &switcher=GetChanges:
&page_size=XXX (The maximum number of results per page 1-based integer)
&page_index=X (The initial page -0-based integer)
I have also considered adding this:
&get_count_only=1
If that is specified, then only an integer (no JSON wrapper) would be returned, with the search count. It's likely to be fairly fast. It would also be mutually exclusive with &get_formats_only=1
I could add something like:
&get_page_count=1
If &page_size=XXX is specified. This would also return an integer only (no JSON wrapper).
For example, say you have a search that returns 103 meetings.
If the page size is specified to be 50, then this would result in 3 pages: 0-49, 50-99, 100-102.

That’s pretty much what I just did in tomato, except the parameters are ‘page_size’ and ‘page_num’, and ‘page_num’ is 1-indexed, not 0-indexed. If you could use the same variable names as tomato that would be ideal - of course, I could also modify tomato to match your choice.
‘get_page_count’ is an interesting idea, and would be pretty easy to implement on the tomato side of things. I would say that it’s less important than just getting the basic paging params in place, though.

Do not suggest 0 indexing page item.  Would start at 1.

On Mar 29, 2018, at 3:11 AM, Chris Marshall<EMAIL_ADDRESS>wrote:
I can certainly add pagination parameters to the semantic interface. Giving it some thought, here's the kind of thing I envision:
Added to the query for &switcher=GetSearchResults and &switcher=GetChanges:
&page_size=XXX (The maximum number of results per page 1-based integer)
&page_index=X (The initial page -0-based integer)
I have also considered adding this:
&get_count_only=1
If that is specified, then only an integer (no JSON wrapper) would be returned, with the search count. It's likely to be fairly fast. It would also be mutually exclusive with &get_formats_only=1
I could add something like:
&get_page_count=1
If &page_size=XXX is specified. This would also return an integer only (no JSON wrapper).
For example, say you have a search that returns 103 meetings.
If the page size is specified to be 50, then this would result in 3 pages: 0-49, 50-99, 100-102.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/radius314/yap/issues/52#issuecomment-377189384, or mute the thread https://github.com/notifications/unsubscribe-auth/ABw9u-I4-m3Xq06h2cqmXY1YMGmMhTFcks5tjLNYgaJpZM4S6MiH.

I can do that.
I'll use Jonathan's query params, and make the page selection 1-based.
Chris Marshall

Principal
<EMAIL_ADDRESS><EMAIL_ADDRESS>https://littlegreenviper.com https://littlegreenviper.com/
Little Green Viper Software Development LLC

On Mar 29, 2018, at 11:11 AM, Danny Gershman<EMAIL_ADDRESS>wrote:
Do not suggest 0 indexing page item. Would start at 1.

On Mar 29, 2018, at 3:11 AM, Chris Marshall<EMAIL_ADDRESS>wrote:
I can certainly add pagination parameters to the semantic interface. Giving it some thought, here's the kind of thing I envision:
Added to the query for &switcher=GetSearchResults and &switcher=GetChanges:
&page_size=XXX (The maximum number of results per page 1-based integer)
&page_index=X (The initial page -0-based integer)
I have also considered adding this:
&get_count_only=1
If that is specified, then only an integer (no JSON wrapper) would be returned, with the search count. It's likely to be fairly fast. It would also be mutually exclusive with &get_formats_only=1
I could add something like:
&get_page_count=1
If &page_size=XXX is specified. This would also return an integer only (no JSON wrapper).
For example, say you have a search that returns 103 meetings.
If the page size is specified to be 50, then this would result in 3 pages: 0-49, 50-99, 100-102.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/radius314/yap/issues/52#issuecomment-377189384, or mute the thread https://github.com/notifications/unsubscribe-auth/ABw9u-I4-m3Xq06h2cqmXY1YMGmMhTFcks5tjLNYgaJpZM4S6MiH.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/radius314/yap/issues/52#issuecomment-377267806, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab9HLrtuO2CjiHPMft1WHE_Ag7CeXGT-ks5tjPm8gaJpZM4S6MiH.


Pattern matcher doesn't work for name with space

TypeScript Version:  master
Code
See navigateToQuoted.ts (added in #23036)
Expected behavior:
"foo bar" works same as "foo-bar".
Actual behavior:
Navigation to "foo bar" doesn't work.

@andy-ms you are more familiar with the pattern matching code, thoughts?

The documentation on subWordTextChunks says:
Information about the subwords compromising the total word.  For example, if the
text between the dots is 'GetFoo KeywordBar', then the subwords will be 'GetFoo'
and 'KeywordBar'.  Those individual words will have CharacterSpans of ('Get' and
'Foo') and('Keyword' and 'Bar') respectively.

It looks like if you write 'foo bar' we will match against 'foo' OR 'bar', and return the best match. But we will not match "foo bar". So it treats " " like "|" in a regular expression. Not sure if that's still the desired behavior, or what other languages doo in this situation. If we didn't keep this behavior then the pattern matcher would get a lot simpler because we wouldn't have to compute subWordTextChunks, and then a Segment would just be a TextChunk.
As for why no tests failed, we don't seem to be running them: #23836


NFT Template unique code should be not-nullable

Not sure what happened in nfty-mart, locally when creating the CMS DB from scratch the unique_code field was not nullable and unique. Adding this migration to ensure that is the case though.


Clarify what "All Recognized" stands for in EditorFileDialog file filter

Godot version:

3.2.3
OS/device including version:

Linux
Issue description:

No such font formats like *.ttf, which is not user friendly.

Steps to reproduce:

Create a project
Import/Copy a ttf font file to the project folder
Go to Project Settngs - Theme to choose custom font for the project
As you can see, only *.tres, *.res and *.font are listed in all recognized  file types, so you need to select All Files to be able to choose the font file.

Minimal reproduction project:

Is ttf even a valid option? You need a Font resource to be able to assign font.

Maybe the dialogue options could stand to be clearer.

Oh this is my mistake, I set the ttf font in ProjectSettings and I thought it's applied.
Thanks for the clarification!


Misc: Update HMAC to accept keys in different formats

Summary
The HMAC operation currently accepts a key as a string. It would be useful to change this to a toggleString accepting various different formats, similar to the XOR operation.

Closed in #391


Are there D3D12 samples in C?

I see C++ here, but no C. Why? Can you write D3D12 in C? Are there any official examples of using D3D12 with C?
Thanks!

AFAIK, no
pon., 21 paź 2019, 22:17 użytkownik procedural<EMAIL_ADDRESS>napisał:

I see C++ here, but no C. Why? Can you write D3D12 in C? Are there any
official examples of using D3D12 with C?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/DirectX-Graphics-Samples/issues/589?email_source=notifications&email_token=AJGPLUPWHQI2E3AROVIMWHLQPYE5DA5CNFSM4JDEQFAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTJ7Z2A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJGPLUODQXMIRBFRCAWWVGDQPYE5DANCNFSM4JDEQFAA
.

What no? There are no official D3D12 examples in C? Or you can't write D3D12 in C? I wonder why.

It's theoretically possible to use D3D12 from C, but I don't know anyone who has.

Note that the C interface included in the header is actually broken. See https://stackoverflow.com/questions/34118929/getcpudescriptorhandleforheapstart-stack-corruption.
I'm hoping we'll actually be able to fix this in the future, but for right now C developers have to work around this.

Just a warning, C isn't fully compatible to the "lightweight" COM interop used in DirectX APIs.
Note that the C ABI for returning structs is different from C++, meaning if D3D12 has any APIs which return structs those cannot be called from C. When using the same STDCALL calling convention a MIDL-style C vtable will return the struct in a register while a C++ interface will return it through the stack.
We have observed this in Direct2D APIs when trying to write C# interop signatures and were very surprised that C and C++ ABIs for the same calling convention differed.

https://github.com/GamebabyRockSun/GRSD3D12Sample

@GamebabyRockSun 非常感谢你！

@GamebabyRockSun 非常感谢你！

客气

@pkristof why you closed this?

Thanks for checking back. We know about the issue, but I agree, it does make sense to keep it open here and close it after we deploy a fix for the C interface.
Best,
Peter

@jenatali Any movement on a fix for the C interface? I'd think it wouldn't be too difficult of a fix and more of a release management issue of when to update the SDK. For now workarounds are fine, but it would be preferable to have the headers updated.

The Windows Insider SDK has been fixed since earlier this year. Unfortunately it didn't make the 2004 SDK.

@JesseRMeyer does it mean D3D12 supports C now? Will other C related bugs be fixed when found too?

@procedural Wrong tag :)
D3D12's C support has always been best-effort, in that we get it for free from using MIDL for header generation, but don't have internal usage of it. I've mixed MIDL to support our headers so that the C definitions should be correct now. If there are further problems, feel free to let us know.

I find it strange that C definitions are occasionally fixed thanks to Microsoft people like you, @jenatali, but C is not officially supported and there are no official D3D12 examples in C.

@jenatali This is a bit tangential but it appears that Direct2D no longer contains the C interface as part of the Windows 10 SDK. Was this intentional and could it be fixed at all alongside the D3D12 headers?

@MattGuerrette if the C interface was removed, I have to assume it was intentional.

I had no problems using C with D3D12 headers, everything works, just as in d3d9(10,11). And thank god Bill Gates for this, because C++ is ok, C is awesome. Sometimes I just don't need C++.


Nightly integration test with Cirq master

Similar to TFQ, Stim could benefit from knowing about breaking changes earlier rather than later coming from Cirq.

Closing this due to inactivity.


Fixed webpack compatibility issue with ES6 exports

Webpack has an issue interpreting ES6 exports from the root file. The end result causes createLogger to be wrapped in a an Object. By replacing the ES6 syntax with the default module system, as done in this PR, the issue is resolved
example of problem:
let createLogger = require('redux-logger');
console.log(createLogger);
/*
Object {
__esModule: true
default: createLogger()
__proto__: Object
}
*/

Examples of identical issues and resolutions:
Quick glance of problem: https://github.com/algolia/instantsearch.js/pull/725
Deeper Explanation/Description of the issue: https://github.com/webpack/webpack/issues/706
Example of an identical fix: https://github.com/algolia/instantsearch.js/commit/81e7eee18bbd32014939f5ed61035d52a73f1ae6#diff-168726dbe96b3ce427e7fedce31bb0bc

It's already (#98) fixed in 2.1.3. Are you really have problems with this version?

Yes, exactly the same problem as the issue you referenced, we are using redux-logger 2.2.1 and babel-core 5.8
The change I suggested fixed the problem for us

This probably requires more explanation. I actually just updated our project to the most recent Babel release, and we still have the problem (Babel 6.0) the problem is that we have our import set up to only import in development (thus making our webpack bundle slightly smaller)
As you can see, the require statement is inside of the conditional, that way webpack doesn't import the module when uglifying the code for production. It is illegal to use ES6 imports inside of conditionals, but require statements are totally fine. This practice with Redux-logger is broken on all new versions of Babel.
We can fix this ourselves by just importing it with .default, but I think a more robust fix that would just work as expected for everyone would be better, thus this PR, especially since this practice of importing within the conditional was recommended directly by Dan Abramov, which means we aren't the only ones following this style: https://github.com/gaearon/redux-devtools
let middleware = [thunk];

if (process.env.NODE_ENV !== 'production') {
  let createLogger = require('redux-logger');
  const logger = createLogger({
    transformer: (state) => {
      var newState = {};
      for (var i of Object.keys(state)) {
        if (Immutable.Iterable.isIterable(state[i])) {
          newState[i] = state[i].toJS();
        } else {
          newState[i] = state[i];
        }
      };
      return newState;
    }
  });
  middleware = [...middleware, logger];
}

It's very interesting, because main file is lib/index.js, which is processed by Babel and already polyfilled. Webpack compile UMD-files to dist, not lib; when you're imported as require('redux-logger') or through import createLogger from 'redux-logger', everything will be fine. I cannot reproduce this bug, can you make demo please?

You're absolutely right, with the updated npm modules, and post 2.1.3 redux-logger, it is working for us now, I'm not sure why the changes weren't showing up before, but it was probably oversight on my part. Sorry for wasting your time. Thank you for keeping up with Redux-Logger! It is an awesome module!

Glad to hear that! 👏


Add docstring details in epoch readers

Small fix for #12542 (DOC, no-changelog-entry-needed)

Thanks @nabilalibou!
I'll leave it to @drammock or @larsoner to merge


CMakeFiles/ocos_operators.dir/build.make:327: recipe for target 'CMakeFiles/ocos_operators.dir/operators/text/vector_to_string.cc.o' failed
make[2]: *** [CMakeFiles/ocos_operators.dir/operators/text/vector_to_string.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 92%] Building CXX object _deps/sentencepieceproject-build/src/CMakeFiles/sentencepiece-static.dir/error.cc.o
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/text/string_to_vector.cc:1:20: fatal error: charconv: No such file or directory
compilation terminated.
CMakeFiles/ocos_operators.dir/build.make:299: recipe for target 'CMakeFiles/ocos_operators.dir/operators/text/string_to_vector.cc.o' failed
make[2]: *** [CMakeFiles/ocos_operators.dir/operators/text/string_to_vector.cc.o] Error 1
In file included from /media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.cc:2:0:
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:13: error: ‘string_view’ is not a member of ‘std’
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries = false);
^
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:13: error: ‘string_view’ is not a member of ‘std’
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:29: error: template argument 1 is invalid
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries = false);
^
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:29: error: template argument 2 is invalid
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:54: error: ‘string_view’ in namespace ‘std’ does not name a type
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries = false);
^
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.h:50:83: error: ‘string_view’ in namespace ‘std’ does not name a type
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries = false);
^
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.cc:4:13: error: ‘string_view’ is not a member of ‘std’
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries) {
^
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.cc:4:13: error: ‘string_view’ is not a member of ‘std’
/media/bl/data/bags/onnxruntime-extensions-0.3.0/operators/string_utils.cc:4:29: error: template argument 1 is invalid
std::vectorstd::string_view SplitString(const std::string_view& str, const std::string_view& seps, bool remove_empty_entries) {
^

It requires gcc/g++ > 8.0 to compile the source code. it looks your g++ version is lower than that.
Any reason that you cannot install it throught 'pip install onnxruntime-extensions'?
If you are familiar with docker,  check this example form the compiling from the source https://github.com/microsoft/onnxruntime-extensions/blob/main/docker/onnx_ort_ext/Dockerfile


Update repositories.txt

@ArduinoBot please check it again

@ArduinoBot please check it again

Closing as duplicate of https://github.com/arduino/library-registry/pull/3409


Prepend itemView on insertView

I want to prepend the inserted view and I've followed this instruction
http://learn.eastros.com/2013/04/07/backbone-layoutmanager-how-to-prepend-a-view/
The following code does not work. The insert function does not trigger.
Any idea? Thank you.
addItemView : function(model, render){
var view = this.insertView(new itemView({
insert: function($root, $el){
$root.append($el);
}
}));
if (render !== false) view.render();
}

We have this PR open that would offer that functionality, we have had a few issues with it that have prevent its merge.
https://github.com/tbranyen/backbone.layoutmanager/pull/379
myView.insertView(myView, { insertAt: 0 });

+1


Add 'Coding in Delphi'

What does this PR do?
Add resource
For resources
Description
Add 'Coding in Delphi'
Why is this valuable (or not)?
It's a very good book about the Delphi language.  Unfortunately a real email is required to receive the PDF, but it's still worth it.
Checklist:

[✔] Read our contributing guidelines.
[✔] Search for duplicates.
[✔] Include author(s) and platform where appropriate.
[✔] Put lists in alphabetical order, correct spacing.
[✔] Add needed indications (PDF, access notes, under construction).
[✔] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

we don't accept most "must supply email" books - too hard to check if they're still available


request for release with latest docker-modem

Hi @apocas ,
could you release a version with latest docker-modem-release (that hoists the latest ssh2)?
Thank you.

Already done :)
https://github.com/apocas/docker-modem/issues/135
If you install dockerode, docker-modem v3.0.3 will be used.


DFG USB2Pro can not be detected on Ubuntu 16.04 with the newest kernel version 4.15

I followed the instructions to install the tiscamera.
I plugged in the DFG USB2Pro. Then I used the following command to test:
tcam-ctrl -l
But the system told me "No devices found.".
Is there any other configuration that I should do to make it work?
Michael.

Hello Michael
You need Kernel 4.18 or 4.19 (not 4.20). These kernel versions have the driver for DFG/USB2.pro built in.
You tiscamera modules can show the DFG/USB2pro, but unfortunately the video norm and input channel properties are missing.
Stefan

We have same issue on NVIDIA Jetson TX2, Ubuntu 16.04, kernel version: 4.4. If I understand you right we can't make it work on that device?

Hello Michael
You need Kernel 4.18 or 4.19 (not 4.20). These kernel versions have the driver for DFG/USB2.pro built in.
You tiscamera modules can show the DFG/USB2pro, but unfortunately the video norm and input channel properties are missing.
Stefan

@TIS-Stefan
I updated the kernel to 4.19 in Ubuntu 16.04, the DFG USB2pro can be found now.

Missing input properties is fine.
However, after DFG USB2pro is connected in UI "tcam-capture", I still can not get image of camera from the UI in Ubuntu.
btw: The hardwre works fine in windows.

Do you have any idea about this issue?
Many thanks,
Michael.

Hello Michael
You need Kernel 4.18 or 4.19 (not 4.20). These kernel versions have the driver for DFG/USB2.pro built in.
You tiscamera modules can show the DFG/USB2pro, but unfortunately the video norm and input channel properties are missing.
Stefan

@TIS-Stefan
I updated the kernel to 4.19 in Ubuntu 16.04, the DFG USB2pro can be found now.
Missing input properties is fine.
However, after DFG USB2pro is connected in UI "tcam-capture", I still can not get image of camera from the UI in Ubuntu.
btw: The hardwre works fine in windows.
Do you have any idea about this issue?
Many thanks,
Michael.

ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
Here, I also have tried with sudo, but had the same result. How can I make this work?
Michael

Hello Michael
You may try guvcview for the DFG/USB2pro.
In tcam-capture you may see a blue screen, which is generated by the DFG/USB2pro, if no camera is connected or synchronization failed, because e.g. the video norm does not fit to the camera.
I do not recommend to use the tcambin. Better is the v4l2src.

@TIS-Stefan
I tried guvcview, it didn't work.
I'm trying to use ros video_stream_opencv package to open the video.
Here, if the analog video is not connected, by running the ros package, I can get the blue screen.
However, if I connect the analog video, it gives me an error "select timeout", and I can not get the video stream.
Is there any solution to make it work by running ros package?
Michael

Hello Michael
Is there any solution to make it work by running ros package?
The NVidia TX2 is somewhat tricky to use, since they use an own Kernel and own drivers. I would like to suggest to try the DFG/USB2pro on a desktop computer first.
Also my experiences with ROS are extremely limited, so you may ask the ROS comunity. I do not have ROS installed on my Linux computers.
Stefan

Hi Michael
I should apologize for my last answer, because it was not really helpful.
Therefore, I connected a DFG/USB2pro to my desktop computer, searched an analogue (oh oh) camera and tried again. This time, I used qv4l2. All is working fine. qv4l2 needs QT to be installed, so you may do not do this on your TX2, if you do not want to use QT.
Next step is checking OpenCV, the cv::Videocapture class in particular. I will write a small C++ program for testing, but I think, setting video norm and input channel is not supported. However, I will see, how far I can get.  If this works, you may go in contact with the ROS poeple and ask, how to implement the needed properties of DFG/USB2pro.
In worst case, we have to write an own v4l2 based program, that gives access to all camera properties, but this is not too hard.
So, I get a coffee now and start hacking afterwards.
Stefan

Very nice. While trying to get libavcodec-ffmpeg.so.56, which is missing somehow, I destroyed my Linux. Thus, you may need to wait a few days for an answer.

So, got it working. I had too much OpenCV mismatch on my computer.
I did not find any settings for input channel (Composite and S-VHS) and video norm (NTSC and PAL-B) in the documentation of cv::VideoCapture. But you can set these properties with v4l2-ctl (paket v4l-utils), before starting your OpenCV application.
The possible intput channel settings are
v4l2-ctl --set-input 0   // that is Compsite
v4l2-ctl --set-input 1  // that is S-VHS
The possible video norms, depending on your analogue camera are:
v4l2-ctl -s PAL-B
v4l2-ctl -s NTSC
After configuring this, you can start an OpenCV cv::VideoCapture using program and you should see the live video.
Now I am curios to know, whether ros video_stream_opencv shows the video.
Stefan

@TIS-Stefan
Thank you so much for your information.
Sorry for not making it clear, I'm also using a desktop PC with Ubuntu 16.04, not TX2.

I did not find any settings for input channel (Composite and S-VHS) and video norm (NTSC and PAL-B) in the documentation of cv::VideoCapture. But you can set these properties with v4l2-ctl (paket v4l-utils), before starting your OpenCV application.

This is exactly the part that stuck me for a long time. Thanks a lot.
I will test DFG USB2Pro with the analog video again tomorrow according to your comments.
Since the ros package is also based on OpenCV, I think with a little modification, the ros video_stream_opencv package will also work.
I will let you know my result after the test.
Many thanks,
Michael.

Michael
I would simply set the input channel and video norm in a terminal and start the ROS package. Maybe this works, if so, the ROS package does not need to be modified at all.
Stefan

@TIS-Stefan
I have tested the DFG USB2Pro with a NTSC analog camera. It works well with ros video_stream_opencv package. only need to change the video port according to the /dev/video*.

The possible intput channel settings are
v4l2-ctl --set-input 0 // that is Compsite
v4l2-ctl --set-input 1 // that is S-VHS
The possible video norms, depending on your analogue camera are:
v4l2-ctl -s PAL-B
v4l2-ctl -s NTSC

Here, the full commands are:
v4l2-ctl -d * --set-input 0 // that is Compsite
v4l2-ctl -d *--set-input 1 // that is S-VHS
v4l2-ctl -d * -s PAL-B
v4l2-ctl -d * -s NTSC
where * is the video port number.
By typing "v4l2-ctl -d /dev/video* --all", it give:
hidetoshi@hidetoshi-ThinkPad:~$ v4l2-ctl -d /dev/video2 --all
Driver Info (not using libv4l2):
So I think this may be the reason that ubuntu guvcview and qv4l2 UI can't be used for test the DFG USB2Pro directly.
I think the content in this issue can be put in the Readme to help others with the same problem.
Really thanks for the help recently.
Michael.

Hi Michael
Thank you for the good news about ROS.
Usually qv4l2 and guvcview allow to select the /dev/video* files, except there is something wrong with one of them.
Stefan

I know this is an old issue, but I'd like to leave here information that may help others. The DFG/USB2pro sometimes doesn't work on Linux because if you don't initialize the companion audio device before starting getting frames from the video device, it will not work. Just init the audio device(Alsa) and read a single frame, then, start streaming from the video.
This is somewhat a quirk in the Conexant CX231XX driver in Linux. I will work on understanding more clearly this issue, but it's already a start.
Here is a command that will work flawless:
mencoder \
-noskip \
tv:///0 \
-tv norm=NTSC\
:device=/dev/video0\
:driver=v4l2\
:outfmt=yuv2\
:width=720:height=480\
:fps=29.97\
:alsa\
:adevice=hw.0,0\
:amode=1\
:buffersize=200 \
-ffourcc divx \
-oac mp3lame \
-lameopts cbr:preset=128 \
-ovc lavc \
-lavcopts vcodec=mpeg4\
:vbitrate=1400\
:threads=2\
:autoaspect \
-vf dsize=4/3 \
-vf-add scale \
-vf-add kerndeint=10:0:0:1:1 \
-vf-add softskip,harddup \
-endpos 02:10:00 \
-o ~/output.avi

@0x3333 @Xiaoyu0601-Wang
I am facing the same problem on ubutu 18.04 that qv4l2 UI is not working with DFG/USB2pro, how should I try for next?

@0x3333 @Xiaoyu0601-Wang
I am facing the same problem on ubutu 18.04 that qv4l2 UI is not working with DFG/USB2pro, how should I try for next?

As I said in my comment. If you don't initialize the audio device it will not work. There are  some apps that does initialize, but some don't. I believe that that is the case in your app.

how to initialize the audio device?qv4l2 UI does not initialize the audio device before capture?

how to initialize the audio device?qv4l2 UI does not initialize the audio device before capture?

Well, I don't know this software, but if it is not working, probably doesn't. In my case I use the camera in a software I build, so I initialize alsa device, in your case I don't know which is better. Try another player.


fix(executor): Properly handle empty resource results, like for a missing get. Fixes #1823

Checklist:

[ ] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I've signed the CLA.
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[x] My builds are green. Try syncing with master if they are not.
[ ] My organization is added to USERS.md.

Back-ported to v2.8.1


feat: Add variable for adding statement for secretsmanager:CreateSecret

Description
Add variable for configuring additional permissions for the IRSA Role, in order to allow CreateSecret.
Motivation and Context
Allow for usage of PushSecret, which requires CreateSecret access to AWS Secret Manager.
Breaking Changes

No, added variable has a default.
Defaults to not adding additional permissions, which is the current behavior.

How Has This Been Tested?

[x] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

This PR is included in version 5.29.0 :tada:


umap dot size

Hi,
I am trying to separate my umap according to some observation.
I'm sure I've have missed it but is there a parameter in sc.pl.umap() to control the dot size?
Thank you,
Justine :)

use the size parameter. Eg. size=10
On Wed, Oct 17, 2018 at 10:38 AM justinesjw<EMAIL_ADDRESS>wrote:

Hi,
I am trying to separate my umap according to some observation.
I'm sure I've have missed it but is there a parameter in sc.pl.umap() to
control the dot size?
Thank you,
Justine :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/theislab/scanpy/issues/307, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEu_1ftCpMP2-O0Wp9Smpawa0E6VxoLnks5uluyHgaJpZM4XjaFP
.

Should be in the docstring, now: https://github.com/theislab/scanpy/commit/21f100e80b5d7763fe30c001b2f62ffe8b6cb58a


getAutoDiffAssociatedFunctionType improvements

Adds more features to AnyFunctionType::getAutoDiffAssociatedFunctionType and SILFunctionType::getAutoDiffAssociatedFunctionType:

adds lookupConformance argument so that they can find tangent/cotangents for generic parameters
special-cases builtin types so that they can find tangent/cotangents for builtin types
teaches SILFunctionType::getAutoDiffAssociatedFunctionType to handle parameter indexes
teaches SILFunctionType::getAutoDiffAssociatedFunctionType to handle methods
adds selfUncurried to AnyFunctionType::getAutoDiffAssociatedFunctionType so that it can handle method types that have been uncurried
makes AnyFunctionType::getAutoDiffAssociatedFunctionType preserve function extinfo

I have split this stuff out into its own PR because both https://github.com/apple/swift/pull/20759 and my in-progress VJP synthesizer depend on these new features.

@swift-ci please test tensorflow

@swift-ci please clean test tensorflow

@swift-ci please test tensorflow


[C++][Parquet] Fix crashes on invalid input (OSS-Fuzz)

There are remaining issues open in OSS-Fuzz. We should fix most of them (except some out-of-memory conditions which may not easily be fixable).
Reporter: Antoine Pitrou / @pitrou
Assignee: Antoine Pitrou](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=apitrou) / @pitrou
PRs and other links:

GitHub Pull Request #23
GitHub Pull Request #6728

Note: This issue was originally created as PARQUET-1829. Please see the migration documentation for further details.

Wes McKinney / @wesm:
Issue resolved by pull request 6728
https://github.com/apache/arrow/pull/6728


Terminating the Dangling Network Call Which Is Blocked By Calico Network Policy

Certain IP's were Blocked Using Network Policy and applied inside k8 cluster for specific pods the blocked ip's  when called the connection where dangling utilising the pod resources
Network Policy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: test-network-policy
  namespace: test
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/edge_traffic: egress
  policyTypes:
    - Egress
  egress:
    - to:
        - ipBlock:
            cidr: <IP_ADDRESS>/0
            except:
              - <IP_ADDRESS>/32

# Immediate Reject the calls setting inside calico

Above we are expecting to block <IP_ADDRESS>/32
Expected Behavior

When made a call to <IP_ADDRESS>/32 the network call is not blocked immediately but gets timed out eventually after 130s
Expected Behaviour: It should get terminated immediately not keeping the connection open for a definite amount of time.
Current Behavior
The connection not closed until 130s.

Possible Solution

Is there an ENV Vairalbe which can be configured for immediate termination of the blocked request.
Steps to Reproduce (for bugs)

Deployemnt

apiVersion: v1
kind: Pod
metadata:
  name: busybox
  namespace: test
  labels:
    app.kubernetes.io/edge_traffic: egress
spec:
  containers:
  - image: busybox
    command:
      - sleep
      - "3600"
    imagePullPolicy: IfNotPresent
    name: busybox
  restartPolicy: Always

Network Policy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: test-network-policy
  namespace: test
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/edge_traffic: egress
  policyTypes:
    - Egress
  egress:
    - to:
        - ipBlock:
            cidr: <IP_ADDRESS>/0
            except:
              - <IP_ADDRESS>/32

# Immediate Reject the calls setting inside calico

Context

Your Environment

Calico version 3:20
docker.io/calico/pod2daemon-flexvol:v3.20.0
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes
Operating System and version:
Link to your project (optional):

Tried with Calico Resource(CRD) the same behavior was observed. The network Call didn't exit till 130s. Utilising the Network resource till 130s
apiVersion: crd.projectcalico.org/v1
kind: NetworkPolicy
metadata:
  name: deny-egress-external
  namespace: test
spec:
  selector:
    app.kubernetes.io/edge_traffic ==  'egress'
  types:
    - Egress
  egress:
    - action: Deny
      destination:
        nets:
        - <IP_ADDRESS>/32

Yep, this is the expected behavior - Calico drops traffic rather than rejecting it. It's up to the client application to set an appropriate connection timeout so that it can retry. This is an intentional choice, so clients cannot distinguish between blocked destinations and IPs that are not present in the network.
Normally I'd expect the client to set a connection timeout to something like 10-20 seconds to be safe.
e.g.,
curl --connect-timeout=10 <IP>

There is an open issue, and an associated WIP PR as well for this already raised here: https://github.com/projectcalico/calico/issues/4500
So going to close this as a duplicate.


Second JSON/Array not working

Hi gang! I'm working on my assignment now, I can't seem to get the second JSON to work and push through an array. I tried having my second JSON which I titled "food" in the same file as the squares and then again in it's own .json file. I'm not sure what I'm doing incorrectly but the food won't show up!!! Please let me know if you have any ideas thanks :)

Hi Jack,
You might try using ctx instead of using ctx1 since you only need one
context.
Hope this helps!
On Fri, Apr 19, 2019, 8:30 PM Jack Stob<EMAIL_ADDRESS>wrote:

Hi gang! I'm working on my assignment now, I can't seem to get the second
JSON to work and push through an array. I tried having my second JSON which
I titled "food" in the same file as the squares and then again in it's own
.json file. I'm not sure what I'm doing incorrectly but the food won't show
up!!! Please let me know if you have any ideas thanks :)
[image: Screen Shot 2019-04-19 at 8 29 13 PM]
https://user-images.githubusercontent.com/31556621/56450271-fb03ba80-62e1-11e9-9a15-7fac1223b8e3.png
[image: Screen Shot 2019-04-19 at 8 29 20 PM]
https://user-images.githubusercontent.com/31556621/56450272-fb03ba80-62e1-11e9-8c05-be90faa70e2b.png
[image: Screen Shot 2019-04-19 at 8 29 29 PM]
https://user-images.githubusercontent.com/31556621/56450273-fb9c5100-62e1-11e9-8252-004849790cb5.png
[image: Screen Shot 2019-04-19 at 8 29 53 PM]
https://user-images.githubusercontent.com/31556621/56450274-fb9c5100-62e1-11e9-9547-2f082377d6cd.png
[image: Screen Shot 2019-04-19 at 8 30 10 PM]
https://user-images.githubusercontent.com/31556621/56450275-fb9c5100-62e1-11e9-9c3d-92b228daf253.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/441-WebTech-Spring2019/issues/28,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB7ORE2557S6ASAH2MNCWDPRJ55NANCNFSM4HHIXZUQ
.

@michaelcassens
Hi Mr. Cassens!
I actually tried that RIGHT after posting this and it unfortunately didn't work :( Do you have any other ideas where I could be going wrong?

Have you tried making sure there items in the array?  Right after your for
loop where you call getJSON print out the length of the array and make sure
it says 2.  Then, check when you are printing the array out that is goes
into the for loop (the drawFood)
On Fri, Apr 19, 2019, 8:49 PM Jack Stob<EMAIL_ADDRESS>wrote:

@michaelcassens https://github.com/michaelcassens
Hi Mr. Cassens!
I actually tried that RIGHT after posting this and it unfortunately didn't
work :( Do you have any other ideas where I could be going wrong?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/441-WebTech-Spring2019/issues/28#issuecomment-485052861,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB7ORG63DUM3TNJABKDZXTPRKAEPANCNFSM4HHIXZUQ
.

So the first part of your question it printed back to me that the foodArray.length is 2! Which is great because that's what it should be. But there must be a break in the second part of what you are telling me to do. I have the drawFood in the same spot as where we have drawSquare, is this what you are referencing?

@michaelcassens
So the first part of your question it printed back to me that the foodArray.length is 2! Which is great because that's what it should be. But there must be a break in the second part of what you are telling me to do. I have the drawFood in the same spot as where we have drawSquare, is this what you are referencing?

Are you unable to print out anything in your drawFood function?
Michael
On Fri, Apr 19, 2019, 9:05 PM Jack Stob<EMAIL_ADDRESS>wrote:

@michaelcassens https://github.com/michaelcassens
So the first part of your question it printed back to me that the
foodArray.length is 2! Which is great because that's what it should be. But
there must be a break in the second part of what you are telling me to do.
I have the drawFood in the same spot as where we have drawSquare, is this
what you are referencing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/441-WebTech-Spring2019/issues/28#issuecomment-485053718,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB7ORB6M7I7P4SI4VUJKUDPRKB75ANCNFSM4HHIXZUQ
.

@michaelcassens it printed out that the array length was also 2!!! in the drawFood function

Okay so you might take a look at where and when you call clearRect.  Let me
know if that changes things!
Michael
On Fri, Apr 19, 2019, 9:22 PM Jack Stob<EMAIL_ADDRESS>wrote:

@michaelcassens https://github.com/michaelcassens it printed out that
the array length was also 2!!! in the drawFood function
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/441-WebTech-Spring2019/issues/28#issuecomment-485054564,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB7ORB536UZIKE4LFYODUTPRKD7HANCNFSM4HHIXZUQ
.

@michaelcassens yes thank you!!!! I got that working I really appreciate it!

Great!
On Fri, Apr 19, 2019, 9:33 PM Jack Stob<EMAIL_ADDRESS>wrote:

@michaelcassens https://github.com/michaelcassens yes thank you!!!! I
got that working I really appreciate it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Montana-Media-Arts/441-WebTech-Spring2019/issues/28#issuecomment-485055138,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB7ORH6WXZZTSYTIBO6II3PRKFHLANCNFSM4HHIXZUQ
.


Return 400 when url casing is not correct

sample: http://gost.geodan.nl/v1.0/DataStreams(17)/Observations
actual response: All observations
expected response: 400 error

related: http://localhost:8080/v1.0/aap/Observations returns all observations

The service is now case insensitive, defined endpoints and incoming request are set to lowercase and tested against a list of available paths.  Unknown paths such as "aap" do not work anymore and gost will return 404 not found.
https://github.com/Geodan/gost/commit/0ee11a251f063ceb1bafdf0021036b7bef5815aa


The following sedml script from the readthedocs doesn't work

The following script taken from the readthedocs: Usage Examples/SED-ML/2d Parameter Scan crashes when run:
modvec = SEDMLCodeFactory.getModelsFrom(task)

File "C:\Tellurium-Winpython-3.8\python-3.8.6.amd64\lib\site-packages\tellurium\sedml\tesedml.py", line 1275, in getModelsFrom
elif isinstance(refed_task, libsedml.RepeatedTask):
AttributeError: module 'libsedml' has no attribute 'RepeatedTask'
import tellurium as te

antimony_str = '''
// Created by libAntimony v2.9
model *parameterScan2D()

  // Compartments and Species:
  compartment compartment_;
  species MKKK in compartment_, MKKK_P in compartment_, MKK in compartment_;
  species MKK_P in compartment_, MKK_PP in compartment_, MAPK in compartment_;
  species MAPK_P in compartment_, MAPK_PP in compartment_;

  // Reactions:
  J0: MKKK => MKKK_P; (J0_V1*MKKK)/((1 + (MAPK_PP/J0_Ki)^J0_n)*(J0_K1 + MKKK));
  J1: MKKK_P => MKKK; (J1_V2*MKKK_P)/(J1_KK2 + MKKK_P);
  J2: MKK => MKK_P; (J2_k3*MKKK_P*MKK)/(J2_KK3 + MKK);
  J3: MKK_P => MKK_PP; (J3_k4*MKKK_P*MKK_P)/(J3_KK4 + MKK_P);
  J4: MKK_PP => MKK_P; (J4_V5*MKK_PP)/(J4_KK5 + MKK_PP);
  J5: MKK_P => MKK; (J5_V6*MKK_P)/(J5_KK6 + MKK_P);
  J6: MAPK => MAPK_P; (J6_k7*MKK_PP*MAPK)/(J6_KK7 + MAPK);
  J7: MAPK_P => MAPK_PP; (J7_k8*MKK_PP*MAPK_P)/(J7_KK8 + MAPK_P);
  J8: MAPK_PP => MAPK_P; (J8_V9*MAPK_PP)/(J8_KK9 + MAPK_PP);
  J9: MAPK_P => MAPK; (J9_V10*MAPK_P)/(J9_KK10 + MAPK_P);

  // Species initializations:
  MKKK = 90;
  MKKK_P = 10;
  MKK = 280;
  MKK_P = 10;
  MKK_PP = 10;
  MAPK = 280;
  MAPK_P = 10;
  MAPK_PP = 10;

  // Compartment initializations:
  compartment_ = 1;

  // Variable initializations:
  J0_V1 = 2.5;
  J0_Ki = 9;
  J0_n = 1;
  J0_K1 = 10;
  J1_V2 = 0.25;
  J1_KK2 = 8;
  J2_k3 = 0.025;
  J2_KK3 = 15;
  J3_k4 = 0.025;
  J3_KK4 = 15;
  J4_V5 = 0.75;
  J4_KK5 = 15;
  J5_V6 = 0.75;
  J5_KK6 = 15;
  J6_k7 = 0.025;
  J6_KK7 = 15;
  J7_k8 = 0.025;
  J7_KK8 = 15;
  J8_V9 = 0.5;
  J8_KK9 = 15;
  J9_V10 = 0.5;
  J9_KK10 = 15;

  // Other declarations:
  const compartment_, J0_V1, J0_Ki, J0_n, J0_K1, J1_V2, J1_KK2, J2_k3, J2_KK3;
  const J3_k4, J3_KK4, J4_V5, J4_KK5, J5_V6, J5_KK6, J6_k7, J6_KK7, J7_k8;
  const J7_KK8, J8_V9, J8_KK9, J9_V10, J9_KK10;
end
'''

phrasedml_str = '''
  model_3 = model "parameterScan2D"
  sim_repeat = simulate uniform(0,3000,100)
  task_1 = run sim_repeat on model_3
  repeatedtask_1 = repeat task_1 for J1_KK2 in [1, 5, 10, 50, 60, 70, 80, 90, 100], reset=true
  repeatedtask_2 = repeat repeatedtask_1 for J4_KK5 in uniform(1, 40, 10), reset=true
  plot repeatedtask_2.J4_KK5 vs repeatedtask_2.J1_KK2
  plot repeatedtask_2.time vs repeatedtask_2.MKK, repeatedtask_2.MKK_P
'''

# create the inline OMEX string
inline_omex = '\n'.join([antimony_str, phrasedml_str])

# execute the inline OMEX
te.executeInlineOmex(inline_omex)

Fixed with https://github.com/sys-bio/tellurium/commit/139cbc85dd11a67edd619e2ade5d2f95cb883ef7


Changing Speaker to Headphone

everytimes i switch speaker to headphone, i need to refresh the skin, is there anyway to make it seamless? https://s1.postimg.org/455sfsr17z/speaker.png

It should I guess be possible to use the Win7AudioPlugin to get the name of the default device and force a refresh when it has changed.
However both Marco and I have been a little busy lately so it may take us a while before we get around to it.

It should be possible to implement such thing as far as i know, but I haven't got that much time as i'm working on other projects right now as @tjhrulz already said.
I will definitely check it out and will keep you updated via comments on this issue.

I've added in the feature with 367dcee2e901dfc8ae0f5943d812670767aabff6, it will be in the next release.
If you already want to have the feature, check out the Manual Installation at the main github page.


Use compiler plugin in templates

Fix #146

Is this also covered in your todays scope @pawelprazak?


Fix type definition for fetch url

@tiodan81 thanks

I pushed 7.0.1 with this change.  I currently do not use Typescript myself to confirm though.


IOU-Error "hhm its not here" displayed on refreshing split bill confirmation page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.11-13
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Go to https://staging.new.expensify.com/
Click fab
Click request money ----Scan
Upload an image
Select 2 participants and Click split
Click add to split
Click browser refresh button

Expected Result:
Error "hhm its not here" must not be displayed on refreshing split bill confirmation page
Actual Result:
Error "hhm its not here" displayed on refreshing split bill confirmation page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[x] iOS: mWeb Safari
[x] Windows: Chrome
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/3b654eee-6d84-4d11-8a47-4ad90d3b810f
View all open jobs on GitHub

Looking now

I could not reproduce this on mWeb Safari nor MacOs chrome

Just reproduced on dev MacOS Chrome. Gonna investigate

This seems fixed in latest main. I think https://github.com/Expensify/App/pull/32849 fixed it.


Exceptions not friendly to browser console

Thank you so much for the code, Transcrypt is becoming awesome.  Now to the issue:
raise Exception("Brouhaha!!!1")
assert False, "assert works in js"  # cannot debug this in JS console

Any one of the above exceptions appear in Firefox console as:
uncaught exception: unknown (can't convert to string)
...and there is no stacktrace.
(I compile with --dassert because I want assertions to run in JS.)
This is too unfriendly and impossible to debug, I am afraid.
If I am missing something, of course, please let me know.

I get this in a chromium based console:
Exception

assert

For some reason, the firefox console does not handle object exceptions


Allow to compile the extension everywhere

This change:

uses to setuptools Cython automatic extension build system.
Add tox.ini to run tests and build docs into virtualenv
Add .travis.yaml and Dockerfile to run tests in CI
Change requirements to ensure:

Cython and setuptools are installed before we build the Cython
extension
tests dependencies are not installed by default
doc dependencies are explicit

Add missing lz4 library
Allow to build the module with any librocksdb headers (no-rtti)

Closes #15

Pull-request updated, HEAD is now e8de1ea7462d0650e923d9322e682a6f76704518

You can see the result of the travis CI: https://travis-ci.org/sileht/python-rocksdb/builds/339353563

@sileht
thanks! I will merge this PR in a few days.

Don't forget to enable travis on your repo to enable it :)


Error: Failed to create captire sesstion

I get the error: "Failed to create capture session" when trying to use the front camera on the Xiaomi Redmi note 7 Android 10 device.

Thanks for reporting this! However, you opened this issue on the repo for the Docs, please open a new issue on the repo for the actual product using the right template. Thanks!


add newline for each login item in .dockercfg

in current docker version 1.4.1, the login information for all the items is one line in ~/.dockercfg, it is difficult to remove (since we don't have logout) it manually.
{"docker.cn":{"auth":"bGsssycnk6bGFycnljYWk=","email":"test<EMAIL_ADDRESS>
Will be nice if they can be written as line by line for each item like.
{
<EMAIL_ADDRESS><EMAIL_ADDRESS>}

Is it good enough to use json.MarshalIndent see sample: http://play.golang.org/p/qxIgVgqtxY ?
{
  "docker.cn": {
    "auth": "ksdahjf12323",
    "email"<EMAIL_ADDRESS>  },
  "dokk.co": {
    "auth": "ksdahjf12323",
    "email"<EMAIL_ADDRESS>  }
}


[pigeon] Java generator code with some warning

some method such as below has lint warnings
protected Object readValueOfType(byte type, ByteBuffer buffer) {
   ··· omit ···
}
protected void writeValue(ByteArrayOutputStream stream, Object value) {
   ··· omit ···
}

Hi @5peak2me, thanks for filing the issue.
I see there are some open issues addressing the case you described #110769, #59116
Closing this issue as a duplicate, so please follow up on it for further updates. You can leave there your comment and react an upvote to the original comment will help to raise the issue. Thank you!

Thanks！


command line options/args to send 'next track'' command possible?

Hi I have got raspotify on a PI in my car, I want to hook up to my canbus steering wheel controls - I have the button presses available as key presses or a command or anything really. Any options here?

No. You would need to roll your own control interface by connecting to Spotify's web api.

For anyone that comes looking with similar question - I have hacked together this monster https://github.com/jakka351/Rpotify and have canbus steering wheel controls controlling raspotify on a RPI4 playing wirelessly from my phone.

You could add a page to the wiki?

I will write something up

Maybe page in the wiki with a list of links to projects that use Raspotify along with a very brief description of the project?

@jakka351 Done:
https://github.com/dtcooper/raspotify/wiki/Projects-related-to-Raspotify

Cool.


Fire stick 4k max 1st gen and 2nd gen BUG with DV + HDR content (split screen OR only blackscreen with audio)

Version
Media3 1.2.0
More version details
Hi, I am unsure of the version but default exoPlayer used in Stremio software will have this issue.
I was hoping there could be a fix from your side since for example it works properly with Vimu Media player being used as external player. However users don't have so many integrated features as they have in Stremio with exoPlayer, such as addons for subtitles.
Here's more details of this bug:
https://github.com/jellyfin/jellyfin-androidtv/issues/2630
https://github.com/google/ExoPlayer/issues/11096
https://www.reddit.com/r/Stremio/comments/191lvr7/firestick_4k_max_2nd_gen_dv_content_bug/
Devices that reproduce the issue
Fire stick 4k Max 1st generation
Fire stick 4k Max 2nd generation
Devices that do not reproduce the issue
Xiaomi Mi10T pro
TCL C635 55" with Google TV
Reproducible in the demo app?
Not tested
Reproduction steps
Open any source in stremio that has DV+HDR flag and use a firestick 4k max
1st gen: Only audio and a black screen
2nd gen: Split screen
Expected result
Normal playing behaviour
Actual result
Split screen or black screen
Media
https://github.com/jellyfin/jellyfin-androidtv/issues/2630
https://www.reddit.com/r/Stremio/comments/191lvr7/firestick_4k_max_2nd_gen_dv_content_bug/
Bug Report

[X] You will email the zip file produced by adb bugreport to<EMAIL_ADDRESS>after filing this issue.

Seems like this issue was already present before and still not solved/fixed: https://github.com/google/ExoPlayer/issues/11096
please investigate and release a hotfix if possible.

this is a duplicate of https://github.com/google/ExoPlayer/issues/11096, up to @tonihei who handles the other issue to decide which one to keep open

It's enough to keep one issue open. Let's keep the existing one because of the history.
@nreis96 Please note that this is an issue in the decoder provided by Amazon on the Fire stick and Dolby investigated it already (see https://github.com/jellyfin/jellyfin-androidtv/issues/2630) and couldn't see a workaround other than fixing the actual device. The only other known workaround in the player is to actively change the bitstream of the media to remove certain fields, which is probably too invasive and it would be much better if Amazon could fix the decoders instead.


Update dependencies

https://docs.djangoproject.com/en/1.11/releases/1.11.5/
http://www.django-rest-framework.org/topics/release-notes/#36x-series
https://github.com/requests/requests/blob/master/HISTORY.rst
https://github.com/Frozenball/pytest-sugar/blob/master/CHANGES.rst
https://github.com/etianen/django-reversion/blob/master/CHANGELOG.rst
https://github.com/joke2k/django-environ#changelog
https://github.com/boto/boto3/blob/develop/CHANGELOG.rst
http://initd.org/psycopg/docs/news.html
We don't seem to be compatible with the latest pytest, so have left that out for now.

Codecov Report

Merging #447 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #447   +/-   ##
========================================
  Coverage    96.12%   96.12%
========================================
  Files          102      102
  Lines         3197     3197
  Branches       280      280
========================================
  Hits          3073     3073
  Misses          85       85
  Partials        39       39

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 164f48e...81ef433. Read the comment docs.


Volf, N. V., & Gluhih, A. A. (2011). Background cerebral electrical activity in healthy mental aging.

Volf, N. V., & Gluhih, A. A. (2011). Background cerebral electrical activity in healthy mental aging. Human Physiology, 37(5), 559–567. https://doi.org/10.1134/S0362119711040207

This is band-by-band analysis - no aperiodic measure or discussion


[WelcomeUX] Editor walkthrough problems persist even when it's closed

Testing #18091
I don't have the walkthrough tab open anymore but still have entries in problems view:

Clicking these open the backing file.

Let me know if you have any steps to reproduce.

Yes having trouble reproducing now. Clicking on the problems is still an issue though as that will open the readonly files in new editors

I agree it might be best to not show them for now. Having them not disappear might indicate a leak though.

We don't show these problems in the problems view anymore.


Select the site a user is in if they don't specify fixes #186 and #222

Sphinx doc seems cool! We can do that update after the pilot release.


improve ci

CI does not create an extra-venv, but relies on the python set-up in the github action

this is good to go


Window is not defined (classnames)

Describe the bug
gatsby build fails due to window is not defined error from classnames.
To Reproduce
Steps to reproduce the behavior:

Checkout to site branch
Install the dependencies npm install
Do npm run build

Expected behavior
The build should be successful for deployment

Fixed in #325


Please hand this project to someone who is willing to carry on developing it!

This project is an amazing piece of work. However things are starting to not work properly. Would you consider handing it to someone who will continue working on it?

It's an open source project under the MIT license. Nothing is stopping people from either forking it or sending pull requests.