Page transitions bad lifecycle ?

Environment

Operating System: Darwin
Node Version:     v18.12.1
Nuxt Version:     3.0.0-rc.14
Nitro Version:    1.0.0
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      modules, postcss, image, css, vite
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
Just use the javascript hooks of transitions, but here is my use case.
<template>
    <div>
        <NuxtLayout>
            <NuxtPage :transition="transition" />
        </NuxtLayout>
    </div>
</template>

<script setup>
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";

const layoutFooterEl = ref(null);

const transition = {
    mode: 'out-in',
    css: false,
    onLeave: (el, done) => {
        console.log('leave');

        gsap.to([el, layoutFooterEl.value], {
            opacity: 0,
            ease: 'none',
            duration: 0.3,
            onComplete: () => {
                console.log('leave complete');
                done();
            },
        });
    },
    onAfterLeave: () => {
        console.log('after leave');
    },
    onBeforeEnter: (el) => {
        console.log('before enter');

        gsap.set([el, layoutFooterEl.value], { opacity: 0, lazy: false });
    },
    onEnter: (el, done) => {
        console.log('enter');
        gsap.set([el, layoutFooterEl.value], { opacity: 0 });
        viewport.onResize();
        ScrollTrigger.refresh();

        lenis.value.scrollTo(0, { immediate: true });

        gsap.to([el, layoutFooterEl.value], {
            lazy: false,
            opacity: 1,
            ease: 'none',
            duration: 0.7,
            onComplete: done,
        });
    },
};

</script>

Describe the bug
On page transitions, the onMounted() hook is called before the page enter. Here is the lifecycle I have on the page transition:
app.vue:29 leave
page-2.vue:51 mounted
app.vue:34 leave complete
app.vue:44 before enter
app.vue:41 after leave
app.vue:48 enter

UPDATE: Also, the onUnmounted hook is called before the page finished the transition
Additional context
No response
Logs
No response

Let's track this upstream issue in https://github.com/nuxt/nuxt/issues/13471.


Water generating incorrectly in swamps

Occasionally in swamps water generates in a way that it shouldn't (I don't know how to describe it)

It can be found at /tp @s 1450 69 713 on this world. It may be due to lowering the sea level to 60 blocks. If the world is regenerated with seed<PHONE_NUMBER> and no options changed the problem does not occur.

Another case of Mojang hardcoding the water level :[
I'll try adding a replacement

I don't even GET swamps. No results in 24,000 samples using Nature's Compass.

Yeah don't worry it's being addressed in the upcoming 0.1.0 version of the mod


Bag of Words For Confidence Model

[ ] Find source
[ ] Find encoding for nucleotides
[ ] Make kmer groups
[ ] Vectorize the kmer groups

The source we used to accomplish the vectorizing and conversion of the genomic interpretation into a bag of words problem was this kagglle resource


bug: White area overlays part of the drawer's content

What version of daisyUI are you using?
v4.12.2.
Which browsers are you seeing the problem on?
Chrome, Edge
Reproduction URL
https://play.tailwindcss.com/jHFP9nyFks
Describe your issue
Drawer closed

Drawer open

This white area will overlay even the drawer's content, if the drawer is on the right side.

I see now that this is mostly dublicate issue with the issue https://github.com/saadeghi/daisyui/issues/2859. So for that.
Maybe information that scrollbar gutter overlay drawers' content is new information, through.
https://play.tailwindcss.com/CBaOgkgon6


Re-implement page rendering

Rather than trying to re-use the existing SectNode to implement arbitrary pages, introduce a dedicated PageNode type to handle them.  This way, we don't introduce errant whitespace in the resulting Asciidoc.
The trickiest thing here is that we now handle the level of section titles by using the existing depth keyword argument.
The current source and expected output (minus extra whitespace) of our indexpage.xml and examples_page.xml are used as text fixtures to ensure there are no regressions there.

The title depth isn't quite right as the "Interrupt Numbers" section in the hardware_irq Detailed Description (<IP_ADDRESS>.) is now being promoted to section 4.1.16. (rather than <IP_ADDRESS>.1.). Note that previously it didn't appear as a real section title at all.

With https://github.com/raspberrypi/doxygentoasciidoc/pull/7/commits/28b49dbdd06395f28dacce2fcbfc6428e4338650, the title depth is now fixed, see (note the small italic text "Interrupt Numbers" in "Before" compared to the proper subheading in "After"):

Before
After


checkov: 3.2.283 -> 3.2.286

Diff: https://github.com/bridgecrewio/checkov/compare/refs/tags/3.2.283...3.2.286
Changelog: https://github.com/bridgecrewio/checkov/releases/tag/3.2.286

Things done

Built on platform(s)

[ ] 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.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 355179

x86_64-linux

:white_check_mark: 2 packages built:

checkov
checkov.dist


Compiler errors: Raspbian 9.9, GCC 9.1.0

Hello Thierry!
I haven't been using the toolkit for long and started to build TSDuck 3.18-1245 for the Raspberry PI TV HAT module testing.
First of all, I got compilation errors after make-ing the build by GCC 6.3.0. I found information about "Specific GCC requirement on Raspian and Debian", followed the external link provided there and read the article with the instructions how to install a newer GCC version on Raspbian.

It seems the article was updated by the author recently, because it describes an installation of GCC 9.1.0 but https://tsduck.io/doxy/building.html says the article "explains how to install GCC 8.1.0 on Raspbian".

I have installed GCC 9.1.0, ran make and got an error:

tsThread.cpp: In member function 'bool ts::Thread::start()':
tsThread.cpp:207:54: error: 'PTHREAD_STACK_MIN' was not declared in this scope
  207 |         const size_t size = RoundUp(std::max<size_t>(PTHREAD_STACK_MIN, _attributes._stackSize), SysInfo::Instance()->memoryPageSize());
      |                                                      ^~~~~~~~~~~~~~~~~
../../Makefile.common:898: recipe for target 'release-arm/tsThread.o' failed
make[2]: *** [release-arm/tsThread.o] Error 1

I changed the PTHREAD_STACK_MIN to 0 and this kludge gave me ability to go further.

The second compiler error arose on the utests stage:

[CXX] utestAlgorithm.cpp
utestAlgorithm.cpp: In constructor 'AlgorithmTest::CppUnitExDeleter::CppUnitExDeleter()':
utestAlgorithm.cpp:61:5: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant]
   61 |     CPPUNIT_TEST_SUITE_END ();
      |     ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
../../Makefile.common:898: recipe for target 'release-arm/utestAlgorithm.o' failed
make[2]: *** [release-arm/utestAlgorithm.o] Error 1

I commented -Wzero-as-null-pointer-constant in CXXFLAGS_WARNINGS of Makefile.common and successfuly compiled the project. I'm sure I did the dirty things but I have no skill to say what corrections should be done and where.
Could you please comment points 2 and 3? I haven't found information in similar or closed issues. Am I totally wrong or something should be changed in the project code, the compiler instructions, somewhere else?

Hi @alexander-nf ,
First of all, try to compile with make NOTEST=true and not the plain make. Futhermore, in my compilations every time I use make NOTEST=1 NOPCSC=1 NODTAPI=1. This will solve for sure your second error.
Regarding the first one, just try to install the stock 4.9 compiler. The current version of TSDuck can't be compiled with GCC 6.x or 7.x. But it could be with the 4.8 & 4.9. I recommend it as it is much easier to install than the vanilla version of GCC 9.1.0.
See more info about this problem in this issue #279.
Regards.

Hi @lars18th!
Thank you for the explanations.
I've read the Doxygen manual and the origin (#279). Also I have successfully compiled the project using make GCC=gcc-4.9 CXX=g++-4.9 AR=gcc-ar-4.9 NOTEST=true.
But, as I understand from the manual (and from the comment), the GCC 9.x should compile the project without an issue and additional options of make. For this reason I reported the problem. If I am wrong or passed something by, I'm sorry and it is possible to close this issue thread as a duplicate.
Yes, I also confirm that NOTEST=true helps to avoid the point 3 from my initial message and to compile the TSDuck with GCC 9.1.0 successfully. But I still can't get rid of the GCC 9.1.0 error: 'PTHREAD_STACK_MIN' was not declared in this scope.

Hi @alexander-nf ,
I'm glad you solved your compilation problems.
Regarding the use of the GCC 9.x in Debian and Raspian, from my experience: forget it at all! It's quite difficult to mix the stock compiler with a new vanilla compiler inside the same distribution, except if you use the "cross-compiling" approach. For this reason I suggest to install a failback compiler, like the GCC 4.9 that you can found on these distributions.
In any  case I hope that @lelegard will include soon an error message when compiling with GCC 6.x & 7.0 as commented here: https://github.com/tsduck/tsduck/issues/297#issuecomment-491894281
Regards.

In any case I hope that @lelegard will include soon an error message when compiling with GCC 6.x & 7.0 as commented here: #297 (comment)

This is now done, compilation should fail with an explicit error message when compiling with GCC 6 and 7.

Please, close this issue. But read first my comment at https://github.com/tsduck/tsduck/issues/297#issuecomment-492794506 :wink:

Hello,
I think if there were no any option to use GCC 8.1+ in "Specific GCC requirement on Raspian and Debian" I've never opened the issue. But it's OK, according to your and @lelegard's recommendations I've chosen to use GCC 4.9 and to stop experiments of integrating GCC 9.1.0 in Raspbian. The experiments could take place, but it isn't in the scope of the project and the main target to build the project is achievable with GCC 4.9.
@lars18th and @lelegard,
thank you for your attention and patience.


Add tooltip_trigger similar to tooltip_source but to control if manual or on hover

Problem

Currently, widget.ts#L278 has trigger: "manual"
Proposed Solution

Change it to trigger: node.data()["tooltip_trigger"] ? node.data()["tooltip_trigger"] : "manual" so as to allow the user to control it by setting a node data entry "tooltip_trigger": "mouseenter focus" for example.

