Change theme mnh demo address

Check List
Please read and check followings before submitting a PR.

[*] I want to publish my theme on Hexo official website.

[*] I have read the theme publishing doc.
[*] name is unique.
[*] link URL is correct.
[*] preview URL is correct.
[*] preview URL web site is rendered correctly.
[*] Add a screenshot to source/themes/screenshots.
[*] Screenshot filename is same as value of name.
[*] Screenshot size is 800 * 500.
[*] Screenshot file format is png.

[ ] I want to publish my plugin on Hexo official website.

[ ] I have read the plugin publishing doc.
[ ] name is unique.
[ ] link URL is correct.

[ ] Others (Update, fix, translation, etc...)

Languages:
[ ] en English
[ ] ru Russian
[ ] zh-cn simplified Chinese
[ ] zh-tw traditional Chinese

Note
No need to translate ko, pt-br, th languages if you submit a PR for documentation.

Warning
ko, pt-br, th languages document are inactive. Please, submit issue if you want to continuous contribution to them.

My blog has changed its theme, but I will still maintain this theme. Therefore, I am migrating the demo page to another subroute.


only handling every 180 occurrences

I have the latest sensu-core installed and I've installed the sensu-plugin gem using the omnibus package.
Sensu is up and running no problem, but I'm running into major issues with handlers.  I've setup both the standard ruby mailer.rb from the community plugins, as well as the pagerduty handler.
When I add the handlers to a check that I know is failing in the logs I see this:
{\"id\":\"a1e807d2-425f-4891-b291-ed5bda5b6105\",\"client\":{\"name\":\"mfp\",\"address\":\"<IP_ADDRESS>\",\"subscriptions\":[\"test\"],\"version\":\"0.20.0\",\"timestamp\":1437673191},\"check\":{\"command\":\"/etc/sensu/plugins/check-disk.sh -d /dev/md1 -w 80 -c 90\",\"interval\":10,\"handlers\":[\"default\",\"pagerduty\",\"mailer\"],\"occurrences\":3,\"subscribers\":[\"test\"],\"name\":\"disk\",\"issued\":1437673279,\"executed\":1437673201,\"duration\":0.01,\"output\":\"CRITICAL - /dev/md1 space used=94% | '/dev/md1 usage'=94%;80;90;\\n\",\"status\":2,\"history\":[\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\",\"2\"],\"total_state_change\":0},\"occurrences\":513,\"action\":\"create\"}"]}
{"timestamp":"2015-07-23T12:41:20.873279-0500","level":"info","message":"handler output","handler":{"type":"pipe","command":"/etc/sensu/handlers/pagerduty.rb","api_key":"2e24c101ef754ff6add39aaaffa846c9","name":"pagerduty"},"output":["only handling every 180 occurrences: ws/disk\n"]}
{"timestamp":"2015-07-23T12:41:20.873561-0500","level":"info","message":"handler output","handler":{"type":"pipe","command":"/etc/sensu/handlers/pagerduty.rb","api_key":"2e24c101ef754ff6add39aaaffa846c9","name":"pagerduty"},"output":["only handling every 180 occurrences: wwv/disk\n"]}
{"timestamp":"2015-07-23T12:41:21.055407-0500","level":"info","message":"handler output","handler":{"type":"pipe","command":"/etc/sensu/handlers/pagerduty.rb","api_key":"2e24c101ef754ff6add39aaaffa846c9","name":"pagerduty"},"output":["only handling every 180 occurrences: mfp/disk\n"]}````

So what it looks like is the handler is firing but being filtered by the sensu-handler.rb gem and not creating emails or pagerduty events.

Here's the offending line
`only handling every 180 occurrences`

Does anyone know what the problem is?  Is this a bug?  Do I need to override something?  I have a ton of occurrences in sensu for this particular check (check_disk) so it should be firing to pagerduty and the mailer.

If I need to move this to serverfault I will, but this seems like a bug in sensu-handler.rb and I'm not sure how to troubleshoot this.

After talking with the dev team in IRC it looks like the sensu-plugin needed the api host declarative in config.json.  This resolved my issue and was hotpatched yesterday, docs need to be updated to note this need.


ci: Remove orb dependency from circleci config

The type of this PR is: Enhancement

Description

This was supposed to be shared, but it was only being used in Force, so it makes more sense to reference it directly here.

Going to go ahead and merge this early since this is diff only touches CI config and it's preventing the release of a production bug fix.


simplify annotation

@soldni im tryin to migrate off dataclass, but the tests are failing at:
ERROR tests/test_eval/test_metrics.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_internal_ai2/test_api.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_parsers/test_grobid_header_parser.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_parsers/test_override.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_parsers/test_pdf_plumber_parser.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_predictors/test_bibentry_predictor.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_predictors/test_dictionary_word_predictor.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_predictors/test_span_group_classification_predictor.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_predictors/test_vila_predictors.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_types/test_document.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_types/test_indexers.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_types/test_json_conversion.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_types/test_metadata.py - TypeError: add_deprecated_field only works on dataclasses
ERROR tests/test_types/test_span_group.py - TypeError: add_deprecated_field only works on dataclasses

not sure how best to handle

@kyleclo I think you can remove all store_field_in_metadata decorators and simply use getters and setters.
For example, for type:
class SpanGroup(Annotation):
    def __init__(
        self,
        spans: List[Span],
        type: Optional[str] = None,
        text: Optional[str] = None,
        id: Optional[int] = None,
        doc: Optional['Document'] = None,
        metadata: Optional[Metadata] = None,
    ):
        super().__init__(id=id, doc=doc, metadata=metadata)

        self.spans = spans
        self.text = text
        self.id = id

    @property
    def text(self) -> str:
        maybe_text = self.metadata.get("text", None)
        if maybe_text is None:
            return " ".join(self.symbols)
        return maybe_text

    @text.setter
    def text(self, text: Union[str, None]) -> None:
        self.metadata.text = text

    @property
    def id(self) -> Union[int, None]:
        return self.metadata.get('id', None)

    @id.setter
    def id(self, id: Union[int, None]) -> None:
        self.metadata.id = id

Just make sure to call super() before assigning self.text and self.id, otherwise self.metadata won't be available!
Then we can remove the super frightening decorator in metadata.py.... so happy we don't have to maintain!

@cmwilhelm  i'm unsure how to handle this test failing in tests/test_internal_api/test_api.py:
class TestApi(unittest.TestCase):
    def test_vanilla_span_group(self) -> None:
        sg_ann = mmda_ann.SpanGroup.from_json({
            'spans': [{'start': 0, 'end': 1}],
            'metadata': {'text': 'hello', 'id': 1}
        })

        sg_api = mmda_api.SpanGroup.from_mmda(sg_ann)

        self.assertEqual(sg_api.text, 'hello')
        self.assertEqual(sg_api.id, 1)
        self.assertEqual(sg_api.attributes.dict(), {})

the problem is, with the change to how .id is being handled in the library, a typical Document object no longer serializes .to_json() in a manner where the .id value goes into metadata; it's written to JSON at a top-level ID.
so one way to adjust this would be to rewrite this test:
        sg_ann = mmda_ann.SpanGroup.from_json({
            'spans': [{'start': 0, 'end': 1}],
            'id': 1,
            'metadata': {'text': 'hello', 'id': 3}
        })

which would allow id=1 to be passed properly to the constructor, thereby allowing the self.assertEqual(sg_api.id, 1) to pass.
can make this change, but wanted to check this is acceptable

@comorado pls see above

I didn't see any updates to ai2_internal/api.py. Which is probably 'cause it lacks tests. The changes as are I think will be breaking there, because

@kyleclo you probably want to rebase over main before adding tests, since PR #156 fixed some issues with api / added more tests.

thanks, already on it. got almost everything worked out, just one thing, which is whether what should happen when people try to call span_group.metadata.<key> and the key doesnt exist.  it currently errors out; should we default to None or is that too much potential for silent failing for everyone's tastes?
@cmwilhelm @soldni @comorado

@cmwilhelm pls check if changes oki


Add a Gitter chat badge to README.md

facebookresearch/flashlight now has a Chat Room on Gitter
@jacobkahn has just created a chat room. You can visit it here: https://gitter.im/flashlight-ml/community.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

The bot will never sign the CLA


Still synced since 6 days ago, while need to resync for port forwarding

Dear, i got the panther x2 last 6 days ago, it got synced after 1 day but it gave relayed. So i fix the issue of port forwarding and the port is open, but the panther x2 still relayed since 6 days ago. I am trying "fast resyncing" and i tried clear blockchain data, and still relayed and syncing since 6 days ago. I need to fix it to start mining perfectly.
Thank you

@Jreij1989 Hi, Did you solve the issue ? If not, please submit your ticket in https://panther.global/ and keep it online, the technical support will help you to fix it.


Support Jupyter Notebooks in Vscode devcontainer

Contact Details
<EMAIL_ADDRESS>Feature Description
VS-Code has great support for dockerized devcontainers  which make it easy to have a standardized execution environmet and to develop inside of a docker container (locally or remote)
The VS-Code Jupyter Extension can turn simple python scripts into cell based jupyter notebooks which make it possible to use the VS-Code debugger when running cells. This can be pre-installed in a devcontainer.
Use Case Description
When opening a repository that has a .devcontainer Folder VS-Code automatically detects it and asks the user wether to open it inside of the devcontainer.
This makes it very easy to get started with a functioning dev environment without further necessary knowledge about the project.
Organization
development
Who are the stake-holders?
No response

Hey, I would love to work on this issue!
Can you elaborate more about the problem? 🍀

