Pattern matching

Related to https://github.com/PistonDevelopers/dyon/issues/304
Idea taken from https://github.com/PistonDevelopers/dyon/issues/359, but might be useful in general.
The idea is to add pattern matching to Dyon, a bit similar to Rust. Since Dyon is dynamically typed there is a ?= operator instead of :=.
The ?= operator checks the run-time type at run-time and reports an error if it is wrong. The type checker checks the static types and reports an error if the code never gets called.
If pattern
The ?= operator can be used with if:
x := [1, 2]
if [a, b] ?= x {
     ...
}

Try pattern
It can also be used directly in a function that returns err:
fn foo() -> res {
    x := [1, 2]
    [a, b] ?= x
    ...
}

The following code gives an error because it is exhaustive:
a := 1
b ?= a // ERROR: Use `:=` instead

Match pattern
A match expression similar to Rust:
x := [1, 2]
match x {
    [a, b] => { ... }
    _ => { ... }
}

The match requires _ or a variable since it can not be exhaustively checked.
Type is checked on all arms like with an if-expression.

Matching on array
An array pattern fails if it does not match exactly:
x := [1, 2, 3]
if [a, b] ?= x {
    // never runs because the number of items are not the same
    ...
}

To match against an array with a tail, add , .. at the end:
x := [1, 2, 3]
if [a, b, ..] ?= x {
    // runs because a tail is allowed
    ...
}

To bind against the tail, use ..<name>. This does a shallow clone of the array, inheriting its lifetime.
x := [1, 2, 3]
if [_, _, ..a] ?= x {
    println(a) // prints `[3]`
}

Can also put the tail before the items:
x := [1, 2, 3]
if [..a, b] ?= x {
    println(a) // prints `[1, 2]`
    println(b) // prints `3`
}

In general, one can put items before and after the tail. The tail can be empty, so the following runs:
x := [1, 2, 3, 4]
if [a, b, ..c, d, e] ?= x {
    println(c) // prints `[]`
}

Rules for the tail:

There can only be one tail inside an array pattern
The tail can be empty

Matching on object
An array pattern fails if it does not match exactly:
x := {a: 1, b: 2, c: 3}
if {a: a, b: b} ?= x {
    // never runs because there are other items
    ...
}

To match against an object with extra items, add , .. at the end:
x := {a: 1, b: 2, c: 3}
if {a: a, b: b, ..} ?= x {
    // runs because extra items are allowed
    ...
}

To bind against the extra items (the object tail), use ..<name>. This does a shallow clone of the items, inheriting the lifetime of the object.
x := {a: 1, b: 2, c: 3}
if {a: _, b: _, ..xc} ?= x {
    println(xc) // prints `{c: 3}`
}

Rules for the object tail:

There can only be one tail inside an object pattern
The tail can be empty

Matching on vec4
A vec4 pattern succeeds even when there are more non-zero components than in the pattern:
x := (1, 2, 3)
if (a, b) ?= x {
    ...
}

To match against zero, use 0s:
x := (1, 2, 3)
if (a, b, 0, 0) ?= x {
    // never runs because `z` is non-zero
    ...
}

Matching on link
An link pattern fails if it does not match exactly:
x := link {1 2 3}
if link {a b} ?= x {
    // never runs because the number of items are not the same
    ...
}

To match against a link with a tail, add , .. at the end:
x := link {1 2 3}
if link {a b ..} ?= x {
    // runs because a tail is allowed
    ...
}

To bind against the tail, use ..<name>.
x := link {1 2 3"rd"}
if link {_ _ ..a} ?= x {
    println(a) // prints `3rd`
}

Can also put the tail before the items:
x := link {1","2 3}
if link {..a b} ?= x {
    println(a) // prints `1,2`
    println(b) // prints `3`
}

In general, one can put items before and after the tail. The tail can be empty, so the following runs:
x := link {1 2 3 4}
if link {a b ..c d e} ?= x {
    println(c) // prints ``
}

Rules for the link tail:

There can only be one tail inside a link pattern
The tail can be empty

Match on constant
When matching on a constant, both runt-time type and equality is checked.

true/false
0/1/... (other numbers)
"hello" (other strings)
#ff0000 (other HTML hex colors)

Matching against expression
Put a ? in front of the expression to check for equality:
a := 1
x := [1, 2]
if [?a, b] ?= x {
    ...
}

This also works well with grab expressions in closures:
fn foo(a: f64) -> \([f64]) -> bool {
    return \(x) = if [?grab a, ..] ?= x { true } else { false }
}

Match against regular expression
A string can be matched against a regular expression. More discussion https://github.com/PistonDevelopers/dyon/issues/284


chore: buss

Current dependencies on/for this PR:

master

PR #1

PR #2

PR #3   👈

This comment was auto-generated by Graphite.


Appyx 1.x - Rename integration point

Description
Checklist

[ ] I've updated CHANGELOG.md if required.
[ ] I've updated the documentation if required.

I wonder if we should merge this directly into 1.x or to some 1.x-interop-2.x?
CC @KovalevAndrey


Non-descriptive error when re-running still-running resolution

