Unable to get USN / UUID

Hi @mmende,
Thanks for creating plugin. Nice job 👍
I did get the pair1 to work and i have token.
But I'm not able to get the USN / UUID, it is not presentet in the logs.
Plugin loads:

Pair works:

But no USN / UUID in logs.
Any pointers?

Nice to hear that pairing worked at least. Can you tell me the model number of your tv? It might not be covered by my model parser function yet.

Hi @mmende,
Thanks for getting back to me so quick 👍
Modell is UE65HU7505

Hi @mmende ,
Another thing that would be great where to get the config posibillity to add condifg via the Home Bridge WEB UI:
If you want your plugin to show a config UI editor in the plugin homebridge-config-ui-x, you can add a file config.schema.json to the root of your plugin.
The specifications of that JSON schema are detailed in https://github.com/oznu/homebridge-config-ui-x/wiki/Developers:-Plugin-Settings-GUI
It's def not a mandatory thing to have in your plugin, but it helps many users that use that UI homebridge plugin to maintain their installation and don't want to mess up with JSON editing 😉

Ok the model number can be parsed and the tv is from 2014 (npx homebridge-samsungtv-control model UE65HU7505). Therefore the discovery seems to have problems discovering your tv. Can you try a manual discovery by running npx homebridge-samsungtv-control discover (note that this doesn't add the tv to homebridge but rather exists for debugging purposes...)
I already added a basic json schema but renamed it to _config.schema.json for now because you would have to wait for the device discovery anyway and I thought it might be more confusing to be confronted with the ui when you can't really add any configuration before knowing the parameters. However you could theoretically run the manual discovery before and acquire the usn's etc. before now. It might be a good idea to add it back and add some documentation for this way of setting it up. The json editing is also a good argument for doing so.

Hi @mmende,
I suggest a "good" instruction in web ui about steps needed to fill config page. Someone is bound to do it wrong anyways, but you know :)
Debugg info:
C:\Windows\System32>npx homebridge-samsungtv-control discover
Searching for devices...
(node:3120) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
at EventEmitter. (C:\Users\kenneth\AppData\Roaming\npm\node_modules\homebridge-samsungtv-control\node_modules\got\dist\source\as-promise.js:118:31)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3120) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3120) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:3120) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:3120) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
at EventEmitter. (C:\Users\kenneth\AppData\Roaming\npm\node_modules\homebridge-samsungtv-control\node_modules\got\dist\source\as-promise.js:118:31)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:3120) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
C:\Windows\System32>

Hm, seems to be the same error as in #23 ... I will have to figure out a way to reproduce this problem.
Concerning config ui:
I don't know if it is possible to add buttons with interactions within config ui but this would probably be the nicest solution.

Hi @mmende,
I tried to use http to se if my TV actually respondet to something:

Is it a setting that might need to be enabled on the TV to get a response?

Ah if I use the whole string api/v2/ i get alot of information from the TV:

Is the ID the same as USN / UUID?

Yes id seems to be the same. I saw some options to disable/enable network control on my tv's but the menu structure varies strongly across models.
You can find the file here. However I didn't touch the file for some commits now and cannot guarantee that it fully works with the current configuration. The file is not being published at the moment, therefore you have to copy it to the location where the plugin is installed yourself (so in your case C:\Users\kenneth\AppData\Roaming\npm\node_modules\homebridge-samsungtv-control)

Hi @mmende,
I added the config file and added configuration:

Config file:

Everything looks good, but I get error in log:

No butten apear in homeapp.

Yeah this is the same error as in #23 . This error seems to appear in the device discovery and will therefore lead to the plugin not being able to be loaded successfully. I will let you know (in this thread) when I know what's going on there.

@mmende thank you :)

Hi @mmende,
Thanks for implementing this plugin. Nice Job done!
I think I've got the answer for this issue.
Change your index.ts file like this:
`
import { API } from 'homebridge'
import { PLATFORM_NAME, PLUGIN_NAME } from './settings'
import { SamsungTVHomebridgePlatform } from './platform'
/**

This method registers the platform with Homebridge
*/
export = (api: API) => {
api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, SamsungTVHomebridgePlatform)
}
`

now the plugin will be found.
And for the impatient ones, here is a little work around:

Login to hoobs and open the terminal
enter "cd ../node_modules/homebridge-samsungtv-control/dist" to change to the right dir
enter nano index.js
now change following line:
api.registerPlatform(settings_1.PLATFORM_NAME, platform_1.SamsungTVHomebridgePlatform);
to
api.registerPlatform(**settings_1.PLUGIN_NAME**, settings_1.PLATFORM_NAME, platform_1.SamsungTVHomebridgePlatform);

Thank you very much for the hint. I'll see if I can add and test it later that day.

@mmende,
I see that a new release is out, but web config has changes a lot and does not contain the USN, token and name config part.
How is config suppose to look now?
Thanks!!

The config shouldn't have changed actually. Can you tell me which changes you mean exactly?
Kind regards

Noe it looks like this:

Before you can see a bit up this page.

The config should look the same as before e.g. like this:
{
  "platform": "SamsungTVControl",
  "name": "SamsungTVControl",
  "devices": [
    {
      "usn": "uuid:a7001fbe-c776-11ea-87d0-0242ac130003",
      "name": "Bedroom TV",
      "token": "YOUR_PAIRING_TOKEN",
      "inputs": [
        {
          "name": "Sleep 30m",
          "keys": "tools,down*3,enter,down,enter,return"
        }
      ]
    }
  ]
}

...basically as described in the readme examples. I guess the new top level name property comes from a slightly changed function call that registers the plugin within homebridge. Apart from that all should be compatible with the current release.

Ok, thanks.
Strange the plugin UI dont show the same. I'll have a go manual config.

I didn't reactivate the schema json file yet because I want to extend the command line tools so far that you can get all infos you need upfront. Otherwise I suspect people to be a bit overwhelmed by the config screen with a lot of infos they don't have yet when they initially install the plugin.

Ah, yes that is correct. I'll look at enabeling the extention to see how it looks. I'm not to good with code.

Enabling web ui, I god this:

And it created this input to config:

It is a bit different from what your config example and the device dont what up in Apple Home.
No error during restart :)
So I´ll try to change config manually to see if that helps.

Hm... it looks like you twisted usn and token and furthermore as far as I remember correctly the usn usually starts with uuid:. You can run npx homebridge-samsungtv-control discover to get the correct usn without needing to crawl through the homebridge log if that helps.

You are right, I did reverse them.
When trying the pair1, I don't get the UUID/USN presented in logs so I picked it up from http://tv_ip:8001/api/v2/ there it is shown without uuid:

So I changed it, and let plugin UI do the config.

No error on startup, plugin is loading, but there is no entry in log for Samsung TV other than this:

Ok, did running npx homebridge-samsungtv-control discover list your tv?

I get this:

This states a different uuid as well.

Hm ok ... this might also be another upnp device in your network and can be ignored if the usn differs. However as from the pictures above it seems like your tv does not expose the manufacturer field which this plugin currently uses to find out which upnp devices are possible samsung tv's. Therefore your tv might not be listed yet. I might remove this part in the next version as the plugin can also use the modelName property to identify samsung tv's (which your tv seems to expose as expected). I'll let you know when I published the next version with this fix included.

@mmende thanks :)

Just a quick update @mmende,
I did get the device in home kit, but it is not doing anything.
That in it self is not strange sins tv is not connecting.


Organization Requests Support Online (Github Issue Forms)

Problem Statement
As an Organization that uses ReportStream, when I have a problem with ReportStream, I would like to easily be able to request assistance from the support team so that I can work towards solving my problem.
Background Info

When a RS user has an issues with our platform, the only way currently to notify the development/product team is via email - directed personally to team members, or to the share mailbox. Managing inboxes is not fun for anyone, and leads to backlogs of email management and customer communication delays.
Let's explore creating issue forms in Github. @kjt9cc suggested this: https://beyondco.de/blog/github-issue-forms; This may also auto-tagging of some sort, and will remove the intermediate step of someone in the O&O team or PRIME Ops team having to create tickets.
We are exploring alternatives using CRM, but actual implementation of that is months away (potentially).
FYSA: @mlighdc @kjt9cc

This issue has been turned into an Epic: https://app.zenhub.com/workspaces/experience-607d9d5e68b95200150fec37/issues/cdcgov/prime-reportstream/2906


Packaging Invoke-GetPackageIDFromAdminService.ps1

The Invoke-GetPackageIDFromAdminService.ps1 script seem to fail when I put it inside a packages, run perfectly fine when placed directly in the TS.  Are the variables passed correctly when the script is being pulled from a package?

Hello, do you have any more information you can share? Does the script get executed at all? Is there a sanitized log file you could share?


How can I implement delegate viewForAnnotation?

I found the following delegate methods are not implemented in this extension:
func mapView(mapView: MKMapView, viewForAnnotation annotation: MKAnnotation) -> MKAnnotationView?
func mapView(mapView: MKMapView, rendererForOverlay overlay: MKOverlay) -> MKOverlayRenderer

How can I add a MKCircleRenderer to the map without this delegate?

I've forwarded the delegate to get it work. But still wondering if there's other RxSwiftish way.
mapView.rx_delegate
    .setForwardToDelegate(NativeMapViewDelegate(), retainDelegate: true)

+1
@lexrus Did you solve this problem?

@whisper-bye Removed this lib and code in the Apple way. 😭

@lexrus that's good 😭

I guess this is not an issue anymore, so closing.

Humm... I'm wondering the same
Seems like a reasonable thing for viewForAnnotation to be somehow handled through RxMKMapView. anyone has tips on how to approach this?


testing: always use waitForMappingUpdateOnAll

the waitForConcreteMappingsOnAll from the ES integration test class doesn't
wait for the Schema/TableInfo caches to be invalidated and might still lead to
flaky tests.
waitForMappingUpdateOnAll operates on ReferenceInfos and therefore waits for
the caches to be invalidated.