Hey @mertbozkir :wave: Thanks for your interest!
I think the goal here is to make it easier to get started with SuperDuperDB for developers. A lot of people use VSCode as their IDE nowadays, and a devcontainer.json means that they can have a development environment created almost automatically for them by VSCode. In theory, a VSCode developer should not really need to know anything about Python packaging before making a contribution - they can have VSCode (and Docker) do the work for them. I believe that devcontainer.json also means that you can have a development environment available 'in the browser' - via GitHub codespaces. Here is a helpful blog on some of these things that I found from a quick websearch - https://benmatselby.dev/post/vscode-dev-containers/.
Our development environment is unfortunately reasonably complex at the moment. We require a connection to a MongoDB database to run the tests. See test/material/docker-compose.yml for more details on this.
So, this might actually be a reasonably tricky task, and part of the work could involve discovery of what is/isn't possible.
If you are still interested, then I think I would suggest that you begin by seeing if it is possible to create a Dockerfile for the project that creates and installs the full development environment - see here for details. If you make progress with this, then the next step would be to see if you can then include this inside a devcontainer.json file for VSCode. At this point, you will definitely be on your own and will be sharing knowledge with the rest of us. :smile:
Even if these things don't work out for you, it would still be interesting to hear about your results. Please feel free to use this issue as a log for all you discoveries - we will monitor it and try to help out with any problems if we can. And good luck!


Vue.component to cover all features/power of .vue files

What problem does this feature solve?
I do not see why Vue.component function cannot take styles and scripts while loading the component similar to .vue files. This will do...
a ) Dynamically injects template, style, scripts into component.
b) Vue.component can be invoked anywhere in javascript.
What does the proposed API look like?
Vue.component("any-component",{
vue: link to .vue file
,template: String | Function | Promise
,styles: [] | String | Promise
,scripts: [] | String | Promise
})

Injecting the style is done at a bundler level, not by Vue, it was never its purpose. You can, however, do the injection manually.
Vue.component does take a script and a template, though 🙂

Hi
I am looking for something similar to below. .vue files are great but these work only for static bundling. I am looking for dynamic components where the components downloaded from thirdparty CDNs.
How do I dynamically create a Vue component by supplying template, multiple script imports/requires and styles?
@Component({
selector: 'hero-app',
template:
Tour of Heroes
     <hero-app-main [hero]=hero></hero-app-main>,
styles: ['h1 { font-weight: normal; }']
})

I remember there was a package that would load .vue files at runtime but I couldn't find it...
About the question, you can ask questions on the forum or stack overflow. You can use a global mixin to load the style from the option


ENGESC-11486: Removed password expiry policy...

... as it is not expected by customers (yet)

Canceling this as the change this PR meant to revert should not affect the cloudbreak user or any other users that are needed for CB or even CDP to work correctly.


How can I create and configure multiple users

This is  a  request**.

Prerequisites

