[webview_flutter] Add loadAssetFile to load html file from local assets

On iOS side, in order to get the asset file's URL via registar, changed initWithMessenger to initWithRegistrar.
On Android side, use "file:///android_asset/flutter_assets/" to load from assets.

Thank you for adding this!

This breaks using Uri.dataFromString().toString() as the initialUrl. Instead of rendering the HTML, it will try to find a filename that matches the resulting string.

Maybe it might be better to have an explicit "initialAsset" field in the Webview widget, instead of overloading the "initialUrl" with extra semantics?

what about the postUrl method?

NSString* key = [_registrar<EMAIL_ADDRESS>NSURL* nsUrl = [[NSBundle mainBundle] URLForResource:key withExtension:nil];
[self.webview loadFileURL:nsUrl allowingReadAccessToURL:[NSURL URLWithString:@"file:///"]];
can solve this problem, but you should modify open source code for your url schema rule. (get _registrar from plugin entrance )

@shaqian Hi! Could you please update this PR so that the Flutter team can review again and eventually merge?

Hi Sebastian, I merged your PR. Thank you!

@ened I think you need to sign the CLA according to googlebot's comment?

@shaqian already signed, up to whoever merges the PR to manually confirm it.

Thanks for PR. Can't wait for this to be merged.
I'd love to bring one more similar use case that seems to be quite common and doesn't play well with this PR – opening local files in WebView which are not assets. I have two apps where I download files (PDF, Images, HTMLs) first into app's folder and then try to display.
The case is very similar (opening local file), and this PR assumes that all file:// URLs are assets, which is not always true.
Would it be possible to incorporate this use case to this PR as well?

I'd recommend to contain two methods loadAsset and loadFile to accommodate the two cases mentioned by @divan
The naming is by analogy to Image.asset and Image.file.
Just my 2 cents.

Can this be merged, please? We really need it.

Do you have any idea of a release date ?

Please merge this ASAP! This is a killer feature

@shaqian This is a nice feature to have inside the Webview. Nice work. Can't wait to be merged.

Some thoughts after wanting to use something similar in https://github.com/flutter/plugins/pull/1951/commits/3b7b0e2bcdc72834a4e30f087880cc952411eb90 :
It may be useful to allow loading assets not just as the main url but also for resources referenced by that page (e.g how would a page include an image that's a Flutter asset).
We can achieve this by supporting an asset url scheme (flutter_asset:// ?), if we do that then I don't think we'd want a loadAssetFile method, you'd just loadUrl. Though I'm also on the fence regarding having the webview_flutter plugin support such a URL scheme directly vs. doing https://github.com/flutter/flutter/issues/27896 and providing the users with full flexibility.

@amirh Actually I do this:

(e.g how would a page include an image that's a Flutter asset).

by just doing something like:
WebView(
  initialUrl: 'assets/katex/index.html',
  javascriptMode: JavascriptMode.unrestricted,
  onWebViewCreated: (WebViewController webViewController) async {
    controller = webViewController;
  },
  onPageFinished: (str) async {
    loadLatex();
  },
)

<html>
<head>
    <script src="./katex.js"></script>
</head>
<body></body>
</html>

Where both index.html and katex.js are both in the same sub-folder in the assets

Meanwhile this PR is merged, I used @shaqian 's repo, which I had to modify a little bit to be compatible with latest official webview plugin.
I also had to add a line in the FlutterWebView construtor of the FlutterWebView.java file
//Tells Android WebView to allow js script to load local files using "file://" protocol.
webView.getSettings().setAllowFileAccessFromFileURLs(true);

I didn't yet took the time to do the same for iOS.
I hope this whole topic will be merge soon...

On iOS side, in order to get the asset file's URL via registar, changed initWithMessenger to initWithRegistrar.
On Android side, use "file:///android_asset/flutter_assets/" to load from assets.

How to render image using HTML to create Flutter-iOS-App?
https://stackoverflow.com/questions/57702924/how-to-render-image-using-html-css-using-flutter-to-create-ios-app

Is there anything I could do to speed up the merging?

To be abble to load a local, non-asset file on iOS, you need :

Set  [wkWebView.configuration.preferences setValue:@TRUE forKey:@"allowFileAccessFromFileURLs"];
add "file://" to your file's path
pass the closest containing folder to allowingReadAccessToURL (pass 'file:///' doens't work for me)
all the files the html will need access to needs to be in this folder, not outside.

I really hope this local loading feature will be merge...

Any updates?
Can't wait to be merged.

Hi everyone. Any show blocker for this to be merged? Any help needed?

I am working on a app that depends on this feature.
please merge

0.3.18+1, local asset support + query string, flutter: ">=1.5.0 <2.0.0"
  webview_flutter:
    git:
      url: https://github.com/amondnet/plugins.git
      path: packages/webview_flutter
      ref: master

@cetorres How did you get the path to the directory containing the HTML and all linked files to copy? I don't see a way to get the path to files or directories in the assets folder. It looks like we have to reference each file directly with something like rootBundle.load(), which will require copying every file (HTML, CSS, images, JS) one by one in code from assets bundle to the documents directory.

@timeuser The path to copy the HTMLs and all the support files I get like this:
if (Platform.isIOS) {
      _htmlPath = (await getApplicationDocumentsDirectory()).path;
    } else {
      _htmlPath = (await getApplicationSupportDirectory()).path;
    }

The path where my html.zip file starts is the asset folder I set on pubspec.yaml as assets/. My html.zip is inside that folder originally. Then I copy and unzip this file to the _htmlPath above.
I'm using these libs for that:
archive: ^2.0.11
path_provider: ^1.5.1
Here's my function where I do this:
// Copy HTML.ZIP from assets to documents/support folder
  // only on first time app runs.
  void copyHtmlArchiveFromAssetToDocumentsFolder() async {
    try {
      Directory docsDir;
      if (Platform.isIOS) {
        docsDir = await getApplicationDocumentsDirectory();
      } else {
        docsDir = await getApplicationSupportDirectory();
      }
      String path = docsDir.path;
      String filename = 'html.zip';
      File okFile = File('$path/ok.txt');

      // If archive is already on the docsDir don't go further
      if (okFile.existsSync()) {
        print('HTML content already on the folder $_htmlPath');
        _contentOk = true;
        setState(() => {});
        return;
      }

      // Copy the HTML zip file to the documents path
      File archiveFile = File('$path/$filename');
      var bytes = await rootBundle.load("assets/$filename");
      final buffer = bytes.buffer;
      var archiveBytes = await archiveFile.writeAsBytes(buffer.asUint8List(bytes.offsetInBytes, bytes.lengthInBytes));
      var bytes2 = archiveBytes.readAsBytesSync();
      var archive = ZipDecoder().decodeBytes(bytes2);

      // Unzip the HTML zip into the documents path
      for (var file in archive) {
        var filename = '$path/${file.name}';
        if (file.isFile) {
          var outFile = File(filename);
          outFile = await outFile.create(recursive: true);
          await outFile.writeAsBytes(file.content);
        }
      }

      // Save ok file
      okFile.createSync();
      print('Created ok file.');

      // Delete archive file
      archiveFile.deleteSync();
      print('Deleted $filename file.');

      // Set content ok
      _contentOk = true;
      print('HTML content copied and unzipped to the folder: $_htmlPath');
      setState(() => {});
    } on Exception catch (e) {
      _loadingMessage = 'Error on processing HTML content. ${e.toString()}';
      print(_loadingMessage);
      setState(() => {});
    }
  }

load asset file or local file
  webview_flutter:
    git:
      url: https://github.com/asjqkkkk/plugins.git
      path: packages/webview_flutter
      ref: webview

Assetfiles
    WebView(
      onWebViewCreated: (WebViewController controller) {
        final url = 'assets/index.html';
        controller.loadAssetHtmlFile(url);
      },
      javascriptMode: JavascriptMode.unrestricted,
    );

Localfiles
    WebView(
      onWebViewCreated: (WebViewController controller) {
        controller.loadLocalHtmlFile(filePath)
      },
      javascriptMode: JavascriptMode.unrestricted,
    );

  Future<void> downloadFile(String url) async {
    Dio dio = Dio();
    String path = (await getApplicationDocumentsDirectory()).path;
    String fileName=url.substring(url.lastIndexOf("/")+1);
    await Dio().download(url, '$path/$fileName',onReceiveProgress: (rec,total){
      progress = ((rec/total) * 100).floor();
      if(progress >= 100){
        filePath= '$path/$fileName';
      }
      setState(() {});
    });
  }

Please @amirh approve the PR from @asjqkkkk. That's a very important feature that should be added to the package.
Thank you.

When will it be released

Any ETA for when will this pull request be merged?
Please we need this feature.

I'm waiting for this PR too. When will it be released?

Would love to see this merged!
Also, anyone know why it doesn't seem to work when referencing an asset in a subdirectory?
Example:
Doesn't work

Works

Also, does anyone a know a way to have clear whatever asset cache the webview pulls from?
As of right now, if I make a change to an external file that I reference from in my html file (ex: styles.css), I need to stop the app and start it again from scratch to get the changes to take effect 😬

If anyone is looking for a more up-to-date version of these changes, here's a branch based on webview_flutter: 1.0.7
  webview_flutter:
    git:
      url: https://github.com/jamesdixon/plugins
      path: packages/webview_flutter
      ref: local-asset-support

I'm going to close the PR because the CLA is not signed. Feel free to ping me when the CLA is signed and I'll re-open the PR. Or you can open a new PR after signing the CLA.

I'm going to close the PR because the CLA is not signed. Feel free to ping me when the CLA is signed and I'll re-open the PR. Or you can open a new PR after signing the CLA.

file://

Best solution.

I believe I solved the problem on iOS (and working on Android as well)!
On iOS is not possible to read the HTML files from the assets folder like in Android. So, my solution was this. Once the app runs for the first time, I copied the HTML files from the asset folder to the app Documents folder (getApplicationDocumentsDirectory() from the path_provider package) and made the initialUrl the following with the var '_htmlPath' being the Documents folder

WebView(
initialUrl: 'file://$_htmlPath/index.html',
...
),
And it worked!
For Android I just changed to use the Application Support Directory (getApplicationSupportDirectory()) and set to the same '_htmlPath' variable and it also worked.
The key is that the webview on iOS cannot find or read the HTML files inside the assets folder. And in this way it finds the files and the whole structure you may have for your HTMLs, like JS, CSS, images etc. Make sure to copy the HTML files (and support files) on first time app runs to those folders. Then it will work for both iOS and Android.
I tested with the latest release version of webview_flutter at this time: ^0.3.19+5

@cetorres does this approach still work for you on iOS?


chore(main): release 1.0.3

:robot: I have created a release beep boop
1.0.3 (2024-10-30)
Bug Fixes

function names had wrong names (0f3b842)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.0.3
:sunflower:


AduroSmart ERIA Smart Wireless Dimming Switch Remote

https://www.amazon.com/gp/product/B07HJHJWGT/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1
Is this enough info to create a quirk for this remote? If not let me know and I can look for more logs.  I'm @ tube on discord.
[zigpy.endpoint] [0x1d0f:1] Discovered endpoint information: <SimpleDescriptor endpoint=1 profile=260 device_type=2080 device_version=2 input_clusters=[0, 3, 8, 4096, 64716] output_clusters=[3, 4, 6, 8, 4096, 64716]>

On:
2019-05-03 09:33:43 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0006] ZCL request 0x0101: []
2019-05-03 09:33:43 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0006] No handler for cluster command 1
2019-05-03 09:33:43 WARNING (MainThread) [zigpy.zcl] Unknown cluster-specific command 0
2019-05-03 09:33:43 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] ZCL request 0x0100: b'\x00\x00\x00'
2019-05-03 09:33:43 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] No handler for cluster command 0

Up:
2019-05-03 09:32:44 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0008] ZCL request 0x0102: [0, 16, 9]
2019-05-03 09:32:44 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0008] No handler for cluster command 2
2019-05-03 09:32:44 WARNING (MainThread) [zigpy.zcl] Unknown cluster-specific command 0
2019-05-03 09:32:44 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] ZCL request 0x0100: b'\x00\x01\x00'
2019-05-03 09:32:44 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] No handler for cluster command 0