ack


Hidden avatars

Issue
In the Awake list, when returning to the browser tab after it has not been used, some avatar images may not show.
This seems to happen when characters have changed profile/avatar while the browser tab was out of view.

Notes

Fader has failed to remove the fade-out class somehow
Can be solved by switching from css transition to Modapp’s anim.fade

Resolved in PR #106


Facebook Login

Put an [x] if you meet the condition, else leave [ ].

[x ] I've searched the Issues
[ x] I've read the basic concepts
[x ] I'm using the latest version

Is it possible to implement login wit fb?

I intercepted the request but the endpoint for sign in with fb not appearing

It's probably an access token, taken from "Facebook's official Instagram application"
And you getting that token with x_auth.
if you could contact me in telegram, we can collaborate and enchant this library :+1:
@gokaybiz


Trie [Java]

https://en.wikipedia.org/wiki/Trie

I can work upon this.

Take up one at a time.

Now is it fine to work on this?

Hold on I already have this ready.
@yashLadha @aviaryan
I will share mine. If you want you can hack on it!

Sure Sir!

Need some time though :P

@harishkrupo if u want i can work upon this. if u don't have time sir.

@yashLadha Hey, I actually have it ready. Just not getting the time to make a little changes and upload it. Will do it.

Should I send PR?


Add customization option to disable max-char warning message

This is just a really simple option I added for my own use, thought other might find it useful. I often open very large files that I don't necessarily care about getting copilot suggestions on and disabling this warning is simpler and more general than setting up emacs configurations to disable the copilot mode for those specific files and file types.
Just set copilot-max-char-warning-disable to t to disable the warning message that appears when opening a file that exceeds copilot-max-char.

This may not be an elegant way to work around this issue, but I don't have any objections on this. 🤔
cc @emil-vdw WDYT?

I don't think this is a good feature. When this happens, the agent's state for that buffer is messed up so it breaks copilot for that buffer. It would be misleading to treat this as just a warning one can ignore.
Best course of action is to increase this max or prevent copilot from activating in these large buffers like so:
(defun my/activate-copilot ()
  (if (> (buffer-size) copilot-max-char)
      (warn "Buffer size exceeds copilot max char limit. Copilot will not be activated.")
    (copilot-mode)))

What I mean is that the problem is activating copilot on an unsuitable buffer, and the solution is to to avoid activating it and not instead of silencing the warning.
The other option is, of course, to extend the plugin to send large buffers in chunks initially.
It might be worthwhile to look at how copilot.vim solves the problem of large buffers.

@jhdavis8 didn't mean to be negative :sweat_smile: . Thanks for taking the time!

Hello @emil-vdw,

It might be worthwhile to look at how copilot.vim solves the problem of large buffers.

Did you get a chance to look at this? I do see an issue open about handling large files in vscode copilot, here, so have little hope that copilot.vim handles this correctly as well.

the agent's state for that buffer is messed up so it breaks copilot for that buffer

It does provide slightly degraded completions, but they are still pretty good, in my experience of using it. Disabling it altogether seems a bit excessive
I think copilot.el takes the correct default approach of warning the user of potentially bad responses because of the limit while still keeping it enabled.
In my opinion, we should maintain this behavior while still providing the customization to disable this warning.
In my use case, for example, I've an org file which I frequently open and it is slightly over the max char limit. I still use copilot in it with decent results.
Getting a warning popup every time I open it becomes slightly annoying specially if I'm doing this multiple times an hour.
I'm aware that the results will be degraded, but I don't want to be reminded about it all the time.
I suppose having some variable that I can set buffer locally using .dir-locals.el or some hook will make this very simple for me to handle.
How else do you suggest I could handle this case?
If not for a single variable that I could easily toggle, I think I'm left with:

either increasing the max-char-limit to cover the whole file, which I don't want to and would prefer to stick to the defaults as the file might get too large to send over to github causing other issues.
wrap an advice over the copilot function to disable the warning popups, which is still painful.

Do you suggest there's another way to approach this?
Anyway, thanks for helping bring copilot to Emacs and continued effort to improve it's functionality 😄
Regards.


graphics: Low level API

This is @wasedaigo's suggestion
Now Ebiten's API is high level and shared-texture system is in a black box. If this system could be exposed and you could handle them, you could get higher optimization especially for low-end devices.

My current idea is to expose github.com/hajimehoshi/ebiten/internal/graphics and github.com/hajimehoshi/ebiten will be one use of that.

No action items.


Is there a way to use Set types as part of the state?

It doesn't seem to work out of the box, is there a way to enable/use them?
Example:
// CREATING STATE AND ACTIONS
import useMethods from 'use-methods';

const initialState = {
  idList: new Set()
};

const methods = state => ({
  addId: id =>{state.idList.add(id)},
  removeId: id => {state.idList.delete(id)}
});

const [state, actions] = useMethods(methods, initialState);

// USAGE
actions.addId(123); //does update the state but does not trigger a re-render

So, adding a bit more info to this... it actually does update the state, but does not trigger a re-render unless you completely replace the Set for another.
As a workaround, I had to to add the following:
// CREATING STATE AND ACTIONS
import useMethods from 'use-methods';

const initialState = {
  idList: new Set(),
  __forceRender__: false // (1) this is part of the workaround,
};

const methods = state => ({
  addId: id => {
    state.idList.add(id);
    state.__forceRender__ = !state.__forceRender__; // (1) this is part of the workaround
},
  removeId: id => {
    state.idList.delete(id);
    state.__forceRender__ = !state.__forceRender__; // (1) this is part of the workaround
},
__firstRender: () => {state.__doneFirstRender__ = true}
});

const [state, actions] = useMethods(methods, {
    ...initialState,
     __doneFirstRender__: false // (2) this is part of the workaround
  }
);

// (2) this is part of the workaround
React.useEffect(() => {
  if(!state.__doneFirstRender__){
    actions.__firstRender__();
  }
}, []);

// USAGE
actions.addId(123); //now it works

Explaining the workaround above:

As you may gues, the update to __forceRender__ triggers a re-render, so my components now reflect my state properly.

After I have done #1, a new bug was introduced: if the functions with the workaround were the first ones to update the state, they would run twice (and render component twice as well). So I had to add that __doneFirstRender__ thing to make sure the state was "touched" so that the functions with workaround would not trigger the initial re-render twice.

I will try to investigate it and submit a PR if I manage to get it fixed.

I am experiencing the same issue with Map type. I have also noticed that in the line:
const [state, actions] = useMethods(methods, initialState);
the initialState gets mutated when using action. So you probably should not use the proposed workaround.
The weird thing is, if i copy the source of useMethods to my project and import it, everything works fine.


Post release automated changes for largeinstance releases

Post release automated changes for azure-arm-largeinstance

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


time 24 hours format

I have two pickatime() elements to select a "from" "to" range with the "to" going up to 24:00. But this gets represented as 0:00 and all validations that look for "from < to" fail because of the 0 value.
Any way to have the 24:00 as 24?

I also need a 24:00 hour selection. Is there an easy solution for this?

pickatime 24 hours in angularjs ?


Number of Pretraining epoch

Hi,
Thanks for sharing this great work!!!!
I would like to know the number of training epoch you used to pretrain the model?
Also, what is the dupe factor for data generation (10 as Google BERT) or lower?
Thanks

My pleasure!
I have trained the models for 4M steps, and I think I've used 3 as a
duplication factor.
On Thu, 16 Sept 2021 at 23:57, ghaddarAbs @.***> wrote:

Hi,
Thanks for sharing this great work!!!!
I would like to know the number of training epoch you used to pretrain the
model?
Also, what is the dupe factor for data generation (10 as Google BERT) or
lower?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/alisafaya/Arabic-BERT/issues/13, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFK4JSP6XKZ6ZFGEKBRHULLUCJK5BANCNFSM5EFTEIAA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Ali

Thanks for the quick answer!!!!
Can you please tell me how many samples you had for pertaining, so I can calculate how many epochs you trained on ..
Thanks alots

Unfortunately, it is not possible for me to approximate how many epochs.
Since the training of BERT is constrained by the max number of steps and
not the number of epochs as you can see in
https://www.aclweb.org/anthology/N19-1423.pdf
On Fri, 17 Sept 2021 at 00:05, ghaddarAbs @.***> wrote:

Thanks for the quick answer!!!!
Can you please tell me how many samples you had for pertaining, so I can
calculate how many epochs you trained on ..
Thanks alots
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/alisafaya/Arabic-BERT/issues/13#issuecomment-921244380,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFK4JSJGZEOWC7VEW3E3RQLUCJL2LANCNFSM5EFTEIAA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Ali

Thanks for your answer, no worries its okay .....


[PSCluster][update] use the same config keyword streaming.ps.enable…

… for local and cluster mode.
What changes were proposed in this pull request?

[x] using the same config keyword streaming.ps.enable for local and cluster mode.

How was this patch tested?

[x] N/A

Spark Core Compatibility

[x] ALL

cluster mode needs a special config otherwise the application will fail. When use enables ps , then he converts from local mode to yarn mode, and the application just fail unexpectedly, this will make people shocked. So keep the two model separated will be a better choice.
I will close this PR.


releng related file changes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 26.723%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
159

Relevant Lines:
595

💛  - Coveralls


[Question] How i can use safe-global with my custom network, which don't support in safe-global?

Question
[Question] How i can use safe-global with my custom network, which don't support in safe-global?
Fot example i created network in buildbear and i want use safe-global with it .
Please tell me what safe-global npm package i need use , and maybe do you have any example for me?
Example where you added custom network and use some functionality , and create simple transaction, it will be very help me

Hi there,
You can deploy safe contracts by following this guide; once it's done, you can deploy safe-infrastructure by following this guide. Once both are up and running, you should be able to run your fork of app.safe.global using your custom network.
Hope it helps; Best, Louis.


[MODTLR-93] - Fix permissions for mod-patron