I realized an hour later that L278 above is wrapped in the .on("click". I replaced it with .on("mouseover", "node" for the sake of capturing only on hover on the node, but it didn't work for me. I guess that part of the code needs some review, eg:

is it creating new tooltips for each time a user clicks on a node? Why not just create all the tooltips on initialization
why is this creating a tooltip on a dummy div and then using .show instead of just attaching the tooltip on the node directly? I'm not familiar with the internals of cytoscape.js and tippy.js to know if this actually works

That would be a great PR if you'd like to work on it. I'll happily release any such improvements.

is it creating new tooltips for each time a user clicks on a node? Why not just create all the tooltips on initialization

I can think of two reasons:

Performance - time to first display is nice to keep fast so lazily creating these is good - especially if you have a graph with many nodes
The data in the tooltip is dynamic so we hold off creating it becuase the user can modify it at any time.

why is this creating a tooltip on a dummy div and then using .show instead of just attaching the tooltip on the node directly? I'm not familiar with the internals of cytoscape.js and tippy.js to know if this actually works

Maybe @marimeireles would know better but I suspect that this is following an example from those libraries.


requirements.txt missing in the distribution file in PyPI

Issue
Source distribution file, which is uploaded to PyPI is missing the requirements.txt files, which the setup.py fails to open. https://github.com/alexschimpf/fastapi-versionizer/blob/ea5794f386cd6cf36b9db986cc672866eab11a1a/setup.py#L8
Your environment

python version: 3.10
operating system: Ubuntu 22.04

Steps to reproduce
pip install fastapi-versionizer==1.0.0

Expected behaviour
The requirements.txt file should be included into the source distribution tarball file while building the package, or revert back to previous way of directly writing the library requirements in setup.py.

Note: same error will be thrown for package.json file as well, because it doesn't exist in the tarball either.
https://github.com/alexschimpf/fastapi-versionizer/blob/ea5794f386cd6cf36b9db986cc672866eab11a1a/setup.py#L11

Actual behaviour
Collecting fastapi-versionizer
  Using cached fastapi_versionizer-1.0.0.tar.gz (5.0 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-zln8exx2/fastapi-versionizer_f0887aaa0a8244ac8589cd0f033e99c5/setup.py", line 8, in <module>
          with open('requirements.txt', 'r') as requirements_file:
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Ahh got it. I'll fix this today. Thanks for bringing this up.

Ok should be fixed now in 1.0.1.
$ pip install fastapi-versionizer
>
Collecting fastapi-versionizer
  Downloading fastapi_versionizer-1.0.1.tar.gz (5.2 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: fastapi>=0.86.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi-versionizer) (0.103.1)
Requirement already satisfied: anyio<4.0.0,>=3.7.1 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (3.7.1)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (2.3.0)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (0.27.0)
Requirement already satisfied: typing-extensions>=4.5.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (4.7.1)
Requirement already satisfied: idna>=2.8 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (3.4)
Requirement already satisfied: sniffio>=1.1 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (1.3.0)
Requirement already satisfied: exceptiongroup in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (1.1.3)
Requirement already satisfied: annotated-types>=0.4.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.86.0->fastapi-versionizer) (0.5.0)
Requirement already satisfied: pydantic-core==2.6.3 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.86.0->fastapi-versionizer) (2.6.3)
Building wheels for collected packages: fastapi-versionizer
  Building wheel for fastapi-versionizer (setup.py) ... done
  Created wheel for fastapi-versionizer: filename=fastapi_versionizer-1.0.1-py3-none-any.whl size=7428 sha256=3bb270492a6c972698f19a1f00ce8335a676af4835e4b14a2f7f1a728064f8e2
  Stored in directory: /Users/alexschimpf/Library/Caches/pip/wheels/a7/e0/8f/03d638fdf6857c1f8930aee2e9a47dff62ffd4b26f11fb5c14
Successfully built fastapi-versionizer
Installing collected packages: fastapi-versionizer
Successfully installed fastapi-versionizer-1.0.1

Yeah, works fine. Keep on the great work!


No lint failure when fragment variable is not defined

Describe the bug

Given two .graphql files, one with a query operation and another with a fragment
And fragment uses a variable of a required input
And query does not define input variable

Then: there is no lint failure
(inverse of #651 )
To Reproduce
Steps to reproduce the behavior:
git clone -b fragment-with-variable git@github.com:beaucollins/
npm install
npm run lint

Expected behavior
The same error as if the fragment was embedded within the query:
./graphql-lint-fragment-variables/src/GetWidgets.graphql
  9:36  error  Variable "$usageInterval" is not defined by operation "AllWidgets"  @graphql-eslint/no-undefined-variables

Environment:

OS: macOS 11.5.2
<EMAIL_ADDRESS>NodeJS: v16.9.1

I don't get errors from eslint, get you verify your branch?

I don't get errors from eslint, can you verify your branch?

Correct, not having an eslint error here is the problem.
It doesn't produce a lint error but it should. The fragment requires a variable but the linter doesn't understand that when the fragment is defined elsewhere.
As an example copy the contents of the fragment in place within the query operation and it will show an error.

Applying this diff will show the error that is expected. The contents of the frargment in the other file when copied over into the same file as the operation shows the expected failure.
diff --git a/src/GetWidgets.graphql b/src/GetWidgets.graphql
index 6ff3f78..d20d660 100644
--- a/src/GetWidgets.graphql
+++ b/src/GetWidgets.graphql
@@ -1,7 +1,16 @@
-#import WidgetWithTags from './WidgetWithTags.graphql'
 query AllWidgets {
   widgets {
     id
     ...WidgetWithTags
   }
 }
+
+fragment WidgetWithTags on Widget {
+  id
+  name
+  tags {
+    id
+    name
+    count: usageCount(interval: $usageInterval)
+  }
+}

graphql-lint-fragment-variables/src/GetWidgets.graphql
  14:34  error  Variable "$usageInterval" is not defined by operation "AllWidgets"  @graphql-eslint/no-undefined-variables

Hi @beaucollins, thank you so much for contributing :) I fixed the false-negative case and I added a test, this will be also fixed in the next release


Update open-symmetric-key-transact-sql.md

Added note that multiple keys can be opened to clarify a question from customers.

@VanMSFT

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi @way0utwest - Thanks for this addition. I'll approve this.
#sign-off


ContentFit::Cover and ContentFit::None do not work for images when using glow backend

Is there an existing issue for this?

[X] I have searched the existing issues.

Is this issue related to iced?

[X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?
When using either ContentFit::None or ContentFit::Cover, images overflow the bounds of their parent container when using the glow backend.
wgpu - working as intended:

glow - not working as intended:

Minimal reproduction repository available here: https://github.com/ben-wallis/iced-glow-image-bug  - just switch between the glow and wgpu features for the iced dependency
What is the expected behavior?
Image rendering behaves the same on all rendering backends
Version
master
Operative System
Windows
Do you have any log output?
No response

This may have just been fixed by #1557.

That does indeed fix the issue - this can be closed then :)


build(deps): Remove dot-import for types package in services

ref: https://github.com/beyondstorage/go-storage/issues/966

Let's wait for https://github.com/beyondstorage/go-storage/pull/984 changes

I expect to finish all required work tomorrow.

Let's wait for #984 changes

OK, got it.


All - UI: radio group position

Issue:

bcgov/entity/issues/25029

Description of changes:

bump core layer version to use account change route meta
fix radio group styling

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Temporary Url for review: https://strr-platform-dev--pr-410-00iqs1i9.web.app

Temporary Url for review: https://strr-platform-dev--pr-410-00iqs1i9.web.app

Temporary Url for review: https://strr-hosts-dev--pr-410-w8xr0sy7.web.app

Temporary Url for review: https://strr-platform-dev--pr-410-00iqs1i9.web.app

Temporary Url for review: https://strr-strata-hotel-dev--pr-410-b3ng205u.web.app

Temporary Url for review: https://strr-hosts-dev--pr-410-w8xr0sy7.web.app

Temporary Url for review: https://strr-examiner-dev--pr-410-x4assjeh.web.app

Temporary Url for review: https://strr-examiner-dev--pr-410-x4assjeh.web.app

Temporary Url for review: https://strr-examiner-dev--pr-410-x4assjeh.web.app


BottomNavigationBar should show stroke icons for unselected items, filled icon for the selected item

In order to make it easier for people with color blindness to determine which tab is selected in the BottomNavigationBar with style "fixed" the selected tab should show a filled icon whereas all unselected tabs should show a stroked icon.

Not sure if we can automatically determine the filled icon based on a stroked icon or vice versa.
We probably need to extent https://master-docs-flutter-io.firebaseapp.com/flutter/widgets/BottomNavigationBarItem-class.html to take two separate icons for selected and unselected state?

Not even all material icons have stroked/filled variants - was there any specific recommendations here or more guidance given?

I suspect this PR could help here: https://github.com/flutter/engine/pull/5395
I believe if you draw the glyph with paint style as stroke, you'll get the desired effect.

For example:
ui.ParagraphBuilder pb = new ui.ParagraphBuilder(new ui.ParagraphStyle());
    pb.pushStyle(new ui.TextStyle(
        fontFamily: icon.fontFamily,
        foreground: new Paint()
          ..color = Colors.black
          ..style = PaintStyle.stroke));
    pb.addText(new String.fromCharCode(icon.codePoint));
    var paragraph = pb.build();
    paragraph.layout(new ui.ParagraphConstraints(width: double.infinity));
    y += 20.0;
    canvas.drawParagraph(paragraph, new Offset(10.0, y));

will draw the icon stroked instead of filled, whether there's a stroked glyph or not in the font.

You could set a PaintStyle based on whether the icon is selected or not.

From offline discussion, the resolution appears to be that stroke/filled distinction can make things more accessible only if there are stroked/filled variants already and is only required if there are no labels.  Adding support for an alternative icon and some gallery examples should resolve this.
@dnfield I'm not really sure that is something we should be trying to do for the users automatically, especially since the icon property takes any Widget (like an ImageIcon).

Taking a look at some of the icons here - https://material.io/tools/icons/?style=baseline - I think that approach wouldn't work for many of them

Ahhh yeah.  This would only work for font glyphs.


Override label + .MuiInput-formControl

Is there anyway to override the following style?
label + .MuiInput-formControl-21 {
    margin-top: 16px;
}

I tried overriding it with:
MuiInput: {
  formControl: {
    marginTop: '0px'
  }
}

But 'label +  .MuiInput-formControl-21' style will always override my override.
Is there anyway to add the 'label +' part of the css into my theme object?
I read through the JSS docs, and tried doing this with no luck:
'label + MuiInput': {
  formControl: {
    marginTop: '0px'
   }
}

Not quite sure where the element+element selector should go.
I am trying to put the label inside of the form field while maintaining effects, and this is the only style that's left for me to change in order to do that.

Tech
Version

Material-UI
1.0.0-beta.43

React
16.3

browser
Chrome  65.0.3325.181

@racingrebel tips, the style comes from:
https://github.com/mui-org/material-ui/blob/0bba4ad1aed5d2181baa156009301eb56fd80158/packages/material-ui/src/Input/Input.js#L72-L76

Fantastic, thank you so much for replying quickly!
Solved with the following:
MuiInput: {   formControl: {     'label + &': {       marginTop: '0px'     }   } }


Update temperature_pedersen2014.txt

This digitization is more accurate and temperature above inversion layer matches now.

Approving updated temperature profiles.


why the running log throws  Unknown column exception?

hi,
I just download the new version tarball: orchestrator-2.0.2-linux-amd64.tar.gz
my question are:

when i used command ./orchestrator http at /usr/local/orchestrator directory, then running log throws ERROR Error 1054: Unknown column 'first_seen_active' in 'field list'

when i used command ./orchestrator --discovery=false http , access the web site, the running log throws ERROR Error 1054: Unknown column 'candidate_database_instance.promotion_rule' in 'field list'

I looked my orchestrator database, it has 36 tables, and I tryed `select promotion_rule from candidate_database_instance;` , the mysql alert `ERROR 1054 (42S22): Unknown column 'promotion_rule' in 'field list'` message

I think about, the version's sql is old or didn't update?

sorry, i used another user ,this user has SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SUPER  privileges,so the table is not whole(the fileds are not incomplete)
pls closed.

enjoy orchestrator


Please update document for Substatus: 20006

The below error has Substatus 20006 but in the document, we can only find other sub-status codes.
Something went wrong while writing the entity document to CosmosDB. Inner exception message: Response status code does not indicate success: ServiceUnavailable (503); Substatus: 20006; ActivityId: <>; Reason: (Channel is closed)
This sub status seems to be related to Channel Closed
This happens when the connection between client and server is interrupted. This can happen in-cases either party terminates connection or connectivity between them is interrupted.
These failures are typically transient and retryable
Could you please update document with Substatus 20006?

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

ID: fa36823c-de77-f624-3ccb-4fa83bbfe105
Version Independent ID: 2ce96ebb-cf69-0f3e-afa3-1906c00c7b1b
Content: Troubleshoot Azure Cosmos DB service unavailable exceptions
Content Source: articles/cosmos-db/nosql/troubleshoot-service-unavailable.md
Service: cosmos-db
Sub-service: nosql
GitHub Login: @seesharprun
Microsoft Alias: sidandrews

@rarandiv Thank you for your feedback. We will review and update as appropriate.

Hello @rarandiv! We are updating this article and the change will be live soon with a brief explanation of that error code indicating that there was some unexpected interruption in connectivity between the service and client.


Update setup/security/authentication/network-arch/

...to reflect Halyard role.
@stewchen fyi

Moved in #721


merge changes from upstream

I'm preparing #2 to PR upstream and thought it best to deal with conflicts here.
@Sirupsen I am updating this repo in the right fashion? Am I right this will make it easy to merge upstream?

yeah I think it's fine


Docs

Suggestion for how the readme might be restructured. I've implemented the package in three separate project over the last weeks, and there's just a few things that I've missed/noticed:

An example DJANGO_GUID object for settings.py
A clear separation between the middleware setup and the logging configuration
The first few lines a new user reads don't fully encapsulate what the package does, but rather, how the solution is implemented (not saying this suggestion is better, but could work as a first draft if you have any thoughts)

Suggestion not related to the changelog:
project description:
Inject a GUID(Correlation-ID) into every log message in a Django request. (Also makes the GUID available globally from anywhere)
Could perhaps be changed to something like
Injects a unique correlation ID into every log message output from a single Django request.

Docs are a bit strange:

Looks good! Thank you. Reel free to merge.


possible to display open / inline?

Hi, is it possible to have this open, inline vs a popup?

Coming version


publish to nimble package

https://github.com/nim-lang/packages/pull/2013

使えた！
https://github.com/myamyu/nim-playground/tree/main/selenium2


(Parking AI) Park & ride problem

Describe the problem
Version: LABS 10.21.1
(Note:  In Global configuration I only changed MaxWalkingDistance from 2500 to 800. I think 2500m is unrealistic.)
There is still a problem with the Parking AI option. When citizens want to drive directly to their destinations, everything is ok.
But when they want to use public transport and can't walk to it, there is a problem. They drive to the public transport stop, ignoring all the parking spaces around the stop. When they reach to the stop, they remember that they have to park their car somewhere.
Steps to reproduce

Example 1 -  everything is ok

Citizen wants to drive directly to destination (Carousel Park). But, from the start she knows that there isn't integrated parking spaces in Carousel Park. From start, she driving to parking spot.
(screenshots 1 & 2)

Example 2 - problem

Another citizen wants to take the bus to the destination. But she can't reach bus stop on foot. She drives to the stop and doesn't care about parking. (screenshots 3 & 4)
When she reaches to the stop, she starts thinking about parking. (screenshots 5 & 6).
A large number of such cars at the crossroad + large PF number = big problem
Log files

Savegame?

Screenshots?

Notes or questions?
Sorry for my broken English...

Hi @Debeli011 - thanks for the very detailed bug report.
If possible, could you share your save game so we can use it for testing?


Remove ? character in params

Fix duplicate '?' character on URL

I'm not sure what exactly this PR tries to achieve. The function accepts full URLs (eg. https://example.com?foo=bar) and this patch completely breaks this. Could you explain?

Closing due to lack of feedback.


Add persistence to MariaDB chart

closes #67

We should also update the README to add the new values

All updates are in per review.

Will reopen another branch to clean up some of the madness in the commits here.


Add rest bff samples

Add sample Ballerina and React code samples for backend to frontend(bff)

@SasinduDilshara Instead of just saying the sample name as rest can we have more descriptive sample name? Refer the sample names in https://github.com/ballerina-guides/integration-samples
Then reader can understand what we are going to do with rest here just by reading the sample name too.

Maintain the README.md file inside the sample directory, not inside the backend_server directory?

Maintain the README.md file inside the sample directory, not inside the backend_server directory?

updated

@SasinduDilshara Instead of just saying the sample name as rest can we have more descriptive sample name? Refer the sample names in https://github.com/ballerina-guides/integration-samples
Then reader can understand what we are going to do with rest here just by reading the sample name too. Have the same title in the README.md file of the sample.

I added the name as restful-order-service


Not compatible with latest xamarin forms release on ios..?

After upgrading to the latest version of Xamarin.Forms, this plugin does not appear to work for iOS? Just nothing comes up for take photo or pick photo. Downgrading to previous xamarin forms version and it seems to work again.

Not sure what you mean. Which version of the plugin, which version of forms, what does it do? Any code snippet? You gotta help me out here :)