There should be a check that the resolution to clone is not still running, and the resulting error message should be descriptive, instead of failing during the cloning process:
IndexError: list index out of range
Traceback (most recent call last):
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/state_machine_resolver.py", line 99, in _catch_resolution_errors
    yield
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/state_machine_resolver.py", line 37, in resolve
    self._seed_graph(future)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/local_resolver.py", line 60, in _seed_graph
    self._seed_from_clone(future, self._rerun_from_run_id)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/local_resolver.py", line 90, in _seed_from_clone
    cloned_graph = graph.clone_futures(
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/graph.py", line 529, in clone_futures
    cloned_graph.futures_by_original_id[run_id] = self._clone_run(
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/graph.py", line 451, in _clone_run
    future = func(**kwargs)
TypeError: _make_list() got an unexpected keyword argument 'v0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/worker.py", line 158, in main
    resolver.resolve(future)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/cloud_resolver.py", line 109, in resolve
    return super().resolve(future)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/state_machine_resolver.py", line 38, in resolve
    self._resolution_loop()
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/python3_8_x86_64-unknown-linux-gnu/lib/python3.8/contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/state_machine_resolver.py", line 101, in _catch_resolution_errors
    self._resolution_did_fail(error=e)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/local_resolver.py", line 366, in _resolution_did_fail
    self._move_runs_to_terminal_state(reason)
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/local_resolver.py", line 390, in _move_runs_to_terminal_state
    self._save_graph()
  File "/app/sematic/examples/testing_pipeline/__main___default_image.binary.runfiles/sematic/sematic/resolvers/local_resolver.py", line 550, in _save_graph
    root_id=self._futures[0].id, runs=runs, artifacts=artifacts, edges=edges
IndexError: list index out of range

This issue is invalid. It was caused by #311. Validated that re-running a still-running resolution works correctly.


Fix permissions, add missing variables and outputs, refactor code

refactor: change null to [] in for_each and remove redundant try blocks
feat: add module_enabled, module_depends_on, module_tags and all input variables to outputs
refactor: remove redundant ecr:GetAuthorizationToken from aws_ecr_repository_policy
BREAKING CHANGE: move ecr:ListImages from push_identities to pull_identities
refactor: cleanup code
chore: prepare v0.5.0

the breaking change commit is not marked as such, please change the commit message according to the standard


Throwing Missing Plugin Exception

Version : 3.4.1
causing repetitve crashes ->
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: MissingPluginException(No implementation found for method setAccelerationSamplingPeriod on channel dev.fluttercommunity.plus/sensors/method)
at MethodChannel._invokeMethod(platform_channel.dart:308)

It's related to the shake package because it depend on an old version of sensor_plus package
So once they update their package dependencies, this issue will be fixed
For more info please check this issue

If anyone is looking for a quick workaround, you can add this to your pubspec.yaml:
dependency_overrides:
  sensors_plus_platform_interface: '1.1.3'

Seems like the shake library is no longer maintained :/

Fixed on v4.1.1 🚀.
closing this issue for now, but feel free to reopen it again if you are still facing the same behavior.


Add HP moonshot 1500 support

Hi,
I add the support of  hp moonshot 1500 with ProLiant m710x cartridge.
I take the decison after digging a lot to declare that a moonshot is like a "blade".
(little linting btw)
Hope this help,
Regards,

https://github.com/Solvik/netbox-agent/pull/161


grails3 plugin with domain classes - crash

hi,
we have a grails3 app with local plugins (domain classes included). Is there any working example for it?
for example dbm-gorm-diff isn't working. Grails want to call dbm-gorm-diff inside the plugin directory. There it crashes with: java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
if we insert hibernate as dependency, we got :
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persistenceInterceptor': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.grails.orm.hibernate4.support.AggregatePersistenceContextInterceptor.setHibernateDatastores(org.grails.orm.hibernate.AbstractHibernateDatastore[]); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.grails.orm.hibernate.AbstractHibernateDatastore] found for dependency [array of org.grails.orm.hibernate.AbstractHibernateDatastore]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
how can we solve it?
thx.

@meltzow Can you please confirm this is still occuring with version 2.0.0.BUILD-SNAPSHOT of the plugin, and if so, attach an example project?

Closing this due to lack of response. Create a new issue with an example project if you are still facing this issue with version 2.0.0.


test(e2e): test presence when no clients connected

@AlexBHarley @MuriloFrade

this appears to have been merged


imp(build): Added dependency review action (https://www.bleepingcompu…

…ter.com/news/security/github-can-now-alert-of-supply-chain-bugs-in-new-dependencies/)

Codecov Report

Merging #113 (ffa852c) into master (1f6f100) will decrease coverage by 0.40%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #113      +/-   ##
============================================
- Coverage     93.51%   93.11%   -0.41%
  Complexity     1558     1558
============================================
  Files           160      160
  Lines          3394     3414      +20
  Branches        344      345       +1
============================================
+ Hits           3174     3179       +5
- Misses          136      145       +9
- Partials         84       90       +6

Impacted Files
Coverage Δ

.../main/java/net/datafaker/idnumbers/EnIdNumber.java
54.54% <0.00%> (-45.46%)
:arrow_down:

src/main/java/net/datafaker/service/FakerIDN.java
63.63% <0.00%> (-9.10%)
:arrow_down:

src/main/java/net/datafaker/DateAndTime.java
89.70% <0.00%> (-7.07%)
:arrow_down:

...ker/idnumbers/pt/br/IdNumberGeneratorPtBrUtil.java
92.59% <0.00%> (-3.71%)
:arrow_down:

src/main/java/net/datafaker/fileformats/Csv.java
85.54% <0.00%> (-0.88%)
:arrow_down:

.../java/net/datafaker/service/FakeValuesService.java
86.81% <0.00%> (+0.14%)
:arrow_up:

src/main/java/net/datafaker/FakeCollection.java
46.91% <0.00%> (+4.44%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Add typescript type definitions

Add typescript type definitions for the library version 1.1.0

@martin-braun can you have a second look here?


Clarification for Compound indexing filtering + sorting

The documentation is clear about filtering and sorting on the same fields. What about filtering and sorting by different fields? What is CosmosDB behavior for MongoDB API?
Example:
# create an compound index on name and age
db.coll.createIndex({name:1,age:1})
# create an index on surname
db.coll.createIndex({surname:1})

# is this using index for searching and sorting?
# or should we create an index with {surname:1, name:1,age:1}?
db.coll.find({surname: : { $regex : /^mc/ }}).sort({name:1,age:1})

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

ID: 60d86c46-2b4b-53a6-da61-af5833b334a2
Version Independent ID: 18b651d7-876d-e5b1-5af6-9e6b2827c8a7
Content: Manage indexing in Azure Cosmos DB API for MongoDB
Content Source: articles/cosmos-db/mongodb/mongodb-indexing.md
Service: cosmos-db
Sub-service: cosmosdb-mongo
GitHub Login: @gahl-levy
Microsoft Alias: gahllevy

@rodrigogq Thank you for the feedback. We are actively investigating and will get back to you soon.

@rodrigogq Thanks for your patience. As per the same article, "Compound indexes are only used in queries that sort results. For queries that have multiple filters that don't need to sort, create multiple single field indexes."
That means if we are sorting the documents in the collections by using multiple fields then we need to create compound index, and for that matter we need to create compound indexes for every combination that we need to sort on. However for filtering its always suggested to create single field index. So in your example, as you are filtering first on 'surname' it was right to create single index on that field, and then compound index on multiple fields (name and age) where sorting is implemented.
Same is explained in below article as well:
Use Indexes for blazing-fast queries on your API for MongoDB Data

@rodrigogq Just wanted to check if you need any further details on this.

Hi @AnuragSharma-MSFT, thank you! I have read the posts you indicated before, but I couldn't be 100% sure if filtering and sorting after filtering would actually really use the index.
Unfortunately I still did not have time to make some real tests on a database with enough data. But I will definitely do that in a few days.


app:install to generate key?

Would it be a bad idea to have app:install also generate the APP_KEY?

Hmmm. D'no. Don't we have an events system Cachet can hook into. I assume this is in the context of cachet?

It's in the context of Cachet. I was going to write it into Cachet, but I figured that since app:install makes it sound like the app is being installed (part of that is the key) then Laravel-Core should do it?

Hmmm. I'll think about it. On the train atm.


Do not allow string values for rules anymore

String values had not been allowed for rules, and should not
be. (Passing string values was a bug in the Emogrifier
library.)
@see https://github.com/MyIntervals/emogrifier/pull/1144
This reverts commit 67a6e95f8ad2c9c3d8d745f1943eda8da81383a4.

I’m not sure this is true. When the rule value is an identifier, it will be a string stored in mValue:
.test {
white-space: nowrap;
}

will parse into the following Rule:
          object(Sabberworm\CSS\Rule\Rule)#8 (7) {
            ["sRule":"Sabberworm\CSS\Rule\Rule":private]=>
            string(11) "white-space"
            ["mValue":"Sabberworm\CSS\Rule\Rule":private]=>
            string(6) "nowrap"
            ["bIsImportant":"Sabberworm\CSS\Rule\Rule":private]=>
            bool(false)
            ["aIeHack":"Sabberworm\CSS\Rule\Rule":private]=>
            array(0) {
            }
            ["iLineNo":protected]=>
            int(2)
            ["iColNo":protected]=>
            int(19)
            ["aComments":protected]=>
            array(0) {
            }
          }

AFAICT the type for mValue should be Value|string. IMHO we should also get rid of null and just use "" for the default value.

When the rule value is an identifier, it will be a string stored in mValue:

Would introducing an Identifier (or Keyword) subclass of Value help resolve this?  Such a class would just wrap a string, but also allow the unique Value superclass type to be used whenever a value is expected or provided (e.g. see #507 which results in lots of type specifications of Value|string).

IMHO we should also get rid of null and just use "" for the default value.

It seems that the default, with no value having been set, does not represent a valid property declaration.  This would not arise from parsing, since Value::parseValue would throw an exception, but may arise from manipulation by user code instantiating additional Rules and failing to set their values.  Rules with a missing value would currently be rendered as key:;, and discarded upon reparsing.


Cropped preference window

When I first launched the app the preferences window was working correctly but now it's cropped. I attached a screenshot of how it looks like.

I'm unable to duplicate this issue, I even downloaded the release you're using. I'll rework the constraints on the Preferences window and see if that fixes the problem.
Does restarting the app fix the window? I've gone through all of the display resolutions on my macbook pro and the Preferences window stays at the correct width.

Just to help, also happens to me, even before 1.2.2 (before you removed Swift from the name)

Few versions before, however, I was able to resize it by clicking on the lower right corner. Now seems it's fixed.

Huh, it's still not happening for me. I've reworked the preferences window constraints and it should have (hopefully) fixed that problem. There's a few more features I want to add before pushing out a new release but if you have XCode you can compile the latest commit. If you do, could you let me know if it works?

Has this been fixed for you in the latest release?

The same thing is happening on my end adding the URLs also seem to change the preference window. I tried compiling the new commit and seem to have the same result.


Set SELinux types on cri-o files

After building/installing CRI-O, set the SELinux types on
specific files based on platform (ansible_distribution) name.
If no mapping for that platform is available, choose the default
item if one is present.  Failing both, skip the file.
For now this only includes /usr/local/bin/crio and sets the same
type on all platforms.  However this is easily expanded by
updating the mapping in vars.yml to include additional
files and/or ansible_distribution names (or "default") and types.
Signed-off-by: Chris Evich<EMAIL_ADDRESS>

@rhatdan your wish is my command (just make sure you wish really really loudly) 😀

/test all

LGTM

We need to take out setenforce 0 from e2e.yml to see if this really works.

Agreed, and then capture the AVC messages generate during the run.

ausearch -m avc, user_avc

We already capture AVCs: https://storage.googleapis.com/origin-ci-test/pr-logs/pull/kubernetes-incubator_cri-o/906/test_pull_request_crio_e2e_rhel/134/artifacts/generated/avc_denials.log

Good.

@cevich Looks like it is complaining about missing policycoreutils?

Hmm, maybe I spelled it wrong.  Will take a look next week (and kill the setenforce 0)

I think you will need policycoreutils-python3 for Fedora.

I think you will need policycoreutils-python3 for Fedora.

Hmm, can try that, but mostly Ansible tries to stick to python2 stuff.  Looking at it now.

Ahh, right, durr.  This is because of the setup-caching thing.  @stevekuznetsov I've added a package to the install list, but that's not going to be reflected in the cached AMI being used to test the PR.  Is there a way I can make the CI job run with all the tags, so it includes the setup tag?
Plan B: I'll stick in a dummy commit to just always install that package, for testing purposes.

/test all

Nevermind @stevekuznetsov @mrunalp answered my question.

rebase --autosquash and --force push after killing the task: "Disable SELinux" 😀

/test ami

Ah, I understand

Thanks for checking @stevekuznetsov , I know the other guys appreciate it, even if they don't say so all the time.

hrmmm, the slash-test AMI console logs are wrong.  It shows this task running:
TASK [disable SELinux] *********************************************************
However, I deleted that task in 9a217dc ?!?!?!  Anyhoo, the good news is the new task I added appears to be working perfectly:
TASK [Enforce specific SELinux types for crio files on this platform] **********
task path: /go/src/github.com/kubernetes-incubator/cri-o/contrib/test/integration/build/cri-o.yml:87
changed: [localhost] => (item={'key': u'/usr/local/bin/crio', 'value': {u'default': u'container_runtime_exec_t'}}) => {
    "changed": true,
    "ftype": "a",
    "item": {
        "key": "/usr/local/bin/crio",
        "value": {
            "default": "container_runtime_exec_t"
        }
    },
    "serange": "s0",
    "setype": "container_runtime_exec_t",
    "seuser": "system_u",
    "state": "present",
    "target": "/usr/local/bin/crio"
}

The bad news is, now the cri-o e2e tests fail 😖

TASK [run e2e tests] ***********************************************************
task path: /go/src/github.com/kubernetes-incubator/cri-o/contrib/test/integration/e2e.yml:51
fatal: [localhost]: FAILED! => {
    "changed": true,
    "cmd": "/usr/bin/go run hack/e2e.go --test -test_args=\"-host=https://<IP_ADDRESS>:6443 --ginkgo.focus=\\[Conformance\\] --report-dir=/tmp/artifacts\" &> /tmp/artifacts/e2e.log ",
    "delta": "0:15:38.677798",
    "end": "2017-10-09 19:51:37.367788",
    "failed": true,
    "rc": 1,
    "start": "2017-10-09 19:35:58.689990"
}
	to retry, use: --limit @/go/src/github.com/kubernetes-incubator/cri-o/contrib/test/integration/main.retry

PLAY RECAP *********************************************************************
localhost                  : ok=27   changed=17   unreachable=0    failed=1

I can't tell from that why it fails.  Maybe the e2e.log says something?

No love, the e2e.log just says it got an error 😢
2017/10/09 19:51:37 main.go:260: Something went wrong: encountered 1 errors: [error during ./hack/ginkgo-e2e.sh -host=https://<IP_ADDRESS>:6443 --ginkgo.focus=\[Conformance\] --report-dir=/tmp/artifacts: exit status 1]
2017/10/09 19:51:37 e2e.go:78: err: exit status 1
exit status 1

More looking.  The ci/openshift-jenkins/e2e_rhel job isn't running the code from this PR:
+ git checkout master
Already on 'master'
+ git branch -D target
error: branch 'target' not found.
+ true
+ git branch -D pr
error: branch 'pr' not found.
+ true
+ git branch target 825f7f290b3c5518c2a55af25dad94b7f5f3efe9
+ git checkout target
Switched to branch 'target'
+ git fetch origin pull/982/head:pr
From https://github.com/kubernetes-incubator/cri-o
 * [new ref]         refs/pull/982/head -> pr
+ git merge 23086a19251e0244be5d8d7ea9f23c47ed71ad40
Merge made by the 'recursive' strategy.

So that's why that failed.
The other two (ami_rhel & ami_fedora) appear to be actual e2e-test failures, with different causes.  The collected generated/avc_denials.log for both is empty, so either no denials happened/logged or the job failed to collect them (somehow).  I don't see any full disks or weird things in pid1.journal.  The crio.service log appears more interesting, with this for RHEL:
Oct 09 19:47:16 ip-172-18-4-21.ec2.internal crio[4910]: time="2017-10-09 19:47:16.240599991Z" level=error msg="Container creation error: container_linux.go:288: creating new parent process caused "container_linux.go:1655: running lstat on namespace path \"/proc/0/ns/ipc\" caused \"lstat /proc/0/ns/ipc: no such file or directory\""

and fedora:

No idea if those are real problems or not.  @rhatdan or @mrunalp could you or someone else take a look here please?    As near as I can tell the selinux-part of the playbook is working as requested, though perhaps more is needed (mass filesystem relabel?).
In any case, I'm basically blocked on this PR, so moving on to one of the others 'till someone tells me what's needed here 😃

I don't think the issues you are seeing are necessarily SELinux related.  If you get permission denied, that is probably an issue.  But file not found is usually not SELinux related.

Hmmm, so @rhatdan do you think some other change I made here could be causing the failures?
(I'll go double-check again...)

I love it when running the exact same thing again, gives different results 😖   This time the RHEL e2e tests ran (two failures) but the Fedora integration tests timed out (didn't look at why).

(rebase from master & --force push)

/test ami

(rebase from master & --force push)

/test ami

(ami_rhel result is bogus: provisioning failure 😖)

/test ami

/test ami(rebase from master & --force push)

/test ami

rebase from master & --force push
/test ami

rebase from master & --force push
/test ami

ami_rhel failed: provisioning problem

/test ami_rhel

/test ami

@rhatdan I have made the changes to preseve the instances from the ami run for you to look at.

@mrunalp Can you send me the info on how I can reach the machine?

@rhatdan  When u get a moment:   I just looked at the RHEL results (assuming fedora ones are similar).  The integration tests are passing 100% but the e2e tests die with this result:
Oct 19 21:45:15.480: Error waiting for all pods to be running and ready: 1 / 1 pods in namespace "kube-system" are NOT in RUNNING and READY state in 10m0s
POD                       NODE      PHASE   GRACE CONDITIONS
kube-dns-3097350089-16jkx <IP_ADDRESS> Pending       [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2017-10-19 21:29:52 +0000 UTC  } {Ready False 0001-01-01 00:00:00 +0000 UTC 2017-10-19 21:29:52 +0000 UTC ContainersNotReady containers with unready status: [kubedns dnsmasq sidecar]} {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2017-10-19 21:29:52 +0000 UTC  }]

/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e/e2e.go:172

I checked and there are no AVC denials (or, at least, none are reported).  Is this the same symptom y'all were discussing yesterday on IRC?

Yes.  If you run a test with SELinux in enforcing mode.  I need to get onto the node to try to figure out what is going on.

See also: #1064

/test ami

Closing in favor of #1064


Hypernetwork training does not work

try uninstalling xformers and see if the training works
run !pip uninstall xformers in a new cell

check with the A1111 the issue might not related to the colab


feature flags which can differ per app are set at VM compile time

issue:
feature flags like DART_COMPRESSED_POINTERS split the number of apps that you can run with a given vm build in half (ignoring the fact that most developers probably don't change the defaults, making the math more complicated), meaning that you need (assuming the number of such features is 9, which seems like a good guess) 2^9 == 512 builds of the dart vm in order to be able to run any dart app. If this was a thing with e.g. hotspot, I'm sure I wouldn't be the only one seeing that as an issue, but here we are...
proposed solution (or I assume you would see this as a feature request, which is still better than WONTFIX):
make it possible to change these feature flags at runtime, so that a Linux distribution can package one build of the dart vm instead of 512 of them.
now, I assume your answer to this will be "we expect all apps to bundle their own build of the dart vm", which is fair, but it would surely be great if you could restrain yourself from making it basically impossible for Linux distributions to package a build of dart vm that is statistically likely to work with a randomly selected dart application
NOTE: while it might be possible for a Linux distribution to package open source dart apps such that they will work with it's build of dart vm, there are distributions which package closed source software, and there doesn't seem to be any good reason for why that should require packaging at minimum 512 builds of dart vm (or one per app, whichever is less I suppose?)

Dart VM does not provide a stable ABI (unlike say JVM - which runs class files). So any AOT compiled app (or app distributed as an AppJIT snapshot, or Kernel AST binary blob) needs to ship its own runtime or require that target machine has a specific pinned version of Dart SDK installed.
If app is distributed as source then it can use any Dart VM version installed on the machine (as long as that Dart VM supports the necessary language level).
So whether or not something like compressed pointers are runtime configurable or not does not actually make distribution any simpler.


the logic of NO retrieval in long form inference

excellent work ! I have a question about the logic of no retrieval. In multiple rounds of retrieval, if [No retrieval] appears for the first time, does it mean that all retrievals have ended, or does it mean that the second and third rounds of retrieval can still be carried out?
My understanding based on your paper and code is that if [No retrieval] appears for the first time, it means that all answers are generated without multiple retrievals.

waitting for your detailed explaination～

@AkariAsai
This problem has troubled me for a long time, really need you help. Thks for your reply～

Hi, sorry for my late response! I was busy with a paper release I was co-authoring in the past two weeks.
Yes, if Self-RAG generates [No retrieval] at the very beginning, the input query often doesn't require any retrieval through the generations (e.g., commonsense question, general natural language understanding) and thus we skip retrieval.

I'm glad to receive your response I still have two questions that I'm very confused about. hope for your reply~

You are mentioned that if the self-rag module predicts "no retrieval" in the first round, it won't perform additional rounds of retrieval. Following this logic, if the first two rounds are retrievals and the third round yields "no retrieval," it means that the final answer will be provided after the third round of retrieval. Is my understanding correct?

Based on your paper and your previous response, it seems that self-rag doesn't perform any further retrievals once it predicts "no retrieval" regardless of the round. However, in the provided training data (train.json) for the self-rag generator, I noticed that after [No Retrieval] there are instances where [Retrieval] appears.

{"instruction": "Problem: Write a positive yelp review.\nA: Awesome smoke shop and five stars because it's close to my house. The guys that work there are so friendly and helpful and they have a huge selection of literally everything. It's really small, located right next to Dukes Sports Bar.\n\nProblem: Write a negative yelp review.\nA: I used to visit this buffet pretty regularly because they HAD a keno board which there are only a few left on the strip. Now that it's gone there is no reason at all to eat here. The selection is eh, the food is eh and the price is the same as some of the better buffets on the strip. I will say that the service is pretty good. Unless you have a coupon for a free or very discounted buffet I would probably skip this one.\n\nProblem: Write a positive yelp review.\nA:", "output": "Some excellent sandwiches.[No Retrieval]The hot pastrami was sliced so thin that it was like butter.[No Retrieval]Not the biggest serving size, but one of the tastiest hot pastramis I ever had.  [No Retrieval]I also had the classic Italian.Very nice!  [Retrieval]<paragraph>Strip House\nmignon, bone-in rib eye, center cut chateaubriand and a classic porterhouse. Strip House is known for its minimal seasoning. Time Out New York says, “Order the New York strip and you’ll experience the sublime combination of a perfectly charred outside with a luscious rare-red inside.” In addition to steaks, the restaurants also serve, lobster, fish, veal, and rack of lamb. Side dishes range from the signature black truffle creamed spinach, French fries with herbs and garlic, crisp goose-fat potatoes Strip House also offers a dessert menu featuring favorites like the signature 24 layer chocolate cake. Strip House offers an extensive</paragraph>[Irrelevant]Only downside is their chili is kind of like Wendy's.[No Retrieval]Before purchasing, I asked the order taker how it was and he said that it is real chili with beans and not hot dog chili.[No Retrieval]That should have sounded the alarm, everyone knows real chili has no beans![Utility:5]", "input": "", "id": "flan_v2_31050", "dataset_name": "flan_v2"}

Could you explain why [Retrieval] occurs after [No Retrieval] in this case? This inconsistency has been confusing me for a while, and I would greatly appreciate your further clarification.

I'm glad to receive your response I still have two questions that I'm very confused about. hope for your reply~
You are mentioned that if the self-rag module predicts "no retrieval" in the first round, it won't perform additional rounds of retrieval. Following this logic, if the first two rounds are retrievals and the third round yields "no retrieval," it means that the final answer will be provided after the third round of retrieval. Is my understanding correct?
Based on your paper and your previous response, it seems that self-rag doesn't perform any further retrievals once it predicts "no retrieval" regardless of the round. However, in the provided training data (train.json) for the self-rag generator, I noticed that after [No Retrieval] there are instances where [Retrieval] appears.
{"instruction": "Problem: Write a positive yelp review.\nA: Awesome smoke shop and five stars because it's close to my house. The guys that work there are so friendly and helpful and they have a huge selection of literally everything. It's really small, located right next to Dukes Sports Bar.\n\nProblem: Write a negative yelp review.\nA: I used to visit this buffet pretty regularly because they HAD a keno board which there are only a few left on the strip. Now that it's gone there is no reason at all to eat here. The selection is eh, the food is eh and the price is the same as some of the better buffets on the strip. I will say that the service is pretty good. Unless you have a coupon for a free or very discounted buffet I would probably skip this one.\n\nProblem: Write a positive yelp review.\nA:", "output": "Some excellent sandwiches.[No Retrieval]The hot pastrami was sliced so thin that it was like butter.[No Retrieval]Not the biggest serving size, but one of the tastiest hot pastramis I ever had.  [No Retrieval]I also had the classic Italian.Very nice!  [Retrieval]Strip House\nmignon, bone-in rib eye, center cut chateaubriand and a classic porterhouse. Strip House is known for its minimal seasoning. Time Out New York says, “Order the New York strip and you’ll experience the sublime combination of a perfectly charred outside with a luscious rare-red inside.” In addition to steaks, the restaurants also serve, lobster, fish, veal, and rack of lamb. Side dishes range from the signature black truffle creamed spinach, French fries with herbs and garlic, crisp goose-fat potatoes Strip House also offers a dessert menu featuring favorites like the signature 24 layer chocolate cake. Strip House offers an extensive[Irrelevant]Only downside is their chili is kind of like Wendy's.[No Retrieval]Before purchasing, I asked the order taker how it was and he said that it is real chili with beans and not hot dog chili.[No Retrieval]That should have sounded the alarm, everyone knows real chili has no beans![Utility:5]", "input": "", "id": "flan_v2_31050", "dataset_name": "flan_v2"}
Could you explain why [Retrieval] occurs after [No Retrieval] in this case? This inconsistency has been confusing me for a while, and I would greatly appreciate your further explaination~ your job is really masterpiece!

I'm glad to receive your response I still have two questions that I'm very confused about. hope for your reply~
You are mentioned that if the self-rag module predicts "no retrieval" in the first round, it won't perform additional rounds of retrieval. Following this logic, if the first two rounds are retrievals and the third round yields "no retrieval," it means that the final answer will be provided after the third round of retrieval. Is my understanding correct?
Based on your paper and your previous response, it seems that self-rag doesn't perform any further retrievals once it predicts "no retrieval" regardless of the round. However, in the provided training data (train.json) for the self-rag generator, I noticed that after [No Retrieval] there are instances where [Retrieval] appears.
{"instruction": "Problem: Write a positive yelp review.\nA: Awesome smoke shop and five stars because it's close to my house. The guys that work there are so friendly and helpful and they have a huge selection of literally everything. It's really small, located right next to Dukes Sports Bar.\n\nProblem: Write a negative yelp review.\nA: I used to visit this buffet pretty regularly because they HAD a keno board which there are only a few left on the strip. Now that it's gone there is no reason at all to eat here. The selection is eh, the food is eh and the price is the same as some of the better buffets on the strip. I will say that the service is pretty good. Unless you have a coupon for a free or very discounted buffet I would probably skip this one.\n\nProblem: Write a positive yelp review.\nA:", "output": "Some excellent sandwiches.[No Retrieval]The hot pastrami was sliced so thin that it was like butter.[No Retrieval]Not the biggest serving size, but one of the tastiest hot pastramis I ever had.  [No Retrieval]I also had the classic Italian.Very nice!  [Retrieval]<paragraph>Strip House\nmignon, bone-in rib eye, center cut chateaubriand and a classic porterhouse. Strip House is known for its minimal seasoning. Time Out New York says, “Order the New York strip and you’ll experience the sublime combination of a perfectly charred outside with a luscious rare-red inside.” In addition to steaks, the restaurants also serve, lobster, fish, veal, and rack of lamb. Side dishes range from the signature black truffle creamed spinach, French fries with herbs and garlic, crisp goose-fat potatoes Strip House also offers a dessert menu featuring favorites like the signature 24 layer chocolate cake. Strip House offers an extensive</paragraph>[Irrelevant]Only downside is their chili is kind of like Wendy's.[No Retrieval]Before purchasing, I asked the order taker how it was and he said that it is real chili with beans and not hot dog chili.[No Retrieval]That should have sounded the alarm, everyone knows real chili has no beans![Utility:5]", "input": "", "id": "flan_v2_31050", "dataset_name": "flan_v2"}

Could you explain why [Retrieval] occurs after [No Retrieval] in this case? This inconsistency has been confusing me for a while, and I would greatly appreciate your further explaination. Your jobs is really masterpiece~

Hi, sorry for my late response! I was busy with a paper release I was co-authoring in the past two weeks. Yes, if Self-RAG generates [No retrieval] at the very beginning, the input query often doesn't require any retrieval through the generations (e.g., commonsense question, general natural language understanding) and thus we skip retrieval.

Hi @AkariAsai,
Thanks for your reply. I have a related question if you could clarify please:
When generating the very first sentence, does Self-RAG generate [Retrieval] or [No Retrieval] token first before generating the first sentence? I'm asking because the output does not have the retrieval token before the first sentence, however, according to my understanding, it should always generate the retrieval token before predicting the next sentence?
For example (taken from Table 6 and 7):
Input:  What genre is A Question and Answer Guide to Astronomy?
Output: (no [No Retrieval] token here) A Question and Answer Guide to Astronomy is a non-fiction book written by Patrick Moore and published in 1978.[Retrieval]<paragraph>[Relevant]The genre of this book is Astronomy.[No support / Contradictory][Utility:5]</s>

Input: When did sunday became the seventh day of the week
Output: (no [No Retrieval] token here) It is not clear when exactly Sunday became the seventh day of the week.[Retrieval]<paragraph>[Relevant]However, it is generally accepted that the current seven-day week was introduced by the ancient Sumerians, who divided their year into ten fixed months of 30 days each.[No support / Contradictory][No Retrieval]The seven-day week was then adopted by many other cultures, including the ancient Greeks and Romans.[No Retrieval]It is possible that the seven-day week was introduced in the Middle Ages, but

(Taken from your example in README):
Model prediction: (no [No Retrieval] token here) Twitter, Instagram, and WhatsApp are all social media platforms. [No Retrieval]WhatsApp is the odd one out because it is a messaging app, while Twitter and # Instagram are primarily used for sharing photos and videos.[Utility:5]</s>
Model prediction: (no [No Retrieval] token here) Sure![Retrieval]<paragraph><paragraph>

Does it just omit the first retrieval token?
Thank you very much!


Allow operator to void ticket in admin view

Create a void button for tickets. See the button position in red below.

Do I have time to rewrite the bookings page? the pagination irks me in particular, and we should make a habit of doing changes only on Vue code anyway.

Lol if u got time, i dun mind. The pagination is a problem but we can still
leave with it.
On Tue, 24 Oct 2017 at 6:32 PM, LoneRifle<EMAIL_ADDRESS>wrote:

Do I have time to rewrite the bookings page? the pagination irks me in
particular, and we should make a habit of doing changes only on Vue code
anyway.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/datagovsg/beeline-admin/issues/326#issuecomment-338947277,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVtU3yooWV8HZlpnoFWTSsQ5grb6noMKks5svbzPgaJpZM4P-j6g
.

Fixed by #334


Add tooltips explanations to analytics dashboard

To explain the stats in the top line metrics.

On production.


Added a ripper for Chevereto

I never was able to get full user page ripping to work so I removed all the code for that and left the code for album ripping.
I also changed the name output to domain.tld_albumID
A few albums to test
https://hushpix.com/album/3JMJ
https://hushpix.com/album/3MxO
https://hushpix.com/album/3u2c

Tested this out, but it looks like it doesn't rip the context from additional pages. For example, your first link, https://hushpix.com/album/3JMJ (BustyGanon) only gets 24 items.
I could merge this as-is with improvements to come in a later pull request, or I could wait until you make some changes. Just let me know.
I'll leave this unmerged for the time being. I'll check back in a day or two.

Also, are there any other sites that use Chevereto that you could provide a link to? For example, link to something on ezphotoshare we could test the ripper on?

@metaprime

I could merge this as-is with improvements to come in a later pull request, or I could wait until you make some changes. Just let me know.

I'd prefer if you waited until I made some changes, I'd rather not have semi-broken code committed

Also, are there any other sites that use Chevereto that you could provide a link to? For example, link to something on ezphotoshare we could test the ripper on?

AFAIK ezphotoshare blocks ripping (I meant to remove it but forgot about it), I check for some other sites to test with
I'm a bit busy with work atm so it will take me a day or two to get on this

@metaprime I added getNextPage so now entire albums download and I added tag-fox.com so there is another site we can test on
Test album for tag-fox: http://tag-fox.com/album/TOjH

Looks good.
I think we should also grab the album titles from the pages while we're at it.

@metaprime

I think we should also grab the album titles from the pages while we're at it.

I'll get on that tomorrow

@metaprime the ripper grabs album titles as well

Sorry for leaving this for so long. Slipped off my radar.


Replace Travis by GitHub workflow

fixes #521
Signed-off-by: Aurélien Pupier<EMAIL_ADDRESS>
Changes

remove Travis and replace by GitHub Workflow
the Sonar configuration has not been transferred but can be done in another iteration

/kind

Fixes #

Release Note

Docs

not working yet: testing here https://github.com/apupier/jolokia/actions

currently this kind of error with Java 8:
https://github.com/apupier/jolokia/actions/runs/3362783605/jobs/5574971129#step:5:1970
Error:  t_22_signed_client_cert(org.jolokia.jvmagent.JolokiaServerTest)  Time elapsed: 0.056 s  <<< FAILURE!
javax.net.ssl.SSLException: readHandshakeRecord
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:500)
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:458)
	at org.jolokia.jvmagent.JolokiaServerTest.httpsRoundtrip(JolokiaServerTest.java:392)
	at org.jolokia.jvmagent.JolokiaServerTest.t_22_signed_client_cert(JolokiaServerTest.java:147)
Caused by: java.net.SocketException: Broken pipe (Write failed)
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:500)
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:458)
	at org.jolokia.jvmagent.JolokiaServerTest.httpsRoundtrip(JolokiaServerTest.java:392)
	at org.jolokia.jvmagent.JolokiaServerTest.t_22_signed_client_cert(JolokiaServerTest.java:147)

And with Java 11:
https://github.com/apupier/jolokia/actions/runs/3362783605/jobs/5574971301#step:5:1970
 Error:  t_22_signed_client_cert(org.jolokia.jvmagent.JolokiaServerTest)  Time elapsed: 0.134 s  <<< FAILURE!
java.net.SocketException: Broken pipe (Write failed)
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:500)
	at org.jolokia.jvmagent.JolokiaServerTest.checkServer(JolokiaServerTest.java:458)
	at org.jolokia.jvmagent.JolokiaServerTest.httpsRoundtrip(JolokiaServerTest.java:392)
	at org.jolokia.jvmagent.JolokiaServerTest.t_22_signed_client_cert(JolokiaServerTest.java:147)

I reproduce the same errors locally

a successful build can be seen here https://github.com/apupier/jolokia/actions/runs/3376681711
I propose to disable tests which are failing on master for now so that it can unblocks other tasks and the problem is already in master. There is a separate commit for the disabling so that we can revert it easily when starting to fix the problem. I reported https://github.com/rhuss/jolokia/issues/523
The advantage will be that at least for other modifications we will have a PR check and test for all other features which is not the case currently.

@apupier happy to move this forwards, but I have very limited time to spend. What PR merge flow would you recommend?

I recommend using "Rebase and merge". it is keeping commit history from the Pull request and a linear history.


[pylint] - add unnecessary-list-index-lookup (PLR1736) + autofix

Summary
Add R1736 along with the autofix
See #970
Test Plan
cargo test and manually

@diceroll123 I tried out your rule and found a bug:
Consider this code snippit
a = list(range(5, 10))
for i, j in enumerate(a):
    a[i] = j + 1
    assert a[i] > j

becomes transformed to:
a = list(range(5, 10))
for i, j in enumerate(a):
    a[i] = j + 1
    assert j > j

which becomes now outputs an Assertion Error. In other words, you have to make sure a[i] is always an alias of j which is not the case here. I suspect your other PR has a similar issue.

@Skylion007 good catch, thanks! Will update.

Will address those, all good feedback, thanks @dhruvmanila!


Devise github login not working after Turbo enabled.

I'm using Devise GitHub omniauth login for an app and the login link looks like this:
# layouts/_header.html.erb
<%= link_to "Github Login", user_github_omniauth_authorize_path, method: :post, class: "some classes", "data-turbo" => "false" %>

After I enable Turbo, it no longer works. After inspecting the network, I found that when a user clicks on the link, it issues a fetch type request to the server, rather then a document type request.
My app is open-sourced here and you can reproduce it by uncommenting the // import { Turbo, cable } from '@hotwired/turbo-rails'  line from application.js pack file.

Is this related to https://github.com/hotwired/turbo-rails/issues/33?

Hi @seanpdoyle, thanks for the reply! I think they do are related. But after I tried changing link_to to button_to as the discussion over there suggested, it still didn't work. The generated form looked like this
<form class="button_to" method="post" action="/users/auth/github" data-turbo="false">
    <input class="some classes" data-turbo="false" type="submit" value="Github Login">
    <input type="hidden" name="authenticity_token" value="some token value">
</form>

I noticed that the data-turbo="false" attribute was on the submit input control rather than on the form itself. Not sure if that was the cause because I tried editing the form and added the data-turbo="false" attribute, and it still didn't work. I think it might also be related to https://github.com/hotwired/turbo/issues/26?

Here's what I did to get it working. I added a FailureApp to handle Warden auth failures and a custom responder. Both of those are needed to treat turbo_stream formats like html.
# config/initializers/devise.rb
# frozen_string_literal: true

class TurboFailureApp < Devise::FailureApp
  def respond
    if request_format == :turbo_stream
      redirect
    else
      super
    end
  end

  def skip_format?
    %w(html turbo_stream */*).include? request_format.to_s
  end
end

class TurboController < ApplicationController
  class Responder < ActionController::Responder
    def to_turbo_stream
      controller.render(options.merge(formats: :html))
    rescue ActionView::MissingTemplate => error
      if get?
        raise error
      elsif has_errors? && default_action
        render rendering_options.merge(formats: :html, status: :unprocessable_entity)
      else
        redirect_to navigation_location
      end
    end
  end

  self.responder = Responder
  respond_to :html, :turbo_stream
end

Devise.setup do |config|

  # ==> Controller configuration
  # Configure the parent class to the devise controllers.
  config.parent_controller = 'TurboController'

  # ==> Warden configuration
  config.warden do |manager|
    manager.failure_app = TurboFailureApp
  end
end

Screencast on how it all works: https://gorails.com/episodes/devise-hotwire-turbo?autoplay=1

Here's what I did to get it working. I added a FailureApp to handle Warden auth failures and a custom responder. Both of those are needed to treat turbo_stream formats like html.
# config/initializers/devise.rb
# frozen_string_literal: true

class TurboFailureApp < Devise::FailureApp
  def respond
    if request_format == :turbo_stream
      redirect
    else
      super
    end
  end

  def skip_format?
    %w(html turbo_stream */*).include? request_format.to_s
  end
end

class TurboController < ApplicationController
  class Responder < ActionController::Responder
    def to_turbo_stream
      controller.render(options.merge(formats: :html))
    rescue ActionView::MissingTemplate => error
      if get?
        raise error
      elsif has_errors? && default_action
        render rendering_options.merge(formats: :html, status: :unprocessable_entity)
      else
        redirect_to navigation_location
      end
    end
  end

  self.responder = Responder
  respond_to :html, :turbo_stream
end

Devise.setup do |config|

  # ==> Controller configuration
  # Configure the parent class to the devise controllers.
  config.parent_controller = 'TurboController'

  # ==> Warden configuration
  config.warden do |manager|
    manager.failure_app = TurboFailureApp
  end
end

Screencast on how it all works: https://gorails.com/episodes/devise-hotwire-turbo?autoplay=1

Hi Chris @excid3 , thank you for your response! Now that https://github.com/hotwired/turbo/pull/3 has been merged, I think another way to fix this is by simply adding data-turbo="false" to the login form. 😁 I tried it in my project here and it worked.
BTW, thank you for all the awesome gorails videos. They have been very helpful to me. ❤

Hi Chris @excid3 , thank you for your response! Now that https://github.com/hotwired/turbo/pull/3 has been merged, I think another way to fix this is by simply adding data-turbo="false" to the login form. 😁 I tried it in my project here and it worked.
BTW, thank you for all the awesome gorails videos. They have been very helpful to me. ❤

@ChrisZou's workaround is good for now, but it's not perfect as a and button are semantically different. I've discussed this more in #74.
I think the root cause is failed CORS, since the redirect goes to github.com in this case, as I've explained over there.

@ChrisZou's workaround is good for now, but it's not perfect as a and button are semantically different. I've discussed this more in #74.
I think the root cause is failed CORS, since the redirect goes to github.com in this case, as I've explained over there.

Closing this now that Turbo 7.0.0-beta.2 is out.

Closing this now that Turbo 7.0.0-beta.2 is out.

Hi Chris @excid3 , thank you for your response! Now that #3 has been merged, I think another way to fix this is by simply adding data-turbo="false" to the login form. 😁 I tried it in my project here and it worked. BTW, thank you for all the awesome gorails videos. They have been very helpful to me. ❤

Took me hours to find this. Please get your docs together.

@0q2 the latest version of Devise fixes this, so there is no need for the work-around anymore.

@0q2 the latest version of Devise fixes this, so there is no need for the work-around anymore.

You are correct!


Simplify cluster controller e2e to run as a single test

This avoids the immediate problem of kcpServer fixture helpers expecting to be local to a test executed in parallel.
For tests that do want to execute in parallel, test setup for shared fixture will need to be performed outside of tests configured with t.Parallel to ensure that side-effects of setup (e.g. registration of functions that gather artifacts) are persistent across tests.
cc: @s-urbaniak

This doesn't seem like a great way forward ... we certainly have tests running in parallel for other suites, and having them be disparate just because the fixture can't handle it (today) ... /shrug

This doesn't seem like a great way forward ... we certainly have tests running in parallel for other suites, and having them be disparate just because the fixture can't handle it (today) ... /shrug

I am in no way suggesting that this PR represents the end-state for how we want to write tests. The current strategy of per-test fixture is also not sustainable given that deploying a set of kcp servers takes ~4s on a fast machine today and that duration is likely to increase over time. The goal here is evolving our tests to minimize the overhead represented by test fixture and that tests and their fixture become separable concerns that can evolve independently.

The reliability issues with the fixture are addressed instead by #501.


Why  I cant get Graphs

[root@iZ626l9a5x1Z /etc/zabbix/script]# python telegram_zabbix.py "@Be***" "Graphs Test" "
zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid:{24008}" --debug
telegram_zabbix.py: {u'ok': True, u'result': {u'username': u'DT_', u'first_name': u'Zabbix monitor', u'id': 192}}
telegram_zabbix.py: Cache file with uids: /tmp/Telegram_zabbix/uids.txt
telegram_zabbix.py: Telegram uid of private 'Be***': 22***
telegram_zabbix.py: Trying to /sendMessage:
telegram_zabbix.py: https://api.telegram.org//sendMessage
telegram_zabbix.py: post params: {'text': 'Graphs Test\n\nzbxtg;graphs\nzbxtg;graphs_period=10800\nzbxtg;itemid:{24008}', 'disable_notification': False, 'chat_id': '22\n', 'disable_web_page_preview': False}
I don't know this is why?

@xiaoyawl you log is not full, try to copy and paste everything and use https://telegram.me/ZbxTg for help, it is faster and involves more people. Thanks.

@ableev
@ZbxTg user not found

@xiaoyawl would you kindly try to copy and paste that name into search box in telegram client, pal?

@ableev

I cant found ZbxTg


[APIM] The service could not be restored immediately after soft deletion

The APIM service acctestAM-test could not be restored immediately after soft deletion succeeds. The details are as follows. It is worth mentioning that if you wait for a while (about 1 minute) after step2, the restore could succeed. We look forward to recovering immediately after a successful soft delete. If it is by design, I assume that a status should be returned to let us know when the deleted service could be restored, right? For example: append the status field in the response of DeletedServices_GetByName API.
step1. Confirm acctestAM-test does not exist after soft deletion:
AzureRM Request:
GET /subscriptions/.../resourceGroups/acctestRG-test/providers/Microsoft.ApiManagement/service/acctestAM-test?api-version=2022-08-01 HTTP/1.1
Host: management.azure.com
User-Agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 apimanagementservice/2022-08-01) HashiCorp Terraform/1.5.1 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Content-Type: application/json; charset=utf-8
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
Accept-Encoding: gzip