Purpose
https://folio-org.atlassian.net/browse/MODTLR-93
https://folio-org.atlassian.net/browse/CIRC-2139
Approach

update permission
it will be merged after pr https://github.com/folio-org/mod-circulation/pull/1508

Could you create a ticket for mod-patron to use as a reference instead of referencing CIRC-2139?

Could you create a ticket for mod-tlr to use as a reference instead of referencing CIRC-2139?

Created ticket, thanks


Rename generic W type Word for consistency

For increased readability and consistency, I think the best would be to use Word everywhere.
Closes #343

r? @therealprof
(rust-highfive has picked a reviewer for you, use r? to override)


Cursor jumps to wrong place after undoing 2nd colorpicker change

This requires NJ's fix in #2790 to repro.

Open a color picker
Drag the slider
Leaving it open, click elsewhere in the document and insert a char
Drag the color picker slider again
Close the color picker
Undo

Result: 2nd color picker change is undone, but cursor jumps to where you inserted the char.  If the edit is far away, the view will scroll such that the color (the text that the undo is modifying) isn't even visible.
Expected: 2nd color picker change is undone, and cursor jumps to the color (or color is selected)
I'm guessing this occurs because programmatic edits don't explicitly move the cursor to the location before making the edit.  So the CM undo record stores wherever the cursor was positioned before the colorpicker drag, and restores that location when undoing the colorpicker change, even though it has nothing to do with the edit.  That would be a bug (IMHO) in the new CMv3 feature that restores the selection/cursor on undo.

I was able to repro this issue outside of Brackets and filed an issue over at https://github.com/codemirror/CodeMirror/issues/3035

FBNC back to @peterflynn

Confirmed fixed


keep_warm_callback not working, No module named 'handler'

Context
I get this error message for the keep_warm_callback that gets scheduled, and it has been going on since I used venv3.8 before the repo migration, and still going on to this day
[ERROR] ModuleNotFoundError: No module named 'handler'
Traceback (most recent call last):
  File "/code/zappa/handler.py", line 657, in lambda_handler
    return LambdaHandler.lambda_handler(event, context)
  File "/code/zappa/handler.py", line 254, in lambda_handler
    return handler.handler(event, context)
  File "/code/zappa/handler.py", line 389, in handler
    app_function = self.import_module_and_get_function(whole_function)
  File "/code/zappa/handler.py", line 245, in import_module_and_get_function
    app_module = importlib.import_module(module)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked

-- | --

My zappa_settings.json
        "aws_region": "us-east-1",
        "profile_name": "default",
        "project_name": "flueth",
        "s3_bucket": "zappa-lambda-docker-django",
        "django_settings": "flueth.settings",
        "environment_variables": {
            "INSTANTIATE_LAMBDA_HANDLER_ON_IMPORT": "true"
        },
        "lambda_description": "Zappa + Docker + Django",
        "memory_size": 10240,
        "keep_warm": true,

Anyone know the issue? Are we supposed to use "zappa.handler.keep_warm_callback" here? Or do I need to set something else up with env paths or something?
https://github.com/zappa/Zappa/blob/master/zappa/cli.py#L1405

Hi @opqpop Can you please remove INSTANTIATE_LAMBDA_HANDLER_ON_IMPORT from your code and try again. Let me know if it works.

Hmmm, tried that and same error still persists

Can you post your complete zappa_settings.json file?

@opqpop has the above fixed your issue?

stale, closing.


Factor out slack notification into reusable action

We now have multiple things sending slack notifications when they fail, all with the same format and only slightly different information. We should factor the slack notification stuff out into it's own github action and then just reuse it as needed

closing this as PR merged


Git repo volume fails

Hi,
I've configured a replication controller with a GitRepo volume type http://kubernetes.io/docs/user-guide/volumes/#gitrepo
When I create the pod, I get the following error:
Unable to mount volumes for pod "omk-frontend-rzt00_omk-backend(0608ca5b-1cea-11e6-bd96-06f0e36b13f1)": failed to exec 'git clone<EMAIL_ADDRESS>: executable file not found in $PATH

The image has Git installed, so I'm not sure if it's an hyperkube issue.
Can you try to clone a repo with this volume type in your Kubernetes cluster?

Duplicate of #327 . fix is in progress


EPMRPP-78123 || update dependencies

include https://github.com/reportportal/documentation/pull/384


insurance_policies.rb

This ActiveAdmin configuration sets up an admin interface for managing InsurancePolicy records. Here’s a breakdown of the key components:
1. Menu Configuration

menu parent: 'Loans & Insurance', label: 'Calculator Data':
This line places the InsurancePolicy resource under the "Loans & Insurance" menu in the ActiveAdmin interface and labels it as "Calculator Data." This suggests that the InsurancePolicy data is used for some sort of insurance calculation, possibly related to policy pricing or benefits estimation.

2. Sort Order Configuration

config.sort_order = 'created_at_asc':
This sets the default sort order for InsurancePolicy records to be by created_at in ascending order. This means the oldest records appear at the top of the list, which might be useful for administrators who want to review data in chronological order.

3. Permitted Parameters

permit_params:
This line defines the attributes of the InsurancePolicy model that can be modified through the ActiveAdmin interface. By explicitly permitting these parameters, it ensures that only the necessary and safe attributes can be altered by administrators.
The permitted parameters include:

policy_year: The year of the policy.
age: The age of the policyholder.
planned_premium: The premium amount planned for the policy.
annual_income: The annual income of the policyholder.
accumulated_value: The accumulated value of the policy.
surrender_value: The value of the policy if surrendered.
net_death_benefit: The net death benefit provided by the policy.
gender: The gender of the policyholder.
planned_premium_per_year: The planned premium amount per year.
contribution_total: The total contribution to the policy.
tax_free_distribution_total: The total tax-free distribution from the policy.
age_range: The age range category of the policyholder.

4. Commented Configuration

# permit_params do ... end:
This commented-out block shows an alternative way to define permitted parameters. It demonstrates how to conditionally permit additional parameters based on the context, such as the action being performed or the role of the user.
permit_params do
  permitted = [:policy_year, :age, :planned_premium, :annual_income, :accumulated_value, :surrender_value, :net_death_benefit, :gender, :planned_premium_per_year, :contribution_total, :tax_free_distribution_total, :age_range]
  permitted << :other if params[:action] == 'create' && current_user.admin?
  permitted
end

This is useful if you need more control over which parameters can be assigned, depending on specific conditions.

Summary
This configuration allows administrators to manage InsurancePolicy records in a controlled and organized manner. The resource is categorized under "Loans & Insurance" and labeled as "Calculator Data," indicating its use in insurance-related calculations. The default sort order and permitted parameters are configured to ensure that data can be safely and efficiently managed within the admin interface. The flexibility provided by the commented-out block allows for more granular control if needed.


Can't fix json prettier error

I got alert of style https://github.com/Azure/azure-rest-api-specs/pull/23581/checks?check_run_id=12887313555, but when I tried to check and fix these errors, I got error.  I have followed the other issue: https://github.com/Azure/azure-rest-api-specs/issues/13186. But I was run this command under root folder.
PS C:\repos\hdinsight-new-version> npm run prettier-fix
npm WARN config global --global, --local are deprecated. Use --location=global instead.

prettier-fix
prettier --write specification/**/*.json

[error] Cannot find module 'C:\repos\hdinsight-new-version\scripts\prettier-swagger-plugin'
[error] Require stack:
[error] - C:\repos\hdinsight-new-version\node_modules\prettier\index.js
[error] - C:\repos\hdinsight-new-version\node_modules\prettier\cli.js
[error] - C:\repos\hdinsight-new-version\node_modules\prettier\bin-prettier.js

I get the same error. I have followed this guidance too: https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/ci-fix.md#prettier-check
I tried these commands and get the same error again.
npx prettier -c <filepath>
npx prettier -w <filepath>
However, I was able to get past the issue by copying the file to be pretty-fied in the same directory.
So, from the repo root I ran this command, and it worked:
npx prettier -w <**filename**>
For some reason, the file path is not working for me.

Thank you @Kai-lash for all the details. I am glad you managed to unblock yourself. I added this to our backlog (pending triage). The goal here is to improve the experience.

It has been fixed by run npx tsc before prettier-fix. Thanks a lot.


Load Ngx-Formly JSON (build-in-validation example) Schema from file instead of hard coding in component

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[* ] support request

Current behavior

I would like to load ngx-formly-json schema from file.
I tested norm JSON schema from file with pattern validation, it is working.
When I load build-in-validation formly JSON schema from file, all validation is not happening.
Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

we need to load formly json schema from file,
In real scenario, API would return this formly json schema.
Please tell us about your environment:

Windows 10

Angular version: 8.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]
TypeScript
Node (for AoT issues): node --version =

could you please provide a reproduction example, our demo uses an Http call to get the json-schema file and it seems working as expected https://ngx-formly.github.io/ngx-formly/examples/advanced/json-schema

Hi Abdellatif Ait boudad ,
Thanks for timely response.
Please find the stackblitz link
Thanks
Raj

Hi Abdellatif Ait boudad,
It is working when schema is JSON standard.
if I try schema in "FormlyFieldConfig" compatible and  read from file, I am facing issue since I store "FormlyFieldConfig" type json to file. your own JSON key is not string ie within double quotes.
I am keep both key and value of your build-in-validation is causing problem.
Please help me storing your "FormlyFieldConfig" schema format in json file and read from there.
Thanks
Raj

could you please provide a reproduction example, our demo uses an Http call to get the json-schema file and it seems working as expected https://ngx-formly.github.io/ngx-formly/examples/advanced/json-schema

stakcblitz

passing validator as a function is not supported instead it should be declared throughout NgModule declaration. You may check our demo example https://ngx-formly.github.io/ngx-formly/examples/validation/validation-message


Ability to drag drop from all day event to a specific time in timeGridWeek