[ +] Are you running the latest version?
[ +] Are you reporting to the correct repository?
(enso is made of many specialized packages: https://github.com/laravel-enso)
[ +] Did you check the documentation?
[ +] Did you perform a cursory search?

Description
I want to ask you how can I create multiple users who can login and assign to them some of menus etc.?
Thanks a lot!
Steps to Reproduce

Expected behavior

Actual behavior

Considering you don't want to have all your users accessing all menus, you should:

create the desired roles
configure the roles, assigning menus and permissions
create owners as required, assign them the proper roles (such as the ones created above)
create the needed users, assign them to the proper owner and role.

All of the above can be achieved through the interface.
Your new users will receive password reset emails, allowing each one to set a password.

I've added new role and assign menus and permissions to it. When I create new user, there's no field for password and user didn't receive any email with password or so. What should I do?
Thanks a lot for your advance!

Just as a test, you could use tinker to manually set each user a password, or create a mechanism, migration, etc.
Outside of tests, you need to ensure the password reset email gets sent - make sure that your dev environment is able to send email, that you have your queue  listener started and that your .env config is ok, especially regarding the queue driver and email.

@eo22 Do you have QUEUE_DRIVER=sync in your .env?
Is the email service configured, also in  .env?

How can I add new extra field in creating new user? I can't understand the structure of files yet.
Thanks a lot for your support...


Tracing UI displays resource name for outgoing resources

I had an idea to improve tracing.
Before:

After:

Background:
Distributed tracing commonly has a client recording it is making a call, and the peer recording receiving it. However, sometimes the peer doesn't log anything to OTEL. For example, the redis client records that it calls redis, but redis itself doesn't send data to OTEL. Internally this is called an outgoing peer. When it happens, the tracing UI shows an arrow and the peer address (e.g. redis address).
Aspire has a unique opportunity. It combines defining resources, starting resources, and displaying telemetry for resources. Aspire knows the relationship between addresses and resources. That allows the tracing UI to use the outgoing peer address to lookup the resource name.
For example, there is an outgoing peer call to address localhost:69322. The redis container has a service with that address. The tracing UI links the address and the service together and therefore displays redis.
This PR adds some coupling between telemetry and hosting. I've placed all logic inside IOutgoingPeerResolver. A dummy resolver that just returns the address back can be used by the UI if hosting isn't available.

This is a great idea. I think it'll help with @leslierichardson95's concerns about needing a legend for what the symbols mean too (#698). I'd say lgtm overall, but we need to sort out the service lifetime question first I think.

One thing that this does bring up is if we can do anything to make it more clear why something isn't resolved. E.g.:

It would be AMAZING if we could auto-resolve the injected VS endpoints (I think that's what that is). Do they inject already as an environment variable that we could rely on? If not, let's talk to them about a way to enable this.

Good idea. New issue: https://github.com/dotnet/aspire/issues/1056

I like the outcome of this change but I worry this won't be doable outside of development scenarios. We want to think through how this will work when the dashboard is in deployed environments as well.


Lazy load autoplay videos

Agile Requirement
As a user, I want videos on the webpage to load only when I scroll near them, so that the page loads faster initially, conserves data usage, and enhances my overall browsing experience without unnecessary loading of content I might not view.
Acceptance Criteria

Videos start loading only when the user scrolls to within a certain distance from them

Solution direction described in https://web.dev/articles/lazy-loading-video

Kamino cloned this issue to hlxsites/vg-volvotrucks-us


lsp! not execute after revert-buffer

What did you expect to happen?
lsp! can be executed after revert-buffer
What actually happened?
When I use lsp-java to edit java files, lsp! Is not executed after executing the revert-buffer command
You need to run start server again to connect to lsp-server

nothing

Steps to reproduce:

Select these example steps,
Delete them,
And replace them with precise steps to reproduce your issue.
Fill in "system information" below.

System information:

((system
  (type . gnu/linux)
  (config . "x86_64-pc-linux-gnu")
  (shell . "/usr/bin/zsh")
  (uname . "Linux 5.8.3 #1 SMP PREEMPT Mon Aug 24 11:07:52 CST 2020 x86_64")
  (path "~/.gem/ruby/2.6.0/bin" "~/.go/bin" "~/.cargo/bin" "~/.jenv/shims" "~/.jenv/bin" "~/.local/share/coursier/bin" "~/.emacs.d/bin" "~/.local/bin" "~/.nvm/versions/node/v13.12.0/bin" "/usr/local/bin" "/usr/local/sbin" "/usr/bin" "/usr/lib/jvm/default/bin" "/usr/bin/site_perl" "/usr/bin/vendor_perl" "/usr/bin/core_perl" "~/.antigen/bundles/robbyrussell/oh-my-zsh/lib" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/gitfast" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/colored-man-pages" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/history" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/z" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/extract" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/encode64" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/urltools" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker-compose" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/archlinux" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/cargo" "~/.antigen/bundles/djui/alias-tips" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/mvn" "~/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/sbt" "~/.antigen/bundles/zdharma/fast-syntax-highlighting" "~/.antigen/bundles/zsh-users/zsh-autosuggestions" "~/.antigen/bundles/hlissner/zsh-autopair" "~/.antigen/bundles/romkatv/powerlevel10k" "/usr/lib/emacs/28.0.50/x86_64-pc-linux-gnu"))
 (emacs
  (dir . "~/.emacs.d/")
  (version . "28.0.50")
  (build . "Aug 25, 2020")
  (buildopts . "--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --with-x-toolkit=gtk3 --without-xaw3d --with-xwidgets --without-compress-install 'CFLAGS=-march=ivybridge -O2 -pipe -fno-plt -flto' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now")
  (features . "XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2")
  (traits batch))
 (doom
  (dir . "~/.doom.d/")
  (version . "2.0.9")
  (build . "HEAD -> develop, origin/develop, origin/HEAD 0dfee56e3 2020-08-24 23:22:57 -0400")
  (elc-files . 0)
  (modules :completion (company +childframe) (ivy +prescient +fuzzy +icons) :ui doom doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter window-select workspaces :editor file-templates fold format multiple-cursors snippets word-wrap :emacs dired electric (ibuffer +icons) undo vc :term vterm :checkers (syntax +childframe) (spell +aspell) :tools (debugger +lsp) docker editorconfig (eval +overlay) lookup (lsp +peek) magit make pdf :lang data emacs-lisp (go +lsp) json (java +lsp) (javascript +lsp) (markdown +grip) (org +dragndrop +hugo +pandoc +present +pomodoro +journal +pretty) plantuml rest (scala +lsp) sh (web +lsp) yaml :config (default +bindings +smartparens) :my (&user chinese +childframe) (&user ui) (&user editor) (&user calendar) (&user dired) (&user magit) (&user translate +childframe) (&user tools) (&user debugger) (&user lsp) (&user markdown) (&user plantuml) (&user protobuf) (&user go) (&user java +google-java-format) (&user scala) (&user sql) (&user keybindings))
  (packages "n/a")
  (unpin
   (:ui doom)
   (:lang java))
  (elpa "n/a")))

As of a986621 this issue should be resolved. Let me know if that isn't the case and I'll reopen it. Thanks for bringing it to my attention!


[Bug]: Renogy PGH1 Inverter API error

The problem
hey,
I have  the 1000 W Renogy Pure Sine Wave Invter (RINVTPGH110111S)) connected to the ONE Core Hub. Works well on the app and hub, for example:

However, it seems only the conectivity entites are provided via the API:

and none of the sensors like load, mode, voltage, temp, watts etc.
Renogy has been contacted about this, because its the API that does not return those values and leads to these errors:
This error originated from a custom integration.

Logger: renogyapi
Source: custom_components/renogy/__init__.py:154
integration: Renogy (documentation, issues)
First occurred: 11:35:41 AM (130 occurrences)
Last logged: 12:08:47 PM

An error reteiving data from the server, code: 500 message: {'type': 'network_anomaly', 'msg': 'Network anomaly, please try again later!'}
No data in API response.

and as you tested, via API, it returns this:
{
    "type": "network_anomaly",
    "msg": "Network anomaly, please try again later!"
}

So hopefully Renogy does some backend changed to this model inverter so that it can work with the integration.
Cheers,
What version of Home Assistant?
2024.12.3
What version of Renogy?
1.0.0-b4
Diagnostics information
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response

Looks like renogy added the sensors for the inverter, but they appear as unknown

Hers diag for the inverter

i put the inverter into Eco Mode, but nothing changed on the api side. So not sure now what output 1 means:
   },
    "4674937632304311881": {
      "deviceId": "4674937632304311881",
      "name": "Inverter",
      "mac": "32",
      "firmware": "0100.0102.0202",
      "status": "online",
      "connection": "RS485",
      "serial": "",
      "model": "RINVTPGH110111S",
      "data": {
        "auxiliaryBatteryTemperature": null,
        "acOutputHz": 60.0,
        "ueiVolts": null,
        "outputVolts": 113.400002,
        "loadAmps": null,
        "solarWatts": null,
        "chargePriority": null,
        "output": 1,
        "ueiAmps": null,
        "loadWattsMode": null,
        "loadActiveWatts": 41,
        "solarChargingVolts": null,
        "temperature": 22.0,
        "loadWatts": null,
        "outputAmps": 370.0,
        "sku": "RINVTPGH110111S",
        "solarChargingAmps": null,
        "batteryType": null,
        "batteryVolts": 12.6
      }

thanks @firstof9 looks pretty good, I can now see updates to the inverter!

a couple of logs on startup, with a greyed out entity:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:608
integration: Sensor (documentation, issues)
First occurred: 10:00:34 AM (2 occurrences)
Last logged: 10:00:34 AM

Error adding entity sensor.inverter_charge_priority for domain sensor with platform renogy
Error adding entity sensor.inverter_output for domain sensor with platform renogy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 927, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1382, in add_to_platform_finish
    await self.async_internal_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 295, in async_internal_added_to_hass
    raise HomeAssistantError(
        f"Entity {self.entity_id} cannot be added as the entity category is set to config"
    )
homeassistant.exceptions.HomeAssistantError: Entity sensor.inverter_charge_priority cannot be added as the entity category is set to config

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/renogy/sensor.py:98
integration: Renogy (documentation, issues)
First occurred: 10:00:57 AM (2 occurrences)
Last logged: 10:00:57 AM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1552, in _async_process_registry_update_or_remove
    self.async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
    self._async_write_ha_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
    self.__async_calculate_state()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1085, in __async_calculate_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1029, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 557, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/renogy/sensor.py", line 98, in native_value
    value = OUTPUT_MODES[data[self._type]]
            ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 1


I got a crash when i trainning with this code.

I got a crash when I trainned with this code. Maybe something wrong that I did. Did anyone also get this problem?  Thanks!
crash position:
File "FastSpeech2_Ming\model\modules.py", line 126, in forward
x = x + pitch_embedding
RuntimeError: The size of tensor a (48) must match the size of tensor b (57) at non-singleton dimension 1
where x.shape = torch.Size([80, 48, 256]), and pitch_embedding.shape = torch.Size([80, 57, 256])

What dataset are you using? You should check your MFA process and make sure you got the right TextGrid files.

hello I have the same problem
I use biaobei PhoneLabeling/0000X.interval  change  it as 0000X.TextGrid
Then I run train.py  show a problem
x = x + pitch_embedding
RuntimeError: The size of tensor a (52) must match the size of tensor b (56) at non-singleton dimension 1

hello I have the same problem I use biaobei PhoneLabeling/0000X.interval change it as 0000X.TextGrid Then I run train.py show a problem x = x + pitch_embedding RuntimeError: The size of tensor a (52) must match the size of tensor b (56) at non-singleton dimension 1

Do not use the interval files from Biaobei. I believe some alignments from Biaobei dataset are not correct. You should use MFA to generate TextGrid files.

hello I have the same problem I use biaobei PhoneLabeling/0000X.interval change it as 0000X.TextGrid Then I run train.py show a problem x = x + pitch_embedding RuntimeError: The size of tensor a (52) must match the size of tensor b (56) at non-singleton dimension 1

I think that text_to_sequence function  like the picture cause the problem
some text like 'er' can not be index  so pitch(51)>text(49)

make sure your symbols list in symbols.py contains all the symbols in your dataset. if you want to train on a new language, you need to add new set of symbols, similar to text/pinyin.py


Feature Suggestion

Is your feature request related to a problem? Please describe.
Want to add the mod to a 1.20.1 modpack, entering the dimension doesn't work other than that everything works
Describe the solution you'd like
A mod version in 1.20.1
Describe alternatives you've considered
Instructions to make the mod 1.20.1 compatible
Additional context
N/A

Versions before 1.20.2 weren't planned, and I already said it in different issues.
But since a lot of people are asking for it, I'll see what I can do in my free time.

This issue has been resolves in commit 6ba5f38 on the backport/1.20.1 branch.


API

Add API tab.

generally -

capitalize Flow as defined term
capitalize Agent as defined term
use "a" if subsequent word starts with consonant or sounds like it starts with a consonant; an if vowel (getConnection, getFlow, getFlowRuns, getFlowRuns)

examples:
getFlow - change an to "a"
getFlowRun - update description to "Get a Flow run in an environment by its id"
getFlowRuns - similarly, "Get all Flow runs for a specific Flow in an environment"

is there a blurb that could be added on Ganymede API (or perhaps some demonstration)?  I know it's probably obvious to users, but may make the page more welcoming

No need to have Ganymede API as top-level category (just remove that 1 level of nesting)

one other comment - it could make sense to add hyperlinks to the page where the different items are discussed, in case people navigate first to the API and then get to the App section from there

In the API intro, mention how users can find ids for Agents, Flows, etc. (add pointer to System Reference Tables)

maybe subsequent to initial release, but would be good to know rate limits

for postQuery, add a link or comment that SQL has to be compatible with BigQuery

for getFile / getFiles, add a pointer to the get_gcs_uri method

getFlowRun has misspelled param name for environmentVersion

In the API intro, mention how users can find ids for Agents, Flows, etc. (add pointer to System Reference Tables)
maybe subsequent to initial release, but would be good to know rate limits
for postQuery, add a link or comment that SQL has to be compatible with BigQuery
for getFile / getFiles, add a pointer to the get_gcs_uri method
getFlowRun has misspelled param name for environmentVersion

added pr in api server addressing feedback. will add a ticket to add rate limiting specific to the public api and then will include in the documents.

cool - for reference, this Benchling rate limits section might be a good reference since we could get comp'd to this.  I can flesh out details (e.g. - add that disclaimer at the top like they did) once the bones are in

be consistent about adding period to end of description sentence (add everywhere? - e.g. - missing on getConnection description)
postQuery - Bigquery is misspelled as Biqquery
FlowRunState and FlowRun - should "unknown" be titlecased as "Unknown"?
TableRow - property name has a * at the end (not sure if this was intentional)


How to integrate with supertest

// server.spec.js
import request from 'supertest';
import server from '../src/server';

describe('loading express', () => {
  let server; // http server object

  beforeEach(async () => {
    delete require.cache[require.resolve('../src/server')];
    server = require('../src/server');
  });

  afterEach(() => {
    server.close();
  });

  it('responds to /', async () => {
    const response = await request(server).get('/');
    expect(response.status).toBe(200);
  });

  it('404 everything else', async () => {
    const response = await request(server).get('/foo/bar');
    expect(response.status).toBe(404);
  });
});

Troubleshooting
Error: TypeError: app.address is not a function:
This error typically occurs when the server is not properly closed after each test. Ensure that you are calling server.close() in your afterEach block.
Error: TypeError: server.close is not a function:
This error typically occurs when the server is not properly initialized. Ensure that you are correctly requiring and initializing your server in your test file.

Hi, HyperExpress shares limited compatibility with a familiar API to Express.js but not 100% compatible hence the errors you are seeing come from methods which have not been implemented on HyperExpress.
You would have to find their counter-parts in HyperExpress to make your test work.

i have faced the same problem i wanted to use the SuperTest and i found solution by just test using url of your server
test
import request from 'supertest';

const test = request('http://localhost:4000');
describe('GET /', () => {
  it('should connect to backend server', async () => {
    const response = await test.get('/');
    expect(response.status).toBe(200);
  });
});

route
app.get('/', (req, res) => {
  res.status(httpStatus.OK).send();
});

test pass ✅


Semantic Issue (Use of undeclared identifier 'Bugsnag' in AppDelegate.m file)

I found this error -->Use of undeclared identifier 'Bugsnag' in AppDelegate.m file  on [Bugsnag start];
when I run app on ios simulator.
Environment

Bugsnag version: Latest
"react-native": "0.66.3"

Hi @luke-belton , I made the changes in AppDelegate.m file as you said and also check the manual-setup guide. Now , it's working fine and thanks .


Android longpress on TextField throws RenderError

On Android, longpress in a TextField:

[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale de-CH)
    • Flutter version 1.2.1 at /Users/defuns/Development/Tools/flutter
    • Framework revision 8661d8aecd (6 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/defuns/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/defuns/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/defuns/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2, Build version 10E125
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 33.4.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.32.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.24.0

[✓] Connected device (1 available)
    • Philippe • 00008020-000A615C11E2002E • ios • iOS 12.1.4

• No issues found!

I wasn't able to reproduce the problem (the overflowing cut/copy/paste menu) with a simple example - https://gist.github.com/HansMuller/26e98fa95405db4f1d58e0ddabd08514
Please provide a simple self-contained example app that demos the problem and we'll look into it.


Fixed the representation of conversion equations of true anomaly

This PR aims to fix #1093
Changes to all major representation of anomaly conversion 😄

Merged, thanks!

Merged, thanks!


Server dont save engrams!

Hey guys,
i like the script bec im not good with linux, but after i changed servers von g-portal to my linux root server, the engrams reset all the time i restart the server...
i copy/paste all the files in SavedArks and it works , all the dinos/houses are ok and in there place but the engram problem fucks me up...
can someone help with that? sry for my bad english

What are the permissions on the SavedArks directory and the files therein?
If the ARK server doesn't have permission to write to the .arkprofile files, then every time the server restarts any character settings (i.e. engrams, engram points, name, level, etc) will likely reset to the state they were in when you copied the files.

ok i try to change them, but i have to wait, i test it in a few hours, thx so far

A permissions change should take effect immediately.  It will not however take effect retroactively - .arkprofile files are only saved when the user logs off, and changing the permissions after stopping the server will only prevent loss of newly acquired EP and Engrams, and will not recover EP or Engrams that should have been saved but were not before the permissions change.

yeah you are right, i changed them and after a relogg i have all my engrams i learned before. Thx for the quick help!
Before the change i fast traveled and than i had to skill my skillpoints again for 4 levels (all 4 were made on the new server) and after the change it works like normal :-)
gj and thx again for the quick help ^^


Added Color Look-Up Table effect, with example

ping @cubicgarden

Pending shader credit details. Borrowed from BBC R&D, with permission.


Unnecessary loop in getvcol()

Problem:  Unnecessary loop in getvcol().
Solution: Compare next char position with pos->col directly.
The loop below already handles end of line before checking for posptr,
and the next char is after pos->col whether pos->col is at the start or
in the middle of the char in question, so neither the NUL check nor the
mb_head_off() are needed when comparing the position of the next char
with pos->col directly.

The NUL check was initially added in patch 8.0.0307 to prevent an memory error in the mb_head_off(), so the NUL check isn't needed if md_head_off() isn't needed, as reaching NUL is already checked in the loop below.

thanks!


Make string templating a first-class feature by exposing $ExecutionContext.InvokeCommand.ExpandString() as cmdlet Expand-String

Summary of the new feature/enhancement
Note: This suggestion fleshes out the suggestion initially made by @sheldonhull in #11412.
PowerShell's expandable strings offer a flexible way of integrating both variable values and the output from expression and even entire commands in strings:
PS> $foo = 'bar'; "Variable `$foo contains '$foo' and contains $($foo.Length) character(s)."
Variable $foo contains 'bar' and contains 3 character(s).

Expandable strings expand instantly, whereas it would be helpful to also be able to define them as templates, for later on-demand expansion based on then-current variable values / expression or command output.
While this functionality  is currently available, it somewhat obscurely requires the use of $ExecutionContext.InvokeCommand.ExpandString():
# Define the template string, with *single quotes*, to avoid instant expansion.
$template = 'Variable `$foo contains ''$foo'' and contains $($foo.Length) character(s).'
# Give $foo different values in sequence, and expand the template with each.
foreach ($foo in 'bar', 'none') {
  $ExecutionContext.InvokeCommand.ExpandString($template)
}

Result:
Variable $foo contains 'bar' and contains 3 character(s).
Variable $foo contains 'none' and contains 4 character(s).

I suggest exposing $ExecutionContext.InvokeCommand.ExpandString($template) as a cmdlet named Expand-String, which would enable the following, with the same output as above:
$template = 'Variable `$foo contains ''$foo'' and contains $($foo.Length) character(s).'
foreach ($foo in 'bar', 'none') {
   # WISHFUL THINKING
   Expand-String $template
}

# Or, via the pipeline:
# WISHFUL THINKING
'bar', 'none' | Expand-String 'Variable `$_ contains ''$_'' and contains $($_.Length) character(s).'

Security considerations:
Given that it is conceivable that template strings may come from an outside source (user-supplied), it is desirable to be able to  prevent evaluation of arbitrary expressions and commands.

With a switch named, say, -NoExpressions specified, the presence of $(...) constructs other than the following should refuse expansion and result in a non-terminating error:

Mere variable references: e.g., $($var) (same as just $var)
Variable property references (but not method calls): e.g., $($var.Foo))

If evaluating expressions and commands by default is considered too risky, the logic could be reversed:

Require a switch named, say, -AllowExpressions as an opt-in.

@mklement0 I've always thought that this API was an under-appreciated feature given that template reification is such a common task in this business. Historically, since ExpandString is "eval equivalent" it was left as API only for "security-ish" reasons.  So +1 for suggesting it. As for naming, how about Expand-Template as a more evocative name? Expand-Template -path template.json.

FYI, one of the things we did in Plaster to make template expansion safer was to create a constrained runspace with just a few commands we figured folks needed for template expansion within the context of Plaster.  See https://github.com/PowerShell/Plaster/blob/16787a8fed9f425a35c4af6f89ba852d177094e2/src/InvokePlaster.ps1#L229-L302
I wonder if this could be applied to an Expand-Template command (at least by default) to make it safer?  You could always provide some sort of -Force parameter to allow access to the current runspace and all commands.

The ExpandString() returns just null for untrusted source. Since we have Ast for the template we should do a check in Begin block of the Expand-Template with a "security" Visitor. If we add a list of trusted variable names in Expand-Template with a parameter the "security" Visitor can do very strong check on the template Ast.
Anybody with Visitor creation experience could easily create a Expand-Template prototype on PowerShell script.


Typescript type support

Is there any plan to add typescript support to this project?

Is there any plan to add typescript support to this project?

Pull requests are welcome 😄


[UI] RecyclerView Bottom Padding

This may be out of topic in the datastore sample implementation itself. But, the recyclerView part is a bit odd-looking even if the list items are already collapsed, the padding still exists.

On the other hand, when the list isn't fully collapsed. The padding still exists.

This might be a minor issue in the UI part to fix this.
android:clipToPadding="false"

Fix has been merged. Thanks again!


split webserver tutorial and update pufferpanel tutorial to link to webserver tutorial

I hope this fills the request in #70

Hello @2020Sanoj, as the community manager I'm reaching out to you to give you a little update. raphi-0901 is currently sick and will be back February 13th. The language check (done by someone else) is done, so once raphi-0901 is back things will go faster. Thank you for your patience and stay healthy! Kind regards, Claudia M.


Enable linking to pattern candidates and issues

Is your feature request related to a problem? Please describe.
Currently it is not possible to use the address shown for a specific pattern candidate or a specific issue to directly link to this candidate or issure from the outside.
To reproduce:

Create a new candidate or issue - upon opening the details view an address with the following format will be shown

http://localhost:1978/issue/detail/TESTISSUE
http://localhost:1978/candidate/detail/Testcandidate

Open this Adress: The patternatlas landing page will be shown.

Describe the solution you'd like
Enable direct linking of pattern candidates and issues similar to how patterns are handled.
E.g. a pattern link http://localhost:1978/pattern-languages/af7780d5-1f97-4536-8da7-4194b093ab1d/d4f7c247-e2bb-4301-ad06-f758fa58f2dc always correctly shows the pattern.
Additional context
Depending on the authentication status sometimes also the "New Issue" and "New Candidate" view is shown upon opening the current links.
For a working implementation refer to the routing for patterns:
src/app/pattern-language-management/pattern-language-management-routing.module.ts
src/app/pattern-language-management/pattern-language-management.module.ts

When rewriting the navigation for issues and candidates examine the state-stores mentioned in https://github.com/PatternAtlas/pattern-atlas-ui/pull/68#discussion_r906674462

Fixed in #160
State-Stores are removed and routing is fixed to load issues and candidate corretly when opened via URL


Final wrap up points

I know we're not a fan of this ticket format, but these are minor problems and it makes it easier to track.

[x] Genome region search with example queries does not populate >1 query
[x] Remove double helix animation everywhere where possible
[x] Doing another search should move the user back to gene view
[x] Genes list downloader uncap from 500 gene limit
[x] Omit/Add should omit on first click
[x] Search icon/animation missing
[x] Search animation freezing despite not being done loading
[x] Search animation background change back from green to light grey. 30% opacity is good. rgba(237, 237, 237, 0.3)

I like the searching animation, how it greys out and then just shows the little loader in the search button. I'm not so sure about the button changing to one that says "New Search" after the first search is concluded. Could this just go back to the search button with the magnifying glass?
Great great that the gene view and evidence view is showing all the types in the key even if they arent available in the first 100 (see first screenshot how I'm filtering on Enzyme and nothing shows - this is good). To add to this though, we could have a message which appears in place of the table and reads: "Your filter is returning no results. Try increasing the amount of genes visible (bottom left)."
Loading evidence view is still bringing up the double helix sometimes. Do you think that instead of that, you could add an animation similar to the search animation? Something minimal. Something like having the evidence view button slowly pulsate green to show it is loading. The same could then be applied the other view buttons too. Just an idea.
Nice to see the views are jumping back to gene view now when redoing a search.

@lawal-olaotan just to add to this I see that the darkmode on my office PC must be a bit different:

Here I also get the 'whiteout' glitch with the dropdowns.

Sorry @lawal-olaotan, I'm reopening this as the "Omit" button in evidence view still does not add the NOT statement on the first attempt. It does reliably from the second click, but never works first time...

One more thing, could you please centre the text+animation within the button for when the search is running?


Displaying compressed sized navigation bar

Version
Tell us which versions you are using:

react-native-router-flux v3.36.0
react-native v0.33.0

Expected behaviour
Navigation bar width should fit the size of the screen
Actual behaviour
Navigation bar width and height are greatly reduced in size, with any containing elements push together.
Steps to reproduce

Just run react-native-router-flux v3.36.0

Run into same problem. I upgraded several packages, including RN.
When downgraded to 3.35, navbar become normal again.


Coverage thresholds can be set up for individual files

Currently only global coverage threshold is available which is convenient when a team can allow themselves 100 coverage all over the codebase right off the bat. Unfortunately it's not always possible, including times where significant design changes are required to get files and testing harnesses up to the standard. My goal is to provide teams with the ability to exclude certain files from 'global' threshold and allow their coverage to be managed separately.
When file paths or globs (which are then expanded to full file paths) are added to coverageThreshold config, reporter subtracts their coverage stats from global coverage and applies thresholds separately to global and to each file individually. If threshold file has no coverage data, error is returned as well, indicating misconfiguration. Until paths are added, coverage is calculated as usual.
The behaviour can be illustrated by the following sequence.
coverageThreshold: {
  'global': {
    statements: 59.28,
    branches: 49.33
  },
}

in this example this threshold is not met and returns an error:
Jest: Coverage for statements (58.99%) does not meet global threshold (59.28%)
Jest: Coverage for branches (48.22%) does not meet global threshold (49.33%)

Now let's add files to coverageThreshold
coverageThreshold: {
  'global': {
    statements: 59.28,
    branches: 49.33
  },
  './src/components/*-covered-file.ts': {
    statements: 100,
    branches: 100
  },
  './src/components/unknown-file.ts': {
    statements: 100,
    branches: 100
  },
}

which expands to
coverageThreshold: {
  'global': {
    statements: 59.28,
    branches: 49.33
  },
  './src/components/partially-covered-file.ts': {
    statements: 100,
    branches: 100
  },
  './src/components/under-covered-file.ts': {
    statements: 100,
    branches: 100
  },
  './src/components/unknown-file.ts': {
    statements: 100,
    branches: 100
  },
}

the errors are now
Jest: Coverage for statements (42.42%) does not meet ./src/components/partially-covered-file.ts threshold (100%)
Jest: Coverage for statements (92.75%) does not meet ./src/components/under-covered-file.ts threshold (100%)
Jest: Coverage for branches (61.29%) does not meet ./src/components/under-covered-file.ts threshold (100%)
Jest: Coverage data for ./src/components/unknown-file.ts was not found.

Since these files have been excluded from summary, they are no longer counted towards global coverage and global threshold is met.

we've had this idea for a while, but there's too many things that we need to design properly before we can do this (config format, what exactly happens when the threshold is not met, what happens if we run only a subset of tests, etc..)

that's a good start though!
i think we need to at least support globs
'my_directory/**/*.js': {statements: 90}

what do you think? @cpojer @thymikee

@aaronabramov LGTM! Also think it's a good start and we can follow this up with glob support.

Yep, agree that this should have glob support.

Codecov Report

Merging #4185 into master will increase coverage by 0.09%.
The diff coverage is 95%.

@@            Coverage Diff             @@
##           master    #4185      +/-   ##
==========================================
+ Coverage   60.18%   60.27%   +0.09%
==========================================
  Files         191      191
  Lines        6763     6781      +18
  Branches        6        6
==========================================
+ Hits         4070     4087      +17
- Misses       2690     2691       +1
  Partials        3        3

Impacted Files
Coverage Δ

...ckages/jest-cli/src/reporters/coverage_reporter.js
57.73% <95%> (+8.36%)
: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 ee928fd...2b99745. Read the comment docs.

@cpojer hi! I added glob support a while ago. Did I misunderstand you and it is not what you meant?

Also, CI is failing with
/home/circleci/jest/packages/jest-cli/src/reporters/coverage_reporter.js
  34:1  error  'glob' should be listed in the project's dependencies. Run 'npm i -S glob' to add it  import/no-extraneous-dependencies

but 'glob' is in package.json? Did I do something wrong?

@krishnagoth packages/jest-cli/package.json is where it'll need to be added.

@cpojer too bad there's no "d'oh" reaction emoticon.

Thanks for this diff. @krishnagoth: would you like to send a follow-up PR to extend the documentation with this feature? (See the docs/ folder in this repo)

Will do @cpojer


Freecad 0.19

Project description
Add the freecad 0.19 package to the nixos repository to enable the mass exodus of fusion360 people to have the latest version
Metadata

homepage URL: https://freecadweb.org/
source URL: https://github.com/FreeCAD/FreeCAD
license: mit, bsd, gpl2+ , ...GPLv2
platforms: unix, linux, darwin, ... Windows, Linux, Mac

Both Stable and Unstable currently at 0.18.4

Please note that there is no 0.19 release yet.  I don't really understand why freecad seemingly wants everybody to use nightlies but doesn't make an official 0.19 release.  Personally, I would also prefer to have the git version in nixpkgs.  This would also allow us to upgrade opencascade to 7.4.0 and get rid of the qtwebkit dependency.
cc @viric

I've made a PR to upgrade FreeCAD #98845.  Let's see if there is a large opposition to the change.

Since 0.19.0 doesn't exist yet and there's another PR in place it may make sense to close this ticket @bootstrap-prime  - what say you?


Search literature with sentence embeddings

blocked because ML API endpoint is not working

irrelevant now, we will use another approach


Introduce [map_val] to [FStar.Map]

This PR introduces map_val and relevant lemmas to FStar.Map.
map_val f m is equivalent to performing a pointwise application of f on all elements of m to produce a new map.

thanks, looks good


Support url missing target blank property

Pulling this issue from @tvb across from the status-bar project as it probably belongs here.

This has nothing to do with the status-bar really but I wanted to post this anyway:
I have the following code on my maintenance page, however the support link does not have a target="_blank" property so my browser is blocking it for not allowing it to load insecure content. (I know it should be behind https but the service does not provide this option yet)
Could you guys add a target blank to these links? Thanks!

Yes I am sure it's the browser, whenever I click:

I have hosted the HTML page on S3 with our own CloudFront.

@tvb sure thing. Do you have a link that I'm able to use to access your maintenance page? It might help with debugging.
Is the uploaded file you're using the one downloaded from us? with the iFrame in it? It would be worth checking that the iFrame is linking to the https version of the maintenance page.

Hi,
I will email you the link. Yes we use the downloaded file.

@tvb thanks so much for the email. The link looks good to me, the content is secure and my browsers aren't showing any warnings.
Have you made any changes since we last spoke? Are you still receiving the warning?

Hi @SirRawlins could you click on the support link which is http only at the bottom, thats when the browser starts complaining.

@tvb got it! I can see exactly what you mean now. I'll take a look at this, there might be a better way to tackle this than target="_blank"... leave it with me. 😄

The problem
o.k so the problem we have is that the downloadable maintenance page or those generated by services like CloudFlare and Heroku display the /maintenance.html inside an iFrame.
Clicking the support links as you've seen tries to navigate the iFrame away, resulting in an SSL error if the iFrames parent is running over SSL, and the help centre isn't.
Potential, but incomplete fix
Whilst using target="_blank" would work, it's generally considered a little bit awkward because it breaks the 'back' and 'history' functionality in the browser etc. https://css-tricks.com/use-target_blank/
Recommended fix
I think the better option would be to use target="_top" which instead of popping open a new tab, navigates the current, top level window to the new address, preserving the 'back' button and 'history' etc.
I've given this a test on the example you've provided and it looks to work well.
What are your thoughts @tvb? Does that make sense?

Hm. But if target="_blank" just opens up a new tab why would I lose my back and history in the other tab? @SirRawlins

@tvb it doesn't actually lose history in the new tab, it just breaks the history into two parts, before and after the new tab was created. Generally speaking, launching a new tab should only happen if you 'really' need to, in our case _top would fix the issue and it would behave as expected.
And the user would still have the option to right-click and 'open in new tab' if they wanted too.
Does that make sense?

Yes, I'm ok with this.

@tvb I've just rolled out a patch for this, I've given it a quick test on the example link you sent through and it looks to be working nicely! 😄
Let me know what you think.

😘 awesome!


refactor: combine multiple trace tests into single file

Closes #168

test trace on a directory will create a single pytest file with test cases for all traces, instead of one file per trace.
Refactor test trace and test model, as there was a lot of duplicate code.

I noticed, this is only for test trace. test model still generates multiple test files. Do you think it would make sense to include that in this PR as well?

@rnbguy I included this change you suggested in this PR, together with a refactoring of all the testing functionality in a single Test class


chore: Add scripts to install bancho.py

Describe your changes
TODO:

[ ] Finish docker installer
[ ] Add manual installer

Related Issues / Projects
Checklist

[ ] I've manually tested my code
[ ] The changes pass pre-commit checks (make lint)
[ ] The changes follow coding style

I am starting to think we might have a little ... too many scripts


Lab1

@nchen269 @SaranshPK
Finished Lab 1

I like your charts, but I think it would be better if the x axis is the same across each row for the binomial distribution. That will make it more clear how the p affects the distribution.

I like your thorough explanations and plots. One minor thing I'd suggest is the wording for hypothetical measurement of binomial distribution. Instead of " observed a signal at x=50", possibly it would be observed 50 successful events?

I like your charts, but I think it would be better if the x axis is the same across each row for the binomial distribution. That will make it more clear how the p affects the distribution.

I actually tried this at first, but when the n values get large, the peaks were just becoming too narrow that they looked like delta functions. So had to zoom in.

I like your thorough explanations and plots. One minor thing I'd suggest is the wording for hypothetical measurement of binomial distribution. Instead of " observed a signal at x=50", possibly it would be observed 50 successful events?

Yeah, this would be better. I'll change it.

@kentwils I finished Lab1.
Tianhao Jiang


fix/FSB-6089_App-is-unresponsive-when-used-in-Safari-browser

💬 Description
Safari doesn't seem to like using a tab-index of null so lets opt for the more safe -1 :D
https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

Yas 🙌


Checkbox Bind Group

Thank you for creating this awesome library for Svelte.
I had a question regarding the Checkbox component. Is there any variation of the checkbox or similar checkbox like component that supports bind:group? It looks like value is not exposed by Checkbox. Or is it intended to use SelectableTile for that type of functionality?
Thanks!

Great suggestion – we should leverage Svelte APIs wherever possible.

Checkbox now supports bind:group in v0.51.0 using a custom implementation by @gregorw
Example


No executable found matching command "dotnet-ef" error without project.json file

I've a VSTO - AddIn project developed using VS2015-Update3. I'm trying to implement a Database functionality in the project and for that I'm implementing EF Core. I'm  using the following official MSDN tutorial. But I'm getting the above error when I run the command dotnet ef migrations add MyFirstMigration.
Please Note:

VSTO-AddIn projects do not have a project.json file.
VSTO projects use Full .NET framework (I'm using .NET 4.6.2). But, as explained here, one can use EF Core in a Full .NET framework.

Use the PMC commands (Add-Migration) instead.

@ErikEJ I had tried that first, but got the well know error: Add-Migration : The term 'Add-Migration' is not recognized as the name of a cmdlet....etc., etc. In MVC projects, this error generally goes away if I close and then re-open the VS2015. But not in this particular project. So, I ended up using the above command instead - but to no vail.

For me, the Add-Migration or Update-Database commands won't work because I'm using a .csproj project, apparently. But I also had the same dotnet ef issues.
In the Package Manager Console (or whichever CLI you're using) make sure you cd to your project folder. The folder that typically contains your .json files, if you didn't move them. From there, the dotnet ef commands should work.

Can you try on the latest tooling (see https://github.com/aspnet/EntityFramework/issues/7358 for details) and file new issues for things that you hit.


feat(tutorial): complete step 2 - Austin

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

@tsaucedo Can you ping me on Slack @kellychurchill with your name so I can record your completion of this step? Thanks!

👍 Looks good - I have recorded your completion of this step!


Allow root

Is your feature request related to a problem? Please describe.
Im trying to deploy it in an LXC Container, but i dont want to create a new user
Describe the solution you'd like
Just allow the root user

So the problem is not really with my web app but rather with the underlying LGSM scripts themselves. Unfortunately, the LGSM scripts do Not support being run as root.
Minecraft» sudo ./linuxgsm.sh mcserver
[ FAIL ] Do NOT run as root!

So there's really nothing I can do to make this work, as this project is really just a web panel wrapper for the underlying LGSM shell scripts.


[Feat] Add wezterm light and dark themes

Hello,
Congrats on the release, looks very nice!
Would you consider adding a wezterm light/dark colorscheme port as well?

I can try to take this. It looks like the proper way to add wezterm themes is via iTerm2-Color-Schemes so I'll make a PR there.

Closed by #20


Add CancellationToken representing the lifetime of the IConnection

Today since we only have an event for Disconnect, it makes it hard to write linear code that does something until the client disconnects. It should be possible to write a reconnect loop like this:
while (true)
{
    // Create a new connection
    var connection = new HubConnectionBuilder()
                    .WithUrl("http://localhost:5000/cache")
                    .WithMessagePackProtocol()
                    .WithConsoleLogger()
                    .WithTransportType(TransportType.WebSockets)
                    .Build();

    // Start it
    await connection.StartAsync();

    // Do things while the connection is alive and wait for it to finish

    await connection.Lifetime.AsTask();

    // Dispose when it's done
    await connection.DisposeAsync();
}

@davidfowl - we should move it out of alpha2 given that we are going to overhaul the API as described in #900 and this will be addressed there. Otherwise we will have both the Closed event and the token which can be a bit confusing.

Closing


What parameters could you suggest to tweak to improve RTF

Hi,
Thanks again for the awesome work.
This issue is complementary to #52
I'm deploying Matcha-TTS on CPU for use with screen reader software for the visually-impaired.
Screen readers require very low response time, even if it comes at the cost of degrading output quality.
What parameters (other than n_timesteps) do you suggest to tweak in order to improve RTF with no to little loss in output quality?
Best
Musharraf

Hi @mush42 I hope you are doing okay! it is always nice to hear from you.
I mean if you are okay with degraded quality! I suggest starting with reducing encoder block and parameters, set https://github.com/shivammehta25/Matcha-TTS/blob/d31cd92a6122fb99987715248941c96744bf0a36/configs/model/encoder/default.yaml#L8 to 1.
and weaken the encoder
https://github.com/shivammehta25/Matcha-TTS/blob/d31cd92a6122fb99987715248941c96744bf0a36/configs/model/encoder/default.yaml#L5
to 256 or something.
Hopefully, the decoder is strong enough to realise generation without it. I remember during the https://github.com/shivammehta25/Neural-HMM days I removed the decoder and everything was still sounding good enough (of course a bit degraded but not so bad).
Next, https://github.com/shivammehta25/Matcha-TTS/blob/d31cd92a6122fb99987715248941c96744bf0a36/configs/model/decoder/default.yaml#L1
Try reducing it to [64, 64] and
https://github.com/shivammehta25/Matcha-TTS/blob/d31cd92a6122fb99987715248941c96744bf0a36/configs/model/decoder/default.yaml#L3
to 32
However, these two might have a significant effect depending on the complexity of your dataset.
These are the most important parameters I feel that you can reduce and everything should still work.
Let me know if you need any help training things.
Kind Regards,
Shivam

@shivammehta25 always nice to hear from you too!
Thanks for the comprehensive answer.
I feel like weakening the encoder is the least destructive option here. I can do encoder inference in one pass, and do decoder inference in chunks based on decoder receptive field, which by itself degrades quality, but YOLO.
Best
Musharraf

Also, @ghenter rightfully reminded me. You can also reduce the number of times the decoder is called. (It is the number of times we query the neural network to push the random noise to speech).
https://github.com/shivammehta25/Matcha-TTS/blob/d31cd92a6122fb99987715248941c96744bf0a36/matcha/cli.py#L249
If the model is well trained even 1 step is good enough (the lower the value the lower the quality but we evaluated 2,4,10 and I feel any of those settings would work well enough for your use case)
Kind Regards,
Shivam

@shivammehta25
Thanks for the tip. I knew that option already from when I worked on onnx export. But I want more 🙂
I appreciate you giving me exact values of n_timesteps. It is something that is hard to set correctly.
Best
Musharraf


Fix the panic on resize to tiny window dimensions

Pull Request Description
Fixes #7531
Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

Merging without QA, as it is a trivial bugfix that was tested on my machine.


Close built-in shaders when closing scene

https://user-images.githubusercontent.com/2223172/230790953-ba957d2b-9b15-40a6-9bba-e5bea4aed3f2.mp4

Thanks! Merged.

Cherry-picked for 4.0.3.


tests_l2: Update sgx l2 test

Update linux sgx version from 2.18.1 to latest 2.19
Optimize workdir for sgx build
Change imagepullpolicy to always- always pulls latest image (In case image present on node and has changed)
Verified on 4.12.6
Signed-off-by: vbedida79<EMAIL_ADDRESS>

@uMartinXu @hershpa Please review this PR

LGTM

It looks good to me.


enh(build) slimmer Docker image and add .dockerignore

This pull request proposes the following changes:

Use node:12-slim as the base image
Add some documentation to the Dockerfile
Add a .dockerignore file, which is similar to a .gitignore in that it tells Docker to not copy some files during the image build.

The result of number 1 is that the Docker image is 342 MB, down from 1.1 GB originally.

So lets change those two things and then I think this is mergable.

Yep, that's all that jumped out to me.  Great size reduction, thanks!


grid module: incomplete support for fingers{} and count{}

unsupported:
momentary.fingers (kind of works but buggy)
toggle.fingers
toggle.count when toggle.edge == 0
trigger.count
trigger.fingers[2] acts more like trigger.count[2]
value is the correct implementation of fingers, momentary & toggle is the correct implementation of count
TODO: refactor binary and most of the other handlers to mimic these correct behaviors. this will probably take the form of helper functions or sub-objects rather than supertypes, this way the new behaviors can be shared by controls in other modules (_key). maybe some specialized helper tools would make sense within the core module.

added support for trigger.fingers and toggle.fingers but only in the 1d routines, logic needs to be mirrored in the 2d routines
https://github.com/andr-ew/nest/commit/9f51c6d01785536e24b8e2b0786445743d4c43fe
https://github.com/andr-ew/nest/commit/439cacacc13299f2c27db2ad4bcdd2482b8e9418


Invoke template live test pipeline during eng common sync

Invoke template live test pipelines for .NET, Java and Python during azure-sdk-tools - sync - eng-common pipeline runs.

/azp run azure-sdk-tools - sync - eng-common

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

/check-enforcer override


Merging changes from SL 4.8.7

The goal of this PR is to share the work that's been done so that the fixes can also be shared, instead of multiple people working on it independently.
Known issues:

General Issues:

[x] ThemePrefs.ini is filled with an empty preference section instead of filling in the default values

Song Selection:

[x] The Music Wheel is pretty badly misaligned
[x] Steps aren't detected properly - there's a nil somewhere that makes the Grid in StepsDisplayList fail
[x] BPM display for selected song is too big
[x] Header contents are misaligned
[x] Measure breakdown under density graph is not calculated
[x] Marathon bubble is too large and misaligned
[x] Mode icon in the top bar is only visible for P1, P2 should replace it if we're logged in as P2

Gameplay:

[x] Current score is shown over the density chart

Score screen:

[x] QR pane is misaligned
[x] Extra high scores are showing on the bottom (what are these, anyway?)

Session summary

[x] Most labels are the wrong size and position

Hey, I think this is ready to be merged to dev and tested. Most screens look functional. WDYT?

Sure, looks good to me! I should receive my replacement panels tomorrow - the previous ones cracked - so I'll give it a go then! =)


RE: /airbrake-faq/deploy-tracking

I ❤  deploy tracking and automatic marking tickets as resolved. I also use the Pivotal Tracker integration to automatically create stories in PT.  So far, so good.
The issue is when the following sequence occurs:

Error occurs
PT story is created
Work is started on PT story
A deploy goes up and error is marked as resolved
Error reoccurs
.. the status of the story in PT is updated in two ways:

a comment is added the story that the error has reoccured (awesome!)
the status of the story is marked as unstarted (very bad)

Is there a way to configure the deploy tracking / PT integration to NOT reset the story status when an error reoccurs?

Hi @ivar,
I'm glad you making good use of deploy tracking.
Thanks for getting in touch about this issue and describing it so well 👍
I tried unchecking the PT integration setting for "Re-open accepted, delivered or finished Pivotal story when a resolved error re-occurs" and re-triggering an error.
Unchecking that option does stop the status change on the story, however it also stops the comment activity.
I don't think it's currently possible to allow the comment but stop the state change on the PT story.
I'll ask our integration expert if it's possible to change the behavior or add another config option.

Hi @ivar, I've submitted an internal feature request on our side for consideration. I'm gonna close this one out, but we will let you know if there is any activity on your feature request.
Thanks again for the feedback!


Casdoor does not properly termine existing user sessions when the user was deleted

First, a user login casdoor in one page. Then the admin deletes the user in another page. But the user is still able to do any operations inside casdoor . Notice that refreshing the page will ask the user to login again.
Impact
If the user is admin, even after a user's account is deleted, the user can still access the administration panel (and add or delete users) and has complete access to the system.
More details can be seen in https://huntr.dev/bounties/d43eac1c-b2a2-423e-a84d-9b2f7facbada/  if you receive the mail in<EMAIL_ADDRESS>

Dup with: https://github.com/casdoor/casdoor/issues/1141


[1.2] ddd:controller formatting

Spotted during testing with a real project:
ddd:controller results in a newline between imports, when "use App\Http\Controllers\Controller;" is injected by the package at the very end.

Resolved by #80


Update ulab stubs

Ulab has a new version with some new features https://github.com/v923z/micropython-ulab/tree/1.6.1

merge https://github.com/Josverl/micropython-stubs/tree/dev/stubs/micropython-ulab/ulab to main

abandoned


Add launcher skins

Themed and skinned the launcher.
Also fixed the bkid background controller not working; can use multiple different backgrounds again (just start at 1).
Merge conflicts have been resolved.

Thanks to make me life easier 😂


 A definition and example of every rule can be found here.
Let me know if you have any questions or concerns. I'd like to get the team's approval on these rules before fixing all of the warnings. I quickly tested stylefmt to automatically format our LESS files to adhere to these rules and it seems to work well!
The webpack configuration modifications will display any lint warning each time the LESS is changed.

@mlunoe I think all of the concerns are addressed!


MacOS native character map doesn’t work with Atom

Description
When pressing Cmd Ctrl Space, the character map is usually displayed, but not in Atom.

Steps to Reproduce

Open Atom.
Press Cmd Ctrl Space.

Expected behavior: The character map should appear and allow insert a character to the current caret position.
Actual behavior: Nothing happens.
Reproduces how often: Always.
Versions
Valtteri-MBP:~ valtteri$ atom --version
Atom    : 1.26.0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0
Valtteri-MBP:~ valtteri$ apm --version
apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.26.0
python 2.7.10
git 2.15.1
Valtteri-MBP:~ valtteri$

Thanks for contributing!
It looks like your system language is set to something other than English?  If so, I think this is a duplicate of https://github.com/atom/atom/issues/14963 so you can subscribe there for updates if you'd like.

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


docs: document the dash analogue of BIP143

Alternative to the old PR https://github.com/dashpay/dips/pull/95
This PR describes how the transaction sighash algorithm of BIP143 can be adapted to dash. There are only 2 main differences:

This algorithms takes in account dash special tx fields  nType and vExtraPayload
Algorithm is applied only to transactions with nVersion = 4 and it's deployed with an ehf hard fork.

The example in the test section was created with a draft implementation of the algorithm (see https://github.com/dashpay/dash/pull/5860)

Reviews applied and updated the test to make it consistent with the new approach

Thanks for the work on this! I've added a few suggestions.

thanks for the review, I have applied your suggestions


Not installable using PIP

Hi, your library is looking nice but please provide a setup.py file so pip can easily install it.

Sound like a good idea. Let me check what is missing


Feature Request: Pass script content directly to detection and requirement script rule functions

For functions like New-IntuneWin32AppDetectionRuleScript it would be great if there was the option to pass script content directly instead of only passing a file. This would be useful for building script blocks directly in script, or manipulating scripts before passing them to the function.

the new-intunewin32apptecetectionrule script is for script files, if you wanna use it directly from your script during the building of the app, here a workaround/ way I use
$Script = @(
'$Reg = Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall","HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | Get-ItemProperty | Where-Object {$_.DisplayName -ilike "Adobe Acrobat*" } | Select-Object -Property DisplayName, DisplayVersion, PSChildName'
'if($Reg){if([Version](Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$($Reg.PSChildName)","HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$($Reg.PSChildName)" -Name DisplayVersion -ea SilentlyContinue) -ge [version]"'+$($AppInfo.Version)+'"){Write-Host "Installed";Exit 0}else {Exit 0}}else{exit 0}'
)
$Script = $Script | Out-String

$DetectionRule = [ordered]@{
<EMAIL_ADDRESS>= "#microsoft.graph.win32LobAppPowerShellScriptDetection"
"enforceSignatureCheck" = $false
"runAs32Bit" = $false
"scriptContent" = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(($Script)))
}

and use it with the -DetectionRule $DetectionRule Flag in the Add-Win32App command

I don't use it with the requirements, but I think it could work as detection, you just need to ajust the $DetectionRule for requirement graph call

Thanks @AlkHacNar, I was hoping I would be able to do something like this but had not had a chance to get that far. Would be nice to be able to do it natively with the function, but this is a pretty clean workaround.


Move from heroku to github pages

Heroku ended it's free tier, so why not switch to github pages?

I was about to comment this

GitHub pages only accept static html websites
Alternative: Readme Stats

yep. website is not live anymore; no instructions on how to launch it locally (i know nothing about js)


Support mock injection via annotations

From<EMAIL_ADDRESS>on March 14, 2013 17:24:20
There is a feature I love with unitils : the possibility to inject the tested object and the mocks.
For example :
@RunWith(UnitilsJUnit4TestClassRunner.class)
public class MyServiceInjectTest {
@TestedObject
private MyService myService;

@InjectIntoByType
private Mock<MyDao> myDaoMock;

@Test
public void testMethod() {
    // define behavior
    expect(myDaoMock.doSomething()).andReturn("something"),

    replayAll();
    myService.aService();
    verifyAll();
}

}
@TestedObject creates the object to test.
@InjectIntoByType creates a mock, and inject it in the tested object, using its type.
We no longer need to use createMock() to create a mock and ReflectionTestUtils.setField() to set the mock in a private field, all the work is done automatically with only two annotations.
Unfortunately, I can use only one Runner in my JUnit classes, I can't use powermock and unitils together.
It would be nice if powermock had such a feature given that it considerably simplifies test classes.
Original issue: http://code.google.com/p/powermock/issues/detail?id=435

From<EMAIL_ADDRESS>on March 26, 2013 12:48:39
This actually works already. PowerMock supports Mocktio @Mock and annotations etc and it has some extensions to EasyMock that makes annotation works as well.  Since PowerMock works as a wrapper around other frameworks I don't have any plans to make diverge too much from the underlying frameworks.
Status: WontFix


Constraints only applied when ENTMOOT uses Gurobi

Added an error if constraints are applied when optimizer type is set to sampling.

Looks good to me, merging

Looks good to me, merging


Uglify fails with 1.4.1

Hi there,
I'm getting this Uglify error:
ERROR: Unexpected token: punc (.)
at the line:
(true && Ember.warn(...arguments));
I guess that this spread operator should not be there.
Version 1.4.0 is fine.

#1496 has been opened as a duplicate of this but has a bit more info and discussion so I'm closing this one.


New IPython Console (Spyder 2.2+): add support for the %edit magic command

From pierre.raybaut on 2012-05-26T08:34:32Z
Currently, the %edit magic command will open the target filename in the default editor.
For example, on Windows platforms, typing...
edit foobar.py
...in an IPython client will open the notepad.exe to edit this file.
(grreeat!)
So, we have to hack this feature so that it allows opening files with Spyder directly, for example by using the builtin function 'open_in_spyder' (see spyderlib/widgets/externalshell/sitecustomize.py).
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1051

From ccordoba12 on 2012-06-08T15:48:30Z
This issue was updated by revision 828df6b70bae .
Status: Fixed

From pierre.raybaut on 2012-05-27T04:42:34Z
Labels: Cat-IPythonConsole

From<EMAIL_ADDRESS>on 2012-06-08T22:39:42Z
I think this assumes the magic edit is already set, it fails at line 99 in start_ipython.. as .magic_edit does not exists.
I added
# For issue #1051 : Use %edit to open files in Spyder
if hasattr(ipythonshell, 'magic_edit'):
ipythonshell.magic_ed = ipythonshell.magic_edit
ipythonshell.magic_edit = open_in_spyder
but ipython still thinks there is no edit set "No default editor available.
Specify a GUI text editor in the IPythonWidget.editor configurable to enable the %edit magic"

From<EMAIL_ADDRESS>on 2012-06-09T15:41:39Z
I can confirm the same problem as in comment 4. issue #1087 reports the same problem.
Status: Started

From<EMAIL_ADDRESS>on 2012-06-09T15:42:25Z
issue #1087 has been merged into this issue.

From ccordoba12 on 2012-06-09T17:06:16Z
I can't reproduce this on my end (either on Linux or on my Win XP virtual machine) but I'm working on it.
Owner: ccordoba12

From ccordoba12 on 2012-06-09T18:05:58Z
Thanks for your explanation Jed. The thing is I can't reproduce this behavior (as I said in comment 7). I removed my ipython config dir, restarted Spyder and didn't see any failure.
It seems in some situations IPython initializes magic_edit later down the road (perhaps when the kernel is started). So I'll try to move those two lines to the external console and then post a patch to see if that solves the problem.

From ccordoba12 on 2012-06-09T17:33:57Z
Jed, what Petrus did in comment 4 solves the problem for you? I mean, at least the kernel could be started with that?
We can latter see how to set the editor correctly but at least I would like to solve the failure right now.
Cc<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on 2012-06-09T17:56:18Z
Actually, I didn't try Petrus's fix since it didn't really seem to result in a solution to the original goal of this issue. I should have stated my response more clearly. I experienced the same failure as issue #1087 , but I solved it by simply commenting out the two lines that were added to start_ipython_kernel.py by revision 828df6b70bae . By referring to comment 4 I was simply trying to confirm that the feature didn't seem to be working as intended.

From ccordoba12 on 2012-06-09T19:08:16Z
Jed, could you try this patch? Please check if %ed gets assigned to %edit, doing in the console:
%ed?
You should get the long help for %edit instead of a short message. And also check that %edit has became in open_in_spyder.
Attachment: first_try.patch

From<EMAIL_ADDRESS>on 2012-06-09T19:26:10Z
I have applied the patch, and the console now launches correctly. Here are the outputs of the commands suggested in comment 11:
%ed?
Type:       Magic function
Base Class: <type 'instancemethod'>
String Form:<bound method CodeMagics.ed of <IPython.core.magics.code.CodeMagics object at 0x05153C10>>
Namespace:  IPython internal
File:       Dynamically generated function. No source code available.
Definition: %ed(self, parameter_s='')
Docstring:  Alias to %edit.
%edit? produces a really long help message. If I run %edit foo.py, I get foo.py open for editing in notepad.exe and not Spyder.

From ccordoba12 on 2012-06-09T21:28:27Z
Ok, I think I solved it. The magics organization inside the internal IPython namespace has changed a lot recently and that was generating the error.
Jed this second patch should work on both 0.12 and 0.13. Could you test it? Please revert my previous patch before applying this one.
Attachment: second_try.patch

From ccordoba12 on 2012-06-10T07:09:14Z
Great, thanks Joris. I'm going to commit it right now.

From<EMAIL_ADDRESS>on 2012-06-10T00:49:10Z
I can confirm that it works for me (Ubuntu 12.04, IPython 0.13dev), the IPython kernel starts and %edit opens the file in Spyder.

From<EMAIL_ADDRESS>on 2012-06-10T07:23:05Z
Sorry for not responding earlier, been offline. The patch seems to work fine (mac osx 10.7.4, IPython 0.13dev). Many thanks for this feature.

From ccordoba12 on 2012-06-10T07:29:17Z
This issue was updated by revision 58596d245074 .

From<EMAIL_ADDRESS>on 2012-06-10T07:37:38Z
Maybe I was quick.. It seems it is only possible to edit in the dir where ipython starts, if cd'ing to another dir nothing is opened. (silently)

From ccordoba12 on 2012-06-10T07:30:32Z
Don't worry petrus and thanks for the confirmation.

From ccordoba12 on 2012-06-10T17:54:19Z
This issue was updated by revision be5641ea90da .
-. open_in_spyder was not working when trying to open files on directories
different from the initial one (at least on IPython consoles).
-. Print an error message if the file was not found instead of failing silently.
-. Detect if the user is trying to edit a module when the 'source' arg is a
string. This is useful for IPython because it seems all magic arguments are
strings.

From ccordoba12 on 2012-06-10T07:40:02Z
True. I'll take a look at it later.

From ccordoba12 on 2012-06-10T18:21:49Z
Ok, I've fixed the problem reported by Petrus in comment #19 and make open_in_spyder to open modules from the IPython console.
Please try it and let me know if this works for you too.

From ccordoba12 on 2012-07-05T20:14:35Z
Blocking: spyderlib:1053

From<EMAIL_ADDRESS>on 2012-06-11T07:54:15Z
This looks like it's working correctly now.
Status: Verified

From ccordoba12 on 2015-02-15T16:14:33Z
Labels: -Component-IPython


Error using the sample code

Hello.  I've just come across this and wanted to test it out to see if it could work for my project, using the sample code provided in the README.  I'm getting an error generated when it executes the line pkce_token = login_client.login():
TypeError: PkceToken.__init__() missing 3 required positional arguments: 'token_type', 'expires_in', and 'scope'
It does properly redirect to the IdP login page and back again to the code before throwing the error. I just modified the example's PkceLoginConfig values with those for our environment, and haven't made any other changes:
config = PkceLoginConfig(
    authorization_uri="<IdP auth URL>",
    token_uri="<IdP token URL>",
    scopes=[ "openid", "profile", "<custom scope>", "offline_access" ],
    client_id="<client ID>",
    internal_port=9000,
    add_random_state=True,
    random_state_length=32,
    verify_authorization_server_https=False
)

Is there something basic I've missed?  I'm using Python v3.10.12.
Thanks in advance.

Hi @shawnchapla-8451, what IdP are you using? The arguments missing tell me that the token is missing basic information, which typically happens if you are not getting a success response from the IdP. It could also be that the IdP doesn't return that information with the token, though...

Hi @shawnchapla-8451, what IdP are you using? The arguments missing tell me that the token is missing basic information, which typically happens if you are not getting a success response from the IdP. It could also be that the IdP doesn't return that information with the token, though...

Thanks for your response.  I'm testing it with Okta as the IdP.  I'd have to check with the team that manages the Okta implementation to see if these are customizations they've made, but an access token I can generate with a tool like Insomnia shows these as the likely claim names Okta is using:

"scp" instead of "scope"
"exp" instead of "expires_in"

I'm not sure what claim is standing in for "token_type".  Is there a way to tell  PkceLoginConfig about implementation-specific claim names?

Hey @shawnchapla-8451, I've released version 0.1.0 just now which gives more flexibility for this through the TokenConfigMap class. Can you give that a try and let me know how it works for you?


tron link broken again

http://www.citylab.com/design/2015/03/a-mesmerizing-futuristic-map-with-animated-traffic-and-glowing-buildings/388285/
links to
http://tangrams.github.io/tangram-docs-assets/?procedural/tronish.yaml#16/40.7053/-74.0098
which forwards to
http://tangrams.github.io/tangram-docs?procedural/tronish.yaml#16/40.7053/-74.0098
which is a 404.

Fixed by https://github.com/tangrams/tangram-docs-assets/commit/6f0cc2b6716383240b9879486421c86c60900f33
(also made the old repo private since it just exists for redirects and the gh-pages branch will continue to serve publicly)

(I verified but had to use an incognito window to avoid caching)


CI Help: Graphics Card in GitHub Action Docker Container

Hi best practices badge team
We are currently trying to achieve a passing badge and want to set up a github
ci action for our project. Unfortunately we ran into some issues and would
like to ask whether you could help us out. https://github.com/project-repo/cagebreak
https://www.bestpractices.dev/en/projects/6532
When trying to run our (almost laughably minimal) tests inside the
docker container of a github action, we realized that there is no
graphics card available within the container:
Error: 0.000 [ERROR] [render/wlr_renderer.c:252] drmGetDevices2 failed: No such file or directory
Error: 0.000 [ERROR] [../cagebreak.c:606] Unable to open Wayland socket: No such file or directory

(Our project is graphical but
by no means needs a high-end graphics card, some emulation on a cpu or
something similar would be completely sufficient.) Since you have much more
expertise than we do in judging how to test
open source projects, we wanted to ask whether you have any ideas on getting this to
run, or any resources you could point us towards? (Initial search results
did not turn up anything useful for us. In case you would like to take a
look at the specific ci workflow, it can be found here.)
cheers
project-repo

How to run a GPU compute for your tests? Try https://circleci.com/docs/using-gpu/


Change demo to improve testing of the terminal resize mechanizm.

@Tyriar, @parisk if you don't like it you can simply close this pull request.

Coverage remained the same at 71.57% when pulling 4ce7dec37db3c24cfb9aa2b9074d2e3a03812797 on AndrienkoAleksandr:improveDemo into 91bf3197aeb9f535b05e4b1c11de3d93eca5305b on sourcelair:v3.

While the info on the right is useful, using setInterval will make it more difficult to do performance work because the timeline will be muddied by the new interval. Also that's a lot of new dependencies, increasing the complexity and weight of the page.
Would making width and height a slider instead of a numeric input solve the same problem as the splits?

@Tyriar about setInterval, you are right, but we can use some checkbox and do this information optional. About slider, I agree with you, it's will be lighter solution, I will think about it.
What do you think, maybe it would be nice to create some addon with embedded auto-resize mechanism? It can be combo feature :)

I think adding splits to the demo is more effort than it's worth, also if devs want a split in their own app they would probably write/integrate their own. It would be tough to get it right, also it would probably be the only addon to date that wraps Terminal.element.


One-sided platforms. Best way to implement?

One-sided platforms are special types of bodies that collide with dynamic bodies depending on relative velocity / movement direction of the latter.
As a simplified special case, one can imagine a static rectangle which collides with dynamic circle only if the Y velocity of the latter is < 0, i.e. it's falling. But if its Y velocity is > 0 (i.e. it's jumping) then collision doesn't happen.
What is the best way to implement such behavior?

My current solution is switching a dynamic body's collision mask depending on it's Y velocity, essentially making it either skip all platforms during collision detection stage or not. Not sure if there is any more elegant solution to this.

There's nothing built in for this, what you described is what I'd suggest, does it work well?

Yep, works pretty much as expected, provided all platforms are oкiented the same way (which is always the case anyways). Still need to test some fringe cases, like when dynamic body's velocity / collision mask switches just right when it passes through the platform.


Invalid reply message

-(BOOL)_validateMessage:(MRYIPCMessage_t*)msg forID:(uint32_t)msgID
{
   if (msg->base.header.msgh_size < sizeof(*msg))
        return NO;
    if (msg->base.header.msgh_id != msgID)
        return NO;
   if (!msg->messageName.address || msg->messageName.size < 2)
        return NO;

    return YES;
}

In this method, I NSLog to see what had happened while crashing.
It crashs every time while msg->base.header.msgh_size is 24 and msg->base.header.msgh_id is 71
What is magic number "71" means?

Please provided sample code to trigger the issue so that I can debug it on my device

It crashs at sometimes not always.
my project is something like that:
a tweak working in SpringBoard with a center server "CenterSB", and a client "CenterDM"
a daemon with a center server "CenterDM".
a UIApp with  a center client  "CenterSB".
in UIApp
I call [self askSBToDo:info];
-(void)initCenter
{
    _center = [MRYIPCCenter centerNamed:@"CenterSB"];
}
- (void)askSBToDo:(NSDictionary*)info
{
    NSDictionary *ret = [_center callExternalMethod:@selector(askSBToDo:) withArguments:info];
}

in SpringBoard
-(void)initCenter
{
    _centerSB = [MRYIPCCenter centerNamed:@"CenterSB"];
    [_centerSB addTarget:self action:@selector(askSBToDo:)];

    _centerDM = [MRYIPCCenter centerNamed:@"CenterDM"];
}
- (NSDictionary*)askSBToDo:(NSDictionary*)info
{
    //sb doing sth here
   //after sb finished , then ask daemon to do sth
    NSDictionary *ret = [_centerDM callExternalMethod:@selector(askDMToDo:) withArguments:info];
    return ret;
}

in my daemon
-(void)initCenter
{
    _centerDM = [MRYIPCCenter centerNamed:@"CenterDM"];
    [_centerDM addTarget:self action:@selector(askDMToDo:)];
}
- (NSDictionary*)askDMToDo:(NSDictionary*)info
{
    //damon doing sth here and MRYIPCCenter crashed sometimes
    return dic;
}

by the way, my device is iphone7 ios12

What version of MRYIPC are you using?

ver 2.0

Sorry, I have figured out what happened.
I did some keychain work in my daemon, and it caused memory leaked.(SecItemCopyMatching)
Then my daemon crashed and _validateMessage retrun NO with the msgh_id "71" magic number.
Sorry for bothering you ;)