AzureRM Response for https://management.azure.com/subscriptions/.../resourceGroups/acctestRG-test/providers/Microsoft.ApiManagement/service/acctestAM-test?api-version=2022-08-01:
HTTP/2.0 404 Not Found
Content-Length: 138
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Thu, 10 Aug 2023 05:21:46 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
X-Ms-Ratelimit-Remaining-Subscription-Reads: 11998
X-Ms-Request-Id: 85972085-5b34-4d1a-8709-b075fb8deb45
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20230810T052146Z:85972085-5b34-4d1a-8709-b075fb8deb45

{"error":{"code":"ServiceNotFound","message":"Api service does not exist: acctestAM-test","details":null,"innerError":null}}

step2. Get  acctestAM-test exist in deletedServices:
AzureRM Request:
GET /subscriptions/.../providers/Microsoft.ApiManagement/locations/eastus/deletedServices/acctestAM-test?api-version=2022-08-01 HTTP/1.1
Host: management.azure.com
User-Agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 deletedservice/2022-08-01) HashiCorp Terraform/1.5.1 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Content-Type: application/json; charset=utf-8
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
Accept-Encoding: gzip

AzureRM Response for https://management.azure.com/subscriptions/.../providers/Microsoft.ApiManagement/locations/eastus/deletedServices/acctestAM-test?api-version=2022-08-01:
HTTP/2.0 200 OK
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Thu, 10 Aug 2023 05:21:47 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
X-Ms-Ratelimit-Remaining-Subscription-Reads: 11999
X-Ms-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20230810T052148Z:c7fa4ff2-6126-4764-8704-332f2a06b056