When you drag an all day event in timeGridWeek and try to drop it in a specific time slot, the event only changes date. The eventStart property of the newly created event during eventDrop, only changes date. The time is still referenced as 00:00:00.
Would it be possible to show the time of where the user is clicking instead of just the new date?

Dragging from the all-day section to the main section and back is not currently supported. But it could be implemented in future versions, perhaps through a separate setting?


Update sigcheck nobanner text

To make it the same for all tools.

Docs Build status updates of commit 7dbd6c1:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/sigcheck.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 54546c7:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/sigcheck.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Internal bower dependency

Plop @frisouilles 😸
https://github.com/ovh-ux/ovh-angular-jsplumb/blob/b64addd27d5f9080ee6f2f6b861934765e450e22/bower.json#L31

@lizardK or @kumako
We tried to install and get the 3.0.5 example up-and-running, but if fails on the jquery-ui-sortable-ng dependency?
Can you share how to solve this?


remove legacy installation of Roxygen2 5.0 and add R-specific clean target (#12993)

Description
Remove the forceful installation of legacy Roxygen2 version.
Add an R-specific clean target (rclean).
Checklist
see Makefile, R-package/R/zzz.R
Essentials

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage due to install test during build and rpkttest target
[x] To the my best knowledge, examples are not affected by this change

Changes

[x] rpkg uses less legacy and proprietary mechanisms - still not aligned with standard R
[x] rclean target extracts R-specific tasks from common clean target

Comments

the packaging is still very awkward and should be revised

@shadogray Thanks for your contribution!
Could you please take a look into review comments
@jeremiedb @anirudhacharya Could you please help review the PR
@mxnet-label-bot [pr-awaiting-response, R ]

I tried hard to find any connex between my changes and the Python script failing, can't see any.
The above failing script relates to Anaconda/python: "c:\Anaconda3\envs\py3\Scripts\pip install", cannot see any relationship with R runtime.

Sorry for not having  checked the installation of missing Roxygen2 package, build on GPU and CPU have passed generation of package now.

Added dummy.NAMESPACE to .Rbuildignore as requested, thanks for the comment

@hetong007 Could you please merge this PR if it looks good?


[HTTP/2] An error rate gets occurred in perf test done for http/2 scenario (H2_H1)

Description:
An error rate gets occurred in perf test done for the h2_h1 scenario, under high load (1000 concurrency, 50 or 1024 bytes payload). The test was run for 10 mins in 3 different machines for JMeter, Ballerina passthrough and Netty echo backend.
Request failures can be seen with the following errors.

At JMeter:

At passthrough (h2_h1.bal): internal_log_h2_h1.log

[2019-02-26 09:39:46,969] WARN  {io.netty.handler.ssl.ApplicationProtocolNegotiationHandler} - [id: 0xe28f23bd, L:/<IP_ADDRESS>:9090 - R:/<IP_ADDRESS>:53312] TLS handshake failed:
javax.net.ssl.SSLHandshakeException: error:100000d7:SSL routines:OPENSSL_internal:SSL_HANDSHAKE_FAILURE

[2019-02-26 09:39:46,975] WARN  {io.netty.channel.DefaultChannelPipeline} - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: error:100000d7:SSL routines:OPENSSL_internal:SSL_HANDSHAKE_FAILURE

[2019-02-26 09:39:53,956] WARN  {io.netty.channel.DefaultChannelPipeline} - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.NullPointerException

Affected Versions:
0.990.3

The issue is fixed with multiple improvements done for netty backend [1] and the latest test results can be found at [2].
[1] https://github.com/wso2/performance-common
[2] https://github.com/ballerina-platform/ballerina-lang/blob/performance-test-162-2019-03-18_10-05-56/performance/benchmarks/summary.md


Saving existing cell causes error

Even with no changes, saving an a existing cell causes errors.

I believe this will be fixed by https://github.com/influxdata/influxdb/pull/12556. Just need to wait for the code freeze to end to merge.
Sorry for the breakage!


Theme override for ::template.html.twig

If the current theme is "phone", and a template contains:
{% extends '::layout.html.twig' %}

we want to search for app/Resources/themes/phone/layout.html.twig
before app/Resources/views/layout.html.twig

see pull request in issue 31


Company firewall is blocking the discovery document endpoint bc it contains "/."  (".well-known/openid-configuration")

Is your feature request related to a problem? Please describe.
Company firewall is blocking the discovery document endpoint bc it contains "/."  (".well-known/openid-configuration").  The firewall is blocking uri's with period following forward slash.
Describe the solution you'd like
Is there an api available for overriding the discovery endpoint?
Describe alternatives you've considered
Would have to request exception to the firewall rule at company.
Additional context
Error:
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - https://xxx.xxx.com/identityserver/.well-known/openid-configuration

Is there an api available for overriding the discovery endpoint?

You could build middleware to rewrite the path.

Is there an example of a middleware?
Also I tried downloading the sample and modifying the discovery endpoint directly first to test the effect of removing the period after the slash.  It led to couple of the tests failing.  Is the period required for a reason..?

Was able to get corporate to add an exception to the barracuda firewall rule.


Create auth ui

Create the authentication UIs ie. login, sign up... as discussed in today's meeting. Deadline Tuesday, 6th September 2022

Complete!


Package install fails with "fatal error: memtracker.h: No such file or directory"

E.g. https://travis-ci.org/src-d/ml/jobs/351095320#L2754

Looks like .h files must be added to the MANIFEST file or Pypi doesn't load them. Should be fixed now in 2.9.4, sorry.

Thanks for the quick fix!


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:40: missing_description: The recipe is missing a description
ERROR: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:40: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:40: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:40: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_2fzy1dxpz2/clone/recipe/meta.yaml:40: http_url: http://github.com/metagriffin/asset is not https
Errors were found


[Feat] Easily view an element's CSS within Storybook

Design team has expressed the desire to be able to easily view an element's CSS within Storybook without having to resort to using the browser's inspector/dev tools.
This Storybook addon looks promising: https://storybook.js.org/addons/display-element-css

Install addon
Deploy preview
Demo to Design team

I love this idea and wonder whether it could help with a Design System problem we have where specs are manually entered rather than pulled from the code (which means specs are frequently out of sync with what's actually happening on our site).

@meissadia
What do we need to do to prioritize this feature? It would be helpful with the work I'm doing now reviewing the components.

@natalia-fitzgerald I will take this up now

@meissadia
Will this feature show up as a tab like what is shown here for HTML?

Unfortunately the addon is broken.
I'm not finding any alternative addons that could provide the same functionality so I'm trying to debug the source code for [display-element-css](https://storybook.js.org/addons/display-element-css) to see if I can make it work.

I've opened an issue on the repo for display-element-css and proposed a solution to get the addon working again.
The developer hasn't been active on github since July so we may be out of luck with getting this fixed anytime soon.

@natalia-fitzgerald When the addon does work, you would

Click the eyeball icon to open the Display Element CSS tab
Click on an element to see it's specified CSS

I do see some limitations to the addon, particularly in the way that it decides which CSS to show / exclude.
In the demo video below, it works well for the Hero component.
https://github.com/cfpb/design-stories/assets/2592907/73881bac-2073-43e1-ba49-de8e56d7bbee

@meissadia I forked it to https://github.com/cfpb/storybook-addon-display-element-css. If you don't have luck with fixing the original add-on feel free to push to main on the fork and install it with yarn add cfpb/storybook-addon-display-element-css


fix: Update wrapt to 1.15.0 to support Python 3.11

This PR bumps:

wrapt to 1.15.0
pylint to 2.14.5 because pylint has astroid 2.6.6 which depends on wrapt<1.13 and >=1.11

SUMMARY
If we use python 3.11 and want to run superset CLI command we have the next error:
ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/inspect.py)

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thanks @EugeneTorap for the PR. Technically we're not really bumping these packages, but more accurately re-compiling the frozen requirements by upgrading Pylint et al. which are used for CI, i.e., setup.py hasn't changed. Maybe the PR title can be updated to more accurately reflect this.

@EugeneTorap you can run Pylint locally via:
python3 -m pip install -r requirements/integration.txt
tox -e pylint

@EugeneTorap if you don't mind rebasing to resolve the conflict, I think this one's ready to merge!

@rusackas I want to improve my PR tomorrow

@EugeneTorap I pushed a commit which further bumped the version of Pylint (to the maximum allowable given other constraints) to see if this would address said issue. Regrettably it didn't and I'm somewhat at a loss in terms of i) why this is occurring, and ii) why I can't reproduce it locally.


Download multiple link

How to download with multiple link ? i try using xargs but always failed

Manually do it :) Or you can make a .bat file to automate it


What is the role of TensorRT in TensorRT-LLM?

Hi, I am new to TensorRT, but I have experience of using FasterTransformer.
As I understand, TensorRT-LLM inherits all the features in FasterTransformer, however, in FasterTransformer, TensorRT is not required to run those models. Thus, I am curious about why TensorRT is involved here? And how does it participate in compiling the model?

TensorRT-LLM is based on the TensorRT to leverage the optimizer of TensorRT, this is helpful for scalability. At the same time, we use some plugins to support the latest features in short term and enhance the performance, like what we do in FasterTransformer.

@byshiue Thanks!


Enhanced Navbar logo and text with 3d hover effect and animation

Description
I have enhanced the navbar logo and the logo text with a 3D hover effect and animation to give the website a more professional look.
https://github.com/user-attachments/assets/95d22595-6a25-4f1d-9749-b5ef10181c7d
Related Issue
Fixes #297
Type of change

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

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@subhadipbhowmik  hey review  my pr


Update Many-to-Many relationships with scope

Would be great if many to many update methods works with model query scopes like:
$form->sections()
  ->active()
  ->sync([1, 2, 3, 4]);

Let's say that section id 4 correspond to a inactive section (!$section->is_active). Then, we expect that sync method ignores this specific resource and attach [1, 2, 3].

I think you should check section is_active before call sync  method


bug(MatSnackBar): Snackbar not completly removed if there is a binding error