Hello.
I upgrade my project to work with Visual Studio 2015 in Mac, Xamarin Forms to <IP_ADDRESS> and Media Plugin 2.6.2.
When I click on button to pick photo does not work and if i click it again shows an error: "Only one operation can be active at at time"
Thanks.

This would mean that you already have an active operation. You would need a code snippet or some example to show me.

The issue silenceway is having is the same one i have. It is only upgrading to Xamarin Forms <IP_ADDRESS> that it no longer works. First click does nothing - second click has the active operation error. Before this xamarin forms update, the first click would bring up the camera (or the photo picker)
On my button click, I simply run
SelectedImage = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
Directory = "Sample",
Name = "test.jpg",
CompressionQuality = 90,
PhotoSize = PhotoSize.Medium
});

I'm using same code that your MediaSample. (It was working with 2.3.3 version but Visual Studio needs 2.3.4 version)
Thanks.

Try wrapping it in begininvokeonmainthread

It may also be fixed specifically in: <IP_ADDRESS>-beta
sound familiar to something from the past. I can't repro it at all here.

Tested with Device.BeginInvokeOnMainThread and works as expected.
Thanks.

Cheers

Side note though James can you just main thread it so we don't have to do that?

No, when you interact with the UI or anything like that you would have to be on the main thread.

Just confirming that updating to Xam.Plugin.Media <IP_ADDRESS>-beta does fix this problem.


[!] Failed to locate Nuitka data in PE resources

hi. trying to disassemble some malware/stealer. can't get any further because of this error:

content:

From the last screenshot, you have grabbed this files from the temp directory I suppose.
123123.exe can't be extracted further.  Note that nuitka-extractor can't extract pyc files as there are none inside. It is only for extracting DLLs, Pyds and other binary resources from nuitka onefile executables. In your case this is already extracted.

и как получить исходный код?

и как получить исходный код?

Невозможно получить исходный код, поскольку он скомпилирован в машинный код.


Webhook Security

Creating this PR to add an endpoint to add security layer to the webhook calls. This is done by using a hmac signature created on the basis of secret key provided by the controller and the webhook payload. Looking for the feedback from the community.
-Signed off by: ramreddychalla94<EMAIL_ADDRESS>-Funded by the Ontario Government
This PR resolves Additional security controls for webhooks for multi-tenancy #2029 @swcurran please review and let us know of your comments, thanks.

Closing this PR as this is going to move as an independent plugin.


Split Nunjucks into its own language