{"id":"/subscriptions/.../providers/Microsoft.ApiManagement/locations/eastus/deletedservices/acctestAM-test","name":"acctestAM-test","type":"Microsoft.ApiManagement/deletedservices",
"location":"East US","properties":{"serviceId":"/subscriptions/.../resourceGroups/acctestRG-test/providers/Microsoft.ApiManagement/service/acctestAM-test",
"scheduledPurgeDate":"9999-12-31T23:59:59.9999999","deletionDate":"2023-08-10T05:20:59.810718Z"}}

step3. Restore the acctestAM-test =>error occurred.
AzureRM Request:
PUT /subscriptions/.../resourceGroups/acctestRG-test/providers/Microsoft.ApiManagement/service/acctestAM-test?api-version=2022-08-01 HTTP/1.1
Host: management.azure.com
User-Agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 apimanagementservice/2022-08-01) HashiCorp Terraform/1.5.1 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/dev pid-222c6c49-1b0a-5959-a213-6608f9eb8820
Content-Length: 132
Content-Type: application/json; charset=utf-8
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
Accept-Encoding: gzip

{"location":"eastus","properties":{"restore":true},"sku":{"capacity":0,"name":"Consumption"}}

AzureRM Response for https://management.azure.com/subscriptions/.../resourceGroups/acctestRG-test/providers/Microsoft.ApiManagement/service/acctestAM-test?api-version=2022-08-01:
HTTP/2.0 400 Bad Request
Content-Length: 141
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Thu, 10 Aug 2023 05:21:49 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
X-Ms-Ratelimit-Remaining-Subscription-Resource-Requests: 23999
X-Ms-Request-Id: d2cee4f3-883e-ce55-1910-78d3d39ce805
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20230810T052150Z:9cc60d65-86ca-4d9e-bd60-fb55a626128c