Down:
2019-05-03 09:34:52 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0008] ZCL request 0x0102: [1, 16, 9]
2019-05-03 09:34:52 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0008] No handler for cluster command 2
2019-05-03 09:34:52 WARNING (MainThread) [zigpy.zcl] Unknown cluster-specific command 0
2019-05-03 09:34:52 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] ZCL request 0x0100: b'\x00\x02\x00'
2019-05-03 09:34:52 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] No handler for cluster command 0

Off:
2019-05-03 09:35:15 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0006] ZCL request 0x0100: []
2019-05-03 09:35:15 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0x0006] No handler for cluster command 0
2019-05-03 09:35:15 WARNING (MainThread) [zigpy.zcl] Unknown cluster-specific command 0
2019-05-03 09:35:15 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] ZCL request 0x0100: b'\x00\x03\x00'
2019-05-03 09:35:15 DEBUG (MainThread) [zigpy.zcl] [0x1d0f:1:0xfccc] No handler for cluster command 0

I just pulled this out again and noticed that I get a binary sensor that shows open/closed based on the on or off button press:

Also I am getting zha_events for the open and close buttons, just not the up and down:
Event 1 fired 10:53 PM:
{
    "event_type": "zha_event",
    "data": {
        "unique_id": "0x1d0f:1:0x0006",
        "device_ieee": "00:15:8d:00:01:98:d2:cf",
        "command": "off",
        "args": []
    },
    "origin": "LOCAL",
    "time_fired": "2019-05-16T02:53:29.728295+00:00",
    "context": {
        "id": "d42550a80b4948efb03a6a26925c2153",
        "parent_id": null,
        "user_id": null
    }
}
Event 0 fired 10:53 PM:
{
    "event_type": "zha_event",
    "data": {
        "unique_id": "0x1d0f:1:0x0006",
        "device_ieee": "00:15:8d:00:01:98:d2:cf",
        "command": "on",
        "args": []
    },
    "origin": "LOCAL",
    "time_fired": "2019-05-16T02:53:28.748698+00:00",
    "context": {
        "id": "f297bc16fa3b425296c3d90cff2aa487",
        "parent_id": null,
        "user_id": null
    }
}

this looks like it should just work. cluster 8 is level control and there should be events for that by default if the device actually uses the cluster. I would assume up/down are for level? Your posted traffic even shows traffic on cluster 8. can you try removing and re-pairing the device?

@tube0013 I picked one up... should be in tomorrow and i'll mess w/ it.

Cool - gotta love 1 day shipping.
I was home today so just tried to re-pair the remote, and get the same result.  the On and Off buttons work as expected, but the up/down just show in the zigpy debug log, not as events.

@tube0013 https://github.com/dmulcahey/zha-device-handlers/commit/94b5fef6405573c22712b83b4841846a83e3c2bb
buttons work now... gotta look into this more. This shouldn't be necessary from what I see.

Yea weird I’ll give this a try when I get a few. Thank you.

will be in HA .95


Can't use "." dot char in last URL variable

Hi !
Thank you for your work here. Still trying to migrate from FOSRESTBundle 2.x to 3.x
Currently having an issue with a variable in my URL. Here it is:
 @Get("/myjob/{job}/subjob/{sub}")
Using your bundle to generate the route, is not allowing for {sub} to have a "." according to the regex generated (eg. "test.toto"):
[^\/\\.]++
Any idea why ? Not the same regex is generated for the variable {job}:
[^\/]++ (and it's fine for this one)
Thank you !
EDIT: no issue with FOSRESTBundle 2.x (I can use "." in URL variable at the end of an URL).

@blackarcanis the GET annotation is not handled by this bundle. This bundle handles the type: rest routes and generate automatic routes per Action function. @Get should be handled by symfony route generator. And the requirements you should be able to be set there by provide the requirements option to your GET function: https://symfony.com/doc/current/routing.html#parameters-validation

@blackarcanis the GET annotation is not handled by this bundle. This bundle handles the type: rest routes and generate automatic routes per Action function. @Get should be handled by symfony route generator. And the requirements you should be able to be set there by provide the requirements option to your GET function: https://symfony.com/doc/current/routing.html#parameters-validation

@alexander-schranz Thank you. And yes you are right, I will use @Route annotation instead with the good requirements.

@alexander-schranz Thank you. And yes you are right, I will use @Route annotation instead with the good requirements.


Modifying some titles in the UI

Could you please?
 Is it intentional to leave Step 1 title as is?
Please check. Thanks.

@FIN-JBarile Many thanks for having addressed this issue; I can close it now.
To answer your question: I did not mention Step 1 in the present issue, because when #147 and #148 will be addressed, all the steps of http://fin-casey.github.io/wizard.html will need to be followed by the user, except Step 1.


Upgrade to 0.4.8 table name exceeds 64 characters

I'm getting an error
"Identifier name 'craft_supertablecontent_46_sectionbuttons_elementId_locale_unq_idx' is too long"
It looks like it's this file m150901_144609_superTable_fixForContentTables.php which is running the update and creating these tables.
It seems that in MySQL there's a limit of 64 characters for table names, so this fails as it's too long, is there a work around or fix for this?
Thanks
Dave

Have you had a look at https://github.com/engram-design/SuperTable/wiki/Release-Notes#updating-from-034-to-035 which describes this issue?
To fix this error, you'll have to manually update your table name from craft_supertablecontent_sectionbuttons to craft_supertablecontent_46_sectionbuttons.

Wouldn't  it be a better solution to not require users to manually update the table names, ie rather than have a prefix of supertablecontent maybe change it to stc or something equally short, which would reduce the change of this issue?

Yes, of course - but I'm hesitant to make this change again in case we come across this same issue again. Say a user has a field with such a long name, that even changing supertablecontent to stc won't make a difference.
Having said that, I've been pondering this for some time, and might even make it to the next release. Will just spend some time testing this.

Awesome thanks for your consideration :)

No problem - you'll still likely need to manually update the table name for now. Bare in mind, this is a once-off issue for upgrading.


Add compact density for the Search component

From a developer perspective we need to implement ThemeProvider and update the styled components to use the passed theme before we have support for compact values in this component.

As discussed in meeting with the team, all US on epic compact is closed if they do not have any additional information.


'number' export conflicts with typescript default type 'number'

Describe the bug
The 'number' export in starknet has the same name as the typescript built-in 'number' type, which is confusing both for me and my code editor.
Expected behavior
Starknet.js should probably not use such a common namespace for an export.

Version: Present in develop branch as of Feb 16 2023.

NB: the same applies to 'json', though that doesn't conflict the JS object which is capitalised, and probably some other ones.
NB2: I realise this is fairly debatable but I've had to alias the import or just use a top-level starknet import, and it seems slightly inconvenient.

This has been the issue since the first day of starknet.js . I have pushed numerous times to go away from numbers namespace. It is surely to be fixed with v5. Do you have any suggestion as to what it can be called?

Rename to just num ?

I can work on this


Use of vendor-specific Fullscreen API causes TypeScript errors

TypeScript 3.1 removed several vendor-specific types, including the vendor prefixed fullscreen API (webkitIsFullScreen, webkitRequestFullscreen, etc). This is causing a number of TypeScript errors because those are no longer defined.
The recommended fix is to define them locally, as needed to meet minimum support browsers.

