modrinth doesn't have the latest version

your github version is updated to 1.19, but the modrinth page doesn't have that version

That is correct. I'm only publishing to Github for now, but I'm considering making a small "mod hub" on my homepage in the future.

i would really appreciate if you updated it, especially considering that tools like packwiz don't support arbitrary download links

I don't want to put effort into uploading mods to a site where the moderators ban people cause they feel like it.
That aside, Packwiz does appear to support external mods (https://packwiz.infra.link/tutorials/creating/adding-mods/) and I know that Modrinth packs also have Github releases whitelisted.

See something like aternos however doesnt support external mods

I understand if you dont want to update but it would be really nice if you could

Sorry, it's not gonna happen from my side. The project's license is very permissive though, feel free to upload it to Modrinth yourself.

I don't want to put effort into uploading mods to a site where the moderators ban people cause they feel like it.

Makes sense. So far, Modrinth does not have any history of doing so (that I know of), but I get your reasoning. It would likely still be worthwhile for discoverability reasons.

That aside, Packwiz does appear to support external mods (https://packwiz.infra.link/tutorials/creating/adding-mods/) and I know that Modrinth packs also have Github releases whitelisted.

I meant to say that it can't automatically update from GitHub releases, which is admittedly a minor inconvenience.


Create dockerfile

fixes #1
ToDo

[x] Hugo: latest version
[x] deploy targets: github pages
[ ] deploy targets: firebase
[ ] deploy targets: s3
[x] packages: git, ssh
[x] directories: ~/.ssh/

deploy targets: firebase

https://firebase.google.com/docs/cli/

deploy targets: s3

https://docs.aws.amazon.com/cli/latest/userguide/installing.html


⚠ Samsung has degraded performance

In 9540978, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2734 ms

Resolved: Samsung performance has improved in a011fa3.


Consider moving ProtobufMessageFeature native image configuration to gax

Currently java-compute brings in gax-grpc for the purpose of bringing in ProtobufMessageFeature. The ProtobufMessageFeature class is used to register reflection configurations for all the sub-classes of com.google.protobuf.GeneratedMessageV3 which is used by generated client libraries.
However, adding a dependency on gax-grpc can cause confusion especially when a library (such a java-compute) is REST-based and has also resulted in some unintended behavior (https://github.com/googleapis/java-compute/pull/721) during native image compilation.
TODO:
The dependency on gax-grpc needs to be removed from java-compute once this change is made, released and gax is upgraded in the libraries
cc: @blakeli0 @suztomo

https://github.com/googleapis/gax-java/issues/1788#issue-1368087289


Bugfix/415 cholesky decompose

Submisison Checklist

[ ] Run unit tests: ./runTests.py test/unit
[x] Run cpplint: make cpplint
[x] Declare copyright holder and open-source license: see below

Summary:

Fixes #415. Fixes the implementation of cholesky_decompose so the upper-triangular elements have a vari on the autodiff stack.
Adds tests to check that functions that return stan::math::var have varis that are on the autodiff stack.

Intended Effect:
Fixes bug in implementation.
How to Verify:
To verify that cholesky_decompose is fixed, run:
./runTests.py test/unit/math/rev/mat/fun/cholesky_decompose_test.cpp

Run the rest of the changed tests.
Side Effects:
Fixes a bug.
Documentation:
None.
Reviewer Suggestions:
@rtrangucci
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Jenkins, retest this please.

@bob-carpenter, I fixed all the spots you noticed. Thanks for putting extra eyes on it.


Cumulative Gridsome revamp

Do not merge. This PR is created for review and discussion purposes.
This PR represents the replacement of the legacy main branch with the new gridsome-main branch which is a trunk on its own.
Latest (successful) preview build here.
Todo before merging:

Gridsome MVP Milestone

@rwfeather - This test is failing but it's great to see actually. A nice referential integrity test. 🙏
Extra Maintainers: {'cmbramwell', 'rangle', 'phillymedia', 'ragbadaskar', 'meowwolf', 'reachlocal'}

@pnadolny13 - Is this to be expected or do we think these maintainers should still have one or more registered plugins?

Hypothesis: We removed from main and that correctly got merged into gridsome-main, but gridsome-main requires more stringent culling of the maintainers list, which is why this popped up here and not in main.
Yes/no/maybe? 😄

@aaronsteers yes, we removed those in https://github.com/meltano/hub/pull/728 because the repos are no longer available.

Hypothesis: We removed from main and that correctly got merged into gridsome-main, but gridsome-main requires more stringent culling of the maintainers list, which is why this popped up here and not in main.

Resolved in #750

@aaronsteers Items found in my review:

https://deploy-preview-663--meltano-hub.netlify.app/extractors/tap-auth0 doesn’t have the sidebar at any zoom level for me (tracked in https://github.com/meltano/hub/issues/785 I think?)
Settings don’t detail the environment variable or any instructions on how to configure (compare https://hub.meltano.com/extractors/tap-auth0#client-id to https://deploy-preview-663--meltano-hub.netlify.app/extractors/tap-auth0#client_id-setting or compare https://deploy-preview-663--meltano-hub.netlify.app/utilities/great-expectations#ge_home-setting to https://hub.meltano.com/utilities/great_expectations#ge-home
The installation and config instructions on most plugins don’t have any code blocks https://deploy-preview-663--meltano-hub.netlify.app/utilities/great-expectations they seem to be formatted for code, but it doesn’t have the background I would expect.
Do we have the PyPI stats for these? I just noticed it missing on Great Expectations.
On GE - I’m seeing a couple of wrong URLs. “pull request to the YAML file” goes to a non-existent section and same for the setting “No description provided”
Under looking for help “If you’re having trouble getting the great_expectations extractor to work” - looks like we need to update to the plugin type (s/extractor/utility)
On https://meltano-hub-gridsome.netlify.app/extractors/tap-google-analytics - it looks like we’re not rendering the images on https://hub.meltano.com/extractors/tap-google-analytics
Under “Maintainer” in the sidebar - I’d like to see the clean label and not the raw key. So “Meltano Community” instead of meltanolabs

commented in https://meltano.slack.com/archives/C043R4WV6TS/p1664225286228169?thread_ts=1664224307.638309&cid=C043R4WV6TS as well

@aaronsteers Items found in my review:

deploy-preview-663--meltano-hub.netlify.app/extractors/tap-auth0 doesn’t have the sidebar at any zoom level for me (tracked in fix(gridsome): plugin detail sidebar shouldn't float to bottom on small screen widths #785 I think?)

Should be resolved with #785

Settings don’t detail the environment variable or any instructions on how to configure (compare hub.meltano.com/extractors/tap-auth0#client-id to deploy-preview-663--meltano-hub.netlify.app/extractors/tap-auth0#client_id-setting or compare deploy-preview-663--meltano-hub.netlify.app/utilities/great-expectations#ge_home-setting to hub.meltano.com/utilities/great_expectations#ge-home

With config --interactive and just training people to configure things in general, I prefer not to have this everywhere on the page. Could be just once under "Settings > How to configure" with notes about the naming convention, meltano config set syntax and --meltano config --interactive option.
That said, if we see this as a blocker, we'll get it added back. It's tracked here:

https://github.com/meltano/hub/issues/846

The installation and config instructions on most plugins don’t have any code blocks deploy-preview-663--meltano-hub.netlify.app/utilities/great-expectations they seem to be formatted for code, but it doesn’t have the background I would expect.

Confirmed.
https://deploy-preview-663--meltano-hub.netlify.app/utilities/great-expectations/#contribute

Contrasted with elsewhere on the page, where formatting matches expectations. (Possibly a distinction of how we use pre and code, or both.)

Do we have the PyPI stats for these? I just noticed it missing on Great Expectations.
On GE - I’m seeing a couple of wrong URLs. “pull request to the YAML file” goes to a non-existent section and same for the setting “No description provided”
Under looking for help “If you’re having trouble getting the great_expectations extractor to work” - looks like we need to update to the plugin type (s/extractor/utility)
On meltano-hub-gridsome.netlify.app/extractors/tap-google-analytics - it looks like we’re not rendering the images on hub.meltano.com/extractors/tap-google-analytics
Under “Maintainer” in the sidebar - I’d like to see the clean label and not the raw key. So “Meltano Community” instead of meltanolabs

commented in meltano.slack.com/archives/C043R4WV6TS/p1664225286228169?thread_ts=1664224307.638309&cid=C043R4WV6TS as well

On GE - I’m seeing a couple of wrong URLs. “pull request to the YAML file” goes to a non-existent section and same for the setting “No description provided”

@aaronsteers I see they go to the #contributing header but that does feel a bit weird. My intuition was that the "pull request to the YAML file" would just go to the YAML file. And "No description provided" doesn't seem like it should be a link (but I guess the CTA is please edit it and add one!) I guess this is fine as-is and not really a blocker.

Under looking for help “If you’re having trouble getting the great_expectations extractor to work” - looks like we need to update to the plugin type (s/extractor/utility)

I think this one got missed in your above comment from what I see.

With config --interactive and just training people to configure things in general, I prefer not to have this everywhere on the page. Could be just once under "Settings > How to configure" with notes about the naming convention, meltano config set syntax and --meltano config --interactive option.

I'll leave an additional comment in https://github.com/meltano/hub/issues/846 on my thoughts on the "How to Configure" section specifically 👍

On GE - I’m seeing a couple of wrong URLs. “pull request to the YAML file” goes to a non-existent section and same for the setting “No description provided”

@aaronsteers I see they go to the #contributing header but that does feel a bit weird. My intuition was that the "pull request to the YAML file" would just go to the YAML file. And "No description provided" doesn't seem like it should be a link (but I guess the CTA is please edit it and add one!) I guess this is fine as-is and not really a blocker.

Under looking for help “If you’re having trouble getting the great_expectations extractor to work” - looks like we need to update to the plugin type (s/extractor/utility)

I think this one got missed in your above comment from what I see.

With config --interactive and just training people to configure things in general, I prefer not to have this everywhere on the page. Could be just once under "Settings > How to configure" with notes about the naming convention, meltano config set syntax and --meltano config --interactive option.

I'll leave an additional comment in #846 on my thoughts on the "How to Configure" section specifically 👍

I think all of these are addressed now in the pending PR:

#851


Doesn't support onConflict

Given this code:
describe("on conflict", () => {
  const mockedKnex = knex({ client: MockClient, dialect: "pg" });
  let tracker: Tracker;

  beforeAll(() => {
    tracker = getTracker();
  });

  afterEach(() => {
    tracker.reset();
  });

  test("it mocks correct on conflict SQL", async () => {
    await knex("a_table")
      .insert({id: 1234, created_at: "2022-05-10", updated_at: "2022-05-10"})
      .onConflict("id")
      .merge(["id", "created_at"]);
  });

  console.log(tracker.history.insert);
});

The SQL logged is:
insert into "a_table" ("created_at", "id", "updated_at") values (?, ?, ?)
It should be something along the lines of:
insert into "a_table" ("created_at", "id", "updated_at") values (?, ?, ?) on conflict ("id") do update set "id" = ? "updated_at" = ?

I've tested it, and it works for me.
This is what I get
[
  {
    method: 'insert',
    options: {},
    timeout: false,
    cancelOnTimeout: false,
    bindings: ['2022-05-10', 1234, '2022-05-10'],
    __knexQueryUid: 'Aq0oFojeAAX0hQJ6zb_r5',
    sql: 'insert into "table_name" ("created_at", "id", "updated_at") values (?, ?, ?) on conflict ("id") do update set "id" = excluded."id", "created_at" = excluded."created_at"',
    returning: undefined,
    queryContext: undefined,
  },
]

Just a heads up I have exactly the same issue as @chrisharrison for an insert/on conflict/merge.

Just a heads up I have exactly the same issue as @chrisharrison for an insert/on conflict/merge.

Can you share a query?

const result = await this.knex
  .insert({
    id: user.id,
    name: user.name,
  })
  .into("user")
  .onConflict("id")
  .merge(["name"])
  .returning([
    "id",
    "name",
  ]);

Did you checked my comment link?
You need to specify the dialect since onConflict is relevant only to postgress.
Hope this solves your issue.

My bad, I missed that you had specified the dialect. Thanks for your help 😄


[RayService] Allow updating WorkerGroupSpecs without rolling out new cluster

Why are these changes needed?
Previously, when the RayCluster spec of a RayService was updated, one of two things would happen:

A new cluster would be rolled out via "zero-downtime-upgrade", or
In the case where only the Replicas and WorkersToDelete fields changed, nothing would happen.  This behavior was added by https://github.com/ray-project/kuberay/pull/1037 to prevent the Autoscaler from inadvertently triggering rollouts when modifying these fields.)

This PR adds a third case: If WorkerGroupSpecs is modified and it doesn't fall into the case above, then the RayService controller will update the RayCluster instance in place without rolling out a new one.
This happens in two places:

For the active RayCluster
For the pending RayCluster

Either of these clusters two may see an update to the spec, so we must handle both of these places.
Adding a worker group works fine, but removing a worker group does not work and is blocked by https://github.com/ray-project/kuberay/issues/1739.

TODO:

[x] Add/update rayservice_controller_test.go

Related issue number
Closes https://github.com/ray-project/kuberay/issues/1643

Checks

[x] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[x] Manual tests

kubectl apply -f /Users/architkulkarni/kuberay/ray-operator/config/samples/ray-service.autoscaler.yaml
watch kubectl get pod

Wait for the worker pod to come up.
Add a new entry to the WorkerGroupSpec, copying the first one but changing the name to worker-group-2.
kubectl apply -f /Users/architkulkarni/kuberay/ray-operator/config/samples/ray-service.autoscaler.yaml
watch kubectl get pod

See the second worker pod come up.
Reminder that removing a worker group is broken and blocked by https://github.com/ray-project/kuberay/issues/1739

[ ] This PR is not tested :(

Why does the PR description use RayCluster instead of RayService for manual testing?

Ah typo, it should say ray-service.autoscaler.yaml.

In this PR, we instead just do a rolling upgrade in this case. It's not a regression, and we can add the rejection behavior in the future in an independent PR if a user asks for it. This might require some more design, such as using an admission webhook or storing the previous spec somehow. (If we just store the hash as we currently do, we cannot reconstruct the previous spec because all we have is the hash.)

Good point!

Thanks for the review - will respond to the remaining comments soon

@kevin85421 Thanks for the review, I believe all comments are addressed now.
Followups:

https://github.com/ray-project/kuberay/issues/1761
https://github.com/ray-project/kuberay/issues/1768
https://github.com/ray-project/kuberay/issues/1769

@kevin85421 Thanks! I will run through the manual test on the final commit before merging.
By the way, are rayservice-sample-yamls tests known to be flaky? They are somewhat flaky on this PR.  If the tests were 100% green before, then that could indicate an issue with the PR, but if they were flaky before, then I'm less worried.
Also the raycluster-sample-yamls tests are flaky on this PR, but those are almost certainly unrelated.

The manual test described in the PR description passed. Merging


bring app window to front after token creation and receipt in vscode

For smoother onboarding: Can we make vscode bring its application window to the front instead of needing a button on the web page?

Even a really focused page that had a 'Return to VS Code' message (and little else) would be good… people know how to switch back to another app. I think the flow that is implemented now lands you on the survey and then the big CTA button that has two layers of permission dialogs.


Handle filter description for all/no orgs.

What
Handle No organisations and No organisation filter
in CSV download.
Why
CSV Download was failing when All organisations or
No primary organisation is selected.
This was because it was trying to get the organisation
name to generate the filename.
all and none do not exist in the list of organisations so this was
failing.
Short-circuit for all and none to return All organisations and
No organisation.
Review Checklist

[ ] Changes in scope.
[ ] Added/updated unit tests.
[ ] Added/updated feature tests.
[ ] Added/updated relevant documentation.
[ ] Added to Trello card.

 (2) CSV download not working


Tabs not updated when going from edit mode to view mode

For conditional tabs, if one edits an entity and saves it, the tabs are not refreshed (because the tab might become invisible because of property edit) only when manually refreshing the page.

released in v0.1.5


ignore HTML style?

Hi, i'm try to copy some html (like this:...) into quill, but it removed the style attribute, and react-quill version is 2.0.2
How I should deal with this case?

add 'color' in your allowed formats: http://quilljs.com/docs/formats/


npm ERR! code ELIFECYCLE

[1] npm
[1]  ERR!
[1]  Linux 4.4.2-301.fc23.x86_64
[1] npm
[1]  ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "lite"
[1] npm ERR! node
[1]  v5.7.1
[1] npm ERR!
[1] npm  v3.8.1
[1] npm ERR! code ELIFECYCLE
[1] npm
[1]  ERR<EMAIL_ADDRESS>lite: lite-server
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the<EMAIL_ADDRESS>lite script 'lite-server'.
[1] npm ERR! Make sure you have the latest version of node.js and npm installed.
[1] npm ERR! If you do, this is most likely a problem with the a2uploads package,
[1] npm ERR! not with npm itself.
[1] npm ERR! Tell the author that this fails on your system:
[1] npm ERR!     lite-server
[1] npm ERR! You can get information on how to open an issue for this project with:
[1] npm ERR!     npm bugs a2uploads
[1] npm ERR! Or if that isn't available, you can get their info via:
[1] npm ERR!     npm owner ls a2uploads
[1] npm ERR! There is likely additional logging output above.
[1]
[1] npm ERR! Please include the following file with any support request:
npm-debug.log.txt

closing this and moving over here for npm issues https://github.com/johnpapa/lite-server/issues/54


Create spec to demonstrate that superclasses are not affected by coercions

This is an additional spec to show that the fix at https://github.com/intridea/hashie/pull/282 works. This spec is perhaps a little more readable, in the sense that it shows a typical case where the bug occurs. This spec reflects what was occurring in my code almost exactly.

Merged via https://github.com/intridea/hashie/commit/8998021867b0ffc55c99aca9dcf6c8f23fb33d7c, thank you.

Fyi, I cut 3.4.1.


Feature/addeslint

add ES lint check

conflicts must be resolved.

@iskey thanks for the review. Conflicts are resolved now.


Fix Windows path replace for 1.0

Thank you for creating this PR. Please let me know if you find other issues on Windows.


Validator

Why validator don`t respect formkey??

Hello @yehiaazanki
search_choices is not supporting the standard Flutter forms features at the moment. However, this would be a great adaptation. Do you have any idea how this could be achieved?

Hello @yehiaazanki
search_choices is not supporting the standard Flutter forms features at the moment. However, this would be a great adaptation. Do you have any idea how this could be achieved?

hmm. ok

@lcuis I think to accomplish this you need to change SearchChoices to extend FormField instead of StatefulWidget to get access to flutters form validation.
This a wrapper class I wrote  as a workaround to get form validation working but its far from ideal.
import 'package:flutter/material.dart';
import 'package:search_choices/search_choices.dart';

class TTSearchChoices extends FormField<dynamic> {
  dynamic current_value;
  final ValueSetter<String>? on_changed;
  List<DropdownMenuItem<dynamic>>? items;
  bool is_expanded;
  bool display_clear_icon;
  bool auto_focus_search;
  Function? search_function;

  static String? _defaultValidator(dynamic v) {
    return null;
  }

  static void _defaultOnSaved(dynamic v) {
    // Currently does nothing, not sure if this is the correct way to do this but it appears to be working without it.
  }

  TTSearchChoices(
    this.current_value,
    this.on_changed,
    this.items,
    this.is_expanded,
    this.display_clear_icon,
    this.auto_focus_search,
    this.search_function,
    { FormFieldSetter<dynamic> on_saved = _defaultOnSaved,
      FormFieldValidator<dynamic> validator = _defaultValidator,
      AutovalidateMode autovalidate_mode = AutovalidateMode.onUserInteraction,
    }
  ): super(
    onSaved: on_saved,
    validator: validator,
    initialValue: null,
    autovalidateMode: autovalidate_mode,
    builder: (FormFieldState<dynamic> state) {

      void onChangedHandler(dynamic value) {
        state.didChange(value);
        if (on_changed != null) {
          on_changed(value as String);
        }
      }

      Widget result = SearchChoices.single(
        isExpanded: is_expanded,
        value: current_value,
        onChanged: onChangedHandler,
        items: items,
        displayClearIcon: display_clear_icon,
        padding: 0,
        autofocus: auto_focus_search,
        searchFn: search_function,
      );

      if (!state.isValid && state.errorText != null && state.errorText!.isNotEmpty) {
        result = Column(
          mainAxisSize: MainAxisSize.min,
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            result,
            Text(
              state.errorText ?? '',
              style: TextStyle(
                color: Colors.red[700],
                fontSize: 13.0,
              ),
            ),
          ]
        );
      }

      return Align(alignment: Alignment.topLeft, child: result);
    }
  );

}

Thanks a lot @martin-labanic for your explanation and code.
I am looking forward to digging into this possibility.

+1

Hello @martin-labanic ,
Version 2.1.2 contains an initial effort to adapt search_choices to extend FormField.
Can you please let me know whether this is what you expected?

@lcuis Apologies for the late reply.
Unfortunately it does not work as expected as the failed validation does not get accounted for when a Form widgets 'validate' function is called.

Hi @martin-labanic !
No worries for the delay, I understand very well the time it takes to get back to such questions.
Thanks a lot for your answer!
Indeed, I was able to create a form with a validation that doesn't take into account the SearchChoices validator result.
I will try to understand why and how to change this behavior.

It looks like version 2.1.5 is at least a partial solution to this request.
The new example "Validator in form" shows a form with single and multiple search_choices Widgets. If at least one of those widgets is not valid, the form is not valid either.
However, running the automated integration testing with Flutster made me realize that there are some specific situations where the call to didChange - necessary to update the value of the form field object and thus letting the validation work from a form perspective - fails when in multiple-future cases. I am not sure whether it is possible to overcome this constraint.
If and when you can, I would love to get your opinion on this functionality @martin-labanic

+1


Measure moment of inertia of steering column about steering axis

This is necessary to calculate the handlebar feedback torque:
I_delta * delta_dd = T_delta + T_m
I_delta: moment of inertia of physical steer assembly about the steer axis.
delta_dd: steer angular acceleration and is obtained from the state transition equation.
T_delta: steer torque (measured with torque sensor)
T_m: feedback torque (actuated with motor drive)

[ ] measure moments of inertia
[ ] update firmware

Calculation is detailed: https://drive.google.com/drive/folders/0B0TYqj2SzQN5MWx6eU04cmVHMnc?usp=sharing
with report here:
https://drive.google.com/file/d/0B0TYqj2SzQN5aE1INTFoa1FRUU0/view?usp=sharing
with weights:
I = 0, 1942 kgm2
without weights:
I = 0, 0828 kgm2

PR here: https://github.com/oliverlee/phobos/pull/68


Paste images

Is your feature request related to a problem? Please describe.
与问题无关.
Describe the solution you'd like
希望在Windows平台可以复制后粘贴添加图片的功能,我使用snipaste复制图片后并不能直接粘贴到localsend里,必须要保存成图片后才能通过localsend发送.
使用snipaste复制图片后能直接粘贴到Windows便笺和网页邮箱里的,希望localsend可以实现相同功能.
Describe alternatives you've considered
No response
Additional context
No response

Looking forward to this feature!


fix: docs/debugger/includes/remote-debugger-symbols.md

Remove whitespace after YAML frontmater
Doesn't look like this was causing an issue, but sometimes parsers seem to choke when the frontmatter --- lines contain trailing space

Merging the typo fix.
@nschonni Thanks!


🐛next自定义列头行标题不显示

Package
Version

@antv/s2
2.0.0-next.5

@antv/s2-react
2.0.0-next.5

@antv/s2-vue
2.0.0-next.5

Sheet Type

[x] PivotSheet
[ ] TableSheet
[ ] GridAnalysisSheet
[ ] StrategySheet
[ ] EditableSheet

🖋 Description
自定义列头时，如果第一列的层级数小于第二列，角头的行标题显示不出来，
如下图

https://codesandbox.io/s/awesome-thunder-9061wg?file=/src/fields.ts

:tada: This issue has been resolved in version @antv/s2-v2.0.0-next.7 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version @antv/s2-react-v2.0.0-next.6 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Change App.AddXXX method signature to avoid misuse (backward incompat…

…ible)
Change-Id: I5b31aca4748240a3d510dc037a8d47de36eb4470

Codecov Report

Merging #17 (a3d593e) into main (3117df6) will decrease coverage by 0.01%.
The diff coverage is 76.31%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
- Coverage   86.53%   86.53%   -0.01%
==========================================
  Files          11       11
  Lines        1887     1908      +21
==========================================
+ Hits         1633     1651      +18
- Misses        179      182       +3
  Partials       75       75

Files Changed
Coverage Δ

command.go
88.67% <ø> (ø)

utils.go
70.00% <ø> (ø)

cli.go
79.66% <60.86%> (-0.08%)
:arrow_down:

default.go
94.11% <100.00%> (+1.80%)
:arrow_up:


Update dependencies, and support node 12

Hello! I don't expect you to merge this (it would require a major version upgrade), but it has helped us get rid of hiredis, which was deprecated a while back and doesn't build with node v12.x.
I do hope it helps other people who have/had a similar issue.

I would set the node version to 12 instead of 12.16.1 ...  also, I would see if it would work with node 8 and 10 as well, or perhaps, just node 10 and 12.
Otherwise personally I don't see why the major version number can't be bumped.

Closed by https://github.com/socketio/socket.io-redis/commit/250096465e03765c532e2a5909982fe372817dad. Thanks!


depositories: improve logging

Debugging a couple pull requests (see: https://github.com/moov-io/paygate/pull/210) led me down a path here to make the logging around Depository objects better.

Codecov Report

Merging #218 into master will increase coverage by 0.27%.
The diff coverage is 45%.

@@            Coverage Diff             @@
##           master     #218      +/-   ##
==========================================
+ Coverage   53.61%   53.88%   +0.27%
==========================================
  Files          31       31
  Lines        4269     4268       -1
==========================================
+ Hits         2289     2300      +11
+ Misses       1516     1508       -8
+ Partials      464      460       -4

Impacted Files
Coverage Δ

depositories.go
58.11% <42.85%> (+1.01%)
:arrow_up:

microDeposits.go
63.6% <50%> (+1.52%)
:arrow_up:

file_transfer_async.go
49.25% <0%> (+0.56%)
:arrow_up:

Continue to review full report at Codecov.

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


chore: add array types to NuxtStrapiQueryParams for more complex payloads

Hello
A PR as discussed in issue #161 & #189

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[x] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

I have added Array<string | number | boolean> to the already existing NuxtStrapiQueryParams type.
This is to ensure that update and create requests can handle more complex data, such as an array of user ids.
Furthermore, I have added custom properties to the registration type and made the username optional.
Strapi 3 also supports these custom properties. Only the ciritcal properties ['confirmed', 'confirmationToken', 'resetPasswordToken'] are omitted.
This is to reflect the changes made in v1 of this module. (#218)
Checklist:

[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes (if not applicable, please state why)

Updated the registration documentation to reflect the new custom properties.

Thank you @luke-z 🙂

Hi @benjamincanac
I'm really sorry about that.. & I'm glad you could fix it.
Second time a build could have fixed a headache, but I truly didn't expect URLSearchParams to be such a pain haha
I tested it with our nuxt/strapi project and it works.


hdevtools: <socket: 4>: hGetLine: end of file

When checking a file with the Turtle library imported, I get an error. Here's a minimal example:
~  [1] ❯❯❯ cat blah.hs                                                      Sun 2017-04-30 16:59:18 -0700
import qualified Turtle as TU
main = putStrLn "hello, world"
~ ❯❯❯ hdevtools check -d blah.hs                                            Sun 2017-04-30 16:59:25 -0700
Cabal file: Nothing
Run from outside a project, using implicit global project config
Stack file: Just "/home/scott/.stack/global-project/stack.yaml"
Socket file: ".hdevtools.sock"
hdevtools: <socket: 4>: hGetLine: end of file

If I remove the Turtle import, I can check the file just fine. If I add other, non-Turtle imports, it also checks fine.
The Turtle library seems to be working ok:
~  [1] ❯❯❯ ghci                                                             Sun 2017-04-30 16:59:31 -0700
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
Ok, modules loaded: none.
ghci> import Turtle
ghci> echo "hello there"
hello there
ghci>
Leaving GHCi.

I'm using:
~ ❯❯❯ hdevtools --version                                                   Sun 2017-04-30 17:01:42 -0700
hdevtools: version <IP_ADDRESS> (ghc-7.10.3-x86_64-openbsd, cabal-<IP_ADDRESS>)
~ ❯❯❯ stack --version                                                       Sun 2017-04-30 17:02:19 -0700
Version 1.1.2 x86_64 hpack-0.14.1
~ ❯❯❯ ghc --version                                                         Sun 2017-04-30 17:02:23 -0700
The Glorious Glasgow Haskell Compilation System, version 7.10.3
~ ❯❯❯

cc @Gabriel439

stack exec -- hdevtools check -d blah.hs works fine, I gather it couldn't find the Turtle lib without that. Not a bug? I should just use stack exec?

Check to see if turtle is in the installed package list by running ghc-pkg list (with and without stack)

Hdevtools selects the ghc and package databases depending on found cabal and stack files. Running with -d enables debug output, shows that it couldn't find any from your test path and probably uses the system ghc with packages installed in just the system package database. Wrapping everything with stack exec provides hdevtools with a stack installed ghc and package database.
If you expected hdevtools to use the ghc/packages from your global stack.yaml, we could identify that as an improvement here.
Can you show me your ~/.stack/global/stack.yaml and the output of stack exec -- which ghc?
Sent from TypeApp
On 1 May 2017, 04:44, at 04:44, Gabriel Gonzalez<EMAIL_ADDRESS>wrote:

Check to see if turtle is in the installed package list by running
ghc-pkg list (with and without stack)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/hdevtools/hdevtools/issues/50#issuecomment-298277184

~ ❯❯❯ ghc-pkg list | grep turtle                                            Mon 2017-05-01 05:35:21 -0700
~  [1] ❯❯❯ stack exec -- ghc-pkg list | grep turtle                         Mon 2017-05-01 05:35:28 -0700
Run from outside a project, using implicit global project config
    turtle-1.2.8
~ ❯❯❯ cat ~/.stack/global-project/stack.yaml                                Mon 2017-05-01 05:35:40 -0700
# This is the implicit global project's config file, which is only used when
# 'stack' is run outside of a real project.  Settings here do _not_ act as
# defaults for all projects.  To change stack's default settings, edit
# '/home/scott/.stack/config.yaml' instead.
#
# For more information about stack's configuration, see
# http://docs.haskellstack.org/en/stable/yaml_configuration/
#
flags: {}
extra-package-dbs: []
packages: []
extra-deps:
- X11-xft-0.3.1 # for monad-contrib
- cond-<IP_ADDRESS> # for hbro
- gogol-core-0.1.0 # for gogol-youtube
- cereal-text-<IP_ADDRESS> # for chatter
- fullstop-0.1.4 # for chatter
- tokenize-0.3.0 # for chatter
resolver: lts-6.31
~ ❯❯❯ stack exec -- which ghc                                               Mon 2017-05-01 05:36:23 -0700
Run from outside a project, using implicit global project config
Using resolver: lts-6.31 from implicit global project's config file: /home/scott/.stack/global-project/stack.yaml
/usr/local/bin/ghc
~ ❯❯❯ ghc-pkg list | grep -E '^/'                                      Mon 2017-05-01 05:43:46 -0700
/usr/local/lib/ghc/package.conf.d:
/home/scott/.ghc/x86_64-openbsd-7.10.3/package.conf.d:
~ ❯❯❯ stack exec -- ghc-pkg list | grep -E '^/'                             Mon 2017-05-01 05:43:53 -0700
Run from outside a project, using implicit global project config
/usr/local/lib/ghc/package.conf.d:
/home/scott/.stack/snapshots/x86_64-openbsd/lts-6.31/7.10.3/pkgdb:
/home/scott/.stack/global-project/.stack-work/install/x86_64-openbsd/lts-6.31/7.10.3/pkgdb:

Sorry to drag you in @Gabriel439, doesn't seem to be Turtle related, feel free to unsubscribe!
Thanks @ch1bo. Perhaps it would be worth improving the error message, if possible? "hdevtools: <socket: 4>: hGetLine: end of file" leaves me perplexed, but something like "hdevtools tried to find the 'Turtle' library but could not...perhaps you need to run stack exec -- hdevtools check instead" would have pointed me in the right direction.
BTW, on my machine, I only have the system installed ghc, I don't have any project based ghc bins.

Yeah, what happens is that the server part of hdevtools errors and the CLI can't communicate with it anymore. If you run the server in non-daemon: hdevtools admin start-server -n (or so) you can see the actual error.
Sent from TypeApp
On 1 May 2017, 14:49, at 14:49, Scott Bonds<EMAIL_ADDRESS>wrote:

~ ❯❯❯ ghc-pkg list | grep turtle
   Mon 2017-05-01 05:35:21 -0700
~  [1] ❯❯❯ stack exec -- ghc-pkg list | grep turtle
   Mon 2017-05-01 05:35:28 -0700
Run from outside a project, using implicit global project config
   turtle-1.2.8
~ ❯❯❯ cat ~/.stack/global-project/stack.yaml
   Mon 2017-05-01 05:35:40 -0700
# This is the implicit global project's config file, which is only used
when
# 'stack' is run outside of a real project.  Settings here do _not_ act
as
# defaults for all projects.  To change stack's default settings, edit
# '/home/scott/.stack/config.yaml' instead.
#
# For more information about stack's configuration, see
# http://docs.haskellstack.org/en/stable/yaml_configuration/
#
flags: {}
extra-package-dbs: []
packages: []
extra-deps:
- X11-xft-0.3.1 # for monad-contrib
- cond-<IP_ADDRESS> # for hbro
- gogol-core-0.1.0 # for gogol-youtube
- cereal-text-<IP_ADDRESS> # for chatter
- fullstop-0.1.4 # for chatter
- tokenize-0.3.0 # for chatter
resolver: lts-6.31
~ ❯❯❯ stack exec -- which ghc
   Mon 2017-05-01 05:36:23 -0700
Run from outside a project, using implicit global project config
Using resolver: lts-6.31 from implicit global project's config file:
/home/scott/.stack/global-project/stack.yaml
/usr/local/bin/ghc
~ ❯❯❯ ghc-pkg list | grep -E '^/'
Mon 2017-05-01 05:43:46 -0700
/usr/local/lib/ghc/package.conf.d:
/home/scott/.ghc/x86_64-openbsd-7.10.3/package.conf.d:
~ ❯❯❯ stack exec -- ghc-pkg list | grep -E '^/'
   Mon 2017-05-01 05:43:53 -0700
Run from outside a project, using implicit global project config
/usr/local/lib/ghc/package.conf.d:
/home/scott/.stack/snapshots/x86_64-openbsd/lts-6.31/7.10.3/pkgdb:
/home/scott/.stack/global-project/.stack-work/install/x86_64-openbsd/lts-6.31/7.10.3/pkgdb:

Sorry to drag you in @Gabriel439, doesn't seem to be Turtle related,
feel free to unsubscribe!
Thanks @ch1bo. Perhaps it would be worth improving the error message,
if possible? "hdevtools: <socket: 4>: hGetLine: end of file" leaves me
perplexed, but something like "hdevtools tried to find the 'Turtle'
library but could not...perhaps you need to run stack exec -- hdevtools
check instead" would have pointed me in the right direction.
BTW, on my machine, I only have the system installed ghc, I don't have
any project based ghc bins.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/hdevtools/hdevtools/issues/50#issuecomment-298328623

Ah. So, the server would need to handle the exception, send the error message up to the client, and only then rethrow...or something like that.

Open issue with cryptic error message should be fixed with #61


compose drafts: Make it easier or less necessary to restore drafts

When a user click aways from the compose box, we immediately turn their current message into a "draft," but the next time they return to the compose box, even if they haven't navigated anywhere else, we clear the compose box as if they are going to compose a brand new message.
There's a mechanism to restore the prior draft, but it's not super discoverable, and it's also surprising for some users that we don't just have their prior draft already there, especially when they're on the same narrow.
The history behind this is that we'd rather inconvenience individual users by having them restore drafts than inconvenience multiple users by making it too error prone to send a message to the wrong stream.
There are probably scenarios where the "mixing" risk is low enough that we might want to err more toward making it convenient for users to have their draft sitting there for them.  It is certainly a common thing to be drafting a message, then you need to read something elsewhere on Zulip for reference, then going back to continue your draft.
Some other improvements would be to have drafts scoped to particular streams or narrows, so that when I restore a draft, it is what I was last writing for that particular stream.
Finally, some kind of user-invoked draft mechanism would be nice, where I can explicitly say "save this for later, I'll come back to it."

I'm working on this.


Add Presentation Support

Implements getting and editing a Presentation
I needed it, so I wrote it.  This partially implements #150.  It's not the full Presentations API.  It's essentially just presentations.batchUpdate and presentations.get, leaving presentations.create, presentations.pages.get, and presentations.pages.getThumbnail to implement.
This also ended up being fairly low level, basically just serving as a wrapper around the API.  Unlike some of the other PSGSuite functions, this requires a fair amount of knowledge of how the API functions.
Three new functions:
Get-GSPresentation
This is pretty self-explanatory, it gets the presentation object, raw (it's not doing anything like the GSheet commands that translate the sheet into a data structure useful in PowerShell.  I don't think any kind of transformation would be universally useful, so getting the object is the best we can do.
Edit-GSPresentation
This is what will make the edit to the slide.  It takes a set of Updates (either as an array passed to the parameter, or via Pipeline) and will execute them against the given presentations.  This uses batchUpdate, and when multiple Updates are sent as a single request, they are completed atomically.  While in other places this module uses batchUpdate to do a single update, I thought the atomicity was valuable here so I wrote this function such that it would take advantage of that fact.  But what is an Update you ask? Well...
New-GSPresentationUpdateRequest
Updates are made with Requests.  Specifically there's a Requests object, and each Requests object has over 40 properties, for each type of Request.  A Request can only have one of these Requests specified.  Then the batchUpdate submits all the Requests at once.  To generate a request, you have to understand the API to know how to make your change.  I'll use CreateSlide as an example, because it's the simples.
CreateSlide (like all request types) request a CreateSlideRequest.  Once that CreateSlideRequest is created, it is attached to the Request.  This will validate that request you're creating exists, using Dynamic Parameters.  It means you can tab-complete through all the request types, and if a new request type is added, it will automatically be supported.
The properties for a CreateSlideRequest are simple, and can actually work with no properties, but it still requires an empty hashtable.   So to generate an update request for a new blank slide at the end of a presentation (any presentation, the request is not necessarily tied to a specific Spreadsheet) I'd run this command:
$newSlide = New-GSPresentationUpdateRequest -RequestType CreateSlide -RequestProperties @{}

This can then be used with Edit-GSPresentation to actually make the change:
$result = Edit-GSPresentation -PresentationId $ID -Update $newslide

Some of the request types require arrays of data (even for a single input) and the library expects them to be Generic Lists.  Instead of requiring the user to know what type of Generic List to construct and how to construct a Generic List, I've added code to this that will do it for you, so for something like moving a slide with UpdateSlidesPosition you would create the request like this:
$moveSlideProperties = @{slideObjectIds = @($slideToMove.ObjectId); insertionIndex=0}
$moveSlide = New-GSPresentationUpdateRequest -RequestType UpdateSlidesPosition -RequestProperties $moveSlideProperties

On the backend, this will detect if one of the parameters of the request is an array, and if so, make a new Generic List of the type of the first object (all arrays require the same object type) and then inserts each entry into List.
This part of the code abstracts the .Net implementation of the library, making the behavior much more like the API as described in Google's Documentation.

These generic functions let you fully utilize the API to edit presentations, though in a few cases the API requires special .Net objects to make the request.  For example, a ReplaceAllText request requires a SubstringMatchCriteria object, which means you need to run something like New-Object Google.Apis.Slides.v1.Data.SubstringMatchCriteria, that part isn't currently abstracted by this code.  Additional functions could easily be written that would generate this type of object without needing to know the underlying .Net object names.  In most cases these objects a fairly simple, for example creating a SubstringMatchCriteria requires 2 properties, a boolean of case sensitivity and the text to search for that will be replaced.
These generic functions could also be used as backing for more update-specific functions.  A New-GSPresentationSlide function with optional parameters objectId, insertionIndex, slideLayoutReference, and a placeholderIdMappings (the last two requiring custom objects, so since those objects aren't used anywhere else but in a new slide request, they can be created all within a single function)
I have been able to use all these myself so they've been tested in that capacity, but I'm not adding any new tests, because I'm not sure what I would be testing here, as you can see looking at the code there's very little "logic" to these functions to test for.
Per discussion in #275 around the User parameter and the pipeline, I've tried to be thoughtful about what can be received over the pipeline.  Specifically I've removed the User flag from being received from the pipeline by name.  All 3 functions do support pipelining.  For Get-GSPresentation you can pipe in presentation Ids, for Edit-GSPresentation you can pipe in your update requests, and for New-GSPresentationUpdateRequest you can pipe in custom objects, each containing a valid RequestType and valid RequestProperties for that RequestType.
I also see this is the first use of the Edit verb in this project, but it seemed far more appropriate than anything like Update or Set for modifying a presentation, but I'm open to other thoughts on that.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

@FISHMANPET This is awesome! I have something similar in the works already for Docs/Sheets with Slides on the visibility plane as well, but I wanted to auto-generate the functions that wrap those other .NET object creation and provide pipeline support.
Giving this a better review once I have time, I sincerely appreciate both the work you've put in here and the patience while I get caught up!

I'd love to see/help with any auto-generation code.  Working directly with .Net objects like PSGsuite does is pretty new to me, so I'd love to learn more about how to do it and contribute.
I'd actually considered expanding the dynamic parameter set on New-GSPresentationUpdateRequest so for reach request type it would auto-determine what the parameters were for that particular request and if they were optional or not, but I'm not sure if the .Net libraries even have enough information to do that.  And this was the first dynamic parameter set I'd written so that was new to me as well.


[Documentation] Can I modify all-clusters-app device type to something other than lighting app?

Documentation issues
I'm wondering if this is possible considering it contains multiple clusters on the application but joining the device to Apple's Home only exposes light cluster control. I'm using the Ameba platform for testing.

Platform
ameba
Anything else?
No response

There is no sane device type for all-clusters-app to use.
The only thing all-clusters-app should really be getting used for is unit testing....


Cannot find host container

When i am trying run ping container

docker ps -a (Status unhealthy) not healthy, how to change to healthy status ?

Did you use a NAT network (which would happen if you specify no network arguments to docker run) or a transparent network? Or just share your full docker run command

It might also be that docker defaults to using the wrong network (a non-connected one).
Try "docker network ls"
Can you access the container using the IP address?

Yes, I can connect to copy file ....
I created the icon (NAV Container Command Prompt, NAV Container PowerShell Prompt) to connect

When i try run NAV FinSql, then out error

@tfenster: how to NAT network, i installed default

if you cannot ping win2016, then you also cannot open the database on that.
I assume that you are running on your own computer and not on a Azure VM right?
Is it Windows 10 or 2016?
You first need to figure out what's wrong with name resolution, which seems to be a docker installation problem unrelated to the NAV image.

Both previous responses are correct. I don`t expect problems related with omitting the network argument, I can see more probable the second response of @freddydk. I suppose you are using Win10 and the similar problems can happen in the case you are switching from LAN to WiFi or changing your WiFi connection. All network related changes can affect the Docker networking stack behavior.
For this reasons, it is always better trying it on your desktop where no network-related changes occur. If you are working on a notebook (I do the same), time to time you would need to adjust something.
I would check Get-NetAdapter. Please, avoid any unused hyper-v adapters. And please, post the result of the command (if possible).

I run win 2016 not run window 10 (https://github.com/Microsoft/nav-docker/issues/59)

Did you maybe restart a container with the same name multiple times? IP / name resolution failed sometimes for me as well. If that is the case, then ipconfig /flushdns might help

See image out:

does ping win2016 work after that?

Ping request could not find host win2016. Please check the name and try again.

I have to say, I am out of ideas. I would suggest to ask Windows Container support

Please, could you post the output of the following commands?:
docker inspect nat
docker inspect [container_name_or_id]

just noticed this thread, looking the error from different angle, can you please try calling this as below
tcp:<IP_ADDRESS>\SQLEXPRESS,1433

Arvind

You say you run Win2016 and you add the reference to #59. But in the thread of the issue no. #59 you stated you were running your containers on Win10 host:

I run it on Window 10

So now, I am confused (I really don`t understand if you are using Win10 host or Win2016 host).
@arvkum - The problem here is @chiecnhanco is not able to ping the container using hostname.

@Koubek:
My laptop installed window 10
With win10

Docker run not success reference https://github.com/Microsoft/nav-docker/issues/59
With win2016: I am init VM-HypeV 2016
Docker run is success (output: Ready for connection!), but not able to ping the container using hostname

So it seems like the only problem you are facing is DNS resolution, but to be sure:
What is the name of your Windows Server 2016 machine?
What is the full docker run command you are running? (mask passwords)

@arvkum:

Sorry, server cannot be found

@freddydk:
Name of Windows Server 2016 machine: WIN-3AG3SJS95CO
clear
$rootPath = "C:\NAVFolder"
$logfilePath = "c:\NAVFolder\logstatus.txt"
$adminUsername = "admin"
$adminPassword = "Dicadmin@123"
$hostName = "win2016"
$containerName = "win2016"
$publicdnsName = "win2016"
$locale = "en-US"
$imageName = "navdocker.azurecr.io/dynamics-nav:devpreview"
Write-Host 'Begin create container for NAV Server' -ForegroundColor Cyan
Log "Running $imageName"
docker run --env accept_eula=Y     --env username=$adminUsername
--env password=$adminPassword     --name $containerName
--hostname $hostName     --env PublicDnsName=$publicdnsName
--env locale=$locale     --volume c:\NAVFolder:c:\NAVFolder --restart always
-e useSSL=N `
$imageName

Copied and pasted the above and tried it on a Win2016 host here - that works:

So again, this must be container hostname resolution on your docker installation
your best option would be to investigate these options:
https://www.google.dk/search?q=host+cannot+resolve+container+hostname

@freddydk: thanks you so much!
I try it

As I asked before, could you, please, run the following commands:
docker inspect nat
docker inspect [container_name_or_id]
and provide us the output?

I turn off firewall, and ping host successfully.
I have connected to nav
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled false

Thanks all


Added validations to feedbackform dislike popup page

Hey, I just made a Pull Request!
This PR is for https://github.com/backstage/backstage/pull/18666
ISSUE https://github.com/backstage/backstage/issues/18661
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] All your commits have a Signed-off-by line in the message. (more info)

@kuangp This PR is for https://github.com/backstage/backstage/pull/18666
As per your suggestions i have made the changes please review
Feature link :  https://github.com/backstage/backstage/issues/18661

@kuangp Did following changes
1.Kept validations optional
2.Handling other response possiblty


How to change the URL of the post being shared on Facebook. Currently Service.Prerender.io

Currently, when I share a page from an Apache Angular application, everything works, but the small grey URL of the Facebook post says, "Service.Prerender.io".
Is there a way to make this say the URL of my website?

That sounds like you have the middleware set up incorrectly. If you have it set as a redirect (with the R flag), make sure you change that to a proxy (with the P flag) like this:
RewriteRule ^(?!.*?(\.js|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3|\.rar|\.exe|\.wmv|\.doc|\.avi|\.ppt|\.mpg|\.mpeg|\.tif|\.wav|\.mov|\.psd|\.ai|\.xls|\.mp4|\.m4a|\.swf|\.dat|\.dmg|\.iso|\.flv|\.m4v|\.torrent|\.ttf|\.woff))(.*) http://service.prerender.io/http://example.com/$2 [P,L]

I was missing the "P" in [P,L]. Thanks for the help!

Hi,
I am using prerender service at my own server with Nginx and here is how I am using it.
my application runs at xyz.com and my prerender server is running at pre.xyz.com
I am facing the same issue (facebook grey bar shows pre.xyz.com instead of xyz.com). Can anyone help how to fix this issue?
Here is the snippet of my configuration file of Nginx server
# self hosted pre render service
server {
	listen 443 ssl;
	ssl on;
    ssl_certificate /home/ubuntu/newssl/ssl-bundle.crt;
    ssl_certificate_key /home/ubuntu/newssl/xyz.key;
	server_name pre.xyz.com;
	location / {
      proxy_pass http://localhost:1337;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
	}

}

# xyz.com
server {
	listen 443 ssl;
	ssl on;
    ssl_certificate /home/ubuntu/newssl/ssl-bundle.crt;
    ssl_certificate_key /home/ubuntu/newssl/xyz.key;
	server_name xyz.com;
	root /home/ubuntu/company-build/;
	index index.html;
	location /
	{
         try_files $uri @prerender;
	}
	location @prerender
	{
		#proxy_set_header X-Prerender-Token YOUR_TOKEN;
		set $prerender 0;
		if ($http_user_agent ~* "baiduspider|twitterbot|facebookexternalhit|rogerbot|linkedinbot|embedly|quora link preview|showyoubot|outbrain|pinterest|slackbot|vkShare|W3C_Validator")
		{
			set $prerender 1;
		}
		if ($args ~ "_escaped_fragment_")
		{
			set $prerender 1;
		}
		if ($http_user_agent ~ "Prerender")
		{
		set $prerender 0;
		}
		if ($uri ~* "\.(js|css|xml|less|png|jpg|jpeg|gif|pdf|doc|txt|ico|rss|zip|mp3|rar|exe|wmv|doc|avi|ppt|mpg|mpeg|tif|wav|mov|psd|ai|xls|mp4|m4a|swf|dat|dmg|iso|flv|m4v|torrent|ttf|woff|svg|eot)")
		{
			set $prerender 0;
		}
		#resolve using Google's DNS server to force DNS resolution and prevent caching of IPs
		resolver <IP_ADDRESS>;
		if ($prerender = 1)
		{
			#setting prerender as a variable forces DNS resolution since nginx caches IPs and doesnt play well with load balancing
			set $prerender "pre.xyz.com";
			rewrite .* /$scheme://$host$request_uri? break;
			proxy_pass http://$prerender;
		}
		if ($prerender = 0)
		{
			rewrite .* /index.html break;
		}
	}
}

@thoop I am droping you an email as well, see if you can suggest something.
Thanks!

@malkitsingh did you figure it out? would you mind sharing your solution please?


How to set naming strategy for PostgresQuery

Im using Query DSL for my project
Have some entity like
@Entity
@Table(name = "table_name")
class TableName {
 @Column(name="column_name")
  private Integer columnOne;
}

QTableName table = QTableName.tableName
PostgresQuery postgresQuery =
    new PostgresQuery(dataSource.getConnection(),
    PostgresTemplates.DEFAULT);

postgresQuery.from(table).list(table.columnOne);

Above code executes query like
select columnOne from tableName;
Whereas its supposed execute like(as per naming strategy configured for JPA)
select column_one from table_name;
Not sure how to send entitymanager properties to PostgresQuery object. Am I missing something ? Any examples will be helpful
PS: I'm trying to use PostgresQuery Instead of JPAQuery because I need to use window functions like rank(), row_number()

More details needed, looks like you're mixing Querydsl SQL and Querydsl JPA.

@Shredder121 How to configure naming strategy for Querydsl SQL ? Its not recognizing correct column names and table names (values of @Table and @Column)
I couldnt find any documentation or example either. What am I missing ?

There is no such thing as a naming strategy for Querydsl SQL, because we don't name the tables.
Querydsl SQL takes the database as input, and makes model objects based on that.
http://www.querydsl.com/static/querydsl/latest/reference/html_single/#d0e725
@Table and @Column are JPA annotations, and are not used in Querydsl SQL.
You can generate the SQL metamodel after your JPA Persistence Provider generated the tables.

In gradle where do I add those configurations ?
https://gist.github.com/EdwardBeckett/5377401

I think you should either be able to call the ant task(not sure?), or you could write a class that (configures and) invokes the exporter.
Then you can build a task out of that so you can run it on demand and check that in.

If you think the documentation is lacking gradle instructions, you can also add a PR for it with your findings.


extraLineLabels require separate formatting

Displaying an extra line with a separate 2nd Y-axis is something you normally do to display a separate data series that is functionally related to the main data series. That also means the 2nd Y-axis probably will display data of a different nature, i.e., monetary values €12,45 of the main Y-xcis and an integer value on the 2nd Y-axis.
However, the 2nd Y-axis follows the formatting of the main Y-axis. in my opinion, the 2nd Y-axis requires a separate specifier and formatter.
Regards, ahartman, belgium
Beautiful package by the way, I am using it now in a private app.

Hey @ahartman, Sorry this one slipped by me!
I'm working on a new version of the library, I've addressed it in that.


RUF013: unproper handling of quotes around annotations

The new rule RUF013 doesn’t properly handle string annotations.
I would expect the following to be fine:
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from datetime import datetime

def last_value(timestamp: 'datetime | None'=None) -> float ...

but with the latest version, I get: RUF013 [*] PEP 484 prohibits implicit `Optional`  and the --fix version will replace it by:
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from datetime import datetime

def last_value(timestamp: 'datetime | None' |None=None) -> float ...

which is not valid and will give me:
TypeError: unsupported operand type(s) for |: 'str' and 'NoneType'

Thank you.

I’ll fix this and include it in tonight’s release.

Thanks, it’s very appreciated!


gapi.client.load() failed .. 404 (Not Found)

From<EMAIL_ADDRESS>on May 22, 2014 21:24:42
it seems trying to access an url with double '/_ah/api' paths: https://xxxxx.appspot.com/_ah/api/_ah/api/discovery/v1/apis/..... .
Original issue: http://code.google.com/p/google-api-javascript-client/issues/detail?id=147

I have same problem. I can't load my endpoint api.  I'm getting a 404 error.

Anyone from Google is watching this repo?  Any update?

Hi,
The following call doesnt end up in this._driveApiLoaded
gapi.client.load('drive', 'v2', this._driveApiLoaded.bind(this)
Can some one please suggest any workaround if I don't want to create a back end project ?
Any pointers would be great.

Is this issue still occurring?

+1

Thanks for getting back to this qn. It no more occurs now. This was due to the older version of json.js loaded by my browser. However there is another question I have now for which if I get an answer, would be helpful.
In IE11, even after adding to the list of trusted sites in Google developer console for the specific key, attempt to open file picker ends up with the 401 error. Please note that in Chrome, Firefox, it works fine.

Hey guys i need somehelp.
i having this error:
** https://content.googleapis.com/discovery/v1/apis/oath2/v2/rest?fields=rootUrl%2CservicePath%2Cresources%2Cparameters%2Cmethods&pp=0**

I think that API name might be spelled wrong, can you check the spelling? I know about an "oauth" API but not "oath".

@bsittler  it was that thank  you...

I believe I am have the same glitch that is described above. On deployment the api appears in the api explorer, but it is causing a 404 error when trying to be loaded by javascript. It works fine on the local host.
Any solutions yet?
Another person with the same problem:  http://stackoverflow.com/questions/39682799/google-cloud-endpoints-api-gets-404/39692404#39692404


Interactive 2FA prompt is broken

Running jupyter-o2 with --2fa produces the following error:
Connecting to<EMAIL_ADDRESS>RUN: ssh<EMAIL_ADDRESS>Traceback (most recent call last):
  File "anaconda/lib/python3.7/site-packages/pexpect/expect.py", line 111, in expect_loop
    incoming = spawn.read_nonblocking(spawn.maxread, timeout)
  File "anaconda/lib/python3.7/site-packages/pexpect/pty_spawn.py", line 485, in read_nonblocking
    return super(spawn, self).read_nonblocking(size)
  File "anaconda/lib/python3.7/site-packages/pexpect/spawnbase.py", line 176, in read_nonblocking
    raise EOF('End Of File (EOF). Empty string style platform.')
pexpect.exceptions.EOF: End Of File (EOF). Empty string style platform.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "anaconda/bin/jupyter-o2", line 10, in <module>
    sys.exit(main())
  File "anaconda/lib/python3.7/site-packages/jupyter_o2/jupyter_o2.py", line 649, in main
    jupyter_o2_runner.run()
  File "anaconda/lib/python3.7/site-packages/jupyter_o2/jupyter_o2.py", line 348, in run
    if self.connect() or self.keep_alive:
  File "anaconda/lib/python3.7/site-packages/jupyter_o2/jupyter_o2.py", line 374, in connect
    if not self._login_ssh.login_2fa(self.host, self.user, self.__pass, self.codes_2fa):
  File "anaconda/lib/python3.7/site-packages/jupyter_o2/jupyter_o2.py", line 84, in login_2fa
    self.set_unique_prompt()
  File "anaconda/lib/python3.7/site-packages/pexpect/pxssh.py", line 491, in set_unique_prompt
    i = self.expect ([TIMEOUT, self.PROMPT], timeout=10)
  File "anaconda/lib/python3.7/site-packages/pexpect/spawnbase.py", line 341, in expect
    timeout, searchwindowsize, async_)
  File "anaconda/lib/python3.7/site-packages/pexpect/spawnbase.py", line 369, in expect_list
    return exp.expect_loop(timeout)
  File "anaconda/lib/python3.7/site-packages/pexpect/expect.py", line 117, in expect_loop
    return self.eof(e)
  File "anaconda/lib/python3.7/site-packages/pexpect/expect.py", line 63, in eof
    raise EOF(msg)
pexpect.exceptions.EOF: End Of File (EOF). Empty string style platform.
<jupyter_o2.jupyter_o2.CustomSSH object at 0x10749acf8>
command: /usr/bin/ssh
args: ['/usr/bin/ssh', '-o', 'ForwardX11=yes', '-o', 'LocalForward=8887 <IP_ADDRESS>:8887', '-o', 'PubkeyAuthentication=no', '-q', '-oRSAAuthentication=no', '-o', 'PubkeyAuthentication=no', '-l', '<user>', 'o2.hms.harvard.edu']
buffer (last 100 chars): b''
before (last 100 chars): b'S passcodes to XXX-XXX-XXXX\r\n\r\nPasscode or option (1-3): \r\nIncorrect passcode. Please try again.\r\n\r\n'
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 66259
child_fd: 8
closed: False
timeout: 60
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: TIMEOUT
    1: re.compile(b'\\[PEXPECT\\][\\$\\#] ')
Cleaning up
Closing login_ssh

Non-interactive 2FA still works, so the current workaround is to use the arguments --2fa --2fa-code 1 to request Duo pushes automatically.

While an interactive 2FA prompt may be more versatile for different Duo authentication methods, the current approach (automatically send code 1) is more convenient as the 2FA dialog does not need to be navigated twice.
It is also more stable as it doesn't require a workaround for pexpect to allow programmatic exit from the interact() mode.
Thus the interactive mode fix is not a priority.


[BUG] Error loading page. Domain: undefined. Error Code: -1. Description: net::ERR_FAILED

Description: The user is logged in. The error message is displayed on the Statistic screen after tapping on the Statistic button on the left side menu.
Steps to reproduce:

Launch the App
Press on the Menu icon
Press on the Statistic button
Pay attention to the error message

Expected result:
The statistic is displayed after tapping on the Statistic button on the left side menu.
Actual result:
The error message is displayed on the Statistic screen after tapping on the Statistic button on the left side menu.
Environment: Android App Version 1.21.0 (1074)
Devices list: Xiaomi Mi 8 // Android 8.1.0
Additional info:
The user is signed up with the Self Custody method.
The recover words: bottom duty enroll crew fabric window warrior cabbage goat potato fine neither
Note: The same error message is displayed on the Help&Feedback and Privacy Policy & Terms screens
Attachment:

looks like just an DNS issue on your provider site. IP addresses aren't resolved for the all domains.
recheck using other connection (e.g. mobile 3G/LTE)

looks like just an DNS issue on your provider site. IP addresses aren't resolved for the all domains.
recheck using other connection (e.g. mobile 3G/LTE)

@serdiukov-o-nordwhale you're right, I've checked and it is not reproduced

@serdiukov-o-nordwhale you're right, I've checked and it is not reproduced


RuntimeError: The size of tensor a (1687) must match the size of tensor b (1688) at non-singleton dimension 2

Hi, thanks for sharing the fine-tuning code! When I run the training code !python train_dvae.py --dataset_path processed_dataset --language zh, I got the following error. Could you help me resolve the issue? Thanks!
dvae.pth already exists. Skipping download.
mel_stats.pth already exists. Skipping download.
Computing mel-spectrograms: 100% 155/155 [00:02<00:00, 56.19it/s]
Computing mel-spectrograms: 100% 39/39 [00:00<00:00, 53.21it/s]
 > Filtering invalid eval samples!!
 > Total eval samples after filtering: 39
 > Sampling by language: dict_keys(['zh'])
Epoch 1/20:   0% 0/16 [00:00<?, ?it/s]/usr/lib/python3.10/multiprocessing/popen_fork.py:66: RuntimeWarning: os.fork() was called. os.fork() is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock.
  self.pid = os.fork()
Epoch 1/20:   6% 1/16 [00:01<00:21,  1.46s/it, commit_loss=0.238, global_step=1, loss=0.35, recon_loss=0.112, step=1/16]/usr/local/lib/python3.10/dist-packages/TTS/tts/layers/xtts/dvae.py:381: UserWarning: Using a target size (torch.Size([10, 80, 1688])) that is different to the input size (torch.Size([10, 80, 1687])). This will likely lead to incorrect results due to broadcasting. Please ensure they have the same size.
  recon_loss = self.loss_fn(img, out, reduction="none")
Epoch 1/20:   6% 1/16 [00:01<00:22,  1.51s/it, commit_loss=0.238, global_step=1, loss=0.35, recon_loss=0.112, step=1/16]
Traceback (most recent call last):
  File "/content/xtts-finetune-tests/dvae-finetune/train_dvae.py", line 272, in <module>
    train_dvae(args)
  File "/content/xtts-finetune-tests/dvae-finetune/train_dvae.py", line 160, in train_dvae
    recon_loss, commitment_loss, out = dvae(batch['mel'].cuda())
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/TTS/tts/layers/xtts/dvae.py", line 381, in forward
    recon_loss = self.loss_fn(img, out, reduction="none")
  File "/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py", line 3365, in mse_loss
    expanded_input, expanded_target = torch.broadcast_tensors(input, target)
  File "/usr/local/lib/python3.10/dist-packages/torch/functional.py", line 76, in broadcast_tensors
    return _VF.broadcast_tensors(tensors)  # type: ignore[attr-defined]
RuntimeError: The size of tensor a (1687) must match the size of tensor b (1688) at non-singleton dimension 2

@daswer123 Could you take a look at this issue? I kept getting the same RuntimeError. Thanks!

@daswer123 thank for sharing the dvae fine-tune code, i have the same issue like @KevinWang676 , it will be more convenient if you give feedback about the issue,

check it out
https://github.com/anhnh2002/XTTSv2-Finetuning-for-New-Languages


Makes sure it is OK for the profiled code to send/receive messages

Currently, when the code that is being profiled receives messages, the first obtained message is the one that is returned by the profile do ... end block, rather than the actual result of the last statement in the block.
This PR fixes this issue by:

Making sure at the end the message with the actual result of the
whole block is obtained by using a reference.
Forwarding all messages the spawned process might have obtained in
the meantime to the original process.

Thanks!


MAINT: stats: inefficient use of optimizer by rv_continuous.fit

Even when fitting distributions with certain parameters fixed, rv_continuous.fit allows the optimizer to treat all the parameters as decision variables. In order to keep the parameters fixed, it resets those variables to their fixed values after the optimizer calls the objective function. At best, this wastes time replacing the values of decision variables instead of actually leaving them fixed. Worse, for gradient-based algorithms, this wastes time numerically evaluating partial derivatives that are always zero, and depending on the optimization algorithm, these zero gradients (and Hessians) can cause termination issues. It might not be such a problem for the default optimizer, scipy.optimize.fmin as

This algorithm only uses function values, not derivatives or second derivatives.

but since the fit method accepts a callable optimizer argument, this is not the right way to treat the fixed parameters.
Update: I read the code incorrectly. There are still some improvements that could be made, noted below.

rv_continuous.fit works by solving an optimization problem.
vals = optimizer(func, x0, args=(ravel(data),), disp=0)

where x0 is the guess values of the distribution parameters and vals are the fitted/optimized parameters. optimer is scipy.optimize.fmin by default but can be any other optimization routine. func is the objective function, which comes from:
x0, func, restore, args = self._reduce_func(args, kwds)

So func is defined in _reduce_fun as.
            def func(theta, x):
                newtheta = restore(args[:], theta)
                return objective(newtheta, x)

where restore is:
            def restore(args, theta):
                # Replace with theta for all numbers not in fixedn
                # This allows the non-fixed values to vary, but
                #  we still call self.nnlf with all parameters.
                i = 0
                for n in range(Nargs):
                    if n not in fixedn:
                        args[n] = theta[i]
                        i += 1
                return args

So the optimizer passes all distribution parameters theta as decision variables into func, which then restores the fixed values.
It would be better if func accepted fixed parameters as a third argument; theta would only be the non-fixed parameters that the optimizer is supposed to vary. The new code should also be vectorized (in contrast with restore, which uses a pure Python for loop). It would also be nice to use minimize rather than the fmin optimizers and check the status of the optimization, raising a fit-specific error when it fails. Even if we don't change to minimize, the documentation for fit should state what the optimizer should output - just the solution vector.

What's the interface for deciding which parameters are fixed, and which vary? How about using a decorator here?
def fixomatic(fullfunc, full_x, varying):
     full_x_cp = np.copy(full_x)
     reduced_x = full_x[varying]

    def objective(x, args=()):
        assert len(x) == len(reduced_x)
        full_x_cp[varying] = x
        return fullfunc(full_x_cp, *args)

    return objective

func_to_supply_to_minimize = fixomatic(myfunc, full_x, my_bool_arr_same_len_as_full_x)

Yes @andyfaff something like that would do the trick. I haven't looked at exactly how the fixed values are identified, but it looks like it's a list of indices fixedn - corresponding with all the elements of your full_x that are not varying.

Is this really correct?
AFAIR, the optimizer should only see the free parameters, and internally we expand the parameters to be able to use the standard likelihood function.
(Aside: It took some time to fix all the bugs in the handling of fixed parameters. statsmodels and my original code used a mask which is simpler for the expand/restore function than the code that ended up in scipy.stats.)

Maybe not. I'm looking into it again.

No, I guess I misread the code. I was surprised at what I was seeing, and I thought I tested it just to make sure, but the optimizer does only call func with the non-fixed parameters.
Still, wouldn't it be better if we created an array outside restore:
varying = np.ones_like(args, dtype=bool)
varying[fixedn] = False

and replaced the contents of the restore function (for loop, conditional, etc...) with:
args[varying] = theta
``
?

I haven't looked at this in scipy in a while
here's my original version (more than 10 years ago)
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/sandbox/distributions/sppatch.py#L170
I found using a  fixed/free mask internally much easier to understand.
In my original code, the user also was supposed to specify an array with nan for the free parameters. However, that is more cumbersome for the user than the current scipy version.

No need to keep this open. I still think that there are a few things that could be improved about fit:

vectorize restore
use minimize rather than the fmin
check the status of the optimization, raising a fit-specific error when it fails
improve the documentation (e.g. what should optimizer output?  just the solution vector)
but I can probably address them in gh-11695.


Close the picker programatically?

Is it possible? And how it can be done?

Hi @george-i, actually there is no APIs to do that, but you can trigger blur event to achieve that goal as a temporarily solution. I don't have too much time this period, but I will give an instrument to open/close the picker programmatically

Can you show an example of blur trigger?
In the end, this is what I want to achieve:

click on calendar icon: open the date picker (working)
click again on calendar icon: close the date picker (NOT working)

Well, if you use jQuery you can simple call $element.trigger('blur').
I don't know if this is implemented even in jqlite.

Ok, you can simply use .blur() method.

	<input type="text" ng-mode="ctrl.today" placeholder="select a date..">

var icon = angular.element(document.querySelectorAll('.glyphicon-calendar')[0]);
var input = angular.element(document.querySelectorAll('input')[0]);
var picker = angular.element(document.querySelectorAll('.moment-picker-container')[0]);

icon.on('click', function () {
	if (picker.hasClass('open')) input[0].blur();
});

@indrimuska On my current project designers used flex for css and this is somehow trigger open function and datepicker never close and stuck in this loop.
ng-options blur solution is working, ability to open close datepicker programatically would be awesome and be more stable...

I could do pr for this manual open/close features...

FYI, I've added a new isOpen property to let you open/close the picker programmatically.
https://github.com/indrimuska/angular-moment-picker/releases/tag/0.9.1


Establish a process to allow SRE can preselect a subset of Kyma cluster to testing new Kyma operator

Description
To experimental how Kyma operator behavior under real landscape environment, SRE required us to establish a process so that they can select a subset of Kyma which can be managed by new kyma operator.
AC

[ ] Establish an instruction document, describe the steps for the configuration in detail, delivery to SRE as a guidance.

Let's clarify what the SRE requirements are.


Fix fetch abort example

Very minor tweak to the README:
Passing controller.abort directly as a callback breaks the "this" function context.

:tada: This PR is included in version 2.4.11 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Put role bypass check above channel override check

In the rewritten in_channel_check, if the command override was used, role bypass wouldn't take effect because the function would exit before it. This PR puts the bypass check above the override check to make sure the roles will bypass it.

Also added a fix for the last day of October not being completely included in the search query


DF Chat Enhancement preventing to sending messages with enter

Hello. I'm using Foundry v9 (B242) and recently the DF Chat Engancement module created a bug. The enter button is no sending from the chat box anymore. Instead, it is only breaking lines, like it does with shift+enter.
Rolls and messages sent directly from the character sheet goes to the chat normally. The bug is in the chat box.

Duplicate of #243

DF Chat Enhancements has just received an update for support of V9 tonight. Please install that new version.


/api/users/ not working

What happened?
when trying to use /api/users/ and /api/users/me/, Django rest framework setup won't load existent users and throws exception: django.core.exceptions.ImproperlyConfigured
What should've happened instead?
Return list of users in database
Steps to reproduce

Register a user
log in with that user
navigate to http://localhost:8000/api/users/ or http://localhost:8000/api/users/me

cookiecutter commit: 9075bdb39b98f88e9210e04cc4cae5f5920baa68
Docker desktop <IP_ADDRESS> on Mac OS Catalina
  "cookiecutter": {
    "project_name": "janet-oss",
    "project_slug": "janet_oss",
    "description": "The JanetOSS project aims to provide smooth integration with other Jisc systems (SalesForce, RemedyForce, SAG databases, Enterprise Data Warehouse, MyJisc etc.",
    "author_name": "",
    "domain_name": "j",
    "email": "",
    "version": "0.1.0",
    "open_source_license": "Not open source",
    "timezone": "Europe/London",
    "windows": "n",
    "use_pycharm": "n",
    "use_docker": "y",
    "postgresql_version": "11.3",
    "js_task_runner": "None",
    "cloud_provider": "None",
    "mail_service": "Other SMTP",
    "use_async": "n",
    "use_drf": "y",
    "custom_bootstrap_compilation": "n",
    "use_compressor": "n",
    "use_celery": "y",
    "use_mailhog": "y",
    "use_sentry": "n",
    "use_whitenoise": "y",
    "use_heroku": "n",
    "ci_tool": "Gitlab",
    "keep_local_envs_in_vcs": "y",
    "debug": "n",
    "_template": "https://github.com/pydanny/cookiecutter-django"
  }
}

<IP_ADDRESS> - - [13/May/2020 07:32:33] "GET /api/users HTTP/1.1" 301 -
<IP_ADDRESS> - - [13/May/2020 07:32:35] "GET /api/users/ HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/rest_framework/relations.py", line 393, in to_representation
    url = self.get_url(value, self.view_name, request, format)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/relations.py", line 331, in get_url
    return self.reverse(view_name, kwargs=kwargs, request=request, format=format)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/reverse.py", line 47, in reverse
    url = _reverse(viewname, args, kwargs, request, format, **extra)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/reverse.py", line 60, in _reverse
    url = django_reverse(viewname, args=args, kwargs=kwargs, **extra)
  File "/usr/local/lib/python3.8/site-packages/django/urls/base.py", line 87, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py", line 677, in _reverse_with_prefix
    raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'user-detail' not found. 'user-detail' is not a valid view function or pattern name.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
    response = self.get_response(request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 75, in get_response
    response = self._middleware_chain(request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 36, in inner
    response = response_for_exception(request, exc)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 90, in response_for_exception
    response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 125, in handle_uncaught_exception
    return debug.technical_500_response(request, *exc_info)
  File "/usr/local/lib/python3.8/site-packages/django_extensions/management/technical_response.py", line 37, in null_technical_500_response
    six.reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/site-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.8/contextlib.py", line 75, in inner
    return func(*args, **kwds)
  File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/mixins.py", line 46, in list
    return Response(serializer.data)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 760, in data
    ret = super().data
  File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 260, in data
    self._data = self.to_representation(self.instance)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 677, in to_representation
    return [
  File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 678, in <listcomp>
    self.child.to_representation(item) for item in iterable
  File "/usr/local/lib/python3.8/site-packages/rest_framework/serializers.py", line 529, in to_representation
    ret[field.field_name] = field.to_representation(attribute)
  File "/usr/local/lib/python3.8/site-packages/rest_framework/relations.py", line 408, in to_representation
    raise ImproperlyConfigured(msg % self.view_name)
django.core.exceptions.ImproperlyConfigured: Could not resolve URL for hyperlinked relationship using view name "user-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.

After brining the project up from a fresh cookiecutter, it works just fine...

having the exact same issue here. On two installations back to back.

The issue was caused by usernames with non alphanumeric characters....
At the end I found a solution
On users/views.py:
class UserViewSet(...)
    lookup_value_regex = r"[\w.@+-]"
    (...)

Awesome! Thanks a lot!
Yes I gotta say Django can be pretty confusing when it comes to letting you know what broke.
Although to be fair this seems to be more of a DRF specific issue.

From the DRF documentation (https://www.django-rest-framework.org/api-guide/routers/#simplerouter)

The router will match lookup values containing any characters except slashes and period characters. For a more restrictive (or lenient) lookup pattern, set the lookup_value_regex attribute on the viewset.

If the lookup field, in this case the username which is an email address, contains a period character, the router does not match the URL and the error is thrown.


Dynamic configuration of Authority (User Flows)

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[X] Other... Please describe:

Question

Is it possible to have different user flows configured in one application?
Today we can configure the Authority property in app.module.
Imagine that different areas of my application have different login pages.
How can I change the last portion of the authority (which is the user flow at Azure AD B2C) dynamically?

@cleberdantas Yes, you can. The request in msal js(code here accepts authority and the user can pass in a different authority from that of the configured one during the initialization.

@cleberdantas Closing this issue, Please raise a new one or comment here to haver this re-opened if the above answer is not helping you.


Util unification

Closes #1108
This does need a little more discussion, this PR is just to get the ball rolling. Other various util classes are just named as plural nouns (Inventories) and sometimes just singular nouns (ItemScatterer).
To me, the plural nouns and gerunds would sound the nicest, ie. (Inventories, Networking, ItemScattering, TextRendering) but this breaks down for certain utils for things such as EnchantmentUtil or ModelUtil which already have conflicting Enchantments and Models classes.
Should we have Util as a fallback for when a plural noun or gerund doesn't fit, or should we go through and switch all the ones that don't follow the Util pattern currently to use a Util suffix?

I don't like the *ing names, but I agree that plural names are preferrable over *Util when possible, and then use that as a fallback when plurals don't work.

There is also the guava pattern of MoreObjects, for when Objects is already taken. Personally I also think that Helper sounds better than Util, but in any case plurals should be preferred.

One kinda awkward thing if we go with plurals is if we have a class like Textures for texture-related utils and mojang adds a class that like stores a bunch of texture references or something. Then we'd have to rename the util one.

Util names are extremely ugly. I'd prefer helper suffix as "util" is no better than other ugly abbreviations like I18n or L10n. Helper, on the other hand, is a full word and is prettier.
Also your Enchantments may be Enchanting, etc

I prefer plural over all, and *Helper as a fallback

If plural is used for listing stuff, gerund should be the best alternative, like Enchanting.getLootingLevel()

We did a vote and 14 people preferred Util over 5 people preferring Helper. So for the fallback, we should go for Util.

Enchanting isn't accurate because it's not used just for enchanting but also checking enchantments

I really don't care what we go with as long as it's consistent.


Make Resources more portable

No longer relies on CollectionService tags made by the RoStrap plugin
It does have a one-time performance cost on the server the very first time Resources is called, but it won't actually slow anything down past that
Change it so only libraries with "Server" (now case-sensitive) in their name or in the name of a parent folder are considered server-only libraries.

TODO (before merging):

Print unwanted objects in error
Make errors consistent
Improve stuff


Incorporate ADAGE model parameter sweep

Somewhat of a larger PR this time for one param sweep chunk.
Incorporates small changes to existing scripts to allow usage with ADAGE. Also adds specific ADAGE parameter sweep scripts and figures. The next PR will include the Jupyter notebook training the optimal model.

@gwaygenomics is this ready for another look or are you still looking into GaussianDropout?

is this ready for another look or are you still looking into GaussianDropout?

Still looking into it - I will write a message when the PR is set to review again

Going to track responses here (also for future reference).
In response to GaussianDropout() - I believe that its not doing what I think its doing, perhaps based on the name. The key component of GaussianDropout() is here:
return inputs * K.random_normal(shape=K.shape(inputs),
                                mean=1.0,
                                stddev=stddev)

Which is adding regularization, but not dropping out input weights. I should instead be using Dropout() after the input layer. I think this is more like the denoising autoencoder ADAGE is based from.

In response to the encoder.predict() comment:
I was previously building the encoder model with encoder = Model(input_rnaseq, encoded_rnaseq_2) and then building the latent features with encoder.predict(rnaseq_df).  This was giving out a high abundance of zeroed out latent features. I thought this was an issue with the model, so I tested it by extracting the weights a different way with weight_matrix = pd.DataFrame(autoencoder.get_weights()[0], index=rnaseq_df.columns) and this did not produce zeroed latent features.
The key issue was the calling to encoded_rnaseq_2 = Dense(latent_dim, activation='relu'..., specifically, including the relu activation call in building this layer. relu is active when making the encoder.predict() call, which makes all negative features zero. So, to fix this, I will separate the activation call from the weight layer instance:
# Build the Keras graph
input_rnaseq = Input(shape=(num_features, ))
encoded_rnaseq = Dropout(noise)(input_rnaseq)
encoded_rnaseq_2 = Dense(encoding_dim,
                         activity_regularizer=l1(sparsity))(encoded_rnaseq)
activation = Activation('relu')(encoded_rnaseq_2)
decoded_rnaseq = Dense(num_features, activation='sigmoid')(activation)

autoencoder = Model(input_rnaseq, decoded_rnaseq)

Separating this out solves the issue.
g = (pd.DataFrame(np.array(results) - np.array(approx)).sum(axis=1)/ results.shape[0]).hist();
ax = g.get_figure()
ax.savefig('figures/testing_latent_feature.png')

ok @jaclyn-taroni - ready for another look. Thanks!

@gwaygenomics can you comment on why the loss goes up in some of these figures? Is this a bug?

@jaclyn-taroni no bug, just sparsity = 0.001 is too high. It zeros out too many weights for signal to be reconstructed and learning can never occur. I removed it from consideration in the overall final loss figure

@gwaygenomics - gotcha, thanks!

I should probably add the parameter sweep results for adage in this PR, since they're here for tybalt...

any other comments @jaclyn-taroni - if not, I will merge this in

@gwaygenomics  I will go through this shortly. Haven't taken a good look at all the changes, just wanted to check in about those plots first.

:+1:


BetterDiscord won't load

I've tried re-running the installer and restarting my computer but it still does not load when I open discord.

should try asking in our support servers first.


Issue with adding 'Versioned' to a DataObject

Do I need to add something like
MyRecord:
extensions:
- Versioned("Stage","Live")
(I have tried this but still get errors during dev/build)
The check fails in addVersionViewer() with the line:
if($this->owner->hasExtension('Versioned')) {

Yes, you need to have versioning setup for the Data Object you want to view history for.  More info here:
http://docs.silverstripe.org/en/developer_guides/model/versioning
We use this syntax:
MyRecord:
extensions:
[Versioned]
Syntax shouldn't matter but worth a shot if it still throws errors.  Also yml can't have tabs in it, you must use spaces.  Hope this info helps you sort it out.

Closing due to inactivity.  I'm assuming this issue is resolved with our last response.  Feel free to reopen if not.


Fix courses h2

Should fix the problems where it was not possible to run gakusei using H2. This was caused by a variable having the name "order", which is used by SQL and confused the database.

Closing this as changes are included in pull request #406


Setting to increase feed length?

app version: 1.0.2

[ ] twitch api key set
[x] youtube api key set

issue description:
RSS feeds seem limited to about 50 items, which excludes old videos.  Could a setting be added to increase the feed length?
E.g. a feed for https://www.youtube.com/@LastWeekTonight only goes back Oct 2021, rather than including the full list of videos that go back several more years.

50 items is just the limit of elements you can fetch in a single call with the youtube API, currently the actual feed generation is made by amckee/PodTube which is not my project, looking at the source code it seems that there is already a page logic but it seems it was manually disabled 2 years ago, I'll open an issue there and we'll see

After testing, this does appear to end up being an issue with the Youtube API limitations, though I am hoping to find a workaround:
2023-08-11 18:29:52,354 [INFO] 302 GET /youtube/user/@LastWeekTonight (::1) 313.12ms
2023-08-11 18:29:52,600 [INFO] Channel: UC3XTzVzaHQEd30rQbuvCtTQ (LastWeekTonight)
2023-08-11 18:29:53,397 [INFO] Got 56 videos from 3 pages

Thanks a lot, if I can help in anyway just let me know ✌

@blairun the next release will fix this issue, I've completely rewritten the way i fetch the feed, from the next release the feed is generated all inside vod2pod with no need for podtube anymore (in fact you will be able to remove the section from the docker-compose, more info on the release notes when I've tested it for some week on the beta image).
I've made it so that the feed will fetch up to 300 videos!
in the next few days i will publish a beta image with the update, once is ready if you want a preview use :beta instead of :latest in your docker compose

closing with release v1.1.0 #130

Just updated and everything's working well. Thanks!


Add missing actors to fil-actor-states

Issue summary

builtin-actors added a bunch of new actors that we should import to fil-actor-states under v10.
https://github.com/filecoin-project/builtin-actors/tree/master/actors
These include:

datacap (introduced earlier but we also don't have it)
eam
ethaccount
evm
placeholder

To avoid dead code, the statediff tool should include the missing actors, and the versions across Forest should be bumped to v10 where appropriate.
https://github.com/ChainSafe/forest/blob/main/utils/statediff/src/lib.rs#L121
Other information and links

not adding placeholder actor as it doesn't contain anything at the moment

all missing actors are added to fil-actor-states


⚠ Bofrost.be has degraded performance

In 0d5fbc7, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1692 ms

Resolved: Bofrost.be performance has improved in 857e6f7 after 6 minutes.