{"error":{"code":"InvalidOperation","message":"Unable to undelete service 'acctestAM-test'.","details":null,"innerError":null}}

Adding Service team to look into this.


Is there a changelog anywhere?

Always nice to see plenty of development on this awesome project.. but with things changing as often as they do.. APIs and what not, it would be useful to have access to a changelog. In the event there is already one somewhere, could you please point me in the right direction?
Many thanks!

Thanks, but no, there ist no extra changelog beside the git commit messages. You can view them with
git log --oneline


Problems with entities/styles

Hallo,
I have a problem with styles, for texts and rectangles, which are defined as entities in documenttype.
How can I get the refenced name of a style from a svgelement (text, rectangle).
I get for this text the attributes without style.

Can you paste SVG text ?

Hello, here  the needed files.

V20000000.txt

Hi, do you see any chance to solve my problem?

I have no time to check yet.
This SVG does not be displayed correctly in major browsers.

Thanks for your answer.
Which browser do you mean? Our clients seem not have a problem with such svg's.
I have to evaluate svg.net for our purpose and it is the only problem I have found.

Which browser do you mean?

I checked Chrome and Firefox.

ok, sorry. I'm not a web programmer. we have our own browser control.

This SVG does not be displayed correctly in major browsers.

This problem is due to missing image in <image>.
<image transform="matrix(2.08085 -0 0 2.08085 0.176179 -0.176179)" style="&st3;" width="400.135" height="283.125" id="V20000000" xlink:href="V20000000.PNG"/>