This is an app with an intentional wrong binding. myCar is null and therefor the binding with myCar.make gives errors.
Reproduction
https://stackblitz.com/edit/components-issue-vj4qee
Steps to reproduce:

Wait 10 seconds

Expected Behavior
Snackbar should dismiss and be completly removed from DOM and create a new snackbar. Even if there is a binding error with something unrelated.
Actual Behavior
Snackbar's texts disappears but the background and shadow remains. Stays in the DOM. After a while there are many copies in the DOM and on screen. The text of new snackbars are never displayed.
No amount of dismissing or setting dismiss times fixes this.

Environment

Angular: 9.0.2
CDK/Material: 9.1.0
Browser(s): Chrome, Firefox
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

whenever you called snack-bar twice, it waits for the previous one to finish, so the new one could appear.
  if (this._openedSnackBarRef) {
      // If a snack bar is already in view, dismiss it and enter the
      // new snack bar after exit animation is complete.
      this._openedSnackBarRef.afterDismissed().subscribe(() => {
        snackBarRef.containerInstance.enter();
      });
      this._openedSnackBarRef.dismiss();
    }

here you can see that the overlay is already created (that's why you see black boxes) and it waits the previous one to finish, to show you the message (call enter() function).
enter function just changes _animationState, from hidden to visible.
so whenever you have an exception in change detection cycle, animation which should hide the previous snackbar, never get's fired ( that's why snackbar is not cleared at all), and also the animation which should show your the message also never get's fired ( that's why you can't see the content).
SOLUTION: there is not easy way to find a workaround for this I think, the best way to solve this, is fixing binding error :P

I don't think we can do much about this case, because the error is happening in a component completely outside of the snack bar.

And what's reason to make the overlay before the other one is dismissed?

I don't think there is any special reason for that. They are using cdk/overlay internally and maybe not to waste any time for creation. it's already there and just animated.

I spent some time investigating this, but forgot to post my findings. Recovering from these errors is tricky without sprinkling try/catch around the entire snack bar module. The most practical solution is to fix your error.


Widgets inside editor should come last in their order of visibility when tabbing

When I use Tab to tab into the editor and have widgets open (e.g. find widget, view zone), focus jumps first between these widgets and then into the editor. I would think that focus should first move into the editor and then to the widgets in their order.

@bpasero Since focus follows DOM order, I cannot do anything on my side as a general fix to make focus be reveal order dependent. Maybe you can give a specific use-case and sequence of steps and then we can see what we can do.

@alexandrudima can we not use the tabindex property with a non-zero positive value to control the tab navigation within the editor? I filed this bug originally because I was expecting to first tab into the editor (from the outside) before tabbing e.g. into the find widget.

I am also not sure why the find widget would appear before the editor, isnt the editor the container of the find widget in the end?

A tabIndex solution would not work because tabIndex is, similar to id, a global property.
E.g. if an editor is on slot 1 and it uses tabIndex from 1 to 10 for different things, then the editor on slot 2 would need to use tabIndex 11 to 20, etc. This would also need to be aligned with our other usages of tabIndex = 0, otherwise you would loop for a long time amongst all the things with tabIndex = 0.
So you'd expect when tabbing from the explorer to drop in the editor's text?

Good point regarding multiple editors. When you tab out of the explorer we first tab into the editor tool bar. After that you end up tabbing into the find widget if that is open and then to the editor.
As you say, since the textarea comes after the widgets, it makes sense. Can we not move the textarea before the editor widgets container?


Dialog backgroundColor or decoration?

Sorry for requesting again. I am trying to set decoration (or backgroundColor) on Dialog, but it looks like impossible in the current constructor.
This is what I want to do on my component - passing BoxDecoration to Dialog:
Container(
  decoration: BoxDecoration(
    gradient: LinearGradient(
      colors: [
        colorScheme['secondary']!,
        colorScheme['secondaryVariant']!,
      ],
    ),
  ),
  child: xxx,
),

Right now, I am using showDialog() to open the component Drawer, which is the same code at the issue. As I am using beamer, and I want no transition on route change by doing this, it will get the error screen above at the following steps:

run showDialog()
beamToNamed(‘page 1’)
beamToNamed(‘page 2’)
beamToNamed(‘page 1’) => error

The showDialog function uses the root Navigator, wouldn't this be the problem? But I will need to do some testings with beamer to see how it using the Navigator.

return Navigator.of(context, rootNavigator: true).push<T>(createDialogRoute(
    builder: builder,
    context: context,
    barrierDismissible: barrierDismissible,
    filter: filter,
    barrierColor: barrierColor,
  ));

This is basically the function, wouldn't it be different with beamer?

https://github.com/slovnicki/beamer/search?l=Dart&q=Navigator
I don’t find any Navigator keyword in beamer (not directly using Navigator?).


Feature security page

What type of PR is this?

What this PR does / why we need it (en: English/zh: Chinese):

en: add security page includes safety-bulletin and vulnerability-reporting
zh: 增加安全页面包含安全公告和漏洞管理
Which issue(s) this PR fixes:

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: GuangmingLuo:x: huangjianhuangjian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[internal] Circle CI integration

I am not able to test this without pushing.

Anything good ever come from this?

TravisCI is pretty stable nowadays.  I think at least one working CI is important, I can take a look at it again when TravisCI gets flaky in the future.


WIP kubecontrollersconfig resource definition

Signed-off-by: Spike Curtis<EMAIL_ADDRESS>Description

Work-in-progress docs for KubeControllersConfiguration API resource.
Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

Documentation for KubeControllersConfiguration API resource

Deploy preview for calico ready!
Built with commit bce6cd40bf91757025f73d509b462ba7584bb13e
https://deploy-preview-3385--calico.netlify.com

@lmm this is ready for final review.  In particular, we need to merge this before any kube-controllers changes so that the CRD is available in KDD clusters for our tests.


Release 4.4.2 freezes on some live streams

Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
Latest
Please ask your question
After upgrading from 4.3.2 to 4.4.2 our QA team has seen that shaka-player suddenly freezes and stays in an infinite loading on live streams.
We have seen this assertion message in the console Assertion error: Request without URIs!, it is produced in the network_engine.js file but after a few days debugging we have not found anything more conclusive.
It happens with any of our live channels, mostly in the first 5 playback minutes and we haven't seen this behavior in shaka-player 4.3.2.
Player does not emit an error, it just shows that assertion message and shows an spinner and keeps requesting Manifests.
We have also tried with stall configuration but it does not fix the situation.
Do you have any idea about what could be happening? Could you think in any change between 4.3.2 and 4.4.2 that could produce this situation? Could you please give us more information to continue our debugging?
Thanks.

Can you test with 4.4.3? Thanks!

We have just tested with 4.5.0 and we have the same issues.

Well it seems like a bug, please open a bug type issue with all the fields filled out. Thanks!


support linux installations

at least support file export/import

fixed by https://github.com/intersystems-ru/cache-tort-git/commit/2f2696767325e43d380c89043e579a539979da1d


0.7.x does not build on FreeBSD

I'm new to rustlang, so maybe it's a problem on my side. What I am seeing is that all battery crates from 0.7.x on do not build on my FreeBSD 12 system:
NomadBSD:/home/lars/dev/rust/battery% cargo init
     Created binary (application) package
NomadBSD:/home/lars/dev/rust/battery% echo 'battery = "0.7.7"' >> Cargo.toml
NomadBSD:/home/lars/dev/rust/battery% cargo run
    Updating crates.io index
   Compiling autocfg v1.0.1
   Compiling typenum v1.12.0
   Compiling libc v0.2.80
   Compiling battery v0.7.7
   Compiling cfg-if v1.0.0
   Compiling num-traits v0.2.14
   Compiling uom v0.30.0
error[E0463]: can't find crate for `nix`
  --> /home/lars/.cargo/registry/src/github.com-1ecc6299db9ec823/battery-0.7.7/src/lib.rs:38:1
   |
38 | extern crate nix;
   | ^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `battery`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Building version 0.6.0 works:
NomadBSD:/home/lars/dev/rust/battery% perl -i -p -e 's/0\.6\.0/0.6.2/' Cargo.toml
NomadBSD:/home/lars/dev/rust/battery% cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/battery`
Hello, world!

Thanks for the bug report, @bsdlme!
It was accidentally broken in 2210de8b01de3963f21af8ff5a74d778b1dfa419 and fixed in 20233871e16b0e7083281df560875110a0cac93b. I also added Cirrus CI to ensure that FreeBSD compilation will work now all the time, so that should be it.
Fix was already published as a battery = "0.7.8", good luck with your hacking!


[CP] [Impeller] Fix division by zero for transparent shadows

issue_link
https://github.com/flutter/flutter/issues/126854
Commit Hash
dd67063fc9219dc5eb5b989e89c784560c7ac483
Target
stable
pr_link
https://github.com/flutter/engine/pull/42048
Impacted Users
iOS users who turn on wide gamut color support
Impact Description
The impact if visual glitches around the borders of modal dialogs.  We don't know of a case where this could affect the rendering of content that is interactive.
Workaround
Opting out of wide gamut color by changing the flag.
Risk
low
Test Coverage
yes
Validation Steps
Run the app on iOS with the FLTEnableWideGamut flag set to true.  Present modal dialogs (I'm not sure if there are further steps required).

@zanderso can you review this CP request? If it looks good to you, add the "cp: approved" label.

cp lgtm

PR updated, thanks.


Run rendering broken

See https://www.openml.org/r/2347443 and compare for https://www.openml.org/api/v1/run/2347443. You can see that for example the username is not rendered, the flow is not rendered, the discussion is not rendered, the task number is not rendered etc.

Same here: https://www.openml.org/r/473350

These runs don't exist anymore. Probably a stale index.
Seems ok now.


hi ,i am getting 'unknown' for getPhoneNumber(),please give any suggestions /resolutions if any

Summary

Version
?

Affected OS
?

OS Version
?

Current behavior

Expected behavior

Hi
Which platform?

Android
On Thu, Feb 16, 2023, 5:15 AM Kesha Antonov @.***>
wrote:

Hi
Which platform?
—
Reply to this email directly, view it on GitHub
https://github.com/react-native-device-info/react-native-device-info/issues/1494#issuecomment-1432237663,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A47IRN2VD2QCRMYEYINZS4LWXVTCPANCNFSM6AAAAAATK7WRFU
.
You are receiving this because you authored the thread.Message ID:
<react-native-device-info/react-native-device-info/issues/1494/1432237663@
github.com>

Did you use permission?
https://developer.android.com/about/versions/11/privacy/permissions


Generate + distribute "phar" version as build artifact

This way, the phar file could be npm publish'd and more easily consumed in JS projects without requiring the installation of Composer.
Context: https://github.com/mathiasbynens/emoji-test-regex-pattern/pull/18

The GitHub Action is set and the README updated. You can now download the latest release directly and use it as a standalone tool.
$ wget -q https://github.com/s9e/RegexpBuilderCommand/releases/latest/download/build-regexp.phar
$ chmod +x build-regexp.phar
$ ./build-regexp.phar --version
build-regexp 0.4.3

Thanks for your work on this!


Listen for "upgrade" event

Superagent should probably allow req.on("upgrade", ...).
Emitted each time a server responds to a request with an upgrade.
If this event isn't being listened for, clients receiving an upgrade header
will have their connections closed.

Implementing this sugar in Superagent might be a bit tricky since if you aren't listening for the event, clients receiving an upgrade header should have their connections closed.
At the very least, it would be nice if the workaround was documented, which is something like:
var req = require("superagent").post("/websocket")
var rawReq = req.request();
rawReq.on("upgrade", ...);
req.end(...);

Probably outside of the scope of superagent.

@defunctzombie No plans for superagent to support WebSockets?

WebSockets are a completely different protocol (the HTTP-like handshake is just a decoy). Handling WebSockets well, with logic that handles reconnections, stalled connections, bufferbloat, etc. requires amount of effort enough for a library on its own.
I don't plan to add support for WebSockets (not even Server-Sent events which would be technically more compatible with HTTP).


How to generate te .lst

I have bulided the mxnet successfully and run the ~/mxnet/example/image-classification/train_mnist.py.
When I follow the introduction on the Internet  to generate the file with my data. I can't find the make_list.py in the folde ~/mxnet/tools .
Can someone tell me how can I generate the lst file!

for the new verision of mxnet, make_list.py is deleted, you can get it from the old version, for instance 20160202.

@luoruisichuan Can you tell me how to run im2rec.py successfully. I have saw the code about make_list.py is insert in it. Which parameter I should set when I try to run im2rec.py.
my files structure:
images---1---
|         |
|         |- 1.jpg
|         |
|         |- 2.jpg
|         |
|         |- ...
|
|- 2 --- ...
|
|- 3 --- ...

to get .lst file
python make_list.py images/  images/train --recursive=True
then you can get train.lst in file folder images/.
to get .rec file

to get .lst file
python make_list.py images/  images/train --recursive=True
then you can get train.lst in file folder images/
to get .rec file
python im2rec.py images/train images/train
then you can get train.rec in file folder images/

to get .lst file
python make_list.py images/   images/train  --recursive=True
then you can get train.lst in file folder images/
to get .rec file
python im2rec.py images/train   images/train
then you can get train.rec in file folder images/


Conekta Cashier not working with Laravel 5.4.*

I tried installing Conekta Cashier on Laravel 5.4 and I wasn't able to install it. It works with Laravel 5.3 so I had to downgrade, I hope you can fix it soon. Thank you.

Done https://github.com/dinkbit/conekta-cashier/pull/30


Alfred5 is not available

Workflow version
current version
Alfred version
5.0.6
macOS version
macOsS 10.14.6
Debugger output
It is not available with Alfred5

More details
No response

It is not available with Alfred5

That is not output from the debugger. The form explains how to get that.

It is not available with Alfred5

That is not output from [the debugger](> It is not available with Alfred5
That is not output from the debugger. The form explains how to get that). The form explains how to get that.
This has nothing to do with Alfred 5, your macOS version is too old and doesn’t support the required Apple Shortcut.

current version

Please always share the exact version. Developers are often on different releases from users and “current” or “latest” is fuzzy (latest beta, stable, pre-release?). Plus, it makes it harder for others who arrive later to identify if the issue applies to them. To provide informed help it is imperative that we work with precise information.

It is not available with Alfred5

It does work on Alfred 5. That’s not output from the debugger like the template asks. Without that it’s impossible to say what’s happening.

this is debug log:
[19:29:49.206] Logging Started...
[19:29:58.146] Coffee Coffee[Script Filter] Queuing argument ''
[19:29:58.326] Coffee Coffee[Script Filter] Script with argv '' finished
[19:29:58.330] ERROR: Coffee Coffee[Script Filter] Code 1: /Users/xxxxxx/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A992F58C-CEF8-49D3-9362-C3DF7234BD22:725:833: execution error: Error on line 31: TypeError: stdout.fileHandleForReading.readDataToEndOfFileAndReturnError is not a function. (In 'stdout.fileHandleForReading.readDataToEndOfFileAndReturnError(false)', 'stdout.fileHandleForReading.readDataToEndOfFileAndReturnError' is undefined) (-2700)

That is caused by your older installation of macOS. That API is only supported on macOS 10.15 and above.
An older version might work for you but this is otherwise working as intended, the previous method was deprecated.


Nested testsuites instead of ancestors

Would it be possible to use ancestors as a way of defining nested testsuites?
Ideally, what I'd like to achieve:

Each file is a testsuite

Name is based on the top-level describe inside the file, if there's only one top-level describe.
Name is based on the filename, if there's multiple top-level describe.

Each describe is their own nested testsuite, under the file testsuite.

For every child describe, they are nested under the parent describe as a new testsuite.

@Multiply thanks for submitting an issue.
In this case I would recommend that you fork the repo and make the change on your fork.


[Janitorial] Please add MAINTAINERS.md

I'm going through all of prometheus-community/ and adding an issue to create a MAINTAINERS.md where it's missing.
Ideally model it on https://github.com/prometheus/prometheus/blob/main/MAINTAINERS.md with a split between general mantainers and subsystem maintainers if applicable.
Thanks,
Richard

Hi,
I’m technically the Maintainer of this project, but there has been significant bitrot over the last years and I while i had plans to get things going again i didn’t actually get around to do that.
So the current state is that it’s practically unmaintained but i would be happy to help if someone is interested in getting things working again.


Remove redis lock

Motivation and Context

What has changed

How to test?

Links

/deploy manna

/deploy manna

/deploy manna

/deploy manna

/deploy manna

Is it duplication of https://github.com/ONSdigital/rm-collection-exercise-service/pull/209/files? If yes please close this PR

The 2nd PR was branched off of this and has additional code removed.  This PR is tested, the other one isn't.  I want to deliver it in 2 bits to make sure nothing breaks.

was branched off of this and has additional code removed. This PR is tested

If the second PR was branched of this do we need this PR then? The new PR should cover both isn't?


search recognises "h264" but not "h265". It recognises "h.265" or "HEVC" though

Repetable here:
https://caniuse.com/#search=h265

Fixed with #3927


Add a User Task and Generic UI to Your Workflow

Tutorial URL: https://developers.sap.com/tutorials/cp-wf-02-add-user-task.html
Please specify the step you are referring to
No big deal, but the link in step 1 to "Create a workflow definition using an external service" is broken.

Thanks @freilinger - nice spot. Fixed with https://github.com/SAPDocuments/Tutorials/commit/e5e6fbdf244ba029a88315b75c202cacf0c0f331 (update will appear in a short while on the live site).


ms_calc_flux_rsfme: make "official" flux method summary vignette/markdown

...something we can link from the top of the docs that prominently lists e.g. "beale: ..., composite: ..."


Model v model

Add stronger support to model vs model run type

updates all model_vs_model configuration files
when run_type = 'model vs model'. All default configuration file with names *_model_vs_model.cfg are used
-better presentation for variable names shown in all sets of diags for model_vs_model case

For Taylor diagram generated for model_vs_model case: reference data is for the reference model, not observational datasets. If there is a need to change, we will modify in a later release


minmea_scan(): read check bit problem

Hi,
When I was parsing GSV data, I found that in some cases, the incoming packet parsing failed.
Then, I did error tracing and found that the last field of the packet is hexadecimal data,
and when it starts with a letter, such as B0*2, strtol() fails to parse, returns 0(base is 10), and endptr points to B,
minmea_isfield () returns true, and the parsing error exits.
 case 'i':
        { // Integer value, default 0 (int).
            int value = 0;

            if (field)
            {
                char *endptr;
                value = strtol(field, &endptr, 10);
                if (minmea_isfield(*endptr))
                    goto parse_error;
            }

            *va_arg(ap, int *) = value;
        }
        break;

However, it seems to me that this is a bug in the program, and it exists in other parsing, but I don't have a good way to solve it.I just fixed the problem for a while to meet my needs.
            if (field)
            {
                char *endptr;
                value = strtol(field, &endptr, 10);
                if (minmea_isfield(*endptr))
                {
                    if (strtol(field, &endptr, 16) != 0)
                        result = true;
                    goto parse_error;
            }

I don't know if there is any problem with my understanding, and I hope there is a better way to solve this problem.
Thanks.

Oh, I'm so sorry. It's my problem.

GPS receiver: UM982
Protocol: NMEA V4.10
Just because I'm using a different version of the protocol.
GSV Note: NMEA 4.10+ systems (u-blox 9, Quectel LCD79) may emit an extra field, Signal ID, just before the checksum.


⚠ PrivateHD has degraded performance

In 802ef58, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 1842 ms

Resolved: PrivateHD performance has improved in d33b4fe.


Mark package as typed to support type checking

Pull Request Test Coverage Report for Build 3

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.936%

Totals

Change from base Build 1:
0.0%

Covered Lines:
5972

Relevant Lines:
6225

💛  - Coveralls

Pull Request Test Coverage Report for Build 3

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.936%

Totals

Change from base Build 1:
0.0%

Covered Lines:
5972

Relevant Lines:
6225

💛  - Coveralls


Webchat interference with CosmosDB

I'm using a CosmosDB with different bots.
Everything works fine when using Emulator or Test Webchat (Azure Portal).
Unfortunately, when using WebChat, the userState and conversationState don't seem to persist (while keeping the ID constant).
I could solve the issue by removing two things from the index.html file:
dispatch({               type: 'WEB_CHAT/SEND_EVENT',               payload: {                 // Event starting bot's conversation                 name: 'webchat/join',                 value: {}               }
and I also had to set sendTypingIndicator to "false".
Can you have a look into this? I need typing indicators as well as a join event, since I want the bot to initiate the conversation.
Thank you

Hey @FRANZKAFKA13, sorry for the late reply.
Could you clarify what version of Web Chat you are using? latest or master?  I'm not sure what you mean by 'while keeping the ID constant.'
Could you share your related code?

@FRANZKAFKA13 Closing due to inactivity, but if you respond I'll be happy to reopen this issue. :)


Pull in frameworks 8.4.5

Summary
When searching cloud-software, the backups filter appears. This question wasn't asked of suppliers and frameworks 8.4.5 will ensure it doesn't show up.
8.4.5 also includes @karlchillmaid's changes to the order of sections on the service display.

Going to just 👍 this...


Order of elements created by data join should match the order of their corresponding datums

The elements in data join's enter selection are appended, so their order may not correspond to the order of the data.
Rather than appending the elements, they could be inserted (using selection.insert()), to maintain order.

For enter selections, the before selector may be omitted, in which case entering elements will be inserted immediately before the next following sibling in the update selection, if any. This allows you to insert elements into the DOM in an order consistent with bound data. Note, however, the slower selection.order may still be required if updating elements change order.

Source: https://github.com/mbostock/d3/wiki/Selections#insert

This would be particularly useful when the z-index is important, for example the ordering of series in multi.

To highlight and paraphrase a point from that quote -

Doing the above will ensure that order is correct on enter so long as the data is not re-ordered. In the case that the data is re-ordered it will still be necessary to use selection.order.

We can't guarantee the ordering by making this change but it will, at little to no cost, minimise the  post-processing done by selection.order.


AVRO-2613: Fix Linter Complaints

Jira

[x] My PR addresses AVRO-2613
[x] My PR title references the issue.
[x] My PR adds no dependency.

Tests

[x] Existing tests are appropriate.

Commits

[x] My commits all reference Jira issues in their subject lines.

Documentation

[x] Existing documentation is appropriate.

Nice


[Proposal][Question] Run-time paging of bytecode

We are investigating the implementation of a paging mechanism for jerryscript bytecode. The goal is to minimize the RAM overhead when executing snapshots by dynamically loading bytecode in fixed-size pages. By doing this we hope that we can execute snapshots that are at least as large as the amount of memory available to the Jerryscript interpreter, and set expectations on the amount of memory available to the executing application.
While planning out a potential implementation of this, I have run into some roadblocks that I would appreciate some help to overcome, those are listed at the end of this post. My thoughts on a potential implementation are as follows:
Saving a snapshot

Add a new CBC_CODE_FLAGS_SNAPSHOT to each bytecode header. This would make it clear during execution whether we need to account for paging or not.

Loading a snapshot

In jerry_exec_snapshot() and snapshot_load_compiled_code(), we want to avoid any modification of the snapshot, either in place or into newly allocated blocks.
Linking of CBC Literals to the global literal table should be done as late as possible.

With my understanding, this requires keeping around the literal map (lit_map_p) in RAM so that this can be done efficiently.

In snapshot_load_compiled_code() we also do not want to recurse on template literals. The loading of this compiled code should be deferred until we need to create an object for these literals.

Executing a snapshot

In order to enable paging of bytecode, rather than using a pointer to the bytecode, we would need to abstract this away to some concept of a program counter.
In vm_run(), the vm_frame_ctx_t would be constructed with this program counter for byte_code_p and byte_code_start_p.
In vm_loop() and the rest of the pipeline, we ask the underlying system to translate that program counter as necessary.

In my design investigation, I see many issues when looking through the execution stages. A few of the larger issues are:

vm_init_loop() wants to create a literal object for all template literals in the frame. This requires our bytecode to be loaded, which we don't want to load until use. This is also a more general problem with the creation of function object which we do not want to use right away.
Transparent pointers to ecma_compiled_code_t are used all over the place to access the bytecode, and we would like to abstract this away.
Trying to maintain the common codepaths for paged and non-paged execution (directly from source, eval(), etc).

My thoughts on a good first step would be to only perform paging of the CBC_INSTRUCTION_LISTS. When loading the snapshot, we would load the literal tables as is currently done, but when setting CBC_SET_BYTECODE_PTR we would set a PC value in there and implement a translation step in vm_loop(). All of the literal tables would still have to sit in memory, but it would allow for paging of the bytecode itself.
Unfortunately, due to things that I've mentioned above I see no clear path to achieving paging of literal tables along with bytecode. It is quite likely that there are some things in Jerryscript that I have overlooked when trying to wrap my head around this, and I would appreciate any feedback on the approach and roadblocks I've mentioned here, as well as thoughts from the Jerryscript team on a feature of this nature.
Thank you

I would like to understand more this use case before suggesting any changes. May I have some questions:

am I understand correctly that byte code is not accessible from ROM, it needs to be loaded into RAM in your system (this is usually not an issue on ARM, we can just access data from ROM)
do you plan to translate a virtual program counter to a page for every executed instruction (wouldn't that be slow?)
do you plan this to be a compile time enabled feature?

Personally I would probably mark those points in the where translating is possible (e.g. jumps, add a byte code to mark the end of a page for sequential execution), and would leave the current implementation. This would eliminate the handling of byte code splitting (when a byte code spans across two pages), and would do the costly translation when necessary

am I understand correctly that byte code is not accessible from ROM, it needs to be loaded into RAM in your system (this is usually not an issue on ARM, we can just access data from ROM)

This is correct, these snapshots need to be loaded out of external flash and it is expensive to be reading from constantly. Paging allows for us to do a single bulk read out of flash into RAM per page, rather than having to reach to external flash on a per-instruction basis.

do you plan to translate a virtual program counter to a page for every executed instruction (wouldn't that be slow?)

Yes, that is the idea. A performance hit is expected, but when not at a page boundary PC translation should be very cheap. The trade off here is that we can enable larger applications and make a best-effort guarantee of RAM available to running apps.

do you plan this to be a compile time enabled feature?

Yes, part of the goal would be to have support enabled at Jerryscript compile time.

Personally I would probably mark those points in the where translating is possible (e.g. jumps, add a byte code to mark the end of a page for sequential execution), and would leave the current implementation.

This is a very interesting approach. It definitely simplifies paging and impact on the interpreter as well. One shortcoming that jumps out to me immediately is that it becomes the snapshot itself dictating page size rather than the interpreter / underlying system. While this probably isn't a massive concern, it potentially locks us into long-term support of these snapshots.

This would eliminate the handling of byte code splitting (when a byte code spans across two pages), and would do the costly translation when necessary

I am looking through vm_loop() and I am not so sure that I follow why bytecode splitting is an issue. Is there any chance that you could elaborate on this?
In addition to the Instruction List paging that we are discussing here, do have any thoughts on what might be done about function literal tables and regular expression objects? As I mentioned in my original post, one of the major hu

Thank you for explaining the use case. Currently we support ROM execution only if the whole byte code is addressable. This saves a lot of RAM usage.

Yes, that is the idea. A performance hit is expected, but when not at a page boundary PC translation should be very cheap.

I think this is very important. Do you plan to add a macro which inlines the fast case?

While this probably isn't a massive concern, it potentially locks us into long-term support of these snapshots.

Does snapshots created by third party and you have to load them into flashes with various page sizes? Anyway my idea is a byte_code to byte_code translation, where the original byte code comes from a snapshot, and extra bytes are inserted at the end of each page and jump targets are updated. The result is another byte code which supports a specific page size. You can create multiple of these of course. Even the original byte code could be restored from an updated snapshot if necessary (since the translator inserts only a given byte code which is not used by the parser).

I am looking through vm_loop() and I am not so sure that I follow why bytecode splitting is an issue. Is there any chance that you could elaborate on this?

CBC is a variable length byte code. E.g. when we execute a CBC_EXT_SET_SETTER opcode, first we read an opcode byte, which tells that this is an extended opcode, so we read another opcode byte. Then we read two literal arguments. An argument read is similar, so we read a byte, and if the argument is two byte long we read a second byte. During this process we can encounter a page reload at any time. It feels like we need a lot of checks but the impact might be low. I cannot judge it.

In addition to the Instruction List paging that we are discussing here, do have any thoughts on what might be done about function literal tables and regular expression objects?

If you could mark those functions which has not loaded yet, you probably can defer function loading. Currently the function literal is a two byte compressed pointer, which points to the function in the memory. Somehow you need to mark those functions, which are not yet loaded from the flash (perhaps splitting the address space). Then vm_construct_literal_object could realize that its literal object comes from the flash, and construct the function in a different way.
Theoretically regular expressions could be executed from the flash as well, but their execution engine has not prepared for that yet, so I expect some serious rework first.

Static snapshot was introduced in #2239 which is the correct solution for this problem so IMO, we can finally close this issue.


Typescript version of Burr

Is your feature request related to a problem? Please describe.
Burr is python only.
Describe the solution you'd like
People are asking for typescript.
Describe alternatives you've considered
N/A
Additional context
Please react with an emoji / comment / etc. if this issue speaks to you.

This has significant value but is a sizable undertaking. Some things to think about:

Typing for the State API + how to make that cleaner with typescript (more advanced features should help here)
DB interaction, persisters, etc... TS has different practices as it's a largely FE language. Can we do something smart with next here? Or is this a lower-level concern?
Ditto with tracking -- how do we access the local filesystem?
How do we ensure feature/functionality parity with python (shared test-suite? Best effort for now?)
Generator API

Really is a somewhat complicated port -- it'll be a different API with very little shared code (exception is the telemetry server).


austin only wants to codeown backend

too many emails, so little time
Motivation
With the rewrite to v4 and my severe lack of time, I no longer own any js code.
If other people want to change their placement also, feel free to pile on the bandwagon.

Can you do this on dashboard-v4 instead? main is going to become v3 tomorrow and will be (mostly) irrelevant

Updated in v4 branch


Note: Tesla API access now seems to be blocked on various cloud providers

As of last night, myself and others have been reporting Tesla API timeouts that only seem to occur from cloud providers such as Azure in my case. Looks like Tesla may have enforced some kind of ip blacklist. I'm just creating this issue as a heads up as people are likely to come here wondering why their TeslaMate instance is no longer working.
Personally I have moved my TeslaMate to a local raspberry pi, keeping the database / grafana on Azure and that works again for me. Hope this issue helps any fellow confused TeslaMate users
You might want to add some kind of warning to your site / README.md about this - I hope it's a temporary block but we have no way of knowing

Thanks! How do you run TM on pi and keep the database in the cloud instance?

There are a few different ways, but personally, I added a port mapping 5432:5432 to the database container in docker-compose file to essentially expose PostgreSQL to the host network, be very careful when doing this and ensure you have a firewall in place on the server whitelisted to your home IP address (or wherever the pi is) otherwise anyone can see and get into your database and see all your TeslaMate information which is quite sensitive e.g. locations etc
Then I basically moved the TeslaMate part of the docker-compose out, deleted that particular container on the cloud server, and put it into a new one running on the pi, then all I had to do was change DATABASE_HOST to the cloud server name, and it was all working again.
Please note that this is more dangerous than running everything locally on a pi as you are exposing your database to attacks from the public internet unless you add a ip whitelist to your home ip, hopefully you have a static home ip address!

FWIW: DigitalOcean IP ranges still seems to be fine.

@adriankumpf I wonder if it might be worth pinning this issue in GitHub?
If someone could give me details of what the error message or symptoms are when hosting teslamate on an IP range that's blocked I'll happily update the docs.

FYI, this looks to be affecting more than TeslaMate.

We are having problems with Tesla Mate in AWS, and we are a big Spanish community with Tesla Mate hosted in AWS!

Interesting. How large is your community and what is your use case?

We have +1000 people doing our tutorials and installing Tesla Mate in AWS. We do not have how many people have installed Tesla Mate in AWS, but we are receiving messages about it.

Wow 1000+ people. And the number of users is a multiple of that?

No, not everyone has installed it, but 50+ have Tesla Mate in AWS. We have a tutorial and script for unexperienced users: https://github.com/jonatannietoa/tesla-mate
They only need change passwords.

Have you tried contacting the UK Teslamate group? They are also very active using the instructions from Dave at TeslaEV.co.uk

I am now installing teslamate in another cloud at Digital Ocean. Let me know if you need help with this

I'm having the same issue in Oracle Cloud, the teslamate server lost the connection with the API the 9th September.
Any idea about how to solve it?

Seems only the websocket api is down?

Seems only the websocket api is down?

Could be, but it strange that only happens from cloud providers (Azure, WAS, OCI and GCS).

Is there any option to have teslamate use a Proxy for API Calls? I am also having problems with an instance running on AWS but I don't want to move the actual instance out of AWS. Instead, I'd like to configure it such that it uses a proxy running on a non-blocked server that would then just forward the requests for the AWS instance.
If I read the code correctly, then this is now impossible due to strict certificate checks and no option to configure a (SOCKS, HTTPS, ...) proxy. Should I open a new ticket for this request?

Then I basically moved the TeslaMate part of the docker-compose out, deleted that particular container on the cloud server, and put it into a new one running on the pi, then all I had to do was change DATABASE_HOST to the cloud server name, and it was all working again.

@MattJeanes can you share with us the contents of the "local" docker-compose.yml file? I have trouble understanding how I can connect to a database instance in the cloud.

@Saxifragus for me I'm now doing the same thing (rather than proxying the requests) with the following local docker-compose.yml:
version: "2"
services:
  sshtunnel:
    image: 0fff/alpine-ssh-tunnel:latest
    restart: always
    environment:
      REMOTE_HOST: my-instance-name.eu-west-1.rds.amazonaws.com
      REMOTE_PORT: 5432
      LOCAL_PORT: 5432
      SSH_USER: user
      SSH_HOST: my.bastion.server.at.aws.com
      SSH_PORT: 22
    volumes:
      - ./development.pem:/root/.ssh/id_rsa
    networks:
      - tunnelnet
    ports:
      - "5432:5432"
  teslamate:
    image: teslamate/teslamate:edge
    restart: always
    environment:
      DATABASE_USER: my-database-user
      DATABASE_PASS: my-database-pass
      DATABASE_NAME: my-database-name
      DATABASE_HOST: db
      DISABLE_MQTT: "true"
      VIRTUAL_HOST: teslamate.x.y.z
      TZ: Europe/Berlin
    cap_drop:
      - ALL
    stdin_open: true
    links:
      - sshtunnel:db
    depends_on:
      - sshtunnel
    networks:
      - tunnelnet
networks:
  tunnelnet:

So I'm using a host at aws as a ssh proxy to my rds instance that is not publicly accessible. This whole setup is running on my pi and requests work fine.

@Saxifragus Sure, here is the docker-compose (sensitive information masked of course) from my Raspberry Pi
This section was essentially moved out of the docker-compose on the cloud server with the only difference being the DATABASE_HOST
version: "3"

services:
  teslamate:
    image: teslamate/teslamate
    container_name: teslamate
    environment:
      - DATABASE_USER=teslamate
      - DATABASE_PASS=**redacted**
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=myserver.cloudprovider.net # (or an ip address)
      - DISABLE_MQTT=true
      - TZ=Europe/London
      - LOCALE=en
    cap_drop:
      - all
    ports:
      - 4000:4000
    restart: always

Meanwhile in the server I exposed the PostgreSQL database to the host and firewalled it appropriately to stop attackers on the cloud provider portal:
  postgres:
    image: postgres
    container_name: postgres
    networks:
      network:
        aliases:
        - "postgres.internal"
    ports:
      - 5432:5432 # this is the new bit
    environment:
      - POSTGRES_PASSWORD=**redacted**
    volumes:
      - postgres-data:/var/lib/postgresql/data
    restart: always

Thanks a lot, @0ff and @MattJeanes
I'll try and get this working for me.

TezLab claim to have fixed the third party connection issue, and are looking at the upcoming two factor issue...

GCP is now working again, not sure on AWS, Azure or any of the others.

saw this on my Teslafi account over the weekend (I run both Teslamate locally and TeslaFi for now)
TeslaFi services were interrupted on September 10th for approximately 12 hours due to an issue with Tesla's servers. A temporary solution has been put in place until the issue is resolved.

GCP is now working again, not sure on AWS, Azure or any of the others.

Oracle Cloud is also working again 👍🏻

AWS also working again.
I imagine the upcoming two factor auth will probably break teslamate...

Also working again on Azure now.  As you say if there’s a change to the auth mechanism coming up, could well break again...  if it is using oauth though should hopefully be easy to adapt.

Since everything seems to be working again, including for myself on Azure now - I'll close this issue. Hopefully things continue to work now, although as @adamfd mentioned incoming 2FA will likely require some changes to various apps including TeslaMate

I'm getting a 401 on Google cloud. Is it working for anybody on google platform?

I'm getting a 401 on Google cloud. Is it working for anybody on google platform?

Health check failed for me too :( - Back to Digital Ocean I go! (fingers crossed that still works!)

Indeed - shortly after posting it was working ok on Azure it also started to fail again.  Curious what is going on for them to open it and then block again!

Well it would seem I prematurely closed this issue then!
I'm also seeing issues on Azure, back to my local Raspberry Pi and working again.

AWS back to not working...

What is the current state? Is there anything we can do at the moment? I don't want to run my own hardware, cloud is a must.

Is there a way to specify proxy?

I know all the big hosted API scrapers (TeslaFi, etc) were hit as well then rolled out a "fix" in short order. Any idea what their fix was? Was it a Proxy?

@myi2000
I believe it uses the "finch" client, which doesn't support proxying.
@MostDefiantly
Especially given how quickly the fixes were rolled out, I would expect a proxy of some kind (or a VPN tunnel to another service provider, or reconfiguring their cloud to use different networking routing, etc). I would doubt their fix was anything other than "stop hitting it from a blocklisted IP", whatever form that took.
I debated setting up using a different cloud provider, but realistically I'd expect them to block any provider that started getting popular.

@ctrufan
Thanks for the pointers, yes indeed it is using Finch.  Noticed in Finch doc  there is ability to specify proxy setting to be passed using :conn_opts while defining the :pools (as seen in http.ex).  Not sure how to do specify pool nor it will work even after that due to other issues.

I found it working again with Google Cloud.

Looks like Azure has started working again too.

From October 12th to today, it is still working in Oracle Cloud.
I'm anxious if it won't work again.

still working with Google cloud. Can this issue be closed?


Hard Dependency on CraftTweaker

industrialforegoing-1.12-1.2-46.jar has introduced a hard dependency on CraftTweaker.
[17:35:37] [main/FATAL] [FML]: The following problems were captured during this phase
[17:35:37] [main/ERROR] [FML]: Caught exception from industrialforegoing (java.lang.NoClassDefFoundError: crafttweaker/IAction)

Is this expected?

It wasnt meant to happen.