yes, it's would be nice to have this ! We could create a types/fullscreen.d.ts file and put all the vendor-specific types.

@fredj I have started working this, but I'm unable to assign it to myself in GitHub. Can you assign it?
And how should we approach splitting type files? I started creating types/dom.d.ts so the file name would correspond to where the non-vendor API is defined in the TypeScript repo, but I can organize them by browser API as well.
Tagging @tschaub in case he has design input on this.

I've no strong opinion on the filename. Just start with types/dom.d.ts, we can change it if needed


Fix find_files() job argument + more

This PR contains a slew of changes that I think should be in the next release. It got a bit more varied than I originally intended, let me know if you want me to break it up.
Summary:

Fix find_files() behavior with job argument (fixes #1122)

Was passing along job args to each set()/get() call internally, but was also passing in a cfg arg that was hardcoded to self.cfg, and that always takes precedence over the job.
I have a longer-term fix in the works that will refactor basic schema access into a separate class (which we discussed a while back), and that will let us remove the cfg arguments and make bugs like this less likely to occur in the future

Adds reports/final manifest to chip.archive()
Export custom Sphinx :keypath: directive

Could be useful for documenting dynamic modules in a third-party collection

Tweak how libraries are imported when calling read_manifest() with job arg

Puts them under history, <jobname>, library, <libname> instead of top-level libraries, which is more consistent with record_history()
Might want to move away from this going forward to reduce manifest size, but then would need a way to make sure that different jobs actually used the same library config for proper provenance

Small misc. tweaks

Looks good!


Use #[serde(rename = "_id")] field where appropriate

This should reduce the amount of indexes and would guarantee that our insert logic works.
Collections that come to mind are:

MilestoneDocument::milestone_id, so that we don't have to touch as many queries)
BlockDocument::block_id
OutputDocument::output_id (more tricky, because it's currently only in the metadata)

It looks like we have to do this, because the indexes sometimes cannot keep up with insert_many. I've run into problems with this using Hornet's private tangle.


[c2][encoder] Add p010 format support in encoder component

The same with https://github.com/projectceladon/MediaSDK_C2/pull/149, Closed and couldn't be reopened(force push)
Format: HAL_PIXEL_FORMAT_YCBCR_P010
android.mediav2.cts.CodecEncoderSurfaceTest#testSimpleEncodeFromSurface [210_c2.intel.vp9.encoder_video/x-vnd.on2.vp9_c2.android.vp9.decoder_video/ x-vnd.on2.vp9_512kbps_30fps_surfaceabgr2101010_tonemapno_persistentsurface]
Format: HAL_PIXEL_FORMAT_P010_INTEL
android.mediav2.cts.CodecEncoderSurfaceTest#testSimpleEncodeFromSurface[ 208_c2.intel.vp9.encoder_video/x-vnd.on2.vp9_c2.intel.vp9.decoder_video/ x-vnd.on2.vp9_512kbps_30fps_surfaceabgr2101010_tonemapno_persistentsurface]
Tracked-On: OAM-120369

http://<IP_ADDRESS>/Test_Results_share/2024.06.06_17.04.29/test_result_failures_suite.html
Test result for this PR.

Android CI has started Engineering Build for this issue ,Please check the linked Tracked-On issue/Android CI Web  for more details.

SUCCESS: Android CI has completed Engineering Build for this issue.Please check the linked Tracked-On issue/Android CI Web  for more details.

Android CI has started MERGE Build for this pr ,Please check the linked Tracked-On issue/Android CI Web  for more details.


libtcmu: supporting passed-in FDs

@famz mentions that qemu prefers to avoid being able to open files by itself for security & least privilege reasons. So can tcmu-runner open files and pass them to the handler?
We're now talking in #15 about libtcmu communicating with tcmu-runner to provide a unified list of handlers to LIO config tools like targetcli, but the intention is that this is optional. Right now using libtcmu does not require DBus, or that tcmu-runner is present & running. @os12 & co's use of libtcmu does not want DBus or tcmu-runner (they're running a dedicated app in a container, I'm guessing.)
This conflicts with QEMU using libtcmu and wanting somebody in a separate process to open fds for it. Whether this IPC uses DBus or something else, this means that the other process (tcmu-runner or something else) is not optional.
So @famz I guess what I'm saying is that I think this is actually kind of hard to do without flipping everything upside down. I'm wondering if there's any other way, maybe like a little qemu-tcmu-helper app or something, that might work with only small modifications or additions to libtcmu.

Above anything else, I'd like to first clarify that I think no matter what to add to or change in libtcmu, it will stay backward compatible, i.e. other processes are not hard requirement. In other words, even a libtcmu consumer like QEMU would want that feature to be optional rather than mandatory. The FD passing thing in QEMU has always been optional: a QEMU that is not supervised (confined) by libvirt just opens any images directly.
That said, current libtcmu is of course in a very nice shape for QEMU to implement the handler, whic I can tell from what I've prototyped so far. The next step is probably solving the handler discovery (targetcli) problem, and I consider this FD requirement relatively less urgent. (Though I do believe it will be a desired feature sooner or later, I think it is okay to leave it something in mind when we go along with the more important aspects of the picture.) And you are right we can always make a little helper that is specific for QEMU to do it, if it turns out this is not a common requirement among other handlers.


Repeat is working only once when using player in flatlist

hi i am trying to repeat my current video multiple times currently I'm using repeat prop but its working only on one video i had 5 videos in my faltlist and played one at a time
expected behavior

video should play continously after video finished

please help

@Kadir-prog
Did you implemented?

I have the same problem repeat doesn't work

I have the same problem repeat doesn't work

I have fixed it.
import React, { Component } from 'react';
import { View } from 'react-native';
import VLCPlayer from 'react-native-vlc-player';
class YourComponent extends Component {
constructor(props) {
super(props);
this.state = {
// Your existing state variables
// ...
key: 1, // Add a key to force remounting of the VLCPlayer component
};
}
onEnded() {
// Seek to the beginning
this.playerRef.seek(0);
// Use setTimeout to ensure that seeking is complete before remounting the component
setTimeout(() => {
  // Increment the key to force remounting of the VLCPlayer component
  this.setState((prevState) => ({ key: prevState.key + 1 }));
}, 100);

}
render() {
return (

{/* Force remounting by changing the key */}
<VLCPlayer
key={this.state.key}
style={{
width: this.state.width,
height: this.state.Fullscreen
? this.state.orientation_change_height
: '100%',
}}
autoplay={true}
videoAspectRatio="16:9"
resizeMode="fill"
muted={this.state.muted}
repeat={true}
ref={(ref) => (this.playerRef = ref)}
paused={this.state.paused}
onProgress={this.progress}
onEnd={this.onEnded.bind(this)}
onBuffering={this.onBuffering.bind(this)}
onError={this._onError}
onStopped={this.onStopped.bind(this)}
onPlaying={this.onPlaying.bind(this)}
onPaused={this.onPaused.bind(this)}
onLoad={this.load}
source={{
uri: this.state.video_uri_path,
initType: 2,
initOptions: ['--rtsp-tcp', '--no-stats'],
}}
/>

);
}
}
export default YourComponent;


Roll engine 60406ad9fac9..d250375fa6bc (1 commits)

git@github.com:flutter/engine.git/compare/60406ad9fac9...d250375fa6bc
git log 60406ad9fac9..d250375fa6bc --no-merges --oneline
2019-09-02<EMAIL_ADDRESS>Roll fuchsia/sdk/core/linux-amd64 from iV65h... to 0qRbW... (flutter/engine#11823)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Auto-roller completed checks. About to merge.


Create Users submissions table

This will require someone with Supabase access to create the table and migration.
Details

[x] Create a table for user submissions
[ ] Create a database.js funciton to upvote the submitted repo
[ ] Check if the repo already exist in the DB before adding.

Question
Should the user still be associated to the submission?
We will need to wait on https://github.com/open-sauced/hot/pull/122

This is handled by https://github.com/open-sauced/api.opensauced.pizza/issues/5 and the table structure is added in there


Add Pi Zero Support.

Please add support for the Pi Zero.

I think it should run on the Zero. I did not try it though. What errors are you experiencing?

While trying to install it, there was this message:

What do you get when you run the following command?
uname -a

That's what I get:
Linux raspberrypi 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux

Hmmm ... it seems the Zero is running on ARMv6. Just like the the Pi 1. Unfortunately, Electron (the browser frame on which MagicMirror relies) does not support ARMv6. You can install MagicMirror² and just use the serveronly method, but you would need to setup a browser in kiosk mode yourself. Which is tricky on the ARMv6 platform.

I successfully installed it on a Zero.
I had to get the Electron build for the arm processor i'm using. Its available now.

@kapsolas How did you install electron, simply using NPM? Or did you need to manually compile?

To be honest, I don't remember. I tried a few things before i got it. I did end up though on the electron site where I downloaded from there an arm build. Think this was the one that worked.

Ok, then I need to het me a Pi zero to test it. Till then I can't add support. Thanks for the info!

No worries!

We probably should close this issue, as it was solved by commit af279df5c9845b3063d906b441ddcddef9a4493c.

can you make a one-line command that makes the pi zero w work like the one that is only compatible with pi 2 and 3 or can you make it easier for us to understand server only please
Thanks


Fix coverage data uploads, update comment.yml workflow to fail open.

First, update the main-branch task to implement what @yorickdowne attempted in https://github.com/eth-educators/ethstaker-deposit-cli/pull/128
Instead of skipping the comment job, it simply succeeds early:

Second, fix the data uploads which inexplicably stopped uploading hidden files without the include-hidden-files flag.
Finally, set if-no-files-found: error so that the test jobs fail if no coverage report is uploaded- otherwise, because the main-branch task fails open, we may see false negatives, which we really don't want.
A version bump for github-script is included out of fastidiousness.

Thanks for this!


[FLINK-26588][docs]Translate the new CAST documentation to Chinese

What is the purpose of the change
Translate the new CAST documentation to Chinese
Brief change log

Adjust some lines in the docs/content.zh/docs/dev/table/types.md to ensure that this page is consistent with the English version.
Translate the new CAST documentation to Chinese.

Verifying this change
Please make sure both new and modified tests in this PR follows the conventions defined in our code quality guide: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluster with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no) no
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no
The serializers: (yes / no / don't know) no
The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
The S3 file system connector: (yes / no / don't know) no

Documentation

Does this pull request introduce a new feature? (yes / no) no
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Hi, @RocMarshal ,cound you help me to review this PR? :-)

Hi,@RocMarshal , could you help to review this PR?:-)

Hi,@fsk119 would you mind help to review this?

Sorry for the late response. I will review it soon..

Could you share the screen snapshot about the doc you modified?

Could you share the screen snapshot about the doc you modified?

Sure,Thanks for  reply!
The section I translate is the Casting part:
Chinese Version:

And the English version is:

The url is http://localhost:1313/flink/flink-docs-master/zh/docs/dev/table/types/#cast-方法

The CI test fails. Could you rebase to the latest master and trigger the test again?

The CI test fails. Could you rebase to the latest master and trigger the test again?

Okay,I will try to rebase

@flinkbot

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure

https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=35475&view=results

@flinkbot run azure

https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=35475&view=results

@fsk119 hi,not sure why this failed?Is this because some azure resource problem?

@flinkbot run azure

https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=35475&view=results

@fsk119 hi,not sure why this failed?Is this because some azure resource problem?

The CI test faild because of some 'Test - finegrained_resource_management'? Not sure what that means.
Should I rebase from master again?

@ChengkaiYang2022 I think we should make a try. Seems the CI is not stable..

@ChengkaiYang2022 I think we should make a try. Seems the CI is not stable..

Okay I will rebase again ASAP

@flinkbot run azure

CI test passed.link

@ChengkaiYang2022 Could you also open a backport PR for branch release-1.15 ?

@ChengkaiYang2022 Could you also open a backport PR for branch release-1.15 ?

Okay I will try to that.


fix(LRU): throw error if capacity is not a finite positive integer

Fixes: https://github.com/Yomguithereal/mnemonist/issues/165

Thanks @trivikr. Merging right now.


Can't fetch the exchange rates from BTC to any currency

Describe the bug
When the target_currency sets to 'BTC' in fetch_exchange_rates('BTC', ['USD']) it shows KeyError.
As the key which  is accessed and isn't found in the rates_select['BTC'].
Expected behavior
File "service_calls.py", line 512, in fetch_exchange_rates     rate_btc = rates_select['BTC'] KeyError: 'BTC'
Desktop

OS: [Ubuntu]
Browser [Firefox]
Version [18.04 LTS]

I am working on it.

Closed by #71


Custom Model Setup

Hello guys, I am new to these libraries, I have problems with the C# sharp file to config the custom model, probably I have set up bad the Anchors, Strides, and other stuff cause I did not understand how to set up those values.
This is the Class that extends the abstract Class YoloModel and I will load my model as file:
public class Class1 : YoloModel
{
public override int Width { get; set; } = 640;
    public override int Height { get; set; } = 640;

    public override int Depth { get; set; } = 3;

    public override int Dimensions { get; set; } = 10;

    public override int[] Strides { get; set; } = new int[3] { 8, 16, 32 };

    public override int[][][] Anchors { get; set; } = new int[3][][]
    {
        new int[3][]
        {
            new int[2] { 10, 13 },
            new int[2] { 16, 30 },
            new int[2] { 33, 23 }
        },
        new int[3][]
        {
            new int[2] { 30, 61 },
            new int[2] { 62, 45 },
            new int[2] { 59, 119 }
        },
        new int[3][]
        {
            new int[2] { 116, 90 },
            new int[2] { 156, 198 },
            new int[2] { 373, 326 }
        }
    };

    public override int[] Shapes { get; set; } = new int[3] { 80, 40, 20 };

    public override float Confidence { get; set; } = 0.2f;

    public override float MulConfidence { get; set; } = 0.25f;

    public override float Overlap { get; set; } = 0.45f;

    public override string[] Outputs { get; set; } = new string[1] { "output" };

    public override List<YoloLabel> Labels { get; set; } = new List<YoloLabel>
    {
        new YoloLabel
        {
            Id = 1,
            Name = "c22_ok"
        },
        new YoloLabel
        {
            Id = 2,
            Name = "c22_wrong"
        },
        new YoloLabel
        {
            Id = 3,
            Name = "c23_ok"
        },
        new YoloLabel
        {
            Id = 4,
            Name = "c23_wrong"
        }
    };

    public override bool UseDetect { get; set; } = true;

}

Your stride is going to be 8,16,32 shapes are gonna be 80,40,20  and dimensions are gonna be how many Labels you have +5

I didn't understand why those values but thank you so much for helping me.


Update for torchtext 0.9.1 with legacy folder

Some temporary fixes to make the code of chapter 5 work with the updated versions torchtext 0.9.1 and torch 1.8.1:
1.) Install current versions for torchtext and torch
2.) Changed import of torchtext.data to torchtext.legacy.data
3.) Changed call for spacy tokenizer as already mentioned in #55
4.) Some reformatting
This is just a temporary fix.
Still to do:
1.) Replace legacy code parts (Field, TabularDataset etc.) with torch.utils.data's Dataset/Dataloader
2.) Check other chapters for inconsistencies/conflicts regarding upgrade to torch 1.8.1 &  then update reqirements.txt