As far as I was checked style appears to have been applied correctly.
I changed fill color to make it easier to understand.
<!ENTITY st1 "fill:red;stroke:#ffffff;stroke-width:0;">
<!ENTITY st2 "fill:blue;stroke:#000000;stroke-width:0;">

These styles has been applied.

thanks for your answer.
I have figured out that styles aren't applied when SvgDocument.Open ist called with parameter XmlDocument. If I call this method with filePath it seems to work.

I will fix this issue.


rna-transcription: Remove unneeded stub comments.

In #302, we are moving all the hints in the test suites and stub solutions to HINTS.md files. But the comments in src/DNA.hs are too obvious and may take all the fun of solving the exercise, so we are just removing them.

Yup, seems OK to remove it. the students probably won't lose too much from it, since this is the natural use of Maybe. If they do not know it, finding it out may help to remember it more ffectively than just reading about it.


Integrate with Eclipse WorkManager to properly schedule updating of project references

See PR #152 for a hacky solution.
I believe the correct way to schedule the update of the Project Refs is to integrate with Eclipse's WorkManager. Something like what this post talks about:
https://www.eclipse.org/forums/index.php/t/106830/
Put a breakpoint in EclipseResourceHelper.setProjectDescription() during a workspace import, and you will likely fall into the exception block at least once because of workspace locking.

Here is a stack trace from before I implemented #152
classpath_deadlock.txt

Resolved in #145


[ts-http-runtime] Enforce azure diff check

Packages impacted by this PR

@typespec/ts-http-runtime

Describe the problem that is addressed by this PR
The diff check seems to be running as it should, so let's enable it so that failure makes CI go red

Example of it passing on main
Example of it failing on a PR branch that has not updated the diff (lint step failure is due to ESLint failures, not the unbranded check tool)

Provide a list of related PRs (if any)

#31285

API change check
API changes are not detected in this pull request.


Empty allure report

Allure plugin is set up according to instruction: https://github.com/allure-framework/allure-teamcity-plugin, but as a result we have empty report though xml files are correct with data.
In Results Directories I put path to allure-results.
Command 'mvn site' is a separate step in build steps.
Other information:
Report Version - 1.4.11
TeamCity - 8.1

Fixed


ref: use new prepare code and remove some old

This removes the column_behavior in favor of the simpler, newer prepare_batch logic. This also fixes the "floats not allowed as timestamps" behavior, since the new logic handles that.
Closes #776

If this passes all the tests... that's awesome.  I think the one thing that we maybe lose is the ability to drop/evolve columns and such -- but I think that can be added to the existing prepare batch -- if we know the "expected" schema, we can just omit/evolve columns based on the file schema and expected schema. Definitely simpler!


Awesome books: refactor to use JavaScript classes

Use JavaScript classes.
use medium-fidelity wireframes to create a UI.

Kindly include details of the other co-contributor(s) in your ReadMe

@rloterh add as an author? right


CRD Hook Doesn't Exist

During terraform apply
null_resource.setup-messaging (local-exec): manifest_sorter.go:192: info: skipping unknown hook: "crd-install"

AFAIK this is just a warning from helm3 to notify about deprecated hooks that were formerly used to install CRDs in helm2 (prometheus-operator chart still has those in place i believe)


anchore-cli image content  <content_type> not working as expected

Is this a request for help?:
No
Is this a BUG REPORT or a FEATURE REQUEST? (choose one):
BUG REPORT

This bug is against the current v0.9.0-rc0 release candidate image.
anchore-cli image content <image> <content-type> is not working as expected if data is not found for the given content type. This seems to contradict the results of running anchore-cli image content <image>, which after the the image is in an analyzed says that all of those content types are available. The actual results when specifying a content type are mixed. If the data is in fact available (which for the images tested below were os and files things work as expected. For every other type I get an error message and an exit code 2, where I would expect either a message telling me there was no data, or just an empty array, but no non-0 exit code.
See the comments on https://github.com/anchore/platform-testing/issues/191 for more detail and reproduction instructions.

Version of Anchore Engine and Anchore CLI if applicable:
What happened:
What did you expect to happen:

Any relevant log output from /var/log/anchore:
What docker images are you using:
v0.9.0-rc0
How to reproduce the issue:
See test cases instructions in https://github.com/anchore/platform-testing/issues/191
Anything else we need to know:

The missing piece here was enabling the malware scan on the analyzer container via https://docs.anchore.com/current/docs/engine/engine_installation/configuration/malware/ . With that enabled the malware scan results are returned as expected. I have closed this, but will think on it a bit and open an issue or issues in the cli repo.
My confusion came from confusion on how the CLI formats the results. between anchore-cli image content docker.io/anchore/test_images:alpine_malware_test and anchore-cli image content docker.io/anchore/test_images:alpine_malware_test malware when there are no results to display.


travis.yml needs to be updated for .net core

Build log: https://travis-ci.org/adamcaudill/libsodium-net/builds/234424255
Potential Solution: https://stackoverflow.com/questions/42747722/building-vs-2017-msbuild-csproj-projects-with-mono-on-linux

Basic work is done and it should work now; but it isn't useful without the native libsodium package.
blocked by jedisct1/libsodium#504

Travis works now even though the package restore is flaky... see build report


Download missing special guest and list cards

Summary of the changes:

Set the arena fields in the temp_set_list file to 'ALL'. This enables the downloading of all cards listed on the 17Lands card data page, including the missing special guest and list cards
Removed the pyinstaller requirement and changed the numpy requirement to 1.26.4 because of some conflicts with Python 3.12
Added workflows for Windows, macOS, and Linux that run the existing python unit tests
Modified the test_limited_sets test cases so that they work with the change that I made

You're going to need to delete your local copy of temp_set_list.json for this change to work. The program automatically builds a new version of this file if one doesn't exist.

Are you planning on continuing to support this program? If so, you should enable issues on your fork.

Are you planning on continuing to support this program? If so, you should enable issues on your fork.

If Truth isn't available to maintain this, FiYir do you want to use your fork as the main fork?
Since yours is the most active one now lol, probably a good time to enable Issues for it too

@AkiraChisaka are you willing to contribute if I enable issues? I forked off of this fork because I wanted to collaborate with someone who was working on the project, not become the sole project owner. Looking at the other forks, it looks like most people abandon their forks after a few commits.


Check box not working

Hi,
I'm having trouble getting check box to be checked. I tried the example, and it will not check the box.
Thanks

I can get the checkbox checked by setting the good value : see the value to be use in the checkbox properties, "options" tab, the default value is shown (it change depending on the locals used when creating the PDF)

what's the good value? I tried boolean values but it's not working. Any suggestions?

I've found that using 'On'/'Off' for checkboxes works.

To get the languages right, change the tooltip values to:
{{ language.french | check }},  {{ language.esperanto | check }},  {{ language.latin | check }}
This can be done for example with Adobe Acrobat Pro with File>>Create>>CreateForm>>Start


Android Chrome - Cryptographic Exception

From @troncomputers on July 2, 2017 9:11
Hi!
Sometimes we are getting Cryptographic Exception on Android Chrome. Never happend on desktop.
I'm new to ASP, specialy Core.
Project is made with ASP .NET Core WebPages (Razor with seperate model class) with EntityFramework.
Microsoft.AspNetCore.All
2.0.0-preview1-final
ERROR:
An unhandled exception occurred while processing the request.

CryptographicException: The key {da62fb91-5285-48aa-84f0-f1360c5a2dd7} was not found in the key ring.

Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, bool allowOperationsOnRevokedKeys, out UnprotectStatus status)