This is to be consistent with Liquid and other templating languages (#4979)
Keep the Django syntax highlight references since they work
Color from official docs: https://mozilla.github.io/nunjucks/templating.html
Related to discussion at #5150

I've been editing using Github.com because cloning this repo crashes after a bit, but contributing.md says to generate a language_ID with a script, so should I just put a random number in manually?

I've been editing using Github.com because cloning this repo crashes after a bit, but contributing.md says to generate a language_ID with a script, so should I just put a random number in manually?

so should I just put a random number in manually?

Nope. The ID isn't random. It's a SHA digest generated based on the name of the language as it appears in the languages.yml file.
You can generate the ID yourself by running this manually in irb:
https://github.com/github/linguist/blob/103c43545b9a84cabb3dabc59e3cb9b3cca72e9e/script/update-ids#L9
$ irb
irb(main):001:0> require 'digest'
=> true
irb(main):002:0> Digest::SHA256.hexdigest("Nunjucks").to_i(16) % (2**30 - 1)
=> 461856962
irb(main):003:0>

Or copy and paste the ID ☝ 😄

I've been editing using Github.com because cloning this repo crashes after a bit

I hit problems like this with big repos when travelling and using poor conections in the past and found the following solved my problems most of the time:

Don't clone recursively. script/bootstrap will take care of downloading the submodules.
Use SSH
Create a .ssh/config entry for github.com with at least these params:

Host github.com
  Compression yes
  KeepAlive yes
  ServerAliveInterval 60

It's the last two that I've found most helpful as they help keep the connection alive.

so should I just put a random number in manually?

Nope. The ID isn't random. It's a SHA digest generated based on the name of the language as it appears in the languages.yml file.
You can generate the ID yourself by running this manually in irb:
https://github.com/github/linguist/blob/103c43545b9a84cabb3dabc59e3cb9b3cca72e9e/script/update-ids#L9
$ irb
irb(main):001:0> require 'digest'
=> true
irb(main):002:0> Digest::SHA256.hexdigest("Nunjucks").to_i(16) % (2**30 - 1)
=> 461856962
irb(main):003:0>

Or copy and paste the ID ☝ 😄

I've been editing using Github.com because cloning this repo crashes after a bit

I hit problems like this with big repos when travelling and using poor conections in the past and found the following solved my problems most of the time:

Don't clone recursively. script/bootstrap will take care of downloading the submodules.
Use SSH
Create a .ssh/config entry for github.com with at least these params:

Host github.com
  Compression yes
  KeepAlive yes
  ServerAliveInterval 60

It's the last two that I've found most helpful as they help keep the connection alive.

I have found a Nunjucks-HTML-specific grammar but using Lightshow it doesn't seem to work properly. The two grammars in the repo, Nunjucks only and both, each work separately with Linguist but the combined file doesn't load the Nunjucks syntax. Is this an issue with the grammar or is it a limitation of Lightshow?

Is this an issue with the grammar or is it a limitation of Lightshow?

It's a limitation of Lightshow as it doesn't (and can't know) where to pull in the second file sourced from the html (nunjucks templates).cson grammar.

So it should work fine if I switch the grammar to this one?

Switch the grammar

So it should work fine if I switch the grammar to this one?

Yup. The grammar highlighter knows how to follow the links within grammars as it knows how to find all the sources detailed in the grammars.yml file.


Issue #293: fixing generation of installation infrastructure

Closes #293

"Wrong" means there is a bug right? I added the bug label.
Also likewise perhaps add @byjtew as additional (cmake;) reviewer?

I'm ok with this one if @byjtew is=)

Review OK, CI OK, all smoke tests OK, will merge


missing markup.txt

Hi? I am not seeing  the markup.txt file in your project

Hey,
Check the previous versions its deleted in the latest one. Or check the attached file.
markup.txt

thanks
On Wed, Mar 4, 2020 at 8:02 AM Ranjith-G-Hegde<EMAIL_ADDRESS>wrote:

Hey,
Check the previous versions its deleted in the latest one. Or check the
attached file.
markup.txt
https://github.com/philomathic-guy/Malicious-Web-Content-Detection-Using-Machine-Learning/files/4288270/markup.txt
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/philomathic-guy/Malicious-Web-Content-Detection-Using-Machine-Learning/issues/24?email_source=notifications&email_token=ANV3RWI354IBFW6ONAL2VPTRFZ3QZA5CNFSM4KYIYC5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENYUZLY#issuecomment-594627759,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANV3RWPIJS76EUUL5N4ZYELRFZ3QZANCNFSM4KYIYC5A
.


disable favicon error

What's the problem this feature will solve?
My browser show this error each time a reload my page:
GET http://<IP_ADDRESS>:8080/favicon.ico [[HTTP/1.1 404 Not Found 4ms]]()

I only want to see the messages related to the current development.
Describe the solution you'd like
http-server should send HTTP 204 No Content success status response code by default when favicon.ico is not in public directory
Alternative Solutions
I can get a favicon.ico file and add it to the directory but

It's tedious
I don't want to pollute all my projects with a useless file.

Maybe better to handle this in your code with one of the solutions from https://stackoverflow.com/a/13416784 ? From user's perspective it's better if you can avoid requesting a non-existing file instead of returning an empty answer. Some developers may prefer to see the warning if such redundant requests are made.

If the file doesn't exist, isn't 404 the correct response?

I just throw
<link rel="icon" href="data:;base64,">

into my HTML, which suppresses the favicon fetch error. (Doesn't work in Safari.)


Weird EntityResponseGenerator behaviour since 0.20.0-M7

package repro

import cats.implicits._
import cats.effect._
import org.http4s.implicits._
import org.http4s.HttpRoutes
import org.http4s.server.blaze.BlazeServerBuilder

object App extends IOApp {
  override def run(args: List[String]): IO[ExitCode] =
    server[IO].compile.drain.as(ExitCode.Success)

  def server[F[_]: ConcurrentEffect: Timer] =
    BlazeServerBuilder[F]
      .bindHttp(8080, "<IP_ADDRESS>")
      .withHttpApp(routes[F].orNotFound)
      .serve

  def routes[F[_]: Sync]: HttpRoutes[F] = {
    val dsl = org.http4s.dsl.Http4sDsl[F]
    import dsl._
    HttpRoutes.of {
      // this results in empty response, used to result in 500
      case _ => Ok(prg)
    }

    // this works as expected, returns 500
//    HttpRoutes.of {
//      case _ => for {
//        x <- prg
//        resp <- Ok(x)
//      } yield resp
//    }
  }

  def prg[F[_]: Sync]: F[String] = Sync[F].raiseError(new RuntimeException("oh no"))

}

I think the cause is that overload of EntityResponseGenerator.apply used to just mean flatMap (up to 0.20.0-M6), but now it's deferring evaluating the F[A]-program in a Stream.eval of the body.

basically here https://github.com/http4s/http4s/blob/b3ea4b22fee858310ab88e9d5186457f3ec4482a/dsl/src/main/scala/org/http4s/dsl/impl/ResponseGenerator.scala#L50
you have this
 def apply[A](body: G[A])(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]] = {
    val entity = Entity(fs2.Stream.eval(body).flatMap(w.toEntity(_).body))
    val headers = addEntityLength(entity, w.headers)
    F.pure(Response[G](status = status, headers = headers, body = entity.body))
  }

F.pure(eval(body).flatMap(_.toEntity.body)) seems weird compared to body.map(_.toEntity.body)
is there a reason for that that I don't know?
(there is also a broader discussion about having such overloads, not a massive fan) @rossabaker @ChristopherDavenport

Ah, it's related to the introduction of the new type parameter here ofc https://github.com/http4s/http4s/commit/00cd51e01f8906119e68a5390a815296d15f6b00
, that flatMap won't compile. Interesting tradeoff since the reported behaviour is certainly a bit weird.

Oh, wow.  Clearly we never had tests to establish a spec for that behavior, but I remember observing in the past that it would return a failed F.  It's almost always bad when a body stream fails after a successful response header -- this comes up a lot in proxy-like services.  In the Servlet API, when dinosaurs roamed the earth, they would buffer the first N bytes of the response before sending the headers, giving some time to establish the health of the body before "committing" the response.  (It also cut down on chunked transfer encoding).  But that would be a very backend specific fix.
I'm not sure overloading the response generators with F (now G) was ever the right thing to do.  I wonder how widely they're used.
:thinking:

Just an anecdotal data point, I have not seen it widely used in the codebases I maintain. I started coding with this (which was then F[Response[F]) some time ago for the sake of brevity - construct an F[A]-program by whatever means, and then just say Ok(x) at the very end, sparing myself a prg.flatMap(Ok(_)).
I don't have the chops to think of a fix, and with the current type signature arguably this is the only possible behaviour, F just being applicative.
Are the types right? This F.pure in all the implementations looks strange?
I can't see how this current behaviour might be desirable of high-level user facing API, but I might be wrong. The scary part is it broke services during a minor version bump (which probably means I should have more edge case tests in place, or some sort of acceptance suite for http4s). I think it should be deprecated / removed - of course this is all very anecdotal.

I think my preferred path (without knowing of any special use cases) would be to not have that overload. I'm already sort of against them when they're innocuous since they muddy up your thinking about what types fits where, but this is also a loaded footgun

Yes that perfectly sums up what I tried to say.

Just came across this report. I think this is fixed now by https://github.com/http4s/http4s/pull/2832 (also see https://github.com/http4s/http4s/pull/2785 and https://github.com/http4s/http4s/pull/2800 for my failed attempt)

I think the question remains: why do we have an overload for the effectful version?

I think that was useful for http4s-directives, but I can add that there instead.

Alright, I'll leave it to you to decide if it works just as well there.


sbcl fails to build on Ubuntu 14.04

brew install sbcl fails on Ubuntu 14.04. See https://gist.github.com/rwhogg/c750958273a5e0048a09

[x] Ran brew update and retried your prior step?
[x] Ran brew doctor, fixed as many issues as possible and retried your prior step?
[x] If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

Message 1:
find: `../../obj/asdf-cache/sb-md5': No such file or directory
find: `../../obj/asdf-cache/sb-queue': No such file or directory
find: `../../obj/asdf-cache/sb-concurrency': No such file or directory
find: `../../obj/asdf-cache/sb-rotate-byte': No such file or directory
find: `../../obj/asdf-cache/sb-grovel': No such file or directory
find: `../../obj/asdf-cache/sb-sprof': No such file or directory
find: `../../obj/asdf-cache/sb-bsd-sockets': No such file or directory
find: `../../obj/asdf-cache/sb-cover': No such file or directory
find: `../../obj/asdf-cache/sb-posix': No such file or directory

Message 2
�Y�: not found
/home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: 1: /home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: �����x�H__PAGEZEROx__TEXT: not found
/home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: 2: /home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: : not found
/home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: 3: /home/bob/tmp/sbcl--bootstrap6420160312-9981-1fk801v/sbcl-1.1.8-x86-64-darwin/src/runtime/sbcl: Syntax error: "(" unexpected
Command exited with non-zero status 1
0.00user 0.00system 0:00.25elapsed 3%CPU (0avgtext+0avgdata 1656maxresident)k
0inputs+8outputs (0major+246minor)pagefaults 0swaps

Can you please quote the relevant lines of the gist and link to them?

Comment updated.

Triple back ticks are better for quoting code blocks than >.

It downloads a Mac binary to bootstrap the system. It will have to instead download the Linux binary:
https://github.com/Linuxbrew/linuxbrew/blob/master/Library/Formula/sbcl.rb#L28

There's more to it than that - some of the patches are problematic too.
I've got it to build by disabling all the patches - now I've just got to work out the minimal subset to disable.

Fixed by #964


go/build: go get errors on added sourcegraph dependency

What version of Go are you using (go version)?

$ go version
1.11.2 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
❯ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/gbrautigam/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gbrautigam/go"
GOPROXY=""
GORACE=""
GOROOT="/Users/gbrautigam/gohome"
GOTMPDIR=""
GOTOOLDIR="/Users/gbrautigam/gohome/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/gbrautigam/gohome/src/github.com/golang/build/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/1n/k6w9b2g51hg_dhlh_c8q9q8r0000gn/T/go-build765178128=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
While export GO111MODULE=on.
git clone git@github.com:golang/build.git
cd build
go get ./...

What did you expect to see?
Everything is working fine.
What did you see instead?
❯ go get ./...
go<EMAIL_ADDRESS>unrecognized import path "sourcegraph.com/sourcegraph/go-diff" (parse https://sourcegraph.com/sourcegraph/go-diff?go-get=1: no go-import meta tags ())
go: error loading module requirements

Commit that brought in that dependency happened 17 days ago here:
https://github.com/golang/build/commit/56b8367918fde2e7d81afe2e7b334e295626e307

Interestingly, my company's IP was blacklisted on a CDN network which made all sorts of weirdness. Apparently it also affected go get.... :O


Issue when consumer more one partition

When I have a consumer with more that one partition consuming the performance is really bad, around 3 seconds for consuming mensajes. I tried with other lib and the performance is good.

Can you provide a bit more details of what you're doing, show some code, and maybe describe your expectations? Remember that other libraries have different defaults that target different use cases (think latency/throughput goals).

Hi Ankon, I have identify the issue better. So, when I have a consumer joined to partitions of different leaders the latency is around 3 seconds. However if partitions have the same leader the performance is around 4ms, for exaple:
I have topic_demo_kafka with 6 partitions, if I have a consumer joined in partitions [0,3](Same leader) de latency is really good. But if I have the same consumer joined to partitions [0,2,4](Different leader) the latency for 4 is ok but the latency for 0,2 is around 3 seconds (really high).
    Topic: topic_demo_kafka	Partition: 0	Leader: 1	Replicas: 1,2,3	Isr: 1,2,3
Topic: topic_demo_kafka	Partition: 1	Leader: 3	Replicas: 3,1,2	Isr: 3,1,2
Topic: topic_demo_kafka	Partition: 2	Leader: 2	Replicas: 2,3,1	Isr: 2,3,1
Topic: topic_demo_kafka	Partition: 3	Leader: 1	Replicas: 1,3,2	Isr: 1,3,2
Topic: topic_demo_kafka	Partition: 4	Leader: 3	Replicas: 3,2,1	Isr: 3,2,1
Topic: topic_demo_kafka	Partition: 5	Leader: 2	Replicas: 2,1,3	Isr: 2,1,3

My question, it's a normal behavior in Kafka or it's a issue in kafka.js ?

Any update here? I cant reproduce issue in Java. So I think the issue is about kafkajs.

I don't know anything from the top of my head that would produce such a behavior.
Can you post a self-standing executable example so that we can possibly try to reproduce this issue?

Let me know if you need my help for reproduce the issue
This example use a topic with 6 partitions and replication factor 3
One producer and 2 consumers
==========================================================
Create topics
const { Kafka } = require('kafkajs');
const kafka = new Kafka({
clientId: 'my-app',
brokers: YOUR_BROKER,
ssl:{rejectUnauthorized: false}
});
const admin = kafka.admin();
async function main(){
await admin.connect();
await admin.createTopics({topics:[{topic:'topic-test',replicationFactor:3,numPartitions:6}]} );
await admin.disconnect();
}
main();
======================================================
CONSUMERS
const { Kafka } = require('kafkajs');
const kafka = new Kafka({
clientId: Date.now().toString(),
brokers: YOUR_BROKER,
ssl:{rejectUnauthorized: false}
});
main().then(()=>console.log('finished')).catch((err)=>console.log(err));
async function main(){
const consumer1 = kafka.consumer({ groupId: 'grouptest'})
await consumer1.connect();
await consumer1.subscribe({ topic: 'topic-test', fromBeginning: true});
await consumer1.connect();
const consumer2 = kafka.consumer({ groupId: 'grouptest'})
await consumer2.connect();
await consumer2.subscribe({ topic: 'topic-test', fromBeginning: true});
await consumer2.connect();

consumer2.run({
    eachMessage: async ({ topic, partition, message }) => {
        let t1 = Date.now();
        let time = (t1-JSON.parse(message.value.toString('utf8')).time);
        let producer = JSON.parse(message.value.toString('utf8')).producer;
        let key = message.key.toString('utf8');
        console.log(time,topic,partition,producer,key);

    },
});

}
=====================================================
PRODUCER
const config = require('./config');
const { Kafka } = require('kafkajs');
const kafka = new Kafka({
clientId: 'my-app',
brokers: YOUR_BROKER,
ssl:{rejectUnauthorized: false}
});
var names = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N"];
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
async function main(){
let name = names[getRandomInt(0, names.length-1)];
let producer = kafka.producer();
//let partition = getRandomInt(0,5);
await producer.connect();
var cont = 0;
var t = Date.now();
setInterval(async function(){
cont=cont+1;
console.log(partition,cont);
    await producer.send({
        topic: 'topic-test',

        messages: [
            { key: cont.toString(), value: JSON.stringify({producer:name,time:Date.now()}) },
        ],
    });
},1000);

}
main();

We have the same issue in a production environment.
We have a topic with 6 partitions and the KafkaJS consumers are so slow; in the test environment we have same topic but with 1 partition and the consumers can consume messages in about 20ms instead of 3 seconds.
We have a consumer written in kotlin too, but it consumes messages very fast, the problem is probably related to KafkaJS.
We use the standard eachMessage configurations, we have not custom behaviors except for the message commit.
Can you support us?
Could the problem be related to the partitionAwareConcurrency descripted in your documentation?

This is our situation in production environment:
Topic: commands PartitionCount: 6 ReplicationFactor: 3
          Topic          | Partition | Leader | Replicas |   ISR
+------------------------+-----------+--------+----------+---------+
  commands               |         0 |      3 | [3 5 4]  | [5 4 3]
  commands               |         1 |      8 | [8 7 3]  | [8 7 3]
  commands               |         2 |      7 | [7 8 6]  | [8 7 6]
  commands               |         3 |      1 | [1 0 5]  | [5 1 0]
  commands               |         4 |      2 | [2 1 7]  | [7 2 1]
  commands               |         5 |      4 | [4 2 8]  | [8 4 2]

Same for the other topic, 6 partitions with different leaders, and the consumption time is around 3 seconds or more.
We really need to fix this.
Thanks

Say, would you be able to compare this with a "prerelease version"?
I'm wondering a bit whether this is a variant of #370, which has been fixed -- but that fix isn't released yet in a stable version.

Say, would you be able to compare this with a "prerelease version"?

We tried using the prerelease version (kafkajs@beta) and we noted a very little performances improvement (from 11/15 seconds for a complete flow to 8/10 seconds, not enough anyway).

I'm wondering a bit whether this is a variant of #370, which has been fixed -- but that fix isn't released yet in a stable version.

We fix the problem by setting the maxWaitTime parameter to 100 milliseconds.
I hope that with next stable release we will not need this workaround.
Thanks for the support ❤

We fix the problem by setting the maxWaitTime parameter to 100 milliseconds.
I hope that with next stable release we will not need this workaround.

This is not a workaround, nor a bug. This is the intended behavior in Kafka, and works more or less the same way in all Kafka clients (although the exact default settings may differ).
Basically, when a fetch request is made to a broker, if there aren't enough messages available to fill up to maxBytes/maxBytesPerPartition, the broker will block and not respond for up to maxWaitTime milliseconds to see if there are more messages coming in. Without this, in a situation with a low amount of data, the client would end up making crazy amounts of requests since the broker would immediately respond with nothing, causing the client to poll very fast. This comes at the cost of latency, where as you noticed, if there are only a few messages available on the partition, you won't receive those messages for up to maxWaitTime milliseconds.
In version 1.12.0, this is a bit worse because we issue requests to all brokers simultaneously (up to a limit) and then wait for all of them to respond before we start processing messages. So if you have uneven partitions, such that one partition has messages and another on a different broker doesn't, you would have to wait up to maxWaitTime milliseconds on every fetch, even though one of the brokers has already responded with messages. In the beta version, we changed this so that as soon as a broker responds, we will start processing the messages, even before other brokers have responded, which mitigates this a bit.


Add a dictionary serializable protocol

Lets wait on this and add the ability to reinstantiate the object by serializing the class name in the representation. If we can't find the class we'll just leave it as a dictionary.

LGTM :+1:


Cu-1rxky8m: Close accounts

Changes
Checklist

[ ] UAT
[ ] Passes final QA checks

Task linked: CU-1rxky8m SCORE: Close Accounts in separate instruction


Spyder does not display graphics output anywhere when app uses Pygame

[A Spyder developer asked that I copy this issue from where I first posted it on stack exchange.]
I managed to install Pygame into my MacOS anaconda python 3.6 instance -- I simply put it into the "root" environment. The way I installed -- when I knew that the anaconda python was activated, I simply went to the command line and did pip install pygame.
But now, when I am in Spyder, and I load up a smallish python program that I wrote that uses Pygame, the app seems to run OK with no errors BUT it does not show the graphics output in any window or tab anywhere! I've tried alt-tabbing around... [For comparison... when I tried to run another small app I made that uses tkinter, then it presents the graphics by creating a separate app/window I can alt-tab to... shows a feather as the icon for that window when I alt tab to it.]
I played a little with the Spyder preferences>Ipython preferences>graphics... tried "Automatic," "inline," and Tkinter... none had any effect.
Two supporting things:
1-- note that, when I run anaconda's Spyder from the command line, for some reason it shows this string of warning errors... any tips on this for me? It is:
Erics-MacBook-Pro:~ ericstephan$ spyder
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[[and six more lines of the same]]
2-- If it helps troubleshoot, below I will paste my pygame-using app whose graphics appears nowhere in Spyder. Makes many many little confetti sprites that flutter and bounce. Hey, it's a fun little app, if you replace numdots with something big like 500, it's pretty cool... when it's visible! Here is the problem pygame app: Stackexchange editor wouldn't allow it so you can see it at https://pastebin.com/1Aa8pVDq

Isn't this the problem with Qt instead of spyder itself.

Hi @ghltshubh thanks for pointing that out 👍 , @ccordoba12 what do you think? @estephan500 could you tell us if your OS is MacOS sierra?

Your welcome @dalthviz

It's a matter of activating the right graphics backend to display windows generated by Pygame (with the %gui foo magic). Unfortunately, I haven't used Pygame so I don't know which one could it be.
@dalthviz, please take a look at this one, and try to figure it which backend is needed.

@ccordoba12 without setting anything it works for me on Windows:

Hello all -- Very sorry to be a month late in replying --
-- Yes, at the time of that problem, my OS was Mac OS Sierra.  Since then I've gone to High Sierra.
-- I'm afraid I don't know about Qt...


Add space for NIX_CXXSTDLIB_COMPILE+=' ...' as NIX_CXXSTDLIB_COMPILE might not be empty.

Motivation for this change
In some nix-shell, I saw the following broken NIX_CXXSTDLIB_COMPILE
NIX_CXXSTDLIB_COMPILE='-isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0 -isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu-isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0 -isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu'

Adding line-breaks to that for each -isystem makes the mistake more visible:
NIX_CXXSTDLIB_COMPILE='
  -isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0
  -isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu-isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0
  -isystem /nix/store/bm7pb1s7rx1ad80706b5xqrznq7fgpgx-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu'

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

cc @Ericson2314

LGTM


Cancelling octopress isolate results in an error

When trying to isolate a file I'm editing, I get an option of isolating the saved file or the swapfile. There isn't an option to cancel, so I hit Ctrl-C to exit, which results in the error below.
I'd expect this to exit sliently.
» bundle exec octopress isolate inline
Found 2 posts matching: 'inline'
  1) .2015-03-27-execute-ruby-code-inline-in-the-editor.markdown.swp
  2) 2015-03-27-execute-ruby-code-inline-in-the-editor.markdown
Which do you want to isolate? (enter a number): ^C/usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-3.0.11/lib/octopress/commands/helpers.rb:80:in `gets': Interrupt
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-3.0.11/lib/octopress/commands/helpers.rb:80:in `prompt_for_selection'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-3.0.11/lib/octopress/commands/helpers.rb:20:in `select_posts'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-3.0.11/lib/octopress/commands/isolate.rb:14:in `block (2 levels) in init_with_program'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
	from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-3.0.11/bin/octopress:8:in `<top (required)>'
	from /usr/local/var/rbenv/versions/2.2.3/bin/octopress:23:in `load'
	from /usr/local/var/rbenv/versions/2.2.3/bin/octopress:23:in `<main>'

SIGINT signal is not trapped, thus it kills the process which is what you wanted to do.
just hit enter to end it nicely ;)


⚠ Auth has degraded performance

In 57a871e, Auth (https://auth.k2lin.com) experienced degraded performance:

HTTP code: 200
Response time: 22565 ms

Resolved: Auth performance has improved in 2c33eb7.


Define sufficient gallery performance testing strategy

Define/ensure that our gallery performance is measured in a complete and sufficient way
/cc @sethladd

Yay!
Framerates (gallery transitions, animations, motion)
Input latency (time between tap and callback in Dart code)
Cold Startup (to first interactible frame)
Constant-cost disk space (minimum cost for APK and uncompressed on disk)
Compiled size of Dart code for representative app (compressed, uncompressed)
Power Consumption (idle, animations)
Peak CPU performance (under stressful algorithm, ideally driving complex animations)

Cool! What should we do so that when we close this issue the definition is not lost?

Idea: go over https://github.com/flutter/flutter/projects/6 and ensure the list of issues fully covers this definition. When we fix all issues in that project, we'll consider ourselves as conforming to this definition.

It looks like we now have most of the metrics above and at least decent proxies for others (such as power consumption). Considering it done and closing.


[Issue] Duplicate use of alias

The alias kgs is mapped to both:
kubectl get secrets
kubectl get services
Since kubectl get services is the last alias mapped it wins out.
A new alias should be chosen for kubectl get secrets such as kgse

Issue was fixed with commit b8c929a7b1484a8d422c9b091aecb9a6b7e184e8
Thank you for bringing it up.

That is awesome, as a note, it is not updated in the help file, so when running khelp usage it still shows the old alias, if the help gets updated it would ensure that people don't mistake it as a still existing issue.

Fixed. In the future we are hoping to automate the creation of the aliases and the help. That way we (hopefully) do not run into this again.


Revert Pull #23

This reverts pull request #23 as per issue #24.
Update 1.3.1 with the above pull request causes the app not to build on iOS.

Thanks!

Published v.1.3.2


Using Azure to deploy add-in to other users

So, following this page, I have now deployed my add-in to my university's Azure account. According to the documentation, I can use this to share my add-in with other users (strangely, there is no mention of Azure here: https://docs.microsoft.com/en-us/office/dev/add-ins/publish/publish).
However, the documentation stops at deploying the add-in to Azure and does not go onto to then explain how to get the add-in to other Word users. What do they do now that the add-in is on the Azure website?
The documentation is incomplete.
Regards,
Mark

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

ID: 0b9105a4-a164-1e91-11ad-8ccb4f4d6b2d
Version Independent ID: f4e5fae7-ac16-f852-8529-6b0fdd7bdad4
Content: Publish an add-in using Visual Studio Code and Azure - Office Add-ins
Content Source: docs/publish/publish-add-in-vs-code.md
Product: non-product-specific
Technology: add-ins
GitHub Login: @o365devx
Microsoft Alias: o365devx

Hi @sirfragalot,
Once you deploy to Azure, the next step would be to determine how your users load the add-in into their version of Office. Basically they need to get the manifest file somehow. You can do this by sideloading, which is manual steps for the user (more for dev and testing scenarios). Or you can put the manifest on a network share and the user can configure Office to see the network share. Or deploy to AppSource, and they can get it from the store. etc...
Perhaps it would help to clarify that this article is really about making your manifest available for your intended user. Typically for dev/testing scenarios you can just send the manifest file to the tester and ask them to sideload it. For an end user you'd probably want to at least have it on a network share, or ask an admin to centrally deploy the manifest file to make it available to all their users. AppSource makes it available to basically everyone from the store. Ultimately an end user is almost always going to be using the Office UI to add your add-in like in Get an Office Add-in for Excel.
Let me know if you think that makes sense to update the article and better clarify.
Thanks!
David

@davidchesnut recently published the article Host an Office Add-in on Microsoft Azure. I believe this addresses the original documentation ask, so I'm going to close the issue. Please correct me if I'm mistaken.


Layout Extraction and Modal.com

Addresses #187 , coupled with Modal.com files
The file added as test.png is a screenshot taken of a publicly available, contract template from Google images.

https://huggingface.co/impira/layoutlm-document-qa
This model is fine tuned for document question answering, and uses the same LayoutLM model to do so. It solves multiple problems such as conversion, data extraction etc but I'm testing it and it seems like its tuned to only give one word responses at max? See below:
nlp = pipeline("document-question-answering",
model = "impira/layoutlm-document-qa")
print(nlp("contract.png","Could you extract all key information from this document?"))

#output below
[{'score': 0.0048963166773319244, 'answer': 'bills', 'start': 14, 'end': 14}]

As for parsing the output yourself, seems like we need to do training and fine tuning to fit the freight use case, after looking at a few examples online people use predefined labels and then use LayoutLM to extract predictions of those labels within the document, rather than extracting actual text from the output.

Here is the output you get after decoding the input ids for the Freight Contract document.
[CLS] hazardous material manifest truck : route truck 001 ( rt001 ) date : 9 / 25 / 2015 7 : 50 : 02 am manifest # : rt00120150925075002 departing location : driver : proper shipping name hazard pg rq quantity returned package special product code total weight class quantity permit ( lbs ) un proper shipping name hazard pg rq quantity returned package special product code total weight number class quantity pennit ( lbs ) sy ee, | es es ss | 5 a es [ 0 | _ | eee [ so es se ) ss ss es 2 | [SEP]

An image of how bounding boxes are shown on a load manifest document. It's not grabbing everything probably because the resolution of the file isn't small enough to be tokenized into 512 tokens. See below for a better result on a rate confirmation document.

As for classification, this has to be done manually. Labels and colors must be initialized and then a correspondence has to be made between the boxes, input_ids and the labels. For example: {TABLE:5, CONTACT_INFO:3. ..}  where we have a frequency dict of each type of structure. Will look into this now

Model mislabels mostly everything, as it encodes all the classified texts as 0's and 1's (which map to 'TABLE' and 'CONTACT_INFO' in my label_dict. Need to train on a freight dataset to get optimal results.

@FFFiend can you please prioritize merging this?
Also why are the aspect ratios off on the images (leading to them looking "squished")?

I think they were stored in the dataset on roboflow this way.

Okay, so after coming back to this issue I realized that the above picture with just 1 type of label being classified was because I wasn't inferring properly. Here is a better result on an Invoice bill (in terms of classification):

Results are not great... but it's a slight improvement from last time.

Question I asked GPT-4 on LayoutLMv2's off the shelf labels.
The LayoutLMv2 model is equipped with off-the-shelf labels that are based on the FUNSD dataset, which can be generalized for form-like tasks, such as information extraction from documents, receipts, etc. The dataset has the following 4 main labels:

1. "S": for the "selected" elements of forms, representing filled-in information.
2. "B": for "beginning", representing the starting token or element of a labeled field in a form.
3. "I": for "inside", representing the intermediate tokens or elements within a labeled field in a form.
4. "O": for "outside", representing tokens or elements that do not belong to any labeled field in a form.

These labels are a variant of the standard BILOU (Beginning, Inside, Last, Outside, Unit-length) tagging scheme – typically required for labeling document entities using the LayoutLMv2 model. Note that LayoutLMv2 adapts to a specific task when fine-tuned on annotated data related to that task.

Note that for GUI, this model is unsuitable because it focuses specifically on text classification and extraction. I think going more towards Object Detection is what we want. So current action items would be:
1) Fine tune LayoutLMv2 on label format and form dataset (lots available on paperswithcode) similar to what we have in the commit currently.

2) YOLO/ CNN for Object Detection including training + inference on labelled GUI data.

The above only takes care of labels, and not tables. There's models trained solely for table classification such as https://huggingface.co/microsoft/table-transformer-detection. This can be simply incorporated by passing the image once into LayoutLMv2 and then into a table transformer to extract both.

Here's a couple HuggingFace spaces with different detection/extraction models:
https://huggingface.co/spaces/ShilongLiu/Grounding_DINO_demo
https://huggingface.co/spaces/nielsr/LayoutLMv2-FUNSD

I think this might be what we need for GUI object detection..seems easier to setup than gisting :D but their demo isn't live
https://github.com/chenjshnn/Object-Detection-for-Graphical-User-Interface

I think this might be what we need for GUI object detection..seems easier to setup than gisting :D but their demo isn't live

I explored this about a year ago and didn't find much of value, author did not respond to emails. If you have any specific suggestions about how we can use it please clarify 🙏

https://huggingface.co/spaces/ShilongLiu/Grounding_DINO_demo

Great find! This looks very promising. Added in https://github.com/MLDSAI/OpenAdapt/issues/288

https://github.com/MLDSAI/OpenAdapt/issues/288

Can you please clarify how this is different from what you've already implemented?

https://huggingface.co/spaces/nielsr/LayoutLMv2-FUNSD

Can you please clarify how this is different from what you've already implemented?

No difference, just a convenient demo hosted on the web to try out instead of having to run the script each time. Sorry i should've elaborated in the original comment.

I think this might be what we need for GUI object detection..seems easier to setup than gisting :D but their demo isn't live

I explored this about a year ago and didn't find much of value, author did not respond to emails. If you have any specific suggestions about how we can use it please clarify 🙏

There's a repo linked in the Readme that contains the model along with a script to test it but I think it needs some refactoring and package updates.

Sure thing: Current action items are
1) Test and display output from Document Question-Answering Pipeline on the LayoutLMv3 model.
2) Train raw extraction on the LayoutLMv3 model.

https://github.com/huggingface/diffusers/issues/3828 Currently facing some issues with using pipelines on LayoutLMv3.

In the meantime, would you like to have a mixin that takes in an image along with a question (for document classification) using the original layout-lm model that seemed to be working well in the first reply to this PR?

@FFFiend can you please follow up on the issue you posted to huggingface/diffusers?
Also in the future please include the full exception trace, not just the error message.

In the meantime, would you like to have a mixin that takes in an image along with a question (for document classification) using the original layout-lm model that seemed to be working well in the first reply to this PR?

Let's try to get v3 working 🙏

Closed in favor of https://github.com/OpenAdaptAI/OpenAdapt/pull/341


reference issue in int__assign_all_visit_ids for visit_occurrence_id

The reference table is missing for visit_occurrence_id. The resolution includes an av alias.

@adambouras could you please clarify what you mean by reference table?  Thanks!

This relates to #46


Add a way to queue Workorders (specifically patron workorders)

As I've just suggested on discord, it would be great to have a way to conveniently add patron work orders to the queue so I can go and fetch the mats / see  how much every one costs.
I imagine it like this (included a few ideas):
Image one is a queue all button on the workorder tab
Image two is a queue this order button on the specific order
Image 3 is the normal craftqueue window showing on the workorder tab with an extra button to add the open order

Download
https://www.mediafire.com/file/5t7dozm7sptcuqj/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Slightly non-obvious consideration: since Work Orders have a specific target quality, there's probably a use case to pull some of the Reachable Quality code from Material Optimization but force it to minimize mats cost for the given quality - but also could be meaty enough to be a separate feature request (a more generic 'target quality' for Material Optimization).


Create a persistent password shouldn't point to sample method

https://github.com/dotnet/docs-aspire/blob/main/docs/fundamentals/persist-data-volumes.md#create-a-persistent-password
Creating a persistent password should show how to set the parameter value and not show these helper extension methods.
Instead, we should show how to set parameter values named appropriately:
We should document all of the resources that generate passwords, and we should talk about the parameter names for those generated passwords. We should also show how you can set the passwords without changing any code.

Postgres
SqlServer
MySql
RabbitMq

For example:
var builder = DistributedApplication.CreateBuilder(args);

var db = builder.AddSqlServer("sql").AddDatabase("db");

builder.AddProject<Projects.WebApplication10>("api")
       .WithExternalHttpEndpoints()
       .WithReference(db);

builder.Build().Run();

You can set a persistent password for sqlserver by setting the parameter value in user secrets in the AppHost project:
dotnet user-secrets add Parameters:sql-password {somepassword}

This will override the auto generated password used by the sql server resources above. The pattern for auto generated password parameters is Parameters:{resourcename}-password.
cc @eerhardt

Associated WorkItem - 250486

I believe @DamianEdwards's intention with this code was that when you don't dotnet user-secrets add ... and just run the app you get an error. People were confused and thought that the app was broken. So the thinking was to "just make it work".

We should document all of the resources that generate passwords, and we should talk about the parameter names for those generated passwords.

Would it be possible to dump the used environment variables to the console via a config switch? That way you wouldn't have to document it, disconnected from the code.

I think that's an unrelated feature request.

I found this issue while looking for any issues about the Create a persistent password section.
Currently this section shows some code and it's not clear how Aspire would be using the samplepassword value.

Yeah I hitted this myself doing the eShop workshop to get familiar with aspire. I did tried to add as Parameter but then it said it didn't found it on my settings.

Just to mention, the correct command to set the persistent password is:
dotnet user-secrets set Parameters:sql-password {somepassword}

If you don't have user secrets configured yet, you first need to run:
dotnet user-secrets init

Good call out. The apphost should have a user secrets id set from preview 5 onwards (so it should be init-ed already).


Feat: Show packages that did not require the cluster during deploy when running zarf package list

Is your feature request related to a problem? Please describe.
Users have reported that it's often confusing to figure out if a Zarf package has been deployed in an environment if the Zarf package doesn't effect the cluster. In this case the package won't show when zarf package list is run. One instance we've heard this reported is with packages deploying infrastructure as code.
Describe the solution you'd like

Given I have connectivity to a cluster and have a package that doesn't affect the cluster
When I run zarf package deploy
Then my package is tracked in the cluster
or
Given I don't have connectivity to a cluster and have a package that doesn't affect the cluster
When I run zarf package deploy
Then I get a warning message that my package will not be tracked in the cluster

Questions on implementation

It still may not entirely truthful unless we error out when unable to connect to a cluster. This can't be the default behavior, but should we add flags or items in the package schema to make tracking the package required?
Would we start showing components that aren't in the cluster or just start showing packages even if they don't have a component that requires the cluster? Currently if a component does not require a cluster it doesn't show in zarf package list even if there are other components in the same package that do.
Is it a good idea to add this feature? Or would it be confusing to users to see packages that aren't actually in the cluster

Describe alternatives you've considered
We could continue to not show packages and components that don't effect the cluster.

Currently if a component does not require a cluster it doesn't show in zarf package list even if there are other components in the same package that do.

Would you be able to show me a case where this happens? Looking through the code I am not seeing this as the current behavior.


Loading versus Drawing

As querying and loading images are asynchronous operations, both "load" and "draw" functions should be specified and used according to the following definitions.
Load: A function which does the asynchronous query. This should take in any relevant data and callback to...
Draw: Once the image or query result is finished loading (.onload or .then or similar), then this function should be called. This function should do no querying, loading, or any other asynchronous functions.

A function called loadImage takes a path to a Firebase storage image and loads it, it returns a promise of the image object. This can later be changed to an async function.


prepDE.py GENE_ID AttributeError

Hi there,
I wrote and subsequently removed a similar post yesterday when I found an error that I made. Yesterday the error was related to TRANSCRIPT_ID, but today, after fixing my mistake, I am getting the following error:
python ./prepDE.py -i /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/ballgown_test/ -g /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/ballgown/edgeR_test_gene_count_matrix.csv -t /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/ballgown/edgeR_test_transcript_count_matrix.csv -l 160
Traceback (most recent call last):
File "./prepDE.py", line 71, in
g_id=RE_GENE_ID.search(v[len(v)-1]).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Here are my other stringtie pipeline commands (apologies that the sample IDs are not the same across). Below I have also included a sample of a ballgown gtf file. Thank you!
./stringtie /media/genetics/Data1/Jeff_workstation_1/hisat2-2.0.5/mapped_reads/BAM_sorted/11-B5690_S3_mRNA_ARGU1_NGSLib3b.sorted.bam -v -o /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/ballgown/11-B5690_S3_mRNA_ARGU1_NGSLib3b/11-B5690_S3_mRNA_ARGU1_NGSLib3b.gtf -p 8 -G /media/genetics/Data1/Jeff_workstation_1/subread-1.5.0-p1/GCF_000233375.1_ICSASG_v2_genomic_gene-product_swapped.gff -A /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/ballgown/11-B5690_S3_mRNA_ARGU1_NGSLib3b/abund.tab -C /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/ballgown/11-B5690_S3_mRNA_ARGU1_NGSLib3b/refs.gtf -l 11-B5690_S3_mRNA_ARGU1_NGSLib3b
./stringtie --merge /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/GTF_files/2-B5399_S1_mRNA_ART25_NGSLib2.gtf /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/GTF_files/6-B7474_S3_1a_mRNA.gtf /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/GTF_files/8-B7877_S4_AMY2P_NGSLib1d_mRNA.gtf /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/GTF_files/12-B7893_S4_mRNA_ARGU1_NGSLib3b.gtf -G /media/genetics/Data1/Jeff_workstation_1/subread-1.5.0-p1/GCF_000233375.1_ICSASG_v2_genomic_gene-product_swapped.gff -o /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/merged/merge_test/sample_merge_test.gtf
./stringtie -e -B -p 8 -G /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/merged/merge_test/sample_merge_test.gtf -o /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/ballgown_test/12-B7893_S4_mRNA_ARGU1_NGSLib3b/12-B7893_S4_mRNA_ARGU1_NGSLib3b.gtf /media/genetics/Data1/Jeff_workstation_1/hisat2-2.0.5/mapped_reads/BAM_sorted/12-B7893_S4_mRNA_ARGU1_NGSLib3b.sorted.bam
----------------------------------------------SAMPLE_GTF_FILE-------------------------------------------------------
./stringtie -e -B -p 8 -G /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/outputs/merged/merge_test/sample_merge_test.gtf -o /media/genetics/Data1/Jeff_workstation_1/stringtie-1.3.1c.Linux_x86_64/ballgown_test/8-B7877_S4_AMY2P_NGSLib1d_mRNA/8-B7877_S4_AMY2P_NGSLib1d_mRNA.gtf /media/genetics/Data1/Jeff_workstation_1/hisat2-2.0.5/mapped_reads/BAM_sorted/8-B7877_S4_AMY2P_NGSLib1d_mRNA.sorted.bam
StringTie version 1.3.1c
NC_027300.1	StringTie	transcript	84632	85000	1000	.	.	gene_id "MSTRG.34"; transcript_id "MSTRG.34.1"; cov "1.563686"; FPKM "5.016751"; TPM "7.954231";
NC_027300.1	StringTie	exon	84632	85000	1000	.	.	gene_id "MSTRG.34"; transcript_id "MSTRG.34.1"; exon_number "1"; cov "1.563686";
NC_027300.1	StringTie	transcript	160437	198815	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.797563"; FPKM "2.558810"; TPM "4.057081";
NC_027300.1	StringTie	exon	160437	160638	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "1"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.000000";
NC_027300.1	StringTie	exon	160913	161019	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "2"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.000000";
NC_027300.1	StringTie	exon	161137	161278	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "3"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.429577";
NC_027300.1	StringTie	exon	162535	162651	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "4"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "1.495726";
NC_027300.1	StringTie	exon	164905	165174	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "5"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "1.433333";
NC_027300.1	StringTie	exon	165282	165385	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "6"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "1.961538";
NC_027300.1	StringTie	exon	171856	172058	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "7"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.837438";
NC_027300.1	StringTie	exon	173081	173237	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "8"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.000000";
NC_027300.1	StringTie	exon	174829	175008	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "9"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.000000";
NC_027300.1	StringTie	exon	182297	182485	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "10"; ref_gene_name "histone-lysine N-methyltransferase NSD2-like"; cov "0.000000";
NC_027300.1	StringTie	exon	182576	182702	1000	-	.	gene_id "MSTRG.35"; transcript_id "rna1"; exon_number "11"; ref_gene_name "histone-lysine N

As an update, I ran all of my commands, but with your sample data and prepDE.py ran successfully. So it must be one of my input files. My hunch is that it's my reference genome annotation, but I'm not sure where to go from here. I used the .gff version here: https://www.ncbi.nlm.nih.gov/genome/?term=salmo+salar


Solution to this image?

Hey guys,
I have this image:

And this is the area smartcrop is giving me to use:

This is the first image that I'm getting this kind of result... Is there something I can do to avoid these?
I know that if I use smartcrop + opencv I can boost the areas with faces and I can get this result:

But I really don't want add opencv to my stack. It's too heavy I was hoping to get this fixed without using heavy artillery.
Ideas?

https://github.com/jwagner/smartcrop.js/issues/67 might help once implemented but given the way the algorithm works there are always going to be pathological cases.

Closed for lack of a reply.

I'm sorry. Yes, the solution mentioned on #67 might help since profile pictures with people you usually don't get very good results. I can provide a few of them if you are interested. Just let me know.


[3.0.0] Multiple error regarding files (no icon, no autocomplete, no syntax syntax highlighting)

Hi,
Thanks for the new release! I was looking forward to it so I promptly upgraded.
I noticed some issues:

The icons next to the files are not displayed anymore in the File Explorer
Autocomplete doesn't work
Auto file type detection doesn't work
Syntax highlighting doesn't work

I disabled all installed extensions.
I'm also getting this error:
[remoteagent] [error] [File Watcher (chokidar)] Inotify limit reached (ENOSPC)

System:
➜  / uname -a
Linux code 4.15.18-18-pve #1 SMP PVE 4.15.18-44 (Wed, 03 Jul 2019 11:19:13 +0200) x86_64 x86_64 x86_64 GNU/Linux
➜  / lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

I'm running code-server using:
/root/code-server-3.0.0-linux-x86_64/code-server --auth none --host <IP_ADDRESS>

And accessing code-server via http://ip:8080

Do you have any fetching errors in your network tab for the icons? Are you using any icon extensions?

@kylecarbs No and no

PHP files (and JS file, and pretty sure any file at this point) are detected as plain text:

Setting it to PHP doesn't activate syntax highlighting

I disabled all my extensions just to make sure none of them were causing my problem.
The Language Mode has pretty much all languages missing:

Oof super weird. I'll download 3.0.0 and see if I can see the same thing.

Maybe there was some errors in the latest building process that have gone undetected, I'm subscribed to new releases alert so I upgraded right away hehe

Fixing this now, yea that's definitely what happened. Thanks!

Awesome. Thank you!

Looks like a bad cache; rebuilding now.

CI has completed the build. :tada:

Works perfectly. Thanks!

Sorry to let you know here that on 3.0.1 latest I am unable to use any of the features like autocomplete and extensions they fail even html formatting is not working even after installing extensions.

@Abhid14 Please open a new issue.


[BUG] Slides go black when video

Description
When presenting non-looping slides, each slide goes to black when the video has finished playing.
This is a visual issue because transition are therefore brutal.
I have reached the PySide6 community for help, waiting for a response: https://forum.qt.io/topic/151237/qmediaplayer-stopping-on-last-frame.
Version
v5
Platform
Linux
Screenshots
No response
Additional information
No response

This is apparently a bug introduced in PySide6 v6.5.3, I will force the PySide6 version and wait for a bug fix or response from Qt.


feat: Add Nightly Wallet to Selector

Description
This PR adds support for Nightly extension wallet. It works with Solana and Near and has hardware wallet support.
I have added small changes to react template like eager connect for nightly and I think there is bug when wallet is already selected so also fixed that.
Closes # (issue)

Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Type of change. This type of change is the main reason for the PR.

[ ] FIX - a PR of this type patches a bug.
[x] FEATURE - a PR of this type introduces a new feature.
[ ] BUILD - a PR of this type introduces build changes.
[ ] CI - a PR of this type introduces CI changes.
[ ] DOCS - a PR of this type introduces DOCS improvement.
[ ] STYLE - a PR of this type introduces style changes.
[ ] REFACTOR - a PR of this type introduces refactoring.
[ ] PERFORMANCE - a PR of this type introduces performance changes.
[ ] TEST - a PR of this type adds more tests.
[ ] CHORE - a PR introduces other changes than the specified above.

I have moved eager connect to an internal part of wallet, so front end users will not have to do anything.

Fixed most of your comments. Eager connect requires update of extension it will take a couple of days cuz of Chrome.
Right now everything in terms of behaviour should be in line with other extensions like Sender. The only difference is that we show extension even if the user does not have this installed.

We use implicit addresses for now we are going to work on custom ones in later releases. Demo only works if you already have some Near on your account since without it, you can't query it.

Not sure I fully understand the last part of this. When I import my existing NEAR account that has some NEAR on it, it resolves to an incorrect account id. From what I understand, Nightly is correctly resolving my seed phrase in terms of the key pair, but deriving an implicit account id instead of linking to my .testnet account.
I've since created a new account directly through Nightly and sent some NEAR to it so I can test this extension. Are there plans to resolve this issue soon as I can foresee a lot of users having issues importing just like our team has?

I've since created a new account directly through Nightly and sent some NEAR to it so I can test this extension. Are there plans to resolve this issue soon as I can foresee a lot of users having issues importing just like our team has?

Yes we are going to work on this, but we are still working on best possible UX right now we just use implicit address.
It also does not require you to deposit any near and is much easier for folks coming from ETH/SOL


trim documents

A first cut at #63

Codecov Report

Merging #71 into master will decrease coverage by 1.08%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   98.03%   96.95%   -1.09%
==========================================
  Files           6        6
  Lines         255      263       +8
  Branches       33       31       -2
==========================================
+ Hits          250      255       +5
- Misses          5        8       +3

Impacted Files
Coverage Δ

core/src/main/scala/org/typelevel/paiges/Doc.scala
97.95% <100%> (+0.01%)
:arrow_up:

...re/src/main/scala/org/typelevel/paiges/Chunk.scala
90% <78.57%> (-6.97%)
:arrow_down:

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 deea66a...0693a67. Read the comment docs.

Some comments. This is great! I've wanted to solve this for a long time.

Thanks!  Any other comments?

OK, I think I addressed all the comments.  Thanks for the help!

sorry for the slow cycle!
LGTM