Thanks, Marcus! :)

Hi Ian!
Hope you are doing good!
Could you please merge my PR:
https://github.com/falloutdurham/beginners-pytorch-deep-learning/pull/63
The current version of chaper5.ipynb does not open properly due to some
changes to the meta data I made.
Thanks!
Have a nice weekend!
Best, Marcus
Am Di., 30. März 2021 um 14:19 Uhr schrieb Ian Pointer <
@.***>:

Thanks, Marcus! :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/falloutdurham/beginners-pytorch-deep-learning/pull/60#issuecomment-810174260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFANAKMTRBNSRZMM2W7CZDLTGG6T5ANCNFSM42BVSACQ
.


Error: Container element not found

Wavesurfer.js version(s):
1.1.10
Browser version(s):
Chrome v66.0.3359.139
Code needed to reproduce the issue:
Index.js

wavesurfer example 1: basic

click the auto-generated waveform to seek to the clicked spot and start/pause/resume playback

main.js
// create wavesurfer object
wavesurfer = WaveSurfer.create({
  container: '#waveform'
});

//load audio file
wavesurfer.load("https://ia800301.us.archive.org/15/items/fire_and_ice_librivox/fire_and_ice_frost_apc_64kb.mp3"); // load audio

Error
Uncaught Error: Container element not found     at Object.init (VM126 wavesurfer.min.js:4)     at Object.a.create (VM126 wavesurfer.min.js:4)     at VM127 main.js:2
I'm really stuck, just followed docs and this https://codepen.io/LBPSlava/pen/rLJoPG. Any help would be appreciated. Thanks

@torinberger you're using an ancient version of wavesurfer. Please try 2.0.5 or newer.

I just tried with version 2.0.5, from this cdn: https://cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/2.0.5/wavesurfer.min.js
Still get the same error

You shall define the div before the js script that initializes the object from the container.
This example can work, regardless of that you may find a CORS problem to solve.

You shall define the waveform div before the js script that initializes the object from the container.
This example can work, regardless of that, you may find a CORS problem to solve.


middlewares.parseBodyKeepRaw producing invalid json

I'm having an issue where the middlewares.parseBodyKeepRaw method is assigning invalid json to the req.body variable. In routes.coffee, if I set payload = JSON.parse req.rawBody, the app works fine. Is there a reason that the rawBody object isn't being used here?

This is the stack trace I see because of this issue:
SyntaxError: Unexpected token u
    at Object.parse (native)
    at exports.notify (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/src/lib/routes.js:18:20)
    at callbacks (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/lib/router/index.js:161:37)
    at param (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/lib/router/index.js:135:11)
    at pass (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/lib/router/index.js:142:5)
    at Router._dispatch (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/lib/router/index.js:170:5)
    at Object.router (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/lib/router/index.js:33:10)
    at next (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/node_modules/connect/lib/proto.js:190:15)
    at multipart (/Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/node_modules/connect/lib/middleware/multipart.js:60:27)
    at /Users/buckett/Documents/sakai/sakai-cla-robot/node_modules/clabot/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:57:9

And making the suggested change appears to fix the issue for me.

This repository is no longer maintained. Archiving the repository.


New Home Assistant 2023.1 error

With the HA 2023.1 release the following error is appearing in the Home Assistant logs.
Unable to prepare setup for platform xiaomi_gateway3.climate: Platform not found (Exception importing custom_components.xiaomi_gateway3.climate).
9:25:28 AM – (ERROR) setup.py
Unexpected exception importing platform custom_components.xiaomi_gateway3.climate
9:25:28 AM – (ERROR) Xiaomi Gateway 3 (custom integration)

the same for me with the HA 2023.1 too
Thanks

Sorry, I see it has been reported already....


Move class files from the Base class builds instead of copy

Building the base classes from wlauto/external/uiauto/src/com/arm/wlauto/uiauto/
using the build script wlauto/external/uiauto/build.sh generates the .class files in wlauto/external/uiauto/bin/classes/com/arm/wlauto/uiauto and then copies them into wlauto/common/android/.
Ideally, the files generated have to be moved into the wlauto/common/android/ directory. than leaving copies in the bin directory.