CryptographicException: The key {da62fb91-5285-48aa-84f0-f1360c5a2dd7} was not found in the key ring.
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, bool allowOperationsOnRevokedKeys, out UnprotectStatus status)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, bool ignoreRevocationErrors, out bool requiresMigration, out bool wasRevoked)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider.LoadTempData(HttpContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary.Load()
Microsoft.AspNetCore.Mvc.ViewFeatures.TempDataDictionary.get_Item(string key)
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.SaveTempDataPropertyFilterBase.SetPropertyVaules(ITempDataDictionary tempData, object subject)
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.PageSaveTempDataPropertyFilter.ApplyTempDataChanges(HttpContext httpContext)
Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker+<ExecutePageAsync>d__13.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker+<InvokeInnerFilterAsync>d__10.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Core.Internal.ResourceInvoker+<InvokeNextResourceFilter>d__18.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Microsoft.AspNetCore.Mvc.Core.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
Microsoft.AspNetCore.Mvc.Core.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Core.Internal.ResourceInvoker+<InvokeFilterPipelineAsync>d__13.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Mvc.Core.Internal.ResourceInvoker+<InvokeAsync>d__11.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()

I posted this error on different repo and someone explain me that this is a server side error and has nothing to do with Android. I'm getting this exception only on mobile.
Android puts allmost every app to 'background', maybe is cache problem or ASP session with old "session keys".
Please help!
Copied from original issue: aspnet/Home#2083

This error is definitely coming from our stack. This is the piece of code that tries to decrypt temporary data stored in a cookie. This should not be crashing like this even if the data can't be decrypted. But we will probably need more information to really understand the cause
@blowdart - ideas about when/how this could occur? Could this be due to ephemeral keys on linux?
@troncomputers - what's the server platform?

I'm moving this issue to MVC which is a more appropriate place for it.

Also is the user authenticated when this happens?

@rynowak
Platform:
Windows Server 2016
SQL Server 2016 Standard
IIS ver. 10.0.14393.0
@blowdart
I do not set "isPersistent" to true so should not be logged in.
It might be problem with compiled project? At the end of a day I do "publish" and copy only wwwroot directory, projectName.dll and projectName.PrecompiledViews.dll to server.

The relevant part of the stack is this:
CryptographicException: The key {da62fb91-5285-48aa-84f0-f1360c5a2dd7} was not found in the key ring.

Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, bool allowOperationsOnRevokedKeys, out UnprotectStatus status)

CryptographicException: The key {da62fb91-5285-48aa-84f0-f1360c5a2dd7} was not found in the key ring.
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, bool allowOperationsOnRevokedKeys, out UnprotectStatus status)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, bool ignoreRevocationErrors, out bool requiresMigration, out bool wasRevoked)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
Microsoft.AspNetCore.Mvc.ViewFeatures.CookieTempDataProvider.LoadTempData(HttpContext context)

@blowdart - does the encrypted data get stamped with a key identifier? That's what this looks like to me.

To repeat, we should not be throwing an exception when something like this happens - temp data is optional/transient and all kinds of things can go wrong. However, I want to understand if something underlying is broken as well.

I can make an account for you on my project website to test it. There are still fake data so you can do whatever you want to fix this.

@rynowak Yes everything that goes through data protection keys a KID.
@troncomputers Can you turn on debug logging and watch what happens at app startup? There may be a data protection log in there I'd like to see. Did you run the deployment script for data protection and IIS? Or does the app pool load a profile?

@blowdart Like I said, I am new to ASP .NET, I need some guidance if you want satisfying answer. Sorry about that but I'm trying to learn on that project.
Most of my configuration code I took from this sample project:
https://github.com/DamianEdwards/RazorPagesSample
My Startup.cs
public class Startup
    {
        public Startup(IConfiguration configuration, IHostingEnvironment env)
        {
            Configuration = configuration;
            HostingEnvironment = env;
        }

        public IConfiguration Configuration { get; }
        public IHostingEnvironment HostingEnvironment { get; }

        // This method gets called by the runtime. Use this method to add services to the container.
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext<ApplicationDbContext>(options =>
                        options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

            services.AddIdentity<ApplicationUser, IdentityRole>()
                .AddEntityFrameworkStores<ApplicationDbContext>()
                .AddDefaultTokenProviders();

            services.AddMvc();

            return services.BuildServiceProvider(validateScopes: HostingEnvironment.IsDevelopment());
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app)
        {
            if (HostingEnvironment.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Error");
            }

            app.UseStaticFiles();
            app.UseAuthentication();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
    }

My Program.cs
 public class Program
    {
        public static void Main(string[] args)
        {
            BuildWebHost(args).Run();
        }

        public static IWebHost BuildWebHost(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseKestrel()
                .UseIISIntegration()
                .UseStartup<Startup>()
                .Build();
    }

And Login.cshtml.cs (Login model class)
public class LoginModel : PageModel
    {
        private readonly string _externalCookieScheme;
        private readonly SignInManager<ApplicationUser> _signInManager;
        private readonly ILogger<LoginModel> _logger;

        public LoginModel(SignInManager<ApplicationUser> signInManager, IOptions<IdentityCookieOptions> identityCookieOptions, ILogger<LoginModel> logger)
        {
            _signInManager = signInManager;
            _externalCookieScheme = identityCookieOptions.Value.ApplicationCookieAuthenticationScheme;
            _logger = logger;
        }

        [Required]
        [EmailAddress]
        [BindProperty]
        public string Email { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [BindProperty]
        public string Password { get; set; }

        public string ReturnUrl { get; set; }

        [TempData]
        public string ErrorMessage { get; set; }

        public async Task OnGetAsync(string returnUrl = null)
        {
            if (!string.IsNullOrEmpty(ErrorMessage))
                ModelState.AddModelError(string.Empty, ErrorMessage);

            await HttpContext.SignOutAsync(_externalCookieScheme);

            ReturnUrl = returnUrl;
        }

        public async Task<IActionResult> OnPostAsync(string returnUrl = null)
        {
            ReturnUrl = returnUrl;

            if(ModelState.IsValid)
            {
                var result = await _signInManager.PasswordSignInAsync(Email, Password, false, lockoutOnFailure: true);

                if(result.Succeeded)
                {
                    _logger.LogInformation(1, "Zalogowany");
                    return RedirectToPage("/");
                }
                else
                {
                    ModelState.AddModelError(string.Empty, "Niepoprawne dane do logowania.");
                    return Page();
                }
            }
            return Page();
        }
    }

Ok, if this is in a production environment, or under IIS rather than IIS express there's a step you need to go through first;
Near the bottom of the IIS docs is a section on configuring data protection, which gives you the following options;
To configure Data Protection under IIS you must use one of the following approaches:

Run a powershell script to create suitable registry entries (For example, .\Provision-AutoGenKeys.ps1 DefaultAppPool). This will store keys in the registry, protected using DPAPI with a machine wide key.
Configure the IIS Application Pool to load the user profile. This setting is in the Process Model section under the Advanced Settings for the application pool. Set Load User Profile to True. This will store keys under the user profile directory, and protected using DPAPI with a key specific to the user account used for the app pool.
Adjust your application code to use the file system as a key ring store. Use an X509 certificate to protect the key ring and ensure it is a trusted certificate. For example, if it is a self signed certificate you must place it in the Trusted Root store.

I'd try option 1 or two first. You need 3 if you're going to load balance over multiple machines.

@blowdart First of all after I did first 2 points website on desktop is just 1000% faster - faster loading, faster searching (getting data from database) etc.
On mobile everything is fine, no exceptions and also really fast.
Was that security "thing" not configured slowing down my website and throwing exceptions on mobile?

Aha. it works? Great.
So what happens in data protection is we generate our own encryption keys, and rotate them. But if you don't configure where they're stored it has to start again from scratch, as they are only retained in memory for as long as your app runs. Generating keys takes a little while, so you're incurring that cost every time you restart your app. So it would explain the initial load at least. But nothing else :)

You said that you should not throw exception when decripting cookies. Is it still a bug or just my no experience?

It should work fine now, well, for identity and csrf cookies. If it's still happening then something else is going on.

Thanx for help, you saved my life 👍

@Eilon - thoughts on making this not throw for 2.0.0?

It needs to error somehow I'm afraid.

Let's discuss this briefly tomorrow, I want to understand your concerns


When the API returns a 429, the rejected value is a string

When you reach the rate limit, the API returns an object like {retry_after: 15}, but with this library the error becomes a string like Retry after: 15, which forces me to either use a regular expression to get the seconds to wait, or assume it's always going to be 15. I think neither is optimal, ideally I would like to get the value like so: const seconds = err.retry_after.
Is this something you would be willing to change or accept a pull request for?
Thanks in advance.

Closely related to this, I've seen the following code in client.ts:
preprocess(body, response) {
    // if (headers['retry-after']) {
    //   this.retryAfter(task, headers['retry-after'], done);
    // }

    return { headers: response.headers, data: body };
  }

Is there a reason why it's commented? When I was trying to library I saw that promises were simply rejected but not retried and so I implemented my own solution. If you were having trouble with this, I'm more than happy to look into this and try to find a solution.

I am happy to add this or work with a provided PR if you have an approach you would like to go with.
If I think back, I believe this was more do to time constraints. It would probably be easy to add in given the right test designed to hit that limit for verification.

Hi, I have a working solution that doesn't reject the promise until after the retry is successful, so that library users can be confident that when a promise is resolved, it means the request was successful regardless of rate limit.
I'm trying to run the tests with a clean repo but I'm getting this error: Module <rootDir>/node_modules/ts-jest/preprocessor.js in the transform option was not found.
Indeed that file doesn't exist, so I tried changing the path to '<rootDir>/node_modules/ts-jest/dist/preprocess.js, but now I'm getting this error in all test suites: TypeError: Jest: a transform must export a process function.
I haven't done anything with TypeScript experience and I don't have time to dig into this at work. Could you please look into it?
Should I make a pull request despite the fact that I couldn't create a test suite to hit the rate limit?

I am looking at a clean install now. A PR though is a good way to share your progress.
Might not be merge ready, but would allow for some debugging.

Looks like one of the updates to ts-jest supports a different config. Updated the required property and it looks to be good now. Unit and integration tests ran without issue.
Looking forward to reviewing the PR. Thanks for all the help.

Thanks for the update. I had to update the tests to reflect my changes, but they work again. I created a PR, not much had to be changed in the end.
Thank you for the library :)

Your PR works, I can test it locally, but I am having some issues with the pipeline for deployment. Will likely resolve those tomorrow.

Yeah, I noticed. I think it has to do with the environment variables not being set.

There we go,
Three parter with an outage, bad data logged in the testing account, and some types causing issues.

A new version of the package harvest (2.2.0) was published at 2018-08-09T05:43:43.582Z from
<IP_ADDRESS>. The shasum of this package was e04327add8141687c10726cf1a8541e4c78204f8.


Add a check that prevents mu-plugins-loader to load before WordPress …

…is installed.
The problem is that set_site_transient() already tries to insert into the DB before we can even install WordPress.
This causes an notice which, later on, causes a headers already sent warning.
To prevent this from happening, we add a check before we run the mu-plugins.

Thanks a lot @JoranSchipper for your commit and now right formatting. Really great


loading the dashboard and file paths of the home page

Hey team!
So sorry that it's taken ages to get some user feedback for the WAZP dashboard. Thank you to all of you who worked so hard on it - it's very much appreciated! It doesn't seem like I'm using it now, but I've been very busy with onboarding two new crab folks, having a new zoo director, and a new tight deadline at the zoo :( I've just started to mess around with the dashboard formally today, but unfortunately won't be able to have a good play with it until mid May. I'll be focused nearly entirely on data acquisition until mid June - so sorry about this!
The first and main issue I've come across is loading the input_config.yaml. The first drag & drop typically works well, but if I navigate elsewhere and return to the dashboard, I get these callback errors:

Also, when attempting to load another input_config.yaml, it doesn't actually load it (I tried both drag & drop and going through the file explorer menu) and it rather states the file path of the original input_config.yaml:

 ). I'm making this post together as it seems these two issues may be related. Or, for the second issue, do I just have to close the dashboard and reopen the cmd's http link again if I want to switch input_config.yamls?
Cheers :)

