SPFx Web Part in Teams not working/constructor not firing?

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[X] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[X] other (enter in the "Additional environment details" area below)

Additional environment details

browser version
-- works in SharePoint on Edge Version 101.0.1210.53 (Official build) (64-bit)
-- works in SharePoint on Chrome Version 102.0.5005.63 (Official Build) (64-bit)
-- works in SharePoint on Safari 15.1 (176<IP_ADDRESS>.20)
-- DOES NOT WORK in Teams (web version) on Edge, Chrome, or Safari (same ver as above) on initial load
-- DOES NOT WORK in Teams Desktop Client on Mac on initial load
-- DOES NOT WORK in Teams Desktop Client on PC on initial load

SPFx version: 1.13.1

Node.js version
--14.9.2

Describe the bug / error
I've developed a webpart that is deployed to my Home Site's home page.   The webpart works without issue when the page is loaded directly from SharePoint in all browsers tested (see browser info above).
The webpart provides an autosuggest textbox that queries graph for users that match the characters typed and shows the returned users as suggestions.  It uses the React-Autosuggest as part of the solution.     The react-autosuggest component is within a sub-component of my webpart because I re-use it as part of a "basic" webpart and an "advanced" webpart.
The issue that I'm seeing is that when I open Teams and load the page with the webpart on it (by opening the Teams Viva Connection app we've configured to show our intranet) and then begin typing I can see that the graph api is called and returns the proper results, but the suggestions do not load.   I can observe that the  that the react-autosuggest doesn't appear.   Further, I've inserted a bunch of console.log statements and it appears that my subcomponent (that contains react-autosuggest) never has it's constructor called.   This issue does not happen when the page is loaded directly from SharePoint.
Finally, If I use the search button in my component, which passes info to a search results page via query string as part of a window.location.href change, then the component starts to work as expected.
My observation is that it's the way that Teams loads viva connections that's making my part work differently, but when I do the page redirect (via window.location.href change) it loads the page differently.
I'm trying to dig in more because I still have the following unknowns:

Do my console.logs go to a different console when using DevTools/Teams/Viva Connection (e.g. maybe my constructor is actually executing but I just don't see the log messages)?
Am I suppposed to build/deploy my webpart differently for Viva Connections?
Is it possible to use the hosted Workbench when testing Viva Connections?

Steps to reproduce

Load my webpart onto a page (I can share the WP code/package if it's helpful).  There's nothing proprietary in it and works in my devTenant without any special reconfiguration.
Test in SharePoint site, works.
Set up Viva Connections app to point to Home Site and ensure my webpart is on the home page.
Confirm that Suggestions don't appear, console logs don't appear.

Expected behavior
I would expect that my webpart that works in SharePoint also works in Teams.   I understand that there may be some additional configuration needed to deploy a part that works in Viva Connections, just not sure what that is.

@poneilcsgp - thanks for the updated issue/description.
Could you please share your code with us so we could look into it?
Thanks!

Cynergy Employee Search.zip
Attached.  Thanks for your help!

Employee.Search.zip
attached, thanks for your help!

Continuing to work through this by testing on Teams web client.  I'm struggling to get the workbench to load the right code consistently   Seems like it's holding on to a cached version.   Any suggestions on how we can load the workbench in Teams or clear the web cache so it doesn't load old code?  I've tried clearing local storage,  browser data,  etc.  But it doesn't work consistently.

@poneilcsgp - I would recommend disabling cache in network tab and also "Bypass for network" for the Service workers in the application:

From other hand, I see the app is loading: I can see the search box.
So it seems the problem is with the auto suggest component you're using inside your app, not SPFx itself.
If you use PeoplePicker instead of your auto-suggest - will that work?

Closing as it doesn't seem to be an SPFx error.


TypeScript Support

It looks like TypeScript React components are not supported. It would be nice if you could run components through Webpack's configured loaders prior to this plugin using them.

That would be great. Right now we use react-docgen which only parses PropTypes & Flow from what I know.
There was the idea floating around to switch to Recon https://github.com/carteb/carte-blanche/issues/293
Ideally we should find a solution that i fairly easy to extend and support these out of the box:

PropTypes
Flow
TypeScript
Relay Schema

Can anybody give some guidance on the work necessary to get components written in TypeScript working with carte-blanche? I'm not familiar with the codebase, but I'd benefit from this, so I'm willing to help.


“Questions and answers” section

Popover
Hover Card
Tooltip
Dropdown Menu

The section heading confused me for some reason. Perhaps "Frequently asked questions" might be better? It would be a more common heading for this type of info imo.
In the second DropdownMenu answer, it mentions "toggle button", which confused me, because I was thinking of our ToggleGroup component. Just "button" or "trigger" might be more apt?

In the second DropdownMenu answer, it mentions "toggle button", which confused me, because I was thinking of our ToggleGroup component. Just "button" or "trigger" might be more apt?

Yeah agreed, we should try and keep consistent with the language we use overall, so these would be "trigger".


Practice 5 - cluster_detector

It seems to work.
This issue is just as a follow up to our slack conversation, I would remove these lines - no need to extra create the PolygonStamped() and add a header to it. Works without these.
https://github.com/AnishShr/autoware_mini_practice/blob/5e20a0988fd3f96514ba0b4555655acbacd2e5d4/practice_5/nodes/detection/lidar_cluster/cluster_detector.py#L86-L88

Removed assigning convex hull as PolygonStamped() msg explicitly. Only added the header and points.
https://github.com/AnishShr/autoware_mini_practice/blob/ce5b6ccedce2beb195e6cc95549df02b7712a543/practice_5/nodes/detection/lidar_cluster/cluster_detector.py#L86-L89


minisf issues

dmesg:
[ 1627.883587] droid-hal-init: starting service 'minimedia'...
[ 1627.893618] droid-hal-init: starting service 'minisf'...
[ 1627.903123] droid-hal-init: Service 'minisf' (pid 26115) exited with status 1
[ 1627.903151] droid-hal-init: Sending signal 9 to service 'minisf' (pid 26115) process group... HYBRIS: killing PID instead of process group.
[ 1627.903191] droid-hal-init: updatable process 'minisf' exited 4 times in 4 minutes

Logcat:
02-21 16:06:06.892 26271 26271 F linker  : CANNOT LINK EXECUTABLE "/usr/libexec/droid-hybris/system/bin/minisfservice": library "libandroidicu.so" not found
02-21 16:06:06.897 26270 26270 F linker  : CANNOT LINK EXECUTABLE "/usr/libexec/droid-hybris/system/bin/minimediaservice": library "libandroidicu.so" not found

[   15.900695] droid-hal-init: Could not start service 'miniaf' as part of class 'main': Cannot find '/usr/libexec/droid-hybris/system/bin/miniafservice': No such file or directory

All is fine, miniaf is not used anymore


Is it also possible to record the chat in any way?

Thanks for the great work, works nicely, just wanted to know if its somehow possible to make a feature that could also capture the chat?
Thanks and best regards

Yes, it would be possible to record the chat and save it in a txt file

Yes, it would be possible to record the chat and save it in a txt file

Thanks alot for the reply, I guess having it viewable inside the video file is propably alot more difficult?

Yes

Yes, it would be possible to record the chat and save it in a txt file

Please add that feature, it would be awesome! 😍

Would showing gift effects for the ones not showing up at the moment be difficult?

this will be a great addition, thanks!

This other package has the ability to record live mp4, comments, and gifts. https://github.com/isaackogan/TikTokLive


IP: Add attribute converters

I find property <> attribute converters used in lit-element very helpful.
Would you consider integrating something like this
PS - if you like the idea but don't have time - I could help ;)

I'll add it in the next few days

fixed with 2.6.0


Sometimes higher level nodes are not ideal for making QA cards

Regarding Basic cards, the nodes that currently have #ankify added will appear as the question part of the card, and their children will appear as the answer part of the card. In addition to that, the Children’s children will also appear as an answer on the back of the card.
When higher-level nodes are added with #ankify, you end up with the back of the card which is kind of a hard bone to chew on：
pic1: https://imgchr.com/i/wqRURH
I understand that there are situations where all the subnodes need to be remembered, but for information that needs to be remembered layer by layer, it would seem more appropriate to just have the lower level subnodes as the back of the card, for example ：
pic2：https://imgchr.com/i/wqRNJe

Hmm, I hadn't considered this before but now that you mentioned it, some of my cards could benefit from this. I like the idea but I think having this as the default behaviour might be unintuitive for new users.
What do you think of having this as an option that the user can control? Either at the command line --max-depth=1, which would apply to all cards, or on a per-card basis with a tag eg. #[[max-depth=1]]

Good points! I agree there's value in both. Adding this to my list of next features to implement
Thanks for the suggestion 👍

Thanks for pointing this out, additional question, how can this work for cloze deletion questions?  As an example:

@mblackwo There's no way to do that at the moment. Cloze cards don't include the child blocks, they only include the block with the #ankify tag. I plan to add the ability to do this - maybe in the next release.

Added max-depth with release 0.1.0 (#16) which addresses this issue


Clean up of deseq formula determination

This PR will try to simplify how we run DESeq2 in terms of getting parameters from a configuration to the DESeq object.
Primarily, we will assume that users have a single column in the metadata that represents all the conditions for statistical testing. This column is the one that will be searched when looking for contrasts. This is how we already do most experiments and is the simplest way to accommodate user input.
The second important consideration is that of batch effects. In some cases, batch effect can be used in the DESeq formula.

I will circle back to this some time in the next few weeks...
I plan to also take advantage of the opportunity to look over some of the "interesting groups" that we use in other plots. I think for example it would make sense to use the "intgroups for plotting" variable within the heatmaps as well as the PCAs.


DEMO: typescript migration

that is what typescript could look like
run npx tsc to see how the migration affects the code.

Hey @tbo47 could you update repo from last master, and fix conflicts, please.


sumneko_lua renaming results in "Language server couldn't provide rename result"

Not sure if lsp-zero is causing this, but when invoking vim.lsp.buf.rename, sumneko_lua (I checkd that it is attached to the buffer) prints "Language server couldn't provide rename result".

You can test it without lsp-zero. Comment out the config for lsp-zero and try this one.
require('mason').setup({})
require('mason-lspconfig').setup({})

require('lspconfig').sumneko_lua.setup({
  on_attach = function(client, bufnr)
    vim.keymap.set('n', '<F2>', vim.lsp.buf.rename, {buffer = bufnr, desc = 'Rename var'})
  end,
})

It works after I commented out the config for lsp-zero and used your small example :(

Can you show me your config for lsp-zero?

Yes, the configuration relevant to lsp-zero is here https://github.com/starptr/nvim-config/blob/bc9f3da392a98f9625e4e02e989ca59adb3fd915/after/plugin/lsp-zero.lua
The keybind is assigned in a different file, but I am almost certain that vim.lsp.buf.rename is correctly called (since the dressing vim-input popup appears)

I cloned your config, tried it, didn't get an error message when trying to rename a variable but it also didn't work out of the box.
I checked with the command LspInfo and saw the LSP server was running in "single file mode". I created a file called .luarc.json (with an empty object) in the root of the directory. This way the LSP server can recognize the project. I tried the rename function again and it worked.
A side note unrelated to the bug: since you are configuring nvim-cmp manually you should change   manage_nvim_cmp to false.

Thanks, somehow I ended up with .luarc.json being inside lua/, which caused the lsp to run in single file mode. After moving it to the root directory, rename seems to work correctly.
Orthogonal, but what does .nvim_workspace {} actually do? If I understand the docs correctly, does it add lsp completion for the global vim lua variable? I also originally added the library = vim.api.nvim_get_runtime_file('', true) line because I thought this would add completion for plugin variables that are required.

.nvim_workspace configures "source" for nvim-cmp that autocompletes the neovim api. And adds these settings to sumneko_lua.
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, 'lua/?.lua')
table.insert(runtime_path, 'lua/?/init.lua')

{
  settings = {
    Lua = {
      -- Disable telemetry
      telemetry = {enable = false},
      runtime = {
        -- Tell the language server which version of Lua you're using
        version = 'LuaJIT',
        path = runtime_path,
      },
      diagnostics = {
        -- Get the language server to recognize the `vim` global
        globals = {'vim'}
      },
      workspace = {
        library = {
          -- Make the server aware of Neovim runtime files
          vim.fn.expand('$VIMRUNTIME/lua'),
          vim.fn.stdpath('config') .. '/lua'
        }
      }
    }
  }
}


Support for Node 13 and Sharp 0.23.2?

Is there a future version that supports the latest versions of Node and Sharp?
Thanks.

Yes! https://github.com/StephanGeorg/staticmaps/commit/146d266224c57bfcacc70da802646a1c27766671

You can always compile your dependencies as described here: https://sharp.pixelplumbing.com/en/stable/install/

Ok, thank you so much!


Consolidated place to discuss the 'call authenticate on every request' related changes

Back in 2017, authenticate() was set to be called upon every request, because not doing so caused a problem:
https://github.com/josx/ra-data-feathers/issues/35
Later, this was reverted, and authenticate is no longer called on every request:
https://github.com/josx/ra-data-feathers/commit/e5dc6ff6fa55ffcfce0eaace94a875138e28e883
I actually don't like the fact that authenticate was being called on every request, because it interferes with things like authentication rate-limiting.
But at the same time, it'd be nice to know what changed that makes this authenticate call no longer necessary on every request (i.e. what ended up fixing the original issue?). Can someone perhaps provide an explanation of that? Ideally with a pointer or two to the commit(s) that actually ended up fixing the problem properly.
Thanks!

Right now the only place where it calls authenticate is when AUTH_LOGIN type from authProvider is sent (not in every call to dataprovider types). I think the older problem was on page reload.

Understood on the older problem being on page reload.
Nonetheless, do we understand what actually ended up fixing the page reload issue?

I dont know, can you test it and give us some feedback?
The test case is: you are already logged in and reload the page

Works fine here. Pinging @lijoantony, original author of the issue #35 in hopes that he may know.


[HotFix] fix macro guard issue in config.h.in

As per https://github.com/ROCmSoftwarePlatform/MIOpen/pull/1543/files#r889131708
This is an error introduced in #1543

Close since implemented in #1581

@junliume This problem does not look too serious. The fix is provided in #1581, so this PR can be dropped, I guess. Up to you ;)


Biodome satellite ruin

About the PR

I feel like we don't have enough ruins which makes sense since it was recently added and all that. I decided to make my own ruin of a satellite, but made a biodome connection for plants and animals to be preserved in their own ecosystem.
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

now I wanna turn this into a shuttle

we have diagonal grilles, also missing a salvage loot spawner


Implement Nexus Writer for t-route formatted QLAT outputs

This PR implements the ngen::utils::nexus_writer base class with ngen::utils::nexus_csv_writer and ngen::utils::nexus_netcdf_writer derived classes. This implements part 1 of #605.
See https://github.com/NOAA-OWP/t-route/pull/636 for the output schema. Output file names are formatted as: {%Y%m%d%H%M}NEXOUT.{nc|csv}, based on t-route's parsing logic.
Usage
The following modifications should be made before using this:

Before running ngen, export the NGEN_QLAT_FORMAT environment variable to be either netcdf or csv.
in your routing config file, ensure forcing_parameters.qlat_file_pattern_filter is set to *NEXOUT.csv or *NEXOUT.nc, depending on the format you output.
Optional, but recommended: set output_root in your realization config so that the outputs are aggregated under a single directory.
Ensure your forcing_parameters.qlat_input_folder points to the same location as your realization config's output_root, if set.

Additions

Adds ngen::utils::nexus_writer
Adds ngen::utils::nexus_csv_writer
Adds ngen::utils::nexus_netcdf_writer
Adds environment variable checking for user to choose QLAT output. For example, setting NGEN_QLAT_FORMAT=netcdf will output NetCDF files, or otherwise CSV files.

This is a temporary workaround until a decision is made on whether this should be set in the realization configuration files.

Changes

Modifies CSV outputs to conform to NetCDF format.
Modifies src/NGen.cpp to include the logic for using ngen::utils::nexus_writer.
Modifies src/NGen.cpp to prevent destruction of nexus_collection, since the flowpath/segment IDs are needed for method calls to nexus_writer.

Notes

If NetCDF is not available at compile-time, but NGEN_QLAT_FORMAT is set to "NetCDF" at run-time, then a std::runtime_error will be thrown when any of nexus_netcdf_writer's methods are called.

Testing

Adds unit tests for ensuring output formats are correct by parsing temporary outputs for both CSV and NetCDF.

Todos

[x] Unit Testing for Nexus Writers
[X] Corresponding t-route PR (waiting on inland hydraulics)
[ ] MPI handling (?)

Checklist

[X] PR has an informative and human-readable title
[X] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[X] Code follows project standards (link if applicable)
[x] Passes all existing automated tests
[x] Any change in functionality is tested
[x] New functions are documented (with a description, list of inputs, and expected output)
[X] Placeholder code is flagged / future todos are captured in comments
[x] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[x] Reviewers requested with the Reviewers tool :arrow_right:

Testing checklist (automated report can be put here)

Target Environment support

[ ] Linux

Probably replaced by #744

@hellkite500 @donaldwj does it seem reasonable to close this?


Notifications

Hi,
I love this idea, and I will migrate to it from uptimerobot.
One thing that I miss, though, is notifications.
How about using something like shoutrrr to send out notifications when a service goes down?
Regards,
Dorian

Sounds like a good idea - could you send a PR please?

I'm currently working on my own solution for this, which is completely based on glolang.
But I don't know, when I will have time to finish it.

@vijaye-statsig bro i added pull request which add support for SMTP Mail Notification support + incident report support! https://github.com/statsig-io/statuspage/pull/24

I'm currently working on my own solution for this, which is completely based on golang.
But I don't know, when I will have time to finish it.

Been 2 years Lmao!


Revert "Include '/u' flag on summary regex + tests"

This reverts commit ef793921f7b207313e3ebe9d7b74fa856c870092. This change is breaking, and breaks Guzzle's tests. I'd suggest we only keep this change for 2.0.0, and revert in the 1.x series. Note that ef793921f7b207313e3ebe9d7b74fa856c870092 is not yet included in any tagged release, so nobody can complain that reverting it is actually breaking in itself.

We have discussed this on Slack, and instead we will change Guzzle's tests.


Test constraint rendering with column quoting

test https://github.com/dbt-labs/dbt-core/pull/7537

@cla-bot check


[Backport RC for 1.155.0] Backport CASSANDRA-9292 and CASSANDRA-13849

For backporting https://github.com/palantir/cassandra/pull/520 (which backports 2 upstream changes) to 1.155.0

No longer needed to backport.


workloads: add aitutu

Add a workload to execute the Aitutu benchmark.

Hi Marc, think I've handled most of these changes. Can I get another review please?

Hi Scott, I don't seem to see able to see any changes to the PR here. Could you try re-pushing your changes?

Have responded to changes. Please review.


Usage in CI/CD image pipelines

Hi there. I've been looking at this benchmarking tool as a way to verify that images meet these CIS recommendations as part of a CI/CD pipeline. In case there's any doubt what that means, we would build an image for a new version of an app, then we'd run these tests, and if the score was below some threshold or some critical tests failed, we'd treat that as a failure and not launch any containers based on the image.
From looking at the code for this tool, my assumption is that its primary intended use case is for post-deployment monitoring. Is that accurate? The scripts look at currently running containers and check both the host and the currently-running containers. However, I haven't noticed any checks that actually require a running container - they could just as well be checks on images, as far as I can tell.
Is there any interest in changes that would allow running the image-specific checks (ie. section 4 of the benchmark) on a single, specified image? Or something similar? Right now to make this tool work in a CI context we'd have to instantiate a single container from the image under test, and then run the entire suite of checks - host checks included - and somehow filter out the host checks from the output to get meaningful image-specific results. Unless I've misunderstood how this is supposed to be used?
This is something that I (or we - my colleagues and my employer) might be able to contribute if there's an appetite for it, but it seems best to begin with this issue. We may have to modify it anyway to make this work more pragmatically in a CI/CD context, but I'd prefer not to maintain a fork of these benchmarks if that's avoidable. And on the face of it this seems like it could be a common issue.
Thanks.

Hi @harryw, docker-bench-security is, as you said, primarily used as a way to test the current running configuration on a basic server with Docker setup. The reason for this is because is follows the CIS Benchmark and haven't really been adapted for anything else.
The checks in section 5 should require running containers; https://github.com/docker/docker-bench-security/blob/master/tests/5_container_runtime.sh
Improvements are always welcome and a number of issues has been reported (#51, #114 and #267) which might be related.
If a rule-by-rule approach is implemented I believe this would be a step towards a easier CI/CD implementation.

We're also interested in using this as part of a CI pipeline.  The -c option has been useful to filter it down to just a few tests.  I'd also be interested in isolating the image checks to just one specific image tag.  But I understand if that can appear detracting to the original intention of this repo.
@harryw can you share anything - I'm interested in how you've been filtering the output to that for a specific image, and if you're failing the build based on certain text in the output?

Ref #286

#328 has been merged.

Closing due to inactivity.


Gradient sometimes doesn't extend to the edges of the widget

At certain widget sizes, the BoxDecoration's gradient doesn't affect the last 1-2 pixels of the edges. If you zoom on the 2 images I've uploaded below, you will see that the gradient doesn't reach the end of any of the sides. If in the example code I set the SizedBox's height to 400, while leaving the width at 300, only the left and right sides won't be reached.
The pattern I've noticed is: when the height is set to {100, 300, 500...} the gradient doesn't extend completely vertically and with {200, 400, 600...} it does. The width affects the horizontal axis the same way.

Images

Code to reproduce
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Center(
          child: SizedBox(
            width: 300,
            height: 300,
            child: DecoratedBox(
              decoration: const BoxDecoration(color: Colors.pink),
              child: DecoratedBox(
                decoration: BoxDecoration(
                  gradient: LinearGradient(
                    begin: Alignment.centerRight,
                    end: Alignment.centerLeft,
                    stops: const [0, 0.2, 0.3],
                    colors: [
                      Colors.black,
                      Colors.black.withAlpha(150),
                      Colors.black.withAlpha(0),
                    ],
                  ),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
    • Flutter version 2.10.5 at C:\Dev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (22 hours ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
    • Android SDK at D:\Programs\Android_SDK
    • Platform android-31, build-tools 33.0.0-rc1
    • Java binary at: D:\Programs\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2021.1)
    • Android Studio at D:\Programs\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.66.2)
    • VS Code at C:\Users\hrist\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.38.1

[√] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.19044.1645]
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 100.0.1185.44

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

flutter analyze
No issues found!

Hi @lotusgate, thanks for reporting this.
My guess is this is related to https://github.com/flutter/flutter/issues/14288 but I'm not certain, so I'll be leaving this for further input from the team.
Reproducible on only android in my testing using the code sample provided above. See screenshots below.
SN: It might be necessary to zoom into the screenshots below to see the issue clearly

screenshots

android
ios
macos
web

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 2.10.5 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5464c5bac7 (2 days ago), 2022-04-18 09:55:37 -0700
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[☠] IntelliJ IDEA Community Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:205:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:309:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

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

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 12 (API 31) (emulator)
    • iPhone 13 (mobile)          • DBB48503-41CE-4969-9043-3261726E438A • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 100.0.4896.127

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.13.0-0.0.pre.635, on macOS 12.3.1 21E258 darwin-arm, locale en-GB)
    • Flutter version 2.13.0-0.0.pre.635 at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b31eb41bcb (8 hours ago), 2022-04-19 20:34:07 -0400
    • Engine revision 2ce50acf42
    • Dart version 2.18.0 (build 2.18.0-36.0.dev)
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-32, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] IntelliJ IDEA Community Edition (version 2021.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 213.5744.122

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

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 12 (API 31) (emulator)
    • iPhone 13 (mobile)          • DBB48503-41CE-4969-9043-3261726E438A • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 12.3.1 21E258 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 100.0.4896.127

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

cc @flar

The issue seems scale dependent. Even though it doesn't happen on my MBP/macos I can get it to appear by applying a scale. See the following scalable version and play with the scale until it appears.

Click to expand!
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
  double scale = 1.0;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Stack(
          children: [
            Center(
              child: Transform.scale(
                scale: scale,
                child: SizedBox(
                  width: 300,
                  height: 300,
                  child: DecoratedBox(
                    decoration: const BoxDecoration(color: Colors.pink),
                    child: DecoratedBox(
                      decoration: BoxDecoration(
                        gradient: LinearGradient(
                          begin: Alignment.centerRight,
                          end: Alignment.centerLeft,
                          stops: const [0, 0.2, 0.3],
                          colors: [
                            Colors.black,
                            Colors.black.withAlpha(150),
                            Colors.black.withAlpha(0),
                          ],
                        ),
                      ),
                    ),
                  ),
                ),
              ),
            ),
            Positioned(
              bottom: 0,
              left: 10,
              child: Row(
                children: [
                  const Text('Scale:', style: TextStyle(color: Colors.cyan)),
                  Slider(
                    value: scale,
                    min: 0.1,
                    max: 2.0,
                    onChanged: (v) => setState(() => scale = v),
                  ),
                  Text('$scale', style: TextStyle(color: Colors.yellow)),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}

This appears to be an intersection/interaction of "odd scales and layout computations can produce non-integer coordinates for our rendering" and "antialiased rendering of 2 rectangles with non-integer coordinates does not cause the edge pixels to be replaced due to partial coverage".
You can see this with the following skia fiddle: https://fiddle.skia.org/c/4897c0f4ed01b87c93912216cb552738
But if you turn off antialiasing in the 2 places it is set, then the edge bleed goes away:
https://fiddle.skia.org/c/3bfb8bd287277e6874e9d596bf45221f
I'm not sure how to disable AA for box decorations, though?

This issue seems to still exist. I can reproduce it with certain sizes on macOS 14.1 (M1).

The provided code snippet in this issue also produces this error:

Code to reproduce

The issue seems scale dependent. Even though it doesn't happen on my MBP/macos I can get it to appear by applying a scale. See the following scalable version and play with the scale until it appears.
Click to expand!
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
  double scale = 1.0;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Stack(
          children: [
            Center(
              child: Transform.scale(
                scale: scale,
                child: SizedBox(
                  width: 300,
                  height: 300,
                  child: DecoratedBox(
                    decoration: const BoxDecoration(color: Colors.pink),
                    child: DecoratedBox(
                      decoration: BoxDecoration(
                        gradient: LinearGradient(
                          begin: Alignment.centerRight,
                          end: Alignment.centerLeft,
                          stops: const [0, 0.2, 0.3],
                          colors: [
                            Colors.black,
                            Colors.black.withAlpha(150),
                            Colors.black.withAlpha(0),
                          ],
                        ),
                      ),
                    ),
                  ),
                ),
              ),
            ),
            Positioned(
              bottom: 0,
              left: 10,
              child: Row(
                children: [
                  const Text('Scale:', style: TextStyle(color: Colors.cyan)),
                  Slider(
                    value: scale,
                    min: 0.1,
                    max: 2.0,
                    onChanged: (v) => setState(() => scale = v),
                  ),
                  Text('$scale', style: TextStyle(color: Colors.yellow)),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}


A few minor fixes

allow user to specify dispersive materials for Meep materials
fixed bug where adding a layer would throw an error if "visible" or "transparent" were undefined in the .lyp file
added a few type hints per #56 (maybe double-check edit to coord2 -- do those need to be float64's?)

Thank you Thomas,
I think Coord2 has mostlyfloat64 types, as phidl uses np.array for the self.bbox, self.x, self.y

one thing we could do is casting them to float or int before returning them
I cc'ed Adam, to see what he thinks
@amccaugh


Update with new VertexAIModelGarden output format

On December 1st, the Google Cloud Vertex AI Model Garden models runtime received an update in the form of Prompt:\n\t{prompt}\nOutput:\n\t{prompt} and now streams tokens throughout the second level list.
This change will break the current behavior of your applications if adequate fixes are not applied.
We are promoting these changes based on our experiences with LLaMA, Falcon, Mistral, and additional models that are distributed directly by Vertex AI Model Garden.
Probably fixes #13370 #10012

Vertex AI Model Garden have some wild changes depending on how you run it, I made few fix for specific ones at https://github.com/shikanime/langchain-vertexai-extended.git

Thanks @shikanime 💯

Should be against the https://github.com/langchain-ai/langchain-google repo instead!


Issues with searching the subreddit

Some users reported that they are unable to search the Subreddit with this style's UI.
See the discussion here.
Here is the test case.

#header-img.default-header, #header-img this is the element which overlaps the list, just move it up a tad

I think this should fix it
.search-page #header-bottom-left { top: -35px; }

@jflory7 did you get a chance to try this yet?

@micahdenn Whoops, missed this. Just applied the change!
@bobpndrgn Let us know if this fixes it for you.


Remove duplicate entry from root owners file

What type of PR is this?
/kind cleanup
What does this PR do / why we need it:
Remove duplicate entry from root owners file
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes NA
How to test changes / Special notes to the reviewer:
see the OWNER file

Codecov Report

Merging #48 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #48   +/-   ##
=======================================
  Coverage   61.36%   61.36%
=======================================
  Files          52       52
  Lines        2464     2464
=======================================
  Hits         1512     1512
  Misses        818      818
  Partials      134      134

Flag
Coverage Δ

#unittests
61.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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

/kind cleanup

/lgtm

Should we  also remove other duplicates?  e.g. other approvers also on reviewers list.


[WIP] Reorganizes docs

--> Play with it here <--
After some feedback from internal Liferay users, we are trying to restructure the docs in a way that helps users find the information they need without having to fully understand our proprietary features and verbiage.
Note: not all links are fixed but most content and document structure should be ready for review.

Added a new page for Project Environments (configure/environments/)


[ezzif] The bus functions should probably take unsigned int* ns.

Just for consistency with the other functions. And in case we develop a programmer that can take more than 255 pins :)
I'm not convinced that the space savings is worth the inconsistency.

This wasn't so much about space savings, as it was easier to do math on byte values. Its still an open issue if we have more than one programmer how we'll organize the code and API consistency

So we need to decide if pins are going to be unsigned char or unsigned int.
Or uint8_t, since specifying the size of types is usually a good idea for embedded C!

We should probably have a tag for code style "bugs".


Event error

When using the bot example and installing the library via pip on Python 3.8 (since it doesn't work with version 3.11), I receive an AttributeError: Cannot change the id of a channel error almost with any event.

It works on python3.11, but the same error occurs.

This issue has been reported before. Can you try with the current master branch and let me know if the issue is still there

Thank you very much, especially for the update to tt5.15!

Thx.


block/allow interfaces

The following will ignore all docker interfaces when gathering candidates
ice.get_host_addresses(block_list=["docker*"])

The following will only allow ethernet interfaces when gathering candidates
ice.get_host_addresses(block_list=["eth*"])

The following will only allow ethernet interfaces when gathering candidates
ice.get_host_addresses(block_list=["eth*"])

It should it be allow_list=["eth*"]) right?

I don't plan on merging this as-is as I can see this leading to a proliferation of options for allowing / blocking not only interfaces but specific addresses. Another option would be to introduce a filter_host_addresses callable which you can use to do whatever you want. This could in fact superseed the use_ipv4 and use_ipv6 parameters.


Remove zero dollar balance records from blockchain_list_key_balances

Low priority, just documenting that we will want to reduce the output of this API call at some point: blockchain_list_key_balances "BTS4yCfjLwbPaF7FcmTJUVCDWg5ZzUtGi3W3ovdkSEXrT43igWQyz"

This is not going to remove the need to re-query all balance records.   A balance can move to zero making that record very important.  Perhaps a last modified date is more appropriate.  I'll re-do the ticket if this becomes performance intensive.


Spike: Hyperledger Besu provisioning

Description
As a developer I want to explore Hyperledger Besu so that it can be used as a DLT platform for BAF
https://www.hyperledger.org/projects/besu

Besu Spike.pdf

@lakshyakumar Please create the relevant Issues and then close this ticket.


Custom pytree strange leakage behavior

I found that a custom pytree (of standard mutable pytree like list/dict)
behave strangely in the following example, where the treedef changes inside a function:
from jax.tree_util import register_pytree_node_class

@register_pytree_node_class
class C:
    def __init__(self, l=[]):
        self.l = l

    def tree_flatten(self):
        return self.l, None

    @classmethod
    def tree_unflatten(cls, aux_data, children):
        return cls(children)

def f(c):
    c.l.append(0)
    return c

print(vars(C()))
print(vars(C()), vars(f(C())))

returns
{'l': []}
{'l': [0]} {'l': [0]}

The two C() return different outputs and the second one seem to be polluted by the f(C(0)) call.

Another example is https://github.com/DifferentiableUniverseInitiative/jax_cosmo/issues/81#issuecomment-1016984119
where treedef doesn't change but aux_data leak among instances.

Isn't the problem here that the default value you are using in your __init__ is mutable? That's a known Python antipattern.
Try something like:
    def __init__(self, l=None):
        self.l = [] if l is None else l

Thanks @hawkinsp! That explains it.


Ch9 - training deep neural network - how to attach GPU?

@lakshmanok - regarding my earlier issue (#164), I've ended up manually exporting the data from BQ to cloud storage using the GUI.
The rest of the notebook is working fine, but now I'm training the deep neural network it's awfully slow (I'm still on the first of the 10 epochs and it's not even half way through it after 10 minutes!).
I'm guessing that the problem is that I'm using CPUs rather than a GPU...on p.322 of the book you state "Making sure that the Vertex AI Workbench notebook that I’m working on has a GPU attached to it, I can now launch off the training job..." but if I'm not mistaken it's not covered in the textbook or notebook how to do this?
I've already set up my fully-managed notebook to enable an NVIDIA T4 GPU, but I believe that it won't be attached automatically without me doing something else.

The GC docs refer to creating a separate CustomJob  to achieve this - is that what you did or is there a quicker way?

When you launch the notebook instance, make sure to specify a machine type
with a GPU. You can also stop the instance, add a GPU, and then restart it
thanks,
Lak
On Fri, Feb 10, 2023, 8:41 AM James @.***> wrote:

@lakshmanok https://github.com/lakshmanok - regarding my earlier issue (
#164
https://github.com/GoogleCloudPlatform/data-science-on-gcp/issues/164),
I've ended up manually exporting the data from BQ to cloud storage using
the GUI.
The rest of the notebook is working fine, but now I'm training the deep
neural network it's awfully slow (I'm still on the first of the 10 epochs
and it's not even half way through it after 10 minutes!).
I'm guessing that the problem is that I'm using CPUs rather than a
GPU...on p.322 of the book you state "Making sure that the Vertex AI
Workbench notebook that I’m working on has a GPU attached to it, I can now
launch off the training job..." but if I'm not mistaken it's not covered
in the textbook or notebook how to do this?
The GC docs refer to creating a separate CustomJob
https://cloud.google.com/vertex-ai/docs/training/configure-compute#create_custom_job_gpus-console
to achieve this - is that what you did or is there a quicker way?
—
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/data-science-on-gcp/issues/165,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANJPZ2FRQLPPMDNEJOI2DLWWZVT3ANCNFSM6AAAAAAUYAAVTM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Still no quicker I'm afraid - one epoch is taking about 20 minutes...
My notebook instance now comes with a GPU:

And when starting the notebook I've selected as my kernel Tensorflow 2 (Local), previously it was Python (local) :

I can't see any other options for specifying that my GPU should be used...

Actually I have a really dumb question but it's come up before in this book so I may as well ask it now...
I'd like to see the CPU/GPU usage of the VM that my notebook is running on. In other cloud platforms (eg. Azure) you have to connect the notebook to a VM manually every time, which makes this easy to do.
But in GCP, everything seems to happen in the background and it's not clear how to inspect your VM....if I go to the VM Instances API in the console, it looks like I don't have any:

Please could you advise?

(1) If you didn't change the line that says DEVELOP=True in the notebook,
each epoch should take less than a minute.  By any chance, are the compute
on the notebook & the bucket region different?
(2) you can look at notebook gpu/cpu usage etc. by click on the notebook
name (in the Vertex Workbench area), and selecting the "Monitoring" tab
thanks
Lak
On Fri, Feb 10, 2023 at 9:43 AM James @.***> wrote:

Actually I have a really dumb question but it's come up before in this
book so I may as well ask it now...
I'd like to see the CPU/GPU usage of the VM that my notebook is running
on. In other cloud platforms (eg. Azure) you have to connect the notebook
to a VM manually every time, which makes this easy to do.
But in GCP, everything seems to happen in the background and it's not
clear how to inspect your VM....if I go to the VM Instances API in the
console, it looks like I don't have any:
[image: image]
https://user-images.githubusercontent.com/8484188/218159743-09a7e68a-de0b-4fbf-ace3-b8a51d0248c9.png
Please could you advise?
—
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/data-science-on-gcp/issues/165#issuecomment-1426135782,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANJPZYEPRVZURWUX6TCQA3WWZ44NANCNFSM6AAAAAAUYAAVTM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Oh I changed DEVELOP=True to DEVELOP=False after successfully running 2 epochs. The flow of the Jupyter notebook is somewhat different to the textbook chapter so I thought that was what I was supposed to do - maybe not!

Unfortunately I can't see any Monitoring tab, only Logs:

Thanks for these quick response by the way...I'll be sure to mention them in the glowing Amazon review I give of the book once I'm done with it!

I see! Thank you Lak.


Remove warning from test

This removes warnings below:
test/test_gyazo.rb:12: warning: ambiguous first argument; put parentheses or a space even after `/' operator
test/test_gyazo.rb:17: warning: ambiguous first argument; put parentheses or a space even after `/' operator

resolved by #21


Error with running word embedding on pubmed

Hi Luca,
Here is the error message when running word embedding on pubmed:
multiprocessing.pool.RemoteTraceback:
Traceback (most recent call last):
  File "/home/ravanv/anaconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 146, in tokenize_lines
    for line in lines
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 146, in <listcomp>
    for line in lines
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 126, in tokenize_line
    for word in word_tokenize(line.lower() if self._to_lower_case else line)
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/__init__.py", line 129, in word_tokenize
    sentences = [text] if preserve_line else sent_tokenize(text, language)
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/__init__.py", line 107, in sent_tokenize
    return tokenizer.tokenize(text)
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1272, in tokenize
    return list(self.sentences_from_text(text, realign_boundaries))
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1326, in sentences_from_text
    return [text[s:e] for s, e in self.span_tokenize(text, realign_boundaries)]
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1326, in <listcomp>
    return [text[s:e] for s, e in self.span_tokenize(text, realign_boundaries)]
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1316, in span_tokenize
    for sl in slices:
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1357, in _realign_boundaries
    for sl1, sl2 in _pair_iter(slices):
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 314, in _pair_iter
    prev = next(it)
  File "/home/ravanv/.local/lib/python3.7/site-packages/nltk/tokenize/punkt.py", line 1330, in _slices_from_text
    for match in self._lang_vars.period_context_re().finditer(text):
TypeError: expected string or bytes-like object
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/projects/robinson-lab/vidar/wordembedding_Pubmed_skipgram/embiggen/Word_embedding_Skipgram.py", line 32, in <module>
    transformer.fit(pubmed)
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 231, in fit
    tokens_list, counts = self.tokenize(texts, True)
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 177, in tokenize
    disable=not self._verbose
  File "/home/ravanv/anaconda3/lib/python3.7/site-packages/embiggen/transformers/corpus_transformer.py", line 168, in <listcomp>
    line
  File "/home/ravanv/.local/lib/python3.7/site-packages/tqdm/std.py", line 1107, in __iter__
    for obj in iterable:
  File "/home/ravanv/anaconda3/lib/python3.7/multiprocessing/pool.py", line 748, in next
    raise value
TypeError: expected string or bytes-like object

I will share with you a pubmed file with 100,000 lines in google drive.

Could you also add the minimal code needed to reproduce this?

import silence_tensorflow.auto # Import needed to avoid TensorFlow warnings and general useless infos.
import pandas as pd
import numpy as np
from embiggen import CorpusTransformer
from embiggen import Word2VecSequence
from tensorflow.distribute import MirroredStrategy
from embiggen import SkipGram
from tensorflow.keras.optimizers import Nadam
from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau
from sklearn.metrics.pairwise import cosine_similarity
from plot_keras_history import plot_history
import matplotlib.pyplot as plt
import tensorflow as tf
batch_size = 128
embedding_size = 100
window_size=5
negative_samples=20
delta=0.0001
patience=20
min_counts=5
#pubmed = pd.read_csv("/projects/robinson-lab/vidar/wordembedding_Pubmed_skipgram/embiggen_initial_results/data/pubmed_cr.tsv",header = None,sep='\t').iloc[:,2].tolist()
year = 2021
pubmed_data = pd.read_csv("/projects/robinson-lab/marea/data/pubmed_cr/new/pubmed_cr.tsv",header = None,sep='\t',nrows=100000)
pubmed_year = pubmed_data.loc[pubmed_data.loc[:,1]< year]
pubmed = pubmed_year.loc[:,2].tolist()
transformer = CorpusTransformer(apply_stemming=False, verbose=False,remove_stop_words=False,remove_punctuation = False,
min_word_length=0,to_lower_case=False,min_count = min_counts, min_sequence_length=window_size*2+1)
transformer.fit(pubmed)
encoded_pubmed = transformer.transform(pubmed)
np.save(f"encoded_pubmed.npy",encoded_pubmed)
print(f"The transformer will use {transformer.vocabulary_size} different terms.")

The path to pubmed_data should be the file that I shared with you.

There are NaN values in the PubMed file, that is what is causing the issue. I will add an exception to notify immediately of this issue so that the error will be easier to understand.

Oh, Ok. Thanks, Luca. I will also check with Hannah because this is a new file that was generated. I don't think we had NaN values in the second column before.

I have updated the exception that is now more explicative for these cases. I have already published the updated version, so you can simply run pip install embiggen -U to get the latest.


Support for Laravel 8.x

Hello, I get a requirements error when trying to add laravel-twig to my new Laravel 8.x project.
I think this could possibly be fixed by changing the requirements in composer.json from ^6|^7 to ^6|^7|^8. Ofcourse Laravel 6.x and 7.x should keep working for projects depending on it. If you'd like, I can create a PR for the suggested fix.

You're welcome.

The problem is that I don't understand the structure of this repo: your latest release is v1.2.0 (3 March 2020), but: This commit does not belong to any branch on this repository.

Thank you!


lightspeed: ensure the LSP can access the http_proxy envvars

Ensure the LSP has access to the root process envvars, this way Axios can honor the
local proxy configuration.

Is this still needed? If so it will need a rebase. I made it draft, make it ready for review when is passing CI, or close it if no longer needed.


ActionController::InvalidAuthenticityToken: ActionController::InvalidAuthenticityToken

View details in Rollbar: https://rollbar.com/trystant/BOW/items/217/

ActionController::InvalidAuthenticityToken: ActionController::InvalidAuthenticityToken
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/request_forgery_protection.rb", line 181, in handle_unverified_request
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/request_forgery_protection.rb", line 209, in handle_unverified_request
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/helpers.rb", line 251, in handle_unverified_request
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/request_forgery_protection.rb", line 204, in verify_authenticity_token
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 430, in block in make_lambda
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 162, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 162, in block in halting
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 502, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 502, in block in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 502, in each
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 502, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb", line 88, in run_callbacks
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb", line 19, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb", line 29, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb", line 32, in block in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb", line 20, in instrument
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb", line 164, in instrument
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb", line 30, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb", line 250, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/searchkick-0.8.7/lib/searchkick/logging.rb", line 107, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb", line 18, in process_action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb", line 137, in process
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/rendering.rb", line 30, in process
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb", line 196, in dispatch
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb", line 13, in dispatch
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb", line 237, in block in action
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb", line 76, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb", line 76, in dispatch
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb", line 45, in serve
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb", line 43, in block in serve
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb", line 30, in each
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb", line 30, in serve
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb", line 821, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/rack-pjax-0.8.0/lib/rack/pjax.rb", line 12, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/bullet-4.14.7/lib/bullet/rack.rb", line 12, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb", line 35, in block in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb", line 34, in catch
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb", line 34, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb", line 24, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb", line 38, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb", line 13, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/remotipart-1.2.1/lib/remotipart/middleware.rb", line 27, in call
  File "/Users/dariusgoore/development/blackops/.bundle/gems/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/

Since this occurred only in a 1 hour period on @campgurus 's development box and the user profile can currently be updated, I'm comfortable closing this ticket.


Updated the checkstyle supressions file

Added missing regexes for paths to support both Windows and *nix.
On Windows, the path separator is \ not /.
As a result, the build fails due to Checkstyle violations.

@aherbert Is this alright?

Looks good. Please feedback any other issues you have with building on Windows.

Codecov Report

Merging #128 (3681d27) into master (c1febff) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #128   +/-   ##
=========================================
  Coverage     99.14%   99.14%
  Complexity     1681     1681
=========================================
  Files            65       65
  Lines          4310     4310
  Branches        855      855
=========================================
  Hits           4273     4273
  Misses           10       10
  Partials         27       27

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


qwerty-fr: init at 0.7.3

Description of changes
This PR adds the qwerty-fr package.
It's a qwerty-based keyboard layout which allows typing of special characters present in the French language (é ç « »).
It's a fairly simple package as it simply grabs the latest release and extracts it in the output, as described in their other distros installation instructions.
See it here: https://github.com/qwerty-fr/qwerty-fr
fixes #298450
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

[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 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.

Hopefully this prgets updated, will take it back otherwise

@Qyriad @Sigmanificient
I've taken care of your suggestions, please have a look

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/1818


Can you please build a plug-in for Zee5 app ?

Can You please build a plug-in for streaming Zee5 content by using the Indian Credentials Like you did for Disney+Hotstar ? Thank You.

I'll try it later and update in this repo so stay updated

Thank you. 😀
On Mon, Apr 20, 2020 at 4:15 AM botallen<EMAIL_ADDRESS>wrote:

I'll try it later and update in this repo so stay updated
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/botallen/repository.botallen/issues/15#issuecomment-616386736,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APCKZ6TY7JQOWXDXUKOJBSDRNQAB3ANCNFSM4MMCVCGQ
.

--
Sent from My iPhone 6+

Zee5

There is one already available for that https://github.com/mani-coder/plugin.video.youngkbell.zee5

Zee5

There is one already available for that https://github.com/mani-coder/plugin.video.youngkbell.zee5

It is not working..

Any update on the zee5 addon ?

The above zee5 link should work. I am using it. or try the forked link from my repo
https://github.com/Vikassm73/plugin.video.youngkbell.zee5
If zee5 is geo-restricted now (I am not sure) then it may not work outside India

Waiting!

This is already available
https://github.com/Vikassm73/AjaykRepo


[Bug]: Compatibility issue with Excalidraw plugin

Issue validation

[X] I checked the issue to prevent duplicate
[X] I checked my configurations files and the documentation
[X] My issue concern doesn't concern the Mkdocs template

Command used
No response
Plugin version
6.15.5
Describe the bug
There's a compatibility issue with Excalidraw when activating Github-Publisher prevents from using any icons in the toolbar. It is weird.
Link to the issue in the Excalidraw repo
How to reproduce ?

Install Excalidraw
Install GIthub-Publisher
Try to create a drawing and click a try icon

Minimal Reproducible Example
None

Configuration
{
  "github": {
    "branch": "main",
    "automaticallyMergePR": true,
    "dryRun": {
      "enable": false,
      "folderName": "github-publisher"
    },
    "tokenPath": "%configDir%/plugins/%pluginID%/env",
    "api": {
      "tiersForApi": "Github Free/Pro/Team (default)",
      "hostname": ""
    },
    "workflow": {
      "commitMessage": "[PUBLISHER] Merge",
      "name": ""
    },
    "verifiedRepo": true
  },
  "upload": {
    "behavior": "fixed",
    "defaultName": "docs/posts",
    "rootFolder": "docs",
    "yamlFolderKey": "categories",
    "frontmatterTitle": {
      "enable": false,
      "key": "title"
    },
    "replaceTitle": [],
    "replacePath": [
      {
        "regex": "docs/blog",
        "replacement": "docs/blog/posts",
        "type": "path"
      }
    ],
    "autoclean": {
      "enable": true,
      "excluded": [
        "/^((?!docs\\/posts|docs\\/images).)*$/"
      ]
    },
    "folderNote": {
      "enable": false,
      "rename": "index.md",
      "addTitle": {
        "enable": false,
        "key": "title"
      }
    },
    "metadataExtractorPath": ""
  },
  "conversion": {
    "hardbreak": false,
    "dataview": true,
    "censorText": [
      {
        "entry": "/title:\\s\"([^\"]+)\"/i",
        "replace": "title: $1",
        "flags": "",
        "after": false
      },
      {
        "entry": "/(date_)(created: )(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\+\\d{2}:\\d{2})\\n(date_)(modified: )(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\+\\d{2}:\\d{2})/i",
        "replace": "date:\\n  $2$3\\n  updated: $6",
        "flags": "",
        "after": true
      }
    ],
    "tags": {
      "inline": false,
      "exclude": [],
      "fields": []
    },
    "links": {
      "internal": true,
      "unshared": false,
      "wiki": true,
      "slugify": "strict"
    }
  },
  "embed": {
    "attachments": true,
    "overrideAttachments": [],
    "keySendFile": [],
    "notes": false,
    "folder": "docs/images",
    "convertEmbedToLinks": "keep",
    "charConvert": "->",
    "useObsidianFolder": false
  },
  "plugin": {
    "shareKey": "share",
    "excludedFolder": [],
    "copyLink": {
      "enable": false,
      "links": "",
      "removePart": [],
      "transform": {
        "toUri": true,
        "slugify": "lower",
        "applyRegex": []
      }
    },
    "setFrontmatterKey": "Set"
  }
}

Relevant log output
Nope

OS
Android, Windows
Anything else?
No response
Obsidian information
SYSTEM INFO:
	Obsidian version: v1.5.3
	Installer version: v1.4.16
	Operating system: Windows 10 Pro 10.0.22631
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 4
	Restricted mode: off
	Plugins installed: 36
	Plugins enabled: 2
		1: Excalidraw v2.0.21
		2: Github Publisher v6.15.5

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

I don't think it's from my repo, as I don't touch the excalidraw plugin in any way?
Like, I just use the API from the official excalidraw…

I don't think it's from my repo, as I don't touch the excalidraw plugin in any way?
Like, I just use the API from the official excalidraw…

I was quite surprised as well, but using a new vault with only the two plugins, the issue is reproduced. Maybe some CSS issue ? That's weird, but I'd be glad to help.

OIkay, I can reproduce it on a blank vault.

Okay, I think it's because Publisher use an older version of Excalidraw :
With Publisher:

Without:

should be fixed in f2e38a3
Note: I load the export settings from the plugin settings directly, but more option can be used.

Yup, I confirm, this is now fixed. Thanks for being so quick to help like last time. Still enjoying your work, now using mkdocs for a much better user experience.


[Notebook Request] Neural Chat 7B

Hi team!
I find this 7B model - Neural Chat from  Intel to be outperforming.
It would be a great deal to add it to the awesome repo
Thanks

Hey!
Totally agree, it is mostly question of time for the team, we have some other notebooks in preparation now.
Is there any chance you could contribute this in our chatbot notebook? It is very straightforward since with OV majority of the things are model independent. As you can see notebook covers 7 models already :)
You can take this PR as example of how this is done: https://github.com/openvinotoolkit/openvino_notebooks/pull/1505
Let us know!
Yury

Hi Yury
It seems neural chat just got updated. Will meet back in another PR. Thanks!


Left indentation of MJML Email

Describe the bug
I am trying to create a simple HTML email using MJML 4.12.0. The emails have an unnecessary left indentation.

In the image(from Gmail), you can see the default left indentation. The question is how can I remove this
To Reproduce
Steps to reproduce the behavior:

Create a file with this MJML code: <mjml>          <mj-head><mj-preview>Email Preview</mj-preview>          </mj-head>          <mj-body>              <mj-container>                  <mj-column>                      <mj-text>Body</mj-text>                  </mj-column>                  <mj-column>                      <mj-text>Signature</mj-text>                      <mj-image src="" alt="organization logo" align="left" width="120px" />                  </mj-column>              </mj-container>          </mj-body>      </mjml>
Render it to HTML.
Send the HTML to an email address.
See the error

Expected behavior
In the sent message you will see the left indentation.
MJML environment (please complete the following information):

OS: Linux Ubuntu
MJML Version 4.12.0

Email sending environment(for rendering issues):

I am using Microsoft graph API to send these emails.

mj-container doesn't exist anymore, and you don't have a single section in
your body.
MJML isn't suited for signature to be honest, you can try to send with
https://putsmail.com/ instead but I don't think there's any fix for you
here.
On Tue, Nov 15, 2022 at 12:57 PM dawoodaijaz97 @.***>
wrote:

Describe the bug
I am trying to create a simple HTML email using MJML 4.12.0. The emails
have an unnecessary left indentation.
[image: image]
https://user-images.githubusercontent.com/41577025/201912971-1786a9c7-6766-4899-a005-a4c45a69ad4c.png
In the image(from Gmail), you can see the default left indentation. The
question is how can I remove this
To Reproduce
Steps to reproduce the behavior:

Create a file with this MJML code:
Email Preview
  Body
Signature

Render it to HTML.
Send the HTML to an email address.
See error

Expected behavior
In the sent message you will see left indentation.
MJML environment (please complete the following information):

OS: [e.g. Linux Ubuntu]
MJML Version [e.g. 4.12.0]

Email sending environment(for rendering issues):

I am using Microsoft graph API to send these emails.

—
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/2574, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELHTLPIPFAYLZL7CVODSDWIN3BTANCNFSM6AAAAAASA3PCTU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Please check the documentation about section/column and how it's supposed
to work https://documentation.mjml.io/#getting-started
This is completely normal as MJML email are in a centered container by
default.
I don't think MJML will be any help in what you want to do here.
On Tue, Nov 15, 2022 at 1:34 PM dawoodaijaz97 @.***>
wrote:

Thanks for the feedback. I have tried putting mj-column inside mj-section.
After that, I get even more left indentation.
What do you mean by "ou don't have a single section in your body"?
—
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/2574#issuecomment-1315249306, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELHTPCLI4QNLP5CQPAIT3WIN7MTANCNFSM6AAAAAASA3PCTU
.
You are receiving this because you commented.Message ID:
@.***>


can't unstall some packages in python:3.8.0a4-stretch

i tried to build this dockerfile :
FROM python:3.8.0a4-stretch

WORKDIR /usr/src/app

RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y  python3-dev libxml2-dev libxslt1-dev python-dev libxslt-dev libyajl2
RUN pip install --upgrade pip
RUN pip install lxml

CMD [ "bash" ]

but it fails. i also had a similar error if i tried a "pip install numpy".
i also tried different versoins of lxml so i don't think that the libs are the problem.
last working debian version that i found is  : python:3.7.3-stretch
here is the log :
λ docker build -t test1.0 -f Dockerfile_dev.1 .
Sending build context to Docker daemon  369.1MB
Step 1/8 : FROM python:3.8.0a4-stretch
 ---> 56ff6e6d3ddd
Step 2/8 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 185b69d6e951
Step 3/8 : RUN apt-get update
 ---> Using cache
 ---> 9d2751c45b3f
Step 4/8 : RUN apt-get -y upgrade
 ---> Using cache
 ---> 8245c65912c8
Step 5/8 : RUN apt-get install -y  python3-dev libxml2-dev libxslt1-dev python-dev libxslt-dev libyajl2
 ---> Running in bd12361f7146
Reading package lists...
Building dependency tree...
Reading state information...
libxml2-dev is already the newest version (2.9.4+dfsg1-2.2+deb9u2).
libxslt1-dev is already the newest version (1.1.29-2.1).
The following additional packages will be installed:
  libpython-dev libpython2.7 libpython2.7-dev libpython3-dev libpython3.5
  libpython3.5-dev python2.7-dev python3.5-dev
The following NEW packages will be installed:
  libpython-dev libpython2.7 libpython2.7-dev libpython3-dev libpython3.5
  libpython3.5-dev libyajl2 python-dev python2.7-dev python3-dev python3.5-dev
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 69.2 MB of archives.
After this operation, 105 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 libpython2.7 amd64 2.7.13-2+deb9u3 [1071 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 libpython2.7-dev amd64 2.7.13-2+deb9u3 [28.2 MB]
Get:3 http://deb.debian.org/debian stretch/main amd64 libpython-dev amd64 2.7.13-2 [20.1 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libpython3.5 amd64 3.5.3-1+deb9u1 [1372 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 libpython3.5-dev amd64 3.5.3-1+deb9u1 [37.7 MB]
Get:6 http://deb.debian.org/debian stretch/main amd64 libpython3-dev amd64 3.5.3-1 [18.7 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 libyajl2 amd64 2.1.0-2+b3 [23.2 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 python2.7-dev amd64 2.7.13-2+deb9u3 [290 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 python-dev amd64 2.7.13-2 [1126 B]
Get:10 http://deb.debian.org/debian stretch/main amd64 python3.5-dev amd64 3.5.3-1+deb9u1 [413 kB]
Get:11 http://deb.debian.org/debian stretch/main amd64 python3-dev amd64 3.5.3-1 [1154 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 69.2 MB in 5s (12.9 MB/s)
Selecting previously unselected package libpython2.7:amd64.
(Reading database ... 30576 files and directories currently installed.)
Preparing to unpack .../00-libpython2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../01-libpython2.7-dev_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../02-libpython-dev_2.7.13-2_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.13-2) ...
Selecting previously unselected package libpython3.5:amd64.
Preparing to unpack .../03-libpython3.5_3.5.3-1+deb9u1_amd64.deb ...
Unpacking libpython3.5:amd64 (3.5.3-1+deb9u1) ...
Selecting previously unselected package libpython3.5-dev:amd64.
Preparing to unpack .../04-libpython3.5-dev_3.5.3-1+deb9u1_amd64.deb ...
Unpacking libpython3.5-dev:amd64 (3.5.3-1+deb9u1) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../05-libpython3-dev_3.5.3-1_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.5.3-1) ...
Selecting previously unselected package libyajl2:amd64.
Preparing to unpack .../06-libyajl2_2.1.0-2+b3_amd64.deb ...
Unpacking libyajl2:amd64 (2.1.0-2+b3) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../07-python2.7-dev_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7-dev (2.7.13-2+deb9u3) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../08-python-dev_2.7.13-2_amd64.deb ...
Unpacking python-dev (2.7.13-2) ...
Selecting previously unselected package python3.5-dev.
Preparing to unpack .../09-python3.5-dev_3.5.3-1+deb9u1_amd64.deb ...
Unpacking python3.5-dev (3.5.3-1+deb9u1) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../10-python3-dev_3.5.3-1_amd64.deb ...
Unpacking python3-dev (3.5.3-1) ...
Setting up libpython3.5:amd64 (3.5.3-1+deb9u1) ...
Setting up libpython3.5-dev:amd64 (3.5.3-1+deb9u1) ...
Setting up libyajl2:amd64 (2.1.0-2+b3) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libpython2.7:amd64 (2.7.13-2+deb9u3) ...
Setting up libpython2.7-dev:amd64 (2.7.13-2+deb9u3) ...
Setting up python3.5-dev (3.5.3-1+deb9u1) ...
Setting up python2.7-dev (2.7.13-2+deb9u3) ...
Setting up libpython3-dev:amd64 (3.5.3-1) ...
Setting up libpython-dev:amd64 (2.7.13-2) ...
Setting up python-dev (2.7.13-2) ...
Setting up python3-dev (3.5.3-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Removing intermediate container bd12361f7146
 ---> 7e29abef7332
Step 6/8 : RUN pip install --upgrade pip
 ---> Running in a3598b7089e3
Requirement already up-to-date: pip in /usr/local/lib/python3.8/site-packages (19.1.1)
Removing intermediate container a3598b7089e3
 ---> 388d4d61211d
Step 7/8 : RUN pip install lxml
 ---> Running in 8bc5ae6f8a36
Collecting lxml
  Downloading https://files.pythonhosted.org/packages/7d/29/174d70f303016c58bd790c6c86e6e86a9d18239fac314d55a9b7be501943/lxml-4.3.3.tar.gz (4.4MB)
Building wheels for collected packages: lxml
  Building wheel for lxml (setup.py): started
  ERROR: Complete output from command /usr/local/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-jpufgr8i/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2k_bab1t --python-tag cp38:
  Building wheel for lxml (setup.py): finished with status 'error'
  ERROR: Building lxml version 4.3.3.
  Building without Cython.
  Using build configuration of libxslt 1.1.29
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/sax.py -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/builder.py -> build/lib.linux-x86_64-3.8/lxml
  creating build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.8/lxml/includes
  creating build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.8/lxml/html
  copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.8/lxml/html
  creating build/lib.linux-x86_64-3.8/lxml/isoschematron
  copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.8/lxml/isoschematron
  copying src/lxml/etree.h -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/etree_api.h -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.8/lxml
  copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/__init__.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.8/lxml/includes
  copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.8/lxml/includes
  creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources
  creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/rng
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/rng
  creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl
  creating build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.8/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/src
  creating build/temp.linux-x86_64-3.8/src/lxml
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/local/include/python3.8 -c src/lxml/etree.c -o build/temp.linux-x86_64-3.8/src/lxml/etree.o -w
  src/lxml/etree.c: In function ‘__Pyx_InitCachedConstants’:
  src/lxml/etree.c:407:11: error: too few arguments to function ‘PyCode_New’
             PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
             ^
  src/lxml/etree.c:227577:34: note: in expansion of macro ‘__Pyx_PyCode_New’
     __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getitem, 95, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 95, __pyx_L1_error)
                                    ^
  In file included from /usr/local/include/python3.8/compile.h:5:0,
                   from /usr/local/include/python3.8/Python.h:137,
                   from src/lxml/etree.c:97:
  /usr/local/include/python3.8/code.h:105:28: note: declared here
   PyAPI_FUNC(PyCodeObject *) PyCode_New(
                              ^~~~~~~~~~
  [...........]
  src/lxml/etree.c:407:11: error: too few arguments to function ‘PyCode_New’
             PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
             ^
  src/lxml/etree.c:246504:15: note: in expansion of macro ‘__Pyx_PyCode_New’
       py_code = __Pyx_PyCode_New(
                 ^
  In file included from /usr/local/include/python3.8/compile.h:5:0,
                   from /usr/local/include/python3.8/Python.h:137,
                   from src/lxml/etree.c:97:
  /usr/local/include/python3.8/code.h:105:28: note: declared here
   PyAPI_FUNC(PyCodeObject *) PyCode_New(
                              ^~~~~~~~~~
  Compile failed: command 'gcc' failed with exit status 1
  creating tmp
  cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit6rn47aqg.c -o tmp/xmlXPathInit6rn47aqg.o
  /tmp/xmlXPathInit6rn47aqg.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
   main (int argc, char **argv) {
   ^~~~
  cc tmp/xmlXPathInit6rn47aqg.o -lxml2 -o a.out
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for lxml
  Running setup.py clean for lxml
Failed to build lxml

i guess it's not related to the image though, as i get the same error in the alpine image.

After some probing it looks like lxml won't install on the dev build, using 3.7 worked though
Also doing an apt-get upgrade in a container goes against best practices
python-dev is for python 2.7 so I removed it
Using slim for size
FROM python:3.7-slim

WORKDIR /usr/src/app

RUN apt-get update && apt-get install -y --no-install-recommends \
        python3-dev \
        libxml2-dev \
        libxslt1-dev \
        libxslt-dev \
        libyajl2 \
        gcc && \
    rm -r /var/lib/apt/lists/* && \
    pip install lxml && \
    apt-get autoremove -y && apt-get remove -y gcc

CMD [ "bash" ]

For the docker build after installing all the packages this is the only section with lxml
Collecting lxml
  Downloading https://files.pythonhosted.org/packages/66/20/49201c7bcb1c92942ac98658b09fb4a0c0dcd064d439489349bc5891207c/lxml-4.3.3-cp37-cp37m-manylinux1_x86_64.whl (5.7MB)
Installing collected packages: lxml
Successfully installed lxml-4.3.3

$ docker images | grep python
python        3.7-lxml            14a0231fb914        11 seconds ago      501MB
python        3.7-slim            ca7f9e245002        6 days ago          143MB

thanks!


[Bug]: Onchain address can display truncated in Review & Send page

Describe the bug
Reproduce

Go to send funds to bc1pt6z2qnlzmlcchn3x7prlp3rgkcmcxpzfz72s80q5tljrsuwm7wuqhwn7ww
Observe the Review & Send page
Observe truncation at end of onchain addres

Screenshots / Recording

Operating system
Android 13 TKQ1.221114.001
Bitkit version
v127
Log output
No response

Tested on working branch

Verified in v130 d8f96e7d6475d2eef04ae08f9d9dd2c8894a8218