Would you be able to provide some more information as to why this is not desired behavior?

The issue was both the folders were being tracked by git, which actually was fixed by a .gitignore fix done before. These JIRA tickets were linked, but executed at wrong times. Closing the issue,


chore(travis): Add io.js target

Now that nvm has got support for io.js we should add it as a target on all karma repositories, and fix any occurring issues.
This PR is the start of this.

Looks like travis has not yet upgraded its installation of nvm https://github.com/travis-ci/travis-ci/issues/3108

Ref https://github.com/karma-runner/karma-firefox-launcher/issues/27

Ref karma-runner/karma-firefox-launcher#27

FYI: https://github.com/karma-runner/karma-firefox-launcher/issues/27#issuecomment-73347905
It works in io.js 1.1.0. :)

BTW, Travis has not io.js support so this should be fine!

Not needed anymore.


Test with supported Node versions

#403

See https://github.com/felixge/node-formidable/issues/412


[WFCORE-2172] Update to VDX 1.1.2

This addresses message parsing issues under IBM JDK (see JBEAP-8139).

@tobias Needs a rebase

Rebased.


Fixed bug not assigning projection to auxiliary components

In #50 I added support for getting the correct projection in composite objects but didn't take into account Overlays consisting entirely of auxiliary components. This PR ensures that auxiliary Elements are taken into account by assigning them a lower precedence than regular Elements.

Makes sense although wasn't _auxiliary_component simply a boolean before? Are you know making it into a integer or float?

Still a boolean, which I'm casting to an integer for two precedence levels 0 and 1. We could consider having finer grained precedence but I think that might be confusing.

Ok, was just checking! I'll merge now as this is a relatively simple bug fix.


Status 500 Error for Images in public Folder Following Update to v2.4.6

After updating to version 2.4.6, I've encountered a status 500 error when trying to access images stored in the Next.js public folder. These images were accessible and displayed correctly in the previous version.
Steps to Reproduce

Update to version 2.4.6 from version (specify your previous version)
Access any static image stored in the public folder via a URL or within the application
Observe that the server returns a status 500 error instead of displaying the image

Expected Behavior
Images stored in the Next.js public folder should load and display correctly without any server errors.
Thank you for looking into this issue. Your assistance is greatly appreciated.

Does this fix it for you? https://discord.com/channels/983865673656705025/1214865068550918215/1214865068550918215

@jayair Thanks! it worked!


integer limit

Since the bitset accepts uint, I think the upper limit of integers should be 2^64-1=18446744073709551615.
However, for an integer that is much smaller than that value (i.e.<PHONE_NUMBER>12345), my program panics.
panic: runtime error: makeslice: len out of range
goroutine 1 [running]:
github.com/willf/bitset.(*BitSet).extendSetMaybe(0xc4200980a0, 0xbf980761e9d1fc7)
Is there anything I misunderstand in using this package?

@lemire The server RAM is about 100G, I'm not sure if it's enough.

Well I suppose you need about 15 TB of RAM.

you mean the byte count of<PHONE_NUMBER>12345 bits? I don't know how the bitset is implemented.

You divide the number of bits by eight and it gives you the number of bytes.
If you have lots of bits, you might prefer compressed bitsets, see http://roaringbitmap.org (there is a Go implementation).

I am going to close this, there should be no expectation that any data structure has infinite storage. I have added some documentation in the README.


Add escape sequences for GenAI generated python code execution

PR Checklist

[X] A description of the changes is added to the description of this PR.
[ ] If there is a related issue, make sure it is linked to this PR.
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added or modified a feature, documentation in docs is updated

Description of changes
For our 'general code execution function' example:
def execute_python_code_function(code: str) -> str:
    """
    Runs some code that a GenAI LLM came up with
    """
    sys_stdout = sys.stdout
    redirected_output = StringIO()
    sys.stdout = redirected_output
    exec(code)
    sys.stdout = sys_stdout
    return redirected_output.getvalue()

Many LLMs will create code that is in pseudo markdown format, filled with invalid python and invalid SQL reserved terms. In order to actually execute these statements as literals in the JSON-to-SQL function input, we need to escape some of these special characters and ensure that when the argument (code block) value is provided to the UC Python function, it is capable of being executed.

Added perhaps too many test conditions just to be safe.

@serena-ruan Please take a look :D

@dennyglee We're good on this one. Thanks bud!


How do I use my username to login?

Please follow the guide below

Issues submitted without this template format will be ignored.
You will be asked some questions and requested to provide some information, please read them carefully and answer completely.
Put an x into all the boxes [ ] relevant to your issue (like so [x]).
Use the Preview tab to see how your issue will actually look like.

Before submitting an issue, make sure you have:

[x] Updated to the latest version
[x] Read the README and docs
[x] Searched the bugtracker for similar issues including closed ones

Purpose of your issue?

[ ] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.

For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.
Paste the output of python -V here:
Code:
# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue
How do input my username and password to the bot?

Example from https://github.com/instagrambot/instabot/blob/master/examples/save_users_followers_into_file.py:
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument('-u', type=str, help="username")
parser.add_argument('-p', type=str, help="password")
parser.add_argument('-proxy', type=str, help="proxy")
parser.add_argument('filename', type=str, help="filename")
parser.add_argument('users', type=str, nargs='+', help='users')
args = parser.parse_args()

bot = Bot()
bot.login(username=args.u, password=args.p,
          proxy=args.proxy)

as you can see in this way the script will parse arguments


Switch to travis.com and fix build

travis.org is closing and suggests project to migrate to travis.com, which now is a single place for both oss and commercial projects.
I've migrated our travis project to travis.com. This PR updates README accordingly, and also fixes build and bumps OS versions.
travis.com have quite tight limits per organization. I've migrated all other repos, except roc-java, to github actions (see https://github.com/roc-streaming/roc-go/pull/32). Travis gave us 25k free credits (thanks to them!), which should last us a while. When we run out, we are supposed to request more credits via travis support. Or we can switch roc-java to github actions too.
The main problem with github actions is that their linux workers don't have KVM support and thus can't run emulator. Though, their osx workers can run it.

Never mind, I run out of those 25k credits while debugging this PR. It seems we have to migrate to other CI then. I'll open another PR.


E937: Attempt to delete a buffer that is in use

Environment:
nvim: 0.7.0
os: deepin os based on debian 10
Bug reproduce
When I execute ":bd" cmd after edit GIT MESSAGE. and then:

Duplicate of #60. For now you can leave buffers.focus_on_delete as false (a default value) to avoid this error until its solved.


Update appman.xml

Bump AIR SDK to <IP_ADDRESS>
Bump Apache Flex SDK Installer to 3.3.1
Bump Adobe AIR to <IP_ADDRESS>
Bump Adobe Flash Player to <IP_ADDRESS>
Bump TortoiseGit to <IP_ADDRESS>
Bump Git for Windows to 2.17.0
Bump TortoiseSVN to 1.10.0

@Meychi hi. Can you update http://www.flashdevelop.org/appman/frameworks_flexsdk_9-28.zip for v. 29?
https://www.adobe.com/support/flashplayer/debug_downloads.html

@SlavaRa: Sorry i missed this, done.


Backport 2.7: Add DER encoded test CRTs to library/certs.c

This is a very partial backport of #2260 to Mbed TLS 2.7, fixing #2254. Because the backporting the original changes lead to conflicts I didn't have the time to resolve, I restricted to fixing the part which goes beyond a test enhancement, namely fixing ssl_client2's and ssl_server2's behaviour in case MBEDTLS_CERTS_C is enabled but MBEDTLS_PEM_PARSE_C is disabled (as @RonEld requested).

This needs https://github.com/ARMmbed/mbedtls/pull/2260 to be ready to merge before this can be merged, so labeling as needs preceding PR.


Change link in example nb

Currently points to OISST instead of ERSST

Completed in https://github.com/ProjectPythia/eofs-cookbook/commit/12efa2b1a1a9dd76036c971247cbba26b4f4120d.


read buffer directly when parsing string

Seems to be a consequence-free performance improvement unless I'm missing something.
Each time a string is read, instead of creating a copy of the slice of the input buffer which then is used to make another copy of the data in string form, just read directly from the original input buffer when decoding into a string. Avoiding that extra allocation saves some time.

Nice! It brings decoding performance very close to protobuf.js implementation :) Before the change, decoding was ~30% slower, now it's only ~10% slower 👏🏻


[BEAM-5717] Use the PR context from the environment rather than Gradle properties

The :stageWebsite task uses the pull-request context to choose where to
stage the website on GCS. The current context binding currently captures
the pull request of the Seed Job run which generated the Precommit,
rather than from the actual precommit job run itself.
This fix removes the PR Id from the Job DSL / Gradle integration, and
instead reads the value directly from the environment variable set by
Jenkins.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

The staging job succeeded and published the website to the correct URL:
Website published to http://apache-beam-website-pull-requests.storage.googleapis.com/6666/index.html

@alanmyrvold PTAL

LGTM


Install and use ruff format instead of black for code formatting.

Best to review one commit at a time, since two of the commits are 100% autogenerated changes from running ruff format:

Install and use ruff format instead of black for code formatting.
Output of ruff format . in the langchain package.
Use ruff format in experimental package.
Format changes in experimental package by ruff format.
Manual formatting fixes to make ruff . pass.

Planning to remove the black cache setup and associated complexity from the lint script in a separate PR, just to limit the review complexity here.

Will resolve the conflict and merge.


Make new cogs for lion and crab commands

This will prevent the sheets cog from being like 3000 lines long. Also lion and crab commands are basically their own full fledged thing at this point

Done, kinda.