I haven't had any issues like this today and I've thrown ~20 input_config.yaml's in there :-)
I think we can complete this issue?

Thanks @sannatitus
There's a minor change which relates to this that just suppresses the error when you go there with no config (the first part). That will be in v0.2 (when we make it).


Gate web-sys features behind features

I want to continue the conversation started in #148 about web-sys features, I just felt it needed it's own place of discussion instead of a somewhat related issue.
The main point was compilation time, but I've always been on the side of "compilation time are always second to DX". Yes they are an issue, but gaining some ergonomics is always the better choice when against compile time.
But, I started experiencing an issue when introducing leptos-use to leptos_i18n: Rust-Analyzer. Having so much web-sys features enabled make Rust-Analyzer index so much things and spend probably about 50% of the full project analysis on web-sys.
So I would like to submit a proposal:
Add a feature for every module of leptos-use, make a "full" feature that enable them all, make that "full" feature the default, and make every module feature activate the web-sys feature they need.
This would basically add 3-4 lines per module and not change much things, as by default every features are enabled, but when someone use leptos-use for one or two functions, just using
leptos-use = { version = "0.X.X", default-features = false, features= ["use_locale", "use_cookie"] }

would make analysis time much shorter.
This request is also preventive, when this project will grow, adding more and more hooks in the future this will probably needed at some point, and introducing this now will make things easier in the future.

So the day has finally come... 😀
You're probably right, that once we have implemented it, it's not going to be the end of world for maintainability. But introducing it will take a bit of work.

I'm gonna work on the i18n for struct-table, if this is still open when I'm done I would happily work on this

Very nice! I've already started on this, but I don't know when I'll finish. So please let me know when the time has come 😄


Sign in button background color not displayed correctly

Bug report

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
The sign in button from the login form doesn't always show the correct background color. You can take a look at #106 where I provided screenshots of the example project.
To Reproduce
Check the codesandbox for a MWE. Remove line 6 in App.tsx and compare the background color of the sign in button.
If you also check App.module.css you can see, that it is an empty file.
Expected behavior
The background color of the login button remains consistent.

But line 6 is your app code. This is a very confusing example of the issue as the variable on line 6 isn't being used anywhere, this is not an Auth UI issue, this is an application code issue. If you remove line 28 - 41 you will see the default theme.

I don't fully understand the problem. I can see it being an application issue as well as an Auth UI issue. As you said, that line 6 is not used anywhere, it should not affect the code. But it does affect it, even the default theme!
I removed lines 28 - 41 and uncommented/commented line 6 again, and the default theme view changes (see screenshots). Since I don't fully understand the implementation of the UI library, I can't pinpoint the problem. But the custom app code is a fix for a bug reported in #106. Without line 6, the sign in button isn't styled correctly. This leads me to believe that it is an Auth UI issue.
Without the fix in line 6 (note that the background color is not applied properly)

With line 6 (default theme)

@lkoehl ah I see what you mean, I've changed this back to a bug and will investigate it further to try and find what's going wrong here. It looks like something is leaking into the css variables and how they work from the app code.

Running into this too. Any solutions?

I encountered this issue while using a custom theme and hex colors for the brand and brandAccent. However, I resolved it by switching to the rgb() format, and the button background filled in with my custom color as expected.


Better setup documentation

The setup docs should be more comprehensive and include instructions for database initialization and be more comprehensive about different platforms. Windows instructions (or accepting that Windows is not supported) would also be nice.

Fixed in pr #119.


is skiff currently safe to use in production?

Hi @pgte, i've skimmed thru skiff and skiff-algorithm, and stumbled upon the leader election issue at https://github.com/pgte/skiff-algorithm/issues/3
Is that obsolete, or the overall construction is still early alpha?

I consider this is pre-alpha. See #23.


Keep getting 415 UNSUPPORTED_MEDIA_TYPE

--Boundary+0xAbCdEfGbOuNdArY--
RESULT:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>415 UNSUPPORTED_MEDIA_TYPE</title>

Error: UNSUPPORTED_MEDIA_TYPE

I fed it a jpg in the exampleFunction.php but not sure if its being sent, it gives me this higher up in the log
PHP Warning:  unlink(/home/objectivetruth/Snap-API/src/cache/image.jpg):
No such file or directory in /home/objectivetruth/Snap-API/src/snapchat.php on line 1188

Sorry if this is a simple issue, I'm not an expert in PHP and I can't find what the error is failing on

@ObjectiveTruth
Use the latest code :smile:
$path = '/Users/mgp25/Desktop/test.jpg'; //change this path

$snapchat = new Snapchat($username, $auth_token, $debug);

$snapchat->login($username, $password);

$snapchat->send($path, $to);

$snapchat->send($path, $to, 10, $media_id);

Regards


WIP: WhiteDefenderStatueUnlocked

[x] Figure out what dungDefenderAwoken means. Is it really necessary, or is just dungDefenderAwakeConvo enough?

Turns true on the transition from Dream_04_White_Defender to Waterways_15 after whiteDefenderDefeats: 5.

[x] Figure out what dungDefenderLeft means. Is it really necessary, or is just dungDefenderAwakeConvo enough?

Turns true when the knight gets up after that transition from the dream.

[x] Figure out what dungDefenderAwakeConvo means.

Turns true when the knight either talks to Dung Defender after that, or leaves the room to skip the conversation.
In the current code, this works when the knight leaves the room, but splits too early when the knight talks to Dung Defender.
Perhaps "dungDefenderAwakeConvo on-entry" would be better.

[ ] What is the mem.GetCameraTarget().X < 29.5 doing there? Is there a better way?
[ ] Make sure it only splits after leaving and re-entering the room so it's in the stinky-statue state. Don't immediately split on the conversation.

There's a comment on GetCameraTarget that says GameManger._instance.cameraCtrl.camTarget.destination.
However, that cameraCtrl field might actually be <cameraCtrl>k__BackingField or something, and I should check the fields of CameraTarget too.


Add translate function to matrix::transform ext.

This adds translate function equivalent to GLM's matrix_transform.hpp/translate.
I tried to keep the internal module structure a bit similar to GLM's, so it is located at ext / matrix / transform. However I left the module hierarchy hidden, because I did not want to touch functions in ext / matrix for this commit. I am waiting for further guidance where to put this stuff :).
Also, I could not make the example test work, because the extern crate num; was causing some kind of problem. Ignored it for now.

You design is fine.