Single program to disable & enable defender.

Please, in the next version, release a single program that can either enable or disable defender. That is, if defender is active the program displays a message and asks if the user wants to disable it. And, if defender is disabled the program displays a message and asks the user if he wants to enable it.
Thanks for a nice program.
PS : A silent version would be nice too - basically toggle the state of defender.

hi, a silent mode is already supported with the -s parameter. a ui is a wip atm, but i dont have time to constantly work on it - it is planned for 2.0 release


Cannot resolve symbol UseMongoStorage

I'm using ASP.NET WebApi 2 and in Startup I want to configure Hangfire with MongoDB, but on this line:
 GlobalConfiguration.Configuration.UseMongoStorage
I'm having error Cannot resolve symbol UseMongoStorage
Hangfire.Mongo version 0.5.11

@kkorus,
Hangfire's GlobalConfiguration is named the same as System.Web.Http.GlobalConfiguration class.
Please verify you are in fact using Hangfire.GlobalConfiguration and not System.Web.Http.GlobalConfiguration
Thanks,
Jonas

@gottscj Yep, you were right, I was using wrong GlobalConfiguration


Black screen issue when didn't run ALVR first in quest

Description
After running SteamVR in ALVR first, turning on Quest 2 and running ALVR keeps the black screen.
ALVR Dashboard bottom message repeats [Warning] Waiting for IDR Frame message.
This bug occurs only Windows OS.
I've never encountered this bug on Linux.
General Troubleshooting

[x] I carefully followed the instructions in the README and successfully completed the setup wizard
[x] I read the ALVR Wikis here and here

Environment
Hardware
CPU: Ryzen 7 5800H
GPU: Radeon RX 5600M
Installation
ALVR Version: v20.0.0-dev12+nightly.2023.05.09
Please don't tell me it's not nightly up to date.
This's an old bug, and many issues have become stale.
SteamVR Version: 1.25.8
Install Type:

[x] Packaged (exe, deb, rpm, etc)
[ ] Portable (zip)
[ ] Source

OS Name and Version : Windows 11

ALVR v20.0.0 solved this problem


Install error

Please, what should i do with it?
this code show, on my installation on plugin.
ERROR: Exception: Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 153, in _main status = self.run(options, args) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 382, in run resolver.resolve(requirement_set) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 201, in resolve self._resolve_one(requirement_set, req) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 365, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 313, in _get_abstract_dist_for req, self.session, self.finder, self.require_hashes File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 194, in prepare_linked_requirement progress_bar=self.progress_bar File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 465, in unpack_url progress_bar=progress_bar File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 316, in unpack_http_url progress_bar) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 551, in _download_http_url _download_url(resp, link, content_file, hashes, progress_bar) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 253, in _download_url hashes.check_against_chunks(downloaded_chunks) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/utils/hashes.py", line 80, in check_against_chunks for chunk in chunks: File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 223, in written_chunks for chunk in chunks: File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/utils/ui.py", line 160, in iter for x in it: File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/download.py", line 212, in resp_read decode_content=False): File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 564, in stream data = self.read(amt=amt, decode_content=decode_content) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 529, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__ self.gen.throw(type, value, traceback) File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 439, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

Hi @wacktattoo, thanks for reporting this. At the of that log entry you can see a read timeout error. That indicates a networking issue. See this issue https://community.octoprint.org/t/plugins-timing-out-during-install/2916/8 that is the exact same problem.
Try again and see if it was a transient error.
Regards,
Gaston

Another interesting thing to check, this other person was having under-voltage issues and that was affecting network reliability. See https://community.octoprint.org/t/cannot-install-any-plugin-after-fresh-octoprint-install/17752/13

@wacktattoo are you still having this issue or can I close this ticket now?
Thanks,
Gaston

Closing the ticket due to inactivity. We can reopen if this is still an issue.


nixos: add option hardware.enableAllHardware

This allows users to simply enable support for all hardware by enabling the option hardware.enableAllHardware, instead of having to import modules/profiles/all-hardware.nix.
This is better, as the enableAllHardware option will be discoverable via search.nixos.org, while the all-hardware.nix is hidden inside nixpkgs and hard to discover.
Backward compatibility is provided by replacing the old profiles/all-hardware.nix with a file that sets the enableAllHardware option to true.
The diff of this change is quite small if you review the individual commits.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@jopejoe1 Thanks, good catch. Fixed it!


Browser version should retain current query string

I have some tests running at a page /test.do?t=DASHBOARD_UNIT.
The suite link/replay button remove the query string, so the URL becomes /test.do?grep=..., what doesn't work for me.
This probably should be fixed, but with a low priority :)

I believe this is already fixed - do not see this behavior in the default html reporter any longer.


[Gallery]Remove filter plug-ins from Viz gallery

This happens when
"DASHBOARD_NATIVE_FILTERS": True,
"DASHBOARD_CROSS_FILTERS": True,
"DASHBOARD_NATIVE_FILTERS_SET": True,
"DASHBOARD_FILTERS_EXPERIMENTAL": True,
"ENABLE_EXPLORE_DRAG_AND_DROP": True,
"UX_BETA": True,

Not a bug, the charts are intended to be there with the DASHBOARD_FILTERS_EXPERIMENTAL flag set so that they can be placed in a dashboard in the style of the old filter box. We should revisit this UI, perhaps look into some kind of drag-and-drop interface from the filter bar.


Feature/space endpoints

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Rdm minor fixes

Minor fixes for areas not yet referencing Thunder_III and Aero_III.  Updated the Interrupts suggestion to include Acceleration and state that Enchanted Reprise should only be used a last resort skill.  Marked supported for 6.0 as there's no other changes that have been requested at this time.

LGTM, and I agree with marking RDM as supported.


Publish to NPM

I think this is more appropriate as a bower dependency, rather than an NPM dependency


Added menu option for toggling updateOnSave

codemill-id-57cb07a25681420300fc7c6b fixes #3

Lock "Update TOC" option, all similarly, you need another,
https://github.com/wyster/markdown-toc/commit/1acb3e4c5cfaa43183a5f5af16b51415da32cace

@wyster could you elaborate a bit?

@wyster do you mean to make it work based on the global package preferences instead of per .md file in the menu as I've done?

Now this should cover everything I think? If the menu entry for file-specific updateOnSave toggling is unneeded or confusing let me know and I can remove it.

Forgot to check the user preference before automatically updating TOC. Now it should work as intended.

Hi @ssamuli,
I tested your branch but it doesn't seems to have the behavior I expected.
What you coded: "Added menu option for toggling updateOnSave"
What I would like: " Automatically update TOC when I open a .md file"
I don't want to change the behavior of updateOnSave, just an option to automatically update the TOC when I open a .md file
Am I missing something?
https://github.com/wyster/markdown-toc/tree/develop by @wyster has the behavior I expect
Thanks

@lanceplaine I added quite many commits after the initial one, those do implement the functionality you requested.
I got confused initially because the CodeMill details had link to https://github.com/nok/markdown-toc/issues/83 and that issue talks about "This way I don't have to click "Update TOC" every time I update a markdown file" which to me sounded like when saving the file the TOC should update.
If you did test with the latest version and it didn't work as expected: did you go to Atom preferences, packages, Markdown Toc and ticked "Automatically update TOC" checkbox?
Based on my tests after that it does update the TOC when opening a markdown file with existing TOC. But it also updates it on save, I can remove that feature if you wish.
Of course this all seems a bit silly if it's already implemented by @wyster

A thing I noticed with version from @wyster was that the event used in that one, "editor.onDidStopChanging", fires continuously and updates the TOC unnecessarily often. I'd advice to fix that if you'll choose his version.

@ssamuli, thanks, i added timeout 1 second https://github.com/lanceplaine/markdown-toc/pull/5/commits/418e682503b2149ad97ef268e0a6fc4ee219ffb5

@wyster no problem :) I guess you have a good reason to not use something like atom.workspace.onDidOpen instead of that timeout trick?

@ssamuli, list updated after changes and after opening document, i think this is more interesting
Sorry, i had to immediately grab it task, but did not known how my method is suitable, see https://github.com/nok/markdown-toc/issues/83#issuecomment-244593797

@wyster OK. Could be. It's not a problem for me whoever gets the CodeMill bounty, just wanted to try it out when I finally found a half suitable task there.


[adc_ctrl/dv] Re-enabled interrupts in clock gating test

Signed-off-by: Nigel Scales<EMAIL_ADDRESS>

should we just merge this in @NigelScales ? or do you prefer to keep this out until a fix is made?

should we just merge this in @NigelScales ? or do you prefer to keep this out until a fix is made?

Hi @tjaychen I'd rather keep this out for now while we are closing on V2.

@tjaychen Linked issue https://github.com/lowRISC/opentitan/issues/11759

@tjaychen Linked issue #11759

thank you! i will look at this today. Sorry I was a bit pre-occupied the last few days.

Given https://github.com/lowRISC/opentitan/pull/11904 I'll set this to be merged.


Add Toast on PWA update available & update favicons

Add react-hot-toast

Add onServiceWorkerUpdateReady to show toast when update is installed.
Update PWA Icons & favicons.

Before

After

yay! it works as expected 🥳


Allowed types of propositions for VariationNeoplasmTherapeuticResponseStatement.target_propositions property

Does it make sense to allow target_proposition under the VariationNeoplasmTherapeuticResponseStatement  to be of type VariationGermlinePathogenicityProposition ?
https://github.com/ga4gh/va-spec/blob/4fd8a1a07f274b6d8e19f7c69d0de0d912282e3b/schema/annotation.json#L453

@viveknuthalapati In the current 1.x branch @ahwagner moved away from using target_proposition altogether. So I'm going to close this issue since it is no longer relevant.
If however, you want @ahwagner to clarify whether or not a VariationGermlinePathogenicityProposition could be the backing proposition behind a VariationTherapeuticResponseStatement, then please re-open and tag @ahwagner for that question.  From my limited understanding it doesn't make any sense, but I find my assumptions are often wrong.


docs: don't use the term "main pipeline"

On the template types and usages page, the docs state:

You may also use @self to refer to the repository where the main pipeline was found.

This comes right after the following Note:

If no ref is specified, the pipeline will default to using refs/heads/main.

At this point, it's a bit confusing what the "main" pipeline is: the one with the entry point that's run, or the one in the "main" branch.
The next sentence makes it clear, but maybe the first one could be reworded...

This is convenient for use in extends templates if you want to refer back to contents in the extending pipeline's repository. For example:

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

ID: 6724abea-bbdc-bf66-ed5e-3214fa6c3e66
Version Independent ID: 4f8dab21-3f0e-da32-cc0e-1d85c13c0065
Content: Templates - Azure Pipelines
Content Source: docs/pipelines/process/templates.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@anno1985 Thanks! I'll update the wording.


Breakup the building chapter

This PR breaks up the giant "How to Build and Run the Compiler" chapter into a few subchapters:
-    - [How to Build and Run the Compiler](./how-to-build-and-run.md)
-        - [Build and Install distribution artifacts](./build-install-distribution-artifacts.md)
-        - [Documenting Compiler](./compiler-documenting.md)
+    - [How to Build and Run the Compiler](./building/how-to-build-and-run.md)
+        - [Suggested Workflows](./building/suggested.md)
+        - [Bootstrapping](./building/bootstrapping.md)
+        - [Distribution artifacts](./building/build-install-distribution-artifacts.md)
+        - [Documenting Compiler](./building/compiler-documenting.md)
+        - [ctags](./building/ctags.md)

Yes, I added a few filler/intro sentences, but the content is unchanged

Do you feel it is an improvement?

I agree with this change since I feel "How to Build and Run the Compiler" chapter is long.

Cool :) Thanks @JohnTitor @amanjeev  !


Contextual token upgrade

### Tasks
- [ ] fix 'transparent' token (token is missing)
- [ ] https://github.com/sl-design-system/components/issues/1506

I'm working on refactoring the button styling and i've run into some issues:

SL theme now uses Roboto font; however, that font does not have a semibold/600 font weight. The closest is medium/500.  As you can see from the screenshots below, 500 or 600 matters. At 600, the browser starts to emulate the font weight. Should we have a theme specific token that we can use in CSS for the "bold" weight? So that would then have the value of 500 for the SL theme?

border-color: var(--sl-color-utility-transparent-000); is not the same as border-color: transparent. This is noticeable in the visual size of the buttons: you can see in the screenshots below that the former seems to have a less height.

I don't see a default variant in Figma anymore. Do we still have that style or is that now obsolete?

The tokens for the inverted buttons are incorrect. I think this is due to how the tokens are transformed to CSS.

"hover": {
  "value": "{color.palette.grey.000}",
  "type": "color",
  "$extensions": {
    "studio.tokens": {
      "modify": {
        "type": "alpha",
        "value": "{opacity.dark.300}",
        "space": "lch"
      }
    }
  },
  "description": "Use for the background while hovering of primary actions that appear to have no background in idle state. Such as outline and ghost buttons."
}

There doesn't seem to be any difference on hover (other than underline) or active states for link buttons. Is that intentional?

Icon only buttons in some themes (magister for one) are already round. I assume this will break with the new styling? (i don't have an issue with that perse). By default, those magister icon-only buttons would now be square.

Update on issue number 4: this is a limitation of the ts/color/modifiers transform at the moment. I have to disable outputReferences in the plugin and the the correct color is outputted. However, that also doesn't output references to other CSS custom properties anymore, making it harder to debug.


Rename Applier to AutoApplier

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (16c016d) to head (b3b4882).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #114   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           33        33
  Lines          635       635
  Branches        37        37
=========================================
  Hits           635       635

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Filter resources based on their name using Regex

Hi, I need to fix an issue with my AWS account set up. I have many users in my account, some are humans and some are for programmatic API access. Their name has a unique property to differentiate them. Can you please specify the filter to use for string manipulation based on resource name if at all possible?
Thanks in Advance.

Hi @Dhruvin1
Here is an example policy using regexes to match on users.  I assumed you meant the UserName field, but adjust that if needed.  Note that the regex is case-insensitive.
policies:
  - name: dhruvins-user-filter-policy
    resource: iam-user
    filters:
      - type: value
        key: UserName
        op: regex
        value: "PUT YOUR REGEX HERE"


Allow setting the voice flag for input OR output, depending on the param struct that has the flag

Some GeckoView users don't want to output routing to be changed when an input stream of type voice is requested but would still like to use the correct mic. With this patch, we can request normal audio routing for output (MUSIC the default), while still telling Android that the input is a voice stream.
This helps fixing BMO#1626081.

With the minor build error solved.


add a instance folder for GX fonts

VF fonts are currently created in master_ufo, would be more convenient to put them in a separate folder.

this is already done

variable_ttf folder


[R-T4.3-12] Manage company-specific RADON Models and TOSCA entity type

ID
R-T4.3-12

Section
WP4: Modeling Environment

Type
FUNCTIONAL_SUITABILITY

User Story
As a Software Developer, I want to store and version my company-specific RADON Model separately from RADON Particles.

Requirement
GMT must be initialized and start based on the RADON Particles, but company-specific RADON Models as well as custom TOSCA entity types must be stored differently.

Extended Description
In RADON, we publish and maintain RADON Models as well as reusable TOSCA entity types to a public GitHub repository called the RADON Particles. This repository, on the one hand, serves as an example of a public RADON Template Library (cf. D5.4 Technology Library and D4.4 RADON Models II) and, on the other hand, provides a modeling baseline for RADON users that want to use the GMT to compose application blueprints. So, it is important to use the current RADON Particles master branch when starting the GMT. However, at the same time, companies that model applications want to store their models separately from the public one, e.g. to push and manage them in their internal and private Git repository, such as GitLab. Therefore, there must be the possibility to initialize and start the GMT based on the RADON Particles, but company-specific RADON Models as well as custom TOSCA entity types must be stored differently. The GMT needs a way to separate the modeling entities into multiple repositories.

Affected Tools
GRAPHMODEL_TOOL

Means of Verification
Manual testing based on case studies.

Dependency
N/A

@gcasale please approve new requirement.

This is a should have in my view. This is a business scenario but the system can work also with particle alone so I don't regard it as a must have.

Approved

Fixed with the multirepository feature addressed by eclipse#465, eclipse#523, and https://github.com/eclipse/winery/pull/567


Syncing from upstream zalando/patroni (master)

bt_gitbot

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.851%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
12086

Relevant Lines:
12104

💛  - Coveralls


Update unifi.py to support sites

Description:
Unifi controllers can have multiple sites per controller. The current unifi.py does not support sending through the information about which site to survey. This means that the site surveyed is the default site. By adding these three lines, the Site ID can be specified within the configuration, allowing for the user to specify a site for survey.
Tested on current codebase with a live home-assistant website. Works as expected with devices being discovered from the correct site id.
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#
https://github.com/home-assistant/home-assistant.io/pull/609
Example entry for configuration.yaml (if applicable):
site_id : 'default'
or
site_id : 'abcdef01' (code is randomised, found in URL: https://CONTROLLER:PORT/manage/site/SITE_ID/dashboard)

Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io

If code communicates with devices, web services, or a:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Add support for a site that is not the default within the Unifi Controller.
i.e. A controller with multiple sites:

Home
Friends
Parents (default)

Supplying the identifier for 'Home' now means that the devices tracked will be associated with 'Home'.

You'll have to update the unifi tests.

Thank you. Didn't know that the tests were there. Pays attention to look at the codebase and the developer documentation properly.

No problem. That's why we have them run automatically on each pr 😉


Add support for RETURN_MOCKS in the Mockito extension API

From<EMAIL_ADDRESS>on November 11, 2009 12:14:50
In Mockito you can do e.g. "mock(MyClass.class,
withSettings().defaultAnswer(RETURNS_MOCKS));". Add support for this in
PowerMock as well.
Original issue: http://code.google.com/p/powermock/issues/detail?id=200

From<EMAIL_ADDRESS>on November 11, 2009 03:15:03
Summary: Add support for RETURN_MOCKS in the Mockito extension API

From<EMAIL_ADDRESS>on April 06, 2010 01:03:36
Status: Fixed


Method setBookCategory is not defined.

https://github.com/hellokoding/hellokoding-courses/blob/7a72e6b02da7ef15821de233cd2a083de0ab9276/jpa-hibernate-examples/jpa-hibernate-one-to-many-mysql/src/main/java/com/hellokoding/jpa/book/BookCategory.java#L28

the method is defined with Data annotation from Lombok in the Book.class
see here: jpa-hibernate-examples/jpa-hibernate-one-to-many-mysql/src/main/java/com/hellokoding/jpa/book/Book.java


Improve the UI of the homepage

Details
The padding on the sides is very less giving rise to a cluttered view. increasing the padding will provide a better view.
Screenshots

Type of Contribution

[ ] Update to an existing Animated Button
[ ] Adding a new Button
[X] Resolving a bug
[ ] Proposal to the Repository
[ ] Changes related to documentation or README.md
[X] Other Changes

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue
[X] I am a GSSoC'23 contributor

Sorry for the inconvinience, but we are closing all the issues! Please open a new issue if you want to contribute anything. Also now you can create a new button from the website itself! You will get points for those too! I will add the instructions on how to create a new button soon and create an empty pr for the same to get points!


Refactor with hooks

Hi, I used functional components as per the project requirements .I used useState hook in my project to update values displayed in my calculator display, when I added event listeners in the previous milestone.
https://github.com/ram1117/math-magicians/blob/3b582642f7703a76391b1eeb0f371c4b7a7f8cf0/src/components/Calculator.js#L5-L9
I am able to perform calculations on the calculator.

The project requirement for Refactor with hooks milestone has been updated recently. PFA screenshot

Please approve my project for Refactor with hooks milestone.

Project Approved :trophy: :tada: 🟢
Hi @ram1117
Your project is complete!  You have done it exceptionally well. it's time to merge it :100:
Congratulations! 🎉
To Highlight :+1:
:heavy_check_mark: No linters error.
:heavy_check_mark: Details PR title and description.
:heavy_check_mark: Good commit messages.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification. You can also connect with me on slack

_As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


git checkout fails on Windows 10

When I clone the repository, I get a message saying that the cloning succeeded but that the checkout failed:
$ git clone https://github.com/devsisters/DQN-tensorflow.git
Cloning into 'DQN-tensorflow'...
remote: Counting objects: 717, done.
remote: Total 717 (delta 0), reused 0 (delta 0), pack-reused 717
Receiving objects: 100% (717/717), 29.57 MiB | 1.26 MiB/s, done.
Resolving deltas: 100% (446/446), done.
fatal: cannot create directory at 'checkpoints/Breakout-v0/min_delta--1/max_delta-1/history_length-4/train_frequency-4/target_q_update_step-10000/memory_size-1000000/action_repeat-4/ep_end_t-1000000/backend-tf/random_start-30/scale-10000/env_type-simple/min_reward--1.0': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

Apparently the path length becomes too long. In Windows, there is by default a max limitation of 260 characters for path lengths. It should be possible to turn this limitation off, but doing so doesn't seem to work for me (I even noticed that LongPathsEnabled already was 1 since earlier).
Perhaps not surprisingly, git checkout -f HEAD doesn't work either, and results in a very similar error message:
$ cd DQN-tensorflow/
$ git checkout -f HEAD
fatal: cannot create directory at 'checkpoints/Breakout-v0/min_delta--1/max_delta-1/history_length-4/train_frequency-4/target_q_update_step-10000/memory_size-1000000/action_repeat-4/ep_end_t-1000000/backend-tf/random_start-30/scale-10000': Filename too long

According to a stackoverflow thread this is a problem of the git client.
Using the advised
git config --system core.longpaths true
solved the issue for me (together with turning of the limitation via group policy).
The command might need to run with administrative privileges, depending on your UAC settings.

Thank you SimonRuehle, that worked!


fix: robust server reference build scan (wip)

close https://github.com/hi-ogawa/vite-plugins/issues/428

#431  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on  Graphite


Version 0.1.28 still makes problems since version 0.1.27

Looks like it still has a problem with city field.
An existing IMS weather coordinator already exists for this location. Using that one instead

First install I get this config screen with a combobox to
Choose the city:

After homeassistant reboot this is the configure screen, only numbers can be inputted to the city field, looks like Ariel city is not working properly, I think using a different city worked for me:

There's an issue with the reconfigure flow. But the functionality should work.
What's not working? And what are the logs say?

This is all I found

Try the physical 'home-Assistant.log' file

Also, for me to reproduce, take a screenshot of what you're trying to add (configuration)

I found that there where ims entities left from previous installed ims add on, so I deleted them all and reinstalled the ims and for now it looks like it works.
I will let you know if it fails again.
Are you fixing the reconfigure screen soon?
Thanks

Now again it suddenly became unavailable and this is the error shown in the log:

This is timeout - meaning, the component wasn't able to communicate with ims service.
Restart would reset the alert, but it has nothing to do with the code.

Are you fixing the reconfigure screen soon?

Working on it

hello @GuyKh,
installing for the first time, while installing got the "city name" drop down and upon completion got error "failed to setup"
opened configuration again it was empty and this time its asking for a city code instead of city name dropdown
choosing 44 (Nof Hagalil) failed, for testing i choose 21 (Raanana) and it worked
can you please check the issue?

@nasser83
please open a separate issue for this.
Also, from the logs, get the error message


freerdp reutrned error bio read returned error ssl routines : ssl3_read_bytes:tlsv1 alert access denied

I want remoteapp on
:windows7 enterprise 32bit
but I can't execute remote app but meet  error..
what is this???
I want to connect windows7 enterprise 32bit remoteapp
and command
./xfreerdp /v : xxx /u: /p: /app:
I can run win10 pro but I can't win7 enterprise 32bit
and I can connect win7 desktop but I can't connect win7 remote app
please help me....

Please read https://github.com/FreeRDP/FreeRDP/wiki/BugReporting
Your issue is imho better suited for mailing list or IRC


Projects always open in a new window.

Hi, it seems that whenever I load up a saved project, it opens in a new window. Is there any way to change this behavior by adjusting a setting?

Not at the moment, what would you expect? That the session replaces the
current windows?
BC<EMAIL_ADDRESS>schrieb am Fr., 10.04.2015, 19:15:

Hi, it seems that whenever I load up a saved project, it opens in a new
window. Is there any way to change this behavior by adjusting a setting?
—
Reply to this email directly or view it on GitHub
https://github.com/Zeeker/sublime-SessionManager/issues/5.

One could expect it yes, and I kinda did ...
Maybe add an option to the settings file: "open session in active window".
I would love it ;)

I'm looking for input: What would you expect to happen if you have multiple windows open and load a session? That such a command replaces all of them?

Hi, yes, the behavior would be like this:
Load session in active window -->
    - close current open session (if any)
    - open selected session in current active window (the window from were the command gets called)

Load session in new window -->
    - use current behavior

Any idea yet when 0.2 will be ready? I'd really like this feature since I continuously find myself closing windows. And since there's no "close all windows" in sublime, I often end up in a situation like this in i3:

Thank you for this plugin anyway! With the replace feature it'll be awesome. :+1:

@Zeeker Any other features still in development for 0.2? Maybe I could help to get it released. :)

@RanzQ The replace command is actually implemented for quite a while now and is merged into dev. I'm currently extremely busy and haven't found the time to work on the plugin. I wanted to implement #1 too for release 0.2, I've wanted to implement #1 for 0.2 and will try to find the time this week.

This would be such a nice feature! any hope of seen 0.2? i can see it has been some time since last update =(


Unexpected drift on mist_device_gateway resource after manual changes via UI

upstream: https://github.com/Juniper/terraform-provider-mist/issues/54

fixed in latest release


Interactive properties, custom field type, saving properties

I like the built-in property pane and we intend to use it for our app parts. However what's documented now looks very simplistic. How would I go about implementing interactive properties? A very simple example: have a drop down with all the SharePoint List names and then have another one showing the list of fields in the selected SP List.
Actually, our properties will be complicated enough to be written as a React component so having custom field with onRender solves the problem quite effortlessly, but it would be nice to have a more 'React'-like way of doing properties.
So far the saving mechanism for properties was dumping the json string to localStorage every 3 seconds which clearly has only been intended for demo purposes. What property saving mechanism should we expect to appear in the Framework?

So one thing to note is that each time a property is set, it refetches the property configuration.  For example, lets say you have a few properties.
1 - A "type" property that can switch between "name" and "number"
2 - A "name" property that is filled in if type == name
3 - A "number" property that is filled in if type == number
If Type is empty, you can have the property page configuration return only the type field.
When the user selects a type, the value will be stored in the webpart properties, and the configuration method will be called again.  You can now look at the type property, and either add the name or number property to the configuration.
Is that the sort of thing you are looking for?

@vvolodin, about your last question. The web part framework does not intend to support any form of automatic saving of properties. That is really a function of the page on which the web part is inserted. The modern pages app we are building, autosaves the page at a regular interval and every time the property bag of any web part gets into a dirty state i.e. mutates. Does that answer your question?

@patmill You mean propertyPaneSettings is getting called on BaseClientSideWebPart each time any property value is changed? I don't think this is the case at the moment.
@manishgarg1 Hmmm, I'm a bit confused. What I need to do is give someone a way to add my web part to a page, change some settings and persist them so that the web part looks the same when viewed by other people in the organisation.
What purpose does saving into localStorage serves?

@vvolodin, the sessionStorage is just a feature for the workbench during development of your web part. On real pages this feature will be owned by the page. Which as I explained above, will perform autosave. Can you please explain the scenario when you would like the webpart code to autosave to some database ?

@vvolodin - that's correct, propertyPaneSettings should be getting called on each property edit.  I just double checked, and that is what is happening for me.
For your other question though, persisting the webpart properties is the job of the host application.  On classic pages that will happen when you save the page, and on the (soon to be released) modern pages, it happens in the background via auto-save.  The webpart itself should never be responsible for persisting it's data - it only needs to make sure that the property bag is correct and up to data when the properties are edited.

@patmill What kind of saving mechanism will that be? How should my web part handle settings so that someone could set it up to look the same to different SharePoint users?

You shouldn't need to do anything (again - other than making sure that the property bag is correct).  Maybe I'm missing part of your concern though.  Are you seeing anything that makes you think serialization / deserialization is not working correctly?

I see.  The modern page infrastructure (rolling out now I believe, currently available to first release customers) and the classic page infrastructure handles the storage..  On classic pages it follows the previous flow where the properties are stored in a separate item (the webpart table, accessed via the LimitedWebPartManager).  On modern pages the properties are serialized as part of the page data, and stored in the current list items field (Canvas) .  You don't need to worry about anything.  In an ideal world, you wouldn't need to serialize your properties into a single value - you should be able to modify the webpart property interface for your webpart.

Hi @vvolodin, are your questions answered ? Please let us know if there is still any confusion.