Extensions : manipulating DOM outside of placeholders

Category

[X] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Question
Directly manipulating the DOM with something like this actually works :
document.getElementsByClassName("ms-Nav")[0]['style'].display = 'none';
I don't feel like it's a good practice at all: DOM will change regularly, there's no clear ID to target, and the user sees changes happening right on the screen.
Will those kinds of developments be supported in the future, or will there be only new placeholders? Actual placeholders are empty by default, will there be placeholders like LeftNavigation allowing us to replace site's navigation totally?

Good questions.  As you mention, manipulating the DOM directly is a bad practice, and is "unsupported".  It can't really be blocked in any way, but the DOM will change and will likely break solutions that depend on it.  Placeholders are the way to go when you want to add additional HTML to areas that wouldn't be thought of as webparts.  The first drop has a limited set of placeholders, but if you have some that you think make sense, then please suggest them.
In terms of replacing existing elements, I think of that as an extension type to be honest.  Ie, I would rather have a "NavigationRenderer" extension type where you get the nav data and display it all yourself, then a generic application handler where you go and find a switch, flip it, connect to a placeholder, etc.
One thing we explicitly want to avoid is having a single div that is modified both by the app and a 3rd party developer.  That won't work.

We'd love to hear your suggestions of how we can expand the current capabilities of ApplicationCustomizer:

What placeholders should we include in our pages?  Currently, we support the ApplicationCustomizer specifying a custom header.  What are other regions on the page that should contain placeholders like this?
What controls or areas on our pages should we support overriding with dedicated components?  The navigation control is one idea - do you have any others?

Components override ability:

Left navigation
Top navigation (to create a common navigation between multiple sites)
Search bar (for custom search)
Site title zone: adding metadata about the site (we could do that in header new header but it would be more user-friendly if mixed with site title and site description)
Left column: if we want to remove totally left navigation and go for a 100% layout

Hey @SPParseError, check #625 & the linked user voice request in there... consolidate?

Hey @andrewconnell, I can post a screenshot of my requested placeholders to your issue and close this one to consolidate. Go for that?
Just voted on the user voice request.

Works for me! Make sure you list the ones you want in the comments on the User Voice as well.
IMHO, better visibility with engineering if they have one place where all the requests are coming from on one feature. Some might get in, some might not, but the consolidated view makes them get equal visibility. Just my $0.02.

@andrewconnell
Sorry to open this again :)
Could you please provide the placeholder for mega menu? So that we could insert our own custom multilingual menu which we read from term store. Currently i could see only Top and Bottom placeholders are available.
Is there any other way we can achieve this functionality?
What I tried is to replace the contents of (".ms-horizontalNav") into my own UL and LI menu. But it didn't work due to DOM manipulation. Its fluctuates the navigation and sometimes it wont even display for end users. Thanks for inputs.

Feature request... those go on uservoice: https://aka.ms/sp-dev-uservoice


Custom Widgets

Do you want to request a feature or report a bug?
Feature
Feature: What is your use case for such a feature?
Example, I want to create a menu for State facet, I have to do these steps:
// create a custom menu
const MenuContainer = connectMenu(Menu)

// then use it as
<MenuContainer attributeName="state" />

When I need to create a custom widget, I could only use this widget for a specified facet, not for all facets. It means Menu component is how to display my State facet (it should be named StateMenu)
Notice: that there are a repeat step attributeName="state".
Feature: What is your proposed API entry? The new option to add? What is the behavior?
It's great if providing an API option like this:
// create a custom menu
const StateMenuContainer = connectMenu(StateMenu, { attributeName: 'state' })

// then use it as
<StateMenuContainer/>

@vinhlh Thanks for opening this issue.
We took this approach so one could do:
const AwesomeRefinementList = connectRefinementList(AwesomeRefinementListComponent);

<AwesomeRefinementList attributeName="brands" />
<AwesomeRefinementList attributeName="materials" />

And this actually works, if it does not then we failed somewhere, open a bug.
instead of
const Brands = connectRefinementList(AwesomeRefinementListComponent, {attributeName: 'brands'});
const Materials = connectRefinementList(AwesomeRefinementListComponent, {attributeName: 'materials'});

<Brands />
<Materials />

But if you like it, you could just do:
const AwesomeRefinementList = connectRefinementList(AwesomeRefinementListComponent);
const Brands = <AwesomeRefinementList attributeName="brands" />;
const Materials = <AwesomeRefinementList attributeName="materials" />;

<Brands />
<Materials />

Is you proposal bringing or coming from anything else than syntax preference?

yep, only syntax


Port stack tracing to Windows

This set of patches implements the stack trace, symbolizer, and demangler for Windows, and their unit tests. It utilizes the Windows debugging APIs in "Dbghelp.h". I'd like this to start being reviewed, but feel it probably needs some more unit tests and definitely needs to be integration tested. I'll also clean up the commits before it's applied.
/cc @hausdorff

I signed it!


Typescript import helper messed up, project-specific

Version: 1.25.1
Commit: 1dfc5e557209371715f655691b1235b6b26a06be
Date: 2018-07-11T15:43:53.668Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64

Steps to Reproduce:

Does this issue occur when all extensions are disabled?: Yes

I know that this is not exactly a VS Code issue, because in a different project I don't have this problem, but I am wondering whether this has been previously observed or as to what can confuse the importer. Everything else (type introspection, error highlighting, etc.) seems to work.

Does it happen in the latest Insiders as well?

Should be fixed in 1.26. Closing since we have not heard otherwise


September module updates

Summary / Approach

Updates drupal/acsf 2.72 => 2.73
Fixes a new PHPCS linting error by prepending module name to function.

get_patternlab_social_source => ecms_distribution_get_patternlab_social_source

Testing Instruction(s)

See RIGA-308
Screenshots

Metadata

Question
Answer

Did you apply meaningful labels to the pull request?
Y

Documentation reflects changes?
N

CHANGELOG reflects changes?
Y

Unit/Functional tests cover changes?
N

Did you perform browser testing?
Y

Did you provide detail in the summary on how and where to test this branch?
Y

Risk level
M

Relevant links
RIGA-308 , Related distribution PR

Client QAed and approved


info: print requirements

Picking up #770
Closes #775
Closes Homebrew/homebrew-core#4049

One bummer: requirements like MinimumMacOS have specific version numbers attached to them, but they're not included in the output yet. How much do we care about this?

I've added another commit with a display_s method in Requirement. (display for "thing to display to users"; _s for "string", which seems to be a conventional Ruby suffix.) Implemented it for the :java, :ruby, :perl, language_module, minimum_macos and maximum_macos requirements.
Output examples:
==> Requirements
Recommended: ruby = 1.8 ✔

==> Requirements
Required: ruby = 1.8 ✔, pygments.rb => :ruby ✘

==> Requirements
Optional: x11 ✔, perl = 5.5 ✔

==> Requirements
Required: lpeg => :lua ✘, luaexpat => :lua ✘, luafilesystem => :lua ✘

==> Requirements
Required: java = 1.7+ ✔

Amended to improve readability of min/max OS X requirements.
==> Requirements
Required: MinimumMacOS = 10.7 ✔

==> Requirements
Required: MaximumMacOS = 10.6 ✘

For testing, here's formulae to try out. They exercise the various requirements and their options.
phantomjs
valgrind
libstfl
sile
sbt
imagemagick

Nit: I think "optional requirements"
==> Requirements
Optional: x11

are very very weird...

Not sure we can do any better though.

Hah. Yeah, that does sound weird. (Especially because that means the default is a "required requirement"?)  But I think that's a consequence of the terminology Homebrew has already chosen. Probably better to make this just a UI change that sticks with the established wording for now.

Got a better word than "requirements"?

Been thinking about it a bit, and so far, no. Anything I've come up with is too technical-sounding.
Plus, changing that word now would mean a more extensive code change. Would rather just make this UI change as is, and figure out a better word later after discussion with everyone, if it matters.

changing that word now would mean a more extensive code change

I was just thinking about a better word to stick in
==> _______
Required: MinimumMacOS = 10.7 ✔
Optional: x11

but can't think of anything either.

Current coverage is 83.50% (diff: 100%)

Merging #1004 into master will decrease coverage by 0.06%

@@             master      #1004   diff @@
==========================================
  Files           340        340
  Lines         13976      13999    +23
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits          11680      11690    +10
- Misses         2296       2309    +13
  Partials          0          0

Powered by Codecov. Last update 7926114...7dd7e81

Why the distinction between dependencies and requirements?

That's a good question!
In Homebrew-speak, a Dependency is a dependency on another specific formula that can be installed by Homebrew; it's pretty simple. And a Requirement is a dependency on something that can be provided from outside Homebrew, or satisfied in multiple ways, like :x11 being provided by XQuartz, or Perl being installed, or a minimum/maximum version of OS X or Xcode, or even another formula being installed with particular language options.
This is why zmwangx and I were talking about the wording for this stuff; It's not immediately clear. We're interested in suggestions on how to word this more intuitively or document it better.

Put another way: Dependencies are things that brew can take care of automatically for you, and Requirements are things that you will (probably) have to deal with manually yourself.

Addressed Mike's review. Now the displays look like this.
==> Requirements
Build: git ✔, xcode ✔
Required: macOS >= 10.7 ✔

==> Requirements
Required: macOS >= 10.6 ✔, macOS <= 10.11 ✔

==> Requirements
Recommended: ruby >= 1.8 ✔

==> Requirements
Required: lpeg => :lua ✘, luaexpat => :lua ✘, luafilesystem => :lua ✘

==> Requirements
Required: java >= 1.6 ✔

==> Requirements
Optional: x11 ✔, perl >= 5.5 ✔

Required: lpeg => :lua ✘, luaexpat => :lua ✘, luafilesystem => :lua ✘

This is the only bit that still reads a bit weird. Maybe lpeg (lua) or even lpeg (lua module)?

Yeah, I think lpeg (lua module) reads better. Amended to do so.

Thanks @apjanke!


Fix error: ‘NI_MAXSERV’ undeclared

When I compile libre using arm-linux-musleabi-gcc cross-compiler with musl library I encountered a compilation issue:
[ 59%] Building C object CMakeFiles/re-objs.dir/src/tcp/tcp.c.o
.../git/re/src/tcp/tcp.c: In function ‘tcp_sock_bind’:
.../git/re/src/tcp/tcp.c:725:12: error: ‘NI_MAXSERV’ undeclared (first use in this function)
  char serv[NI_MAXSERV] = "0";
            ^~~~~~~~~~
.../git/re/src/tcp/tcp.c:725:12: note: each undeclared identifier is reported only once for each function it appears in
.../git/re/src/tcp/tcp.c:725:7: warning: unused variable ‘serv’ [-Wunused-variable]
  char serv[NI_MAXSERV] = "0";
       ^~~~
.../re/src/tcp/tcp.c: In function ‘tcp_conn_alloc’:
.../re/src/tcp/tcp.c:886:12: error: ‘NI_MAXSERV’ undeclared (first use in this function)
  char serv[NI_MAXSERV] = "0";
            ^~~~~~~~~~
.../re/src/tcp/tcp.c:886:7: warning: unused variable ‘serv’ [-Wunused-variable]
  char serv[NI_MAXSERV] = "0";
       ^~~~
.../re/src/tcp/tcp.c: In function ‘tcp_conn_bind’:
.../re/src/tcp/tcp.c:963:12: error: ‘NI_MAXSERV’ undeclared (first use in this function)
  char serv[NI_MAXSERV] = "0";
            ^~~~~~~~~~
.../re/src/tcp/tcp.c:963:7: warning: unused variable ‘serv’ [-Wunused-variable]
  char serv[NI_MAXSERV] = "0";
       ^~~~
.../re/src/tcp/tcp.c: In function ‘tcp_conn_connect’:
.../re/src/tcp/tcp.c:1037:12: error: ‘NI_MAXSERV’ undeclared (first use in this function)
  char serv[NI_MAXSERV];
            ^~~~~~~~~~
.../re/src/tcp/tcp.c:1037:7: warning: unused variable ‘serv’ [-Wunused-variable]
  char serv[NI_MAXSERV];
       ^~~~

It turns out the same issue had OpenSSL project, and it was fixed by this commit. It resolved my issue as well.

It looks netdb.h related, can you try:
diff --git a/src/tcp/tcp.c b/src/tcp/tcp.c
index 15de2eec..23dc10d7 100644
--- a/src/tcp/tcp.c
+++ b/src/tcp/tcp.c
@@ -14,6 +14,7 @@
 #define __USE_POSIX 1  /**< Use POSIX flag */
 #define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
 #define __USE_MISC 1
+#define _GNU_SOURCE 1
 #include <netdb.h>
 #endif
 #ifdef __APPLE__

This work as well, changed


Error Message When Trying to Stop Smeshing During Syncing

Environment

Smapp version: latest

Describe the Bug
Currently, there is an issue when the smeshing process or node syncing is ongoing, and the user attempts to stop smeshing. On the Smeshing screen, clicking the "Stop Smeshing" button displays the following message:

Steps to Reproduce
This behavior is not consistent and depends on the node's status.

Open Smapp with smeshing enabled.
Quickly navigate to the Smeshing screen.
Click "Stop Smeshing".

Expected Behavior
All scenarios where stopping smeshing is not possible should be appropriately handled. If unfeasible, the "Stop Smeshing" button should not be displayed. Alternatively, if an error message appears, it should clarify that this is an expected behavior and encourage the user to try again later.
Actual Behavior
After clicking the button, an error modal is shown. The user closes it and can attempt the action again. The outcome might still lead to an error message (depending on the situation).

No, I'm sure that's not the point. In fact, this is a bug in the Smap.
The error indicates that the handler for the event is not registered in the main process.
It means that SmesherManager.subscribeIPCEvents was not called for some reason OR it was unsubscribed and not subscribed again, or something like this (mb some race condition). However, this function should be called every time we spawn managers...
also NodeManager.startGRPCClient calls SmesherManager.subscribeIPC — mb this is an excessive call (or mb the opposite and we need to wait for it) — research needed

very easily reproducible along with the #1480


Hive metastore types in global namespace

The classes defined in hive_metastore_types.rb are created directly in the global namespace, not in a specific module and they are prone to class name collisions because of this.
For example, in my project my Role model is conflicting with the Role class defined by rbhive. There are other very generic names in this file that could also cause collisions, like Type and Version.
Can you put these classes inside a module? Is there any workaround in the meantime?

Andy,
We are having the same problem with few classes. Did you get a chance to namespace them?

Andy!
Why not check in the IDL code so that someone else can fix this? We also need a fix and would happily patch and share, but without the .thrift files, we cannot regenerate the files. Any update on this?

The IDL code is not owned by me or written by me. It's the property of the Hive project, and you can find the IDL files there if you want to take a crack at regenerating the classes. I've been too busy with other things to do this, as regenerating the code is pretty painful (Thrift is hard to install).
I will try to have a look at it today.

I see. Ok, let me know if successful. Where are you getting stuck?

Another rather generic class name I have problems with it Database.


CITResewn doesnt works.

FreshAnimations - doesnt works
Transform ArmorStand to Player model - doesnt works
Capybara pigs - doesnt works
I dont know why it doesnt, works but theres my modlist:
1.19.4 (Fabric)
Animatica
Appleskin
Architectury
Capes
Chat Heads
CITResewn
Cloth-config
EasyAuth
Essential
Fabric api
Fabric language kotlin
Freelook
Indium
Inventory
Iris
ItemScroller
ItemSwapper
LibIPN
Lithium
Malilib
Modmenu
NoFog
OkBoomer
OwoLib
PlasmoVoice
Reese's Sodium Options
RoughlyEnoughItems (REI)
SmoothBoot
Sodium Extra
Sodium
ViaFabric
Viewmodel Changer
WaveyCapes
WorldEditCUI

these textrues works on Custom Entity Models or Entity Model Features with Entity Texture Features.
CITResewn is not for them.

Not nearly enough information here. What do you mean it "doesnt work" :/
Show exactly what you think should be happening and isnt happening and send logs. If you crash you need to show your logs as well.


refactor [githubreposize]

Warnings

:warning:
This PR modified service code for github but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @chris48s!

  Generated by :no_entry_sign: dangerJS against 8185cebd1a6f82b23017b6550c1113282b93b639


remove DiffEqCallbacks as dependency

This will be beneficial in Julia v1.6 due to parallel precompilation. DiffEqCallbacks uses OrdinaryDiffEq as a dependency, which takes some time to precompile.

I'll merge this without further review since it's a minor change and something that I should have made as it is right now in the first place when creating Taal.

I'll merge this without further review since it's a minor change and something that I should have made as it is right now in the first place when creating Taal.

Thanks for looking into this!


Adding another column with direct link to the careers or jobs offering page.

Hi,
Adding a new column which will hold the link to the jobs/careers page directly would make easier the use of the listing.

Hi @mastermind1981, a direct link to the company's careers / job page is given at the bottom of their company profile :+1:

Closing - solved with my comment.


Add Java support

Implement automatically adding the specific version of the maven package for Java Pulumi programs.

@danielrbradley The README implies you can specify Java as a runtime, but this issue implies you cannot. Can you clarify what features of Java are missing?


Wrong type for useMeasure hook

The example code for the useMeasure hook produces type errors:
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgVwM4FMCy6CGrlTpwC+cAZlBCHAESE4DGMAtGujQNwBQokscAJVxNylanWExOXLgwgA7VPAAi6EBDgBeOAAoAlFoB8iLnDhzF8ANqEyAGkRwAHg4CeDgO7AAJjAAWDn7owADmfjAOMBBgDlCh4Q4ARhAwUSAOADboZPDEALpaKBjYeATo+tymcIQwBPK6VWYAPN7AAG7V2ZoItsSGjWZwLe2GTgBciE7ETQD0rW2GAJADzfOGrhMIrtNzIytDa16+fptH-jtr+8MLQfEwm7dhMBd7g4PXhlFgm18vC1drOJPTZA8J-fpvVYjZKpKibGFpcEAkZZHKbVHPWaXN5Y15wPTcYgcIA
From what I can tell, the issue is located here:
https://github.com/streamich/react-use/blob/master/src/useMeasure.ts#L9
A typical DOM element has a ref function type of (element: E | null) => void. useMeasure however produces a hook typed like (element: E) => void, which is incompatible. It should be possible to fix this by changing line 9 of useMeasure.ts to
export type UseMeasureRef<E extends Element = Element> = (element: E | null) => void;

I can happily take a PR on this.

const [ref, { x, y, width, height, top, right, bottom, left }] = useMeasure<HTMLDivElement>();

  return (

x: {x}

y: {y}

width: {width}

height: {height}

top: {top}

right: {right}

bottom: {bottom}

left: {left}

  );


[EASI-2630] EUA showing on timestamp instead of user name

EASI-2630
Changes and Description

Quick pairing with @StevenWadeOddball  to make sure basics' ready_for_review_by and ready_for_review_dts gets updated
GetUserInfo query and type
Add GetUserInfo queries to render username instead of EUA ID
Change itTools to itSolutions in Prepare for Clearance checklist

How to test this change
Checking user name is rendering in the Ready for Review section

Make a Task List section as ready for review.
Return to page and make sure the text is rendering username

Checking user name is rendering in Prepare for Clearance section

Go through the task list to enable the Prepare for Clearance section
Mark the sections ready for clearance
Verify that the timestamp shows username, not eua id

PR Author Review Checklist

[ ] Met the ticket's acceptance criteria, or will meet them in a subsequent PR.
[ ] Added or updated tests for backend resolvers or other functions as needed.
[ ] Added or updated client tests for new components, parent components, functions, or e2e tests as necessary.
[ ] Updated the Postman Collection if necessary.

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.
Always make comments, even if it's minor, or if you don't understand why something was done.

I'm also not seeing the names rendered in Prepare for Clearance section


add get_config()

See details in the parent issue napalm-automation/napalm-base#65

@grizz I recall you have already the implementation for this. Feel free to open a pull request

Closing via https://github.com/napalm-automation/napalm-junos/pull/52


Error when building using Java 18 in 9.3.0

What happened?
Unable to build image using spring-boot/maven using JDK 18, after update to 9.3.0 buildpack.

What were you attempting to do? Build via spring boot

What did you expect to happen? A build using Java 18 to success

What was the actual behavior? Please provide log output, if possible.

[INFO]     [creator]     Paketo CA Certificates Buildpack 3.1.0
[INFO]     [creator]       https://github.com/paketo-buildpacks/ca-certificates
[INFO]     [creator]       Launch Helper: Contributing to layer
[INFO]     [creator]         Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[INFO]     [creator]
[INFO]     [creator]     Paketo BellSoft Liberica Buildpack 9.3.0
[INFO]     [creator]       https://github.com/paketo-buildpacks/bellsoft-liberica
[INFO]     [creator]       Build Configuration:
[INFO]     [creator]         $BP_JVM_TYPE                 JRE             the JVM type - JDK or JRE
[INFO]     [creator]         $BP_JVM_VERSION              18.*            the Java version
[INFO]     [creator]       Launch Configuration:
[INFO]     [creator]         $BPL_DEBUG_ENABLED           false           enables Java remote debugging support
[INFO]     [creator]         $BPL_DEBUG_PORT              8000            configure the remote debugging port
[INFO]     [creator]         $BPL_DEBUG_SUSPEND           false           configure whether to suspend execution until a debugger has attached
[INFO]     [creator]         $BPL_HEAP_DUMP_PATH                          write heap dumps on error to this path
[INFO]     [creator]         $BPL_JAVA_NMT_ENABLED        true            enables Java Native Memory Tracking (NMT)
[INFO]     [creator]         $BPL_JAVA_NMT_LEVEL          summary         configure level of NMT, summary or detail
[INFO]     [creator]         $BPL_JFR_ARGS                                configure custom Java Flight Recording (JFR) arguments
[INFO]     [creator]         $BPL_JFR_ENABLED             false           enables Java Flight Recording (JFR)
[INFO]     [creator]         $BPL_JMX_ENABLED             false           enables Java Management Extensions (JMX)
[INFO]     [creator]         $BPL_JMX_PORT                5000            configure the JMX port
[INFO]     [creator]         $BPL_JVM_HEAD_ROOM           0               the headroom in memory calculation
[INFO]     [creator]         $BPL_JVM_LOADED_CLASS_COUNT  35% of classes  the number of loaded classes in memory calculation
[INFO]     [creator]         $BPL_JVM_THREAD_COUNT        250             the number of threads in memory calculation
[INFO]     [creator]         $JAVA_TOOL_OPTIONS                           the JVM launch flags
[INFO]     [creator]       BellSoft Liberica JRE 18.0.0: Contributing to layer
[INFO]     [creator]         Downloading from https://github.com/bell-sw/Liberica/releases/download/18+37/bellsoft-jre18+37-linux-amd64.tar.gz
[INFO]     [creator]         Verifying checksum
[INFO]     [creator]         Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jre
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to load certificates
[INFO]     [creator]     unable to read keystore
[INFO]     [creator]     unable to decode keystore
[INFO]     [creator]      got invalid magic
[INFO]     [creator]     ERROR: failed to build: exit status 1

Build Configuration

What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
using?  Using spring-boot-maven-plugin 2.6.6.

What buildpacks are you using? default for spring-boot-maven-plugin

What builder are you using? default

Checklist

[x] I have included log output.
[x] The log output includes an error message.
[x] I have included steps for reproduction.

Same error:
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 4 resources
[INFO] Copying 45 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 283 source files to /home/runner/work/api/api/target/classes
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ api ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ api ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ api ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.8-SNAPSHOT:report (report) @ api ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ api ---
[INFO] Building jar: /home/runner/work/api/api/target/api-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.6.6:repackage (repackage) @ api ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] <<< spring-boot-maven-plugin:2.6.6:build-image (default-cli) < package @ api <<<
[INFO]
[INFO]
[INFO] --- spring-boot-maven-plugin:2.6.6:build-image (default-cli) @ api ---
[INFO] Building image '***.dkr.ecr.eu-west-2.amazonaws.com/squaddy:e399b14f3e12a962db614d17094c70a367d38c8c'
[INFO]
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 6%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 12%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 14%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 14%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 16%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 24%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 32%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 40%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 48%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 54%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 60%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 100%
[INFO]  > Pulled builder image 'paketobuildpacks/builder@sha256:c2a5de88935fb072e9d17f92acb293d4f089[579](https://github.com/squaddy/api/runs/5830040298?check_suite_focus=true#step:8:579)67f3b9b2ad96d0a3c3f8d61fe'
[INFO]  > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' 100%
[INFO]  > Pulled run image 'paketobuildpacks/run@sha256:099a4fd96ffbc2a54d98594a99c1a1dbe6c2dc8e5cec60d0f45fcfcd7dd353d9'
[INFO]  > Executing lifecycle version v0.13.5
[INFO]  > Using build cache volume 'pack-cache-606b2128d153.build'
[INFO]
[INFO]  > Running creator
[INFO]     [creator]     ===> DETECTING
[INFO]     [creator]     ======== Output<EMAIL_ADDRESS>========
[INFO]     [creator]     pyproject.toml must include [tool.poetry.dependencies.python], see https://python-poetry.org/docs/pyproject/#dependencies-and-dev-dependencies
[INFO]     [creator]     err<EMAIL_ADDRESS>(1)
[INFO]     [creator]     ======== Output<EMAIL_ADDRESS>========
[INFO]     [creator]     pyproject.toml must include [tool.poetry.dependencies.python], see https://python-poetry.org/docs/pyproject/#dependencies-and-dev-dependencies
[INFO]     [creator]     err<EMAIL_ADDRESS>(1)
[INFO]     [creator]     6 of 23 buildpacks participating
[INFO]     [creator]     paketo-buildpacks/ca-certificates   3.1.0
[INFO]     [creator]     paketo-buildpacks/bellsoft-liberica 9.3.0
[INFO]     [creator]     paketo-buildpacks/syft              1.10.0
[INFO]     [creator]     paketo-buildpacks/executable-jar    6.2.0
[INFO]     [creator]     paketo-buildpacks/dist-zip          5.2.1
[INFO]     [creator]     paketo-buildpacks/spring-boot       5.8.0
[INFO]     [creator]     ===> ANALYZING
[INFO]     [creator]     Previous image with name "***.dkr.ecr.eu-west-2.amazonaws.com/squaddy:e399b14f3e12a962db614d17094c70a367d38c8c" not found
[INFO]     [creator]     ===> RESTORING
[INFO]     [creator]     ===> BUILDING
[INFO]     [creator]
[INFO]     [creator]     Paketo CA Certificates Buildpack 3.1.0
[INFO]     [creator]       https://github.com/paketo-buildpacks/ca-certificates
[INFO]     [creator]       Launch Helper: Contributing to layer
[INFO]     [creator]         Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
[INFO]     [creator]
[INFO]     [creator]     Paketo BellSoft Liberica Buildpack 9.3.0
[INFO]     [creator]       https://github.com/paketo-buildpacks/bellsoft-liberica
[INFO]     [creator]       Build Configuration:
[INFO]     [creator]         $BP_JVM_TYPE                 JRE                  the JVM type - JDK or JRE
[INFO]     [creator]         $BP_JVM_VERSION              18.*                 the Java version
[INFO]     [creator]       Launch Configuration:
[INFO]     [creator]         $BPL_DEBUG_ENABLED           false                enables Java remote debugging support
[INFO]     [creator]         $BPL_DEBUG_PORT              8000                 configure the remote debugging port
[INFO]     [creator]         $BPL_DEBUG_SUSPEND           false                configure whether to suspend execution until a debugger has attached
[INFO]     [creator]         $BPL_HEAP_DUMP_PATH                               write heap dumps on error to this path
[INFO]     [creator]         $BPL_JAVA_NMT_ENABLED        true                 enables Java Native Memory Tracking (NMT)
[INFO]     [creator]         $BPL_JAVA_NMT_LEVEL          summary              configure level of NMT, summary or detail
[INFO]     [creator]         $BPL_JFR_ARGS                                     configure custom Java Flight Recording (JFR) arguments
[INFO]     [creator]         $BPL_JFR_ENABLED             false                enables Java Flight Recording (JFR)
[INFO]     [creator]         $BPL_JMX_ENABLED             false                enables Java Management Extensions (JMX)
[INFO]     [creator]         $BPL_JMX_PORT                5000                 configure the JMX port
[INFO]     [creator]         $BPL_JVM_HEAD_ROOM           0                    the headroom in memory calculation
[INFO]     [creator]         $BPL_JVM_LOADED_CLASS_COUNT  35% of classes       the number of loaded classes in memory calculation
[INFO]     [creator]         $BPL_JVM_THREAD_COUNT        250                  the number of threads in memory calculation
[INFO]     [creator]         $JAVA_TOOL_OPTIONS           -Xms2048m -Xmx2048m  the JVM launch flags
[INFO]     [creator]       BellSoft Liberica JRE 18.0.0: Contributing to layer
[INFO]     [creator]         Downloading from https://github.com/bell-sw/Liberica/releases/download/18+37/bellsoft-jre18+37-linux-amd64.tar.gz
[INFO]     [creator]         Verifying checksum
[INFO]     [creator]         Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jre
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to load certificates
[INFO]     [creator]     unable to read keystore
[INFO]     [creator]     unable to decode keystore
[INFO]     [creator]      got invalid magic
[INFO]     [creator]     ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  51.257 s
[INFO] Finished at: 2022-04-05T08:22:25Z
[INFO] ------------------------------------------------------------------------

This is an ongoing issue. Please watch https://github.com/paketo-buildpacks/libjvm/issues/158 for updates.


Bashkir 11760 - Society location

Bashkir (11760) society location is a significant geographic distance from the song recordings.
Suggest changing the society location to te average song latitude and longitude.

Done


TCP Connections to Network Printer from multiple clients not working

Hi
Forgive me if I have overlooked something here, but my understanding (which may well end up being incorrect) is that a server (or in this case, a network printer) supports multiple connections on the same port (9100) through the concept of the tuple.
(SourceIP:SourcePort|HostIP:HostPort|Protocol).
I have successfully integrated the ESC-POS packages in to my application and it prints beautifully over TCP and all the status feedback works great. Tested it in various scenarios such as powering off, opening lid etc.
However....if I try to make a connection to the printer using the same IP and Port as an application running on a different machine is using and connected to, the connection is refused.
"No connection could be made because the target refused it".
If I run Netstat on the second machine, I can see that the an attempt to connect to the IP and port was sent and it waiting.
If I close the running application that has the active connection, the second connection succeeds.
Based on this, I can only draw the conclusion that either something in the ESC-POS library is blocking multiple connections, or the printer device (Aures OPD333) simply doesn't support multiple connections, which I find strange.
Any help that anyone could give me would be greatly appreciated.
TIA

From what you described, sounds like the connection is kept open by your first application, even when no data is being sent to the printer.
I don't recall if ESC-POS library has a connect/disconnect method for TCP, but if not you can always dispose the instantiated printer class that connected and it should be enough to free the address for a new connection. In other words, Connect, Print and Disconnect, every time you wish to use the printer.
Other than this, you would have to dive into the library code and propose a working alternative through a PR.

@igorocampos Thank you so much for taking the time to comment. I had actually decided already to adopt the Connect/Print/Disconnect approach and I have it working nicely. It's not something I can contribute as a PR though unfortunately as it is too far removed from the ESC-POS core functionality now. Thanks again.

As a follow-up, it does appear that some non-Epson printers are implemented where they don't support multiple inbound connections.  The ESCPOS library is only tested with Epson printers (since that's what I have) as well as a Royal PT-300 for wifi/bluetooth tests.  I think this makes a strong case for having 2 different implementations, one that keeps a persistent connection (for printers that support multiple connections, or use cases where the POS device can claim exclusive ownership), and don't cause other applications to malfunction) and another for fire-and-forget printing that doesn't maintain a connection long-term.

Hi Luke,
Hope you’re well mate.
Do you know of a way to transpose the byte array that is sent to the printer in to either of the following:

PrintDocument
PDF
XPS

The idea being to be able to bypass the array going to a Thermal printer but instead display the output, including all formatting and any images/barcodes etc, on the screen. Like print preview.
Regards,
@.***
Newbridge is a trading name of Newbridge Software Ltd Company Number (10510559)
This e-mail is from Newbridge Software Ltd It is confidential to the addressee and may contain copyright and/or legally privileged information. No-one else, other than on behalf of the addressee, may read, print, store, copy, forward or act in reliance on all or any of it or its attachments. We accept no liability for any loss, damage or consequence resulting either directly or indirectly from the use of the attached files. If you receive this e-mail in error, please telephone us on 029 20 990810.
@.https://www.facebook.com/newbridgesoftware/ @. https://www.instagram.com/newbridgesoftware/ @.*** https://www.linkedin.com/company/newbridge-software/
From: Luke Paireepinart @.>
Sent: 08 July 2022 17:06
To: lukevp/ESC-POS-.NET @.>
Cc: Gareth Jones @.>; State change @.>
Subject: Re: [lukevp/ESC-POS-.NET] TCP Connections to Network Printer from multiple clients not working (Issue #174)
As a follow-up, it does appear that some non-Epson printers are implemented where they don't support multiple inbound connections. The ESCPOS library is only tested with Epson printers (since that's what I have) as well as a Royal PT-300 for wifi/bluetooth tests. I think this makes a strong case for having 2 different implementations, one that keeps a persistent connection (for printers that support multiple connections, or use cases where the POS device can claim exclusive ownership), and don't cause other applications to malfunction) and another for fire-and-forget printing that doesn't maintain a connection long-term.
—
Reply to this email directly, view it on GitHubhttps://github.com/lukevp/ESC-POS-.NET/issues/174#issuecomment-1179151494, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKGTDCJ3IWSSMF6OGKDJWLVTBGVNANCNFSM5VJFMURA.
You are receiving this because you modified the open/close state.Message ID<EMAIL_ADDRESS>

@NewbridgeGareth  I'm not aware of any ESCPOS parser that can output PDF or any other format.  I've been interested in building something like this (to provide print previews, etc.) Can you open up a separate issue that we could discuss about this and maybe document any links you find to anything existing that does this?  This issue isn't really related to this topic.


feat: format gin logger

Type of change:

[ ] Bugfix
[x] New feature provided
[ ] Improve performance
[ ] Backport patches

What this PR does / why we need it:
Resloved #899

Simply run make update-license && make update-gofmt to update license header and imports.

Simply run make update-license && make update-gofmt to update license header and imports.

Thanks!

Codecov Report

Merging #904 (85dd532) into master (8348d01) will decrease coverage by 0.18%.
The diff coverage is 69.44%.

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

Please fix this:

Error: ../../pkg/log/gin_logger.go:26:2: missing go.sum entry for module providing package github.com/gin-gonic/gin (imported by github.com/apache/apisix-ingress-controller/pkg/log);

Thanks!

Please fix this:

Error: ../../pkg/log/gin_logger.go:26:2: missing go.sum entry for module providing package github.com/gin-gonic/gin (imported by github.com/apache/apisix-ingress-controller/pkg/log);

Thanks!

Done

@lingsamuel, hi lingsamuel, I observed ci error, check the ingress lb status is updated, I don't know what to do to fix it.

It's a flaky test #869, just ignore it

Please check the CI errors

Please check the CI errors

@tao12345666333, I have some doubts about the CI error. I can't reproduce it locally. It seems to be an unstable CI unit test.

@Belyenochi let me re-run CI.

@Belyenochi let me re-run CI.

It seems that everything is ok.

merged!


Update README with the sorting algorithms

Hi @eduardosm7
I'd like to work on this can you provide more description.

If you can update the README with a short description of the algorithm and/or a Wikipedia link it would be great :). If you have any questions, please let me know :D


Cordova 6.2 breaks plugin

Cordova changed the added NSMutableArray dequeue interface  name used in ChromeSocket.m
The fix is simple, just use the new cdv_dequeue interface:
    ChromeSocketSocket* acceptSocket = [socket->_acceptSocketQueue cdv_dequeue];

However, a more elaborated fix is welcome, such as a manual dequeue operation over the NSMutableArray (avoid Cordova's interfaces) to ensure backwards compatibility with older Cordova versions.

+1 and thx for the solution.

@DavidMora Thanks a bunch!


Ed Snible becomes approver for istioctl

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: esnible, linsun
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

istioctl/OWNERS [linsun]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@esnible: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-e2e.sh
3f7923c58e7c0eb00b470dbbb24e0e59f0723793
link
/test istio-pilot-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Logo added

Adding logo file hope you like it! #48

@namansharma3007 Can you please add labels to it.Thanks


aiohttp & brew fixes & line issue

I've just implemented some new commands to streamline the installation process for Naticord. Additionally, I included aiohttp in the installation commands to ensure smooth operation. Also, I fixed a grammar issue where it mistakenly said 'sealf' instead of 'self', which was causing the app to not run properly.

The readme tutorial about logging in and switching accounts was understandable enough, but I guess that works too


[Docker] Move to using DGL 2.2 for local image, update CUDA source image to supported version, add fetch_and_run.sh script for local container

Issue #, if available:
Description of changes:

We move version of DGL to 2.2.1 for the local image
We add fetch_and_run.sh as the command for the local image, to allow easy execution of arbitrary scripts through AWS Batch etc. See https://aws.amazon.com/blogs/compute/creating-a-simple-fetch-and-run-aws-batch-job/ for details
Update CUDA image to 12.1.1, 12.1.0 is EOL.
Move local Dockerfile to its own directory to keep it consistent with the other Dockerfiles (sagemaker, parmetis)
Add script to easily push GSF images to ECR.

Testing
Ran multiple NC jobs with ogbn-mag, ACM example data, ogb-paper-100M on up to 4 GPU workers.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Applied review comments and clarified questions, let me know if there's anything else needed @classicsong @jalencato


feat: add enforce option

Hi!
First of all, thank you for the great work 🙂
I'm using Nuxt 3 with your plugin, but I want to access and replace the pure SFC, so I need to set enforce to 'pre'.
Cheers!

@deleonio would there be a chance to review this? :see_no_evil: would be great, I'd love it! :heart:

@darioferderber I'd say we can fork this repo as @deleonio does not seem to maintain it anymore.


Use facenet 20170512-110547.pb model in Android meet "No OpKernel was registered to support Op 'Switch' " error

Use facenet 20170512-110547.pb model in Android meet error .That is"No OpKernel was registered to support Op 'Switch' with these attrs". The error as below:
06-22 20:02:37.725 16360-16383/com.tzutalin.dlibtest E/TensorFlowInferenceInterface: Failed to run TensorFlow inference with inputs:[input], outputs:[embeddings]
                                                                                --------- beginning of crash

06-22 20:02:37.764 16360-16383/com.tzutalin.dlibtest E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
Process: com.tzutalin.dlibtest, PID: 16360
java.lang.IllegalArgumentException: No OpKernel was registered to support Op 'Switch' with these attrs.  Registered devices: [CPU], Registered kernels:
device='GPU'; T in [DT_STRING]
device='GPU'; T in [DT_BOOL]
device='GPU'; T in [DT_INT32]
device='GPU'; T in [DT_FLOAT]
device='CPU'; T in [DT_FLOAT]
device='CPU'; T in [DT_INT32]
                                                                        [[Node: InceptionResnetV1/Conv2d_1a_3x3/BatchNorm/cond/Switch = Switch[T=DT_BOOL](phase_train, phase_train)]]
                                                                       at org.tensorflow.Session.run(Native Method)
                                                                       at org.tensorflow.Session.access$100(Session.java:48)
                                                                       at org.tensorflow.Session$Runner.runHelper(Session.java:295)
                                                                       at org.tensorflow.Session$Runner.run(Session.java:245)
                                                                       at org.tensorflow.contrib.android.TensorFlowInferenceInterface.run(TensorFlowInferenceInterface.java:142)

I write the java code in Android as below:
public  void getImageData(ArrayList imagePath, Context context){
Log.d("Facenet"," getImageData in");
if (!imagePath.isEmpty())
{
     float[] iamgesPixels =  new float[imagePath.size()* 160 *160 * 3];
      Log.d("Facenet"," getImageData in not empty iamgesPixels length = "+iamgesPixels.length);
      float[] outputs = new float[1024];
     for (int i = 0; i < imagePath.size(); ++i)
     {
         Log.d("Facenet","imagePath = "+imagePath + " i = "+ i);
        Bitmap bitmap = BitmapFactory.decodeFile(imagePath.get(i));
        float[] imageArray = bitmapToFloatArray(bitmap);
         System.arraycopy(imageArray,0,iamgesPixels,i*160 *160 * 3,imageArray.length);
     }
      inferenceInterface = new TensorFlowInferenceInterface(context.getAssets(), MODEL_FILE);
      inferenceInterface.feed(INPUT_NODE, iamgesPixels, 921600);
      inferenceInterface.run(new String[]{OUTPUT_NODE}, false);
      inferenceInterface.fetch(OUTPUT_NODE, outputs);
      Log.d("Facenet","outputs.length = "+ outputs.length);
  }

}

If you have fix the issue “No OpKernel was registered to support Op 'Switch' with these attrs".Please help me，Thanks.

Hi, do you know how to use this project in andorid ? Is there some tutorial? Tks! @banderuilq

#238
You must freeze graph without any file input nodes.

@apollo-time  Could  you share how to freeze the graph without  input node "phase_train" ?
thanks.

@apollo-time Hi, Do you have code to calculate the L2 distance between the embeddings in Java? I am getting varying distance that don't really make sense with my implemention of the distance calculation from your facenet.pb file in android. Appreciate if you could share if you have.

I have meet this problem, How to fix it?

how to use faceNet in Android？ Can you share with me

See here guys: https://github.com/davidsandberg/facenet/issues/238
And use this .pb model: https://github.com/apollo-time/facenet/raw/715d5cfbd2eef70e83f55ff9b697d13173ee06de/model/resnet/facenet.pb


Fix import check on optimized builds

On optimized builds, Name() would be empty.

Codecov Report

Merging #7 (54e4ab8) into main (b0029cd) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   72.46%   72.46%
=======================================
  Files          21       21
  Lines        4667     4667
=======================================
  Hits         3382     3382
  Misses        905      905
  Partials      380      380


Idea for regression test for accidental removal of definitions

I've been thinking about how to add regression tests for issues like #2101, wherein between versions 0.2.86 and 0.2.87 a system call was accidentally removed for a specific target. The structure for libc is quite complex with many #[cfg]s throughout the code base (for good reasons), this makes it quite easy to mistakenly remove an item for a target and not catch it in review.
Currently there is libc-test, which tests if a given definition in Rust is the same as in C. But this doesn't catch if a definition is removed between libc version.
So, now my idea. Keep around a list of definitions (functions, constants etc.) that are exported by libc in a text file (separate from the code base) for each OS/architecture combination. For example such a file for Android:
# linux-android.txt
accept
accept4
SOCK_NONBLOCK
SOCK_CLOEXEC
# Etc...

To make architecture specific changes we can use a diff-like format: + for additional definitions, - for unsupported definitions.
# arm-linux-androideabi.txt
-accept4 # Android on Arm doesn't support `accept4(2)` (Not true, just an example).
+accept6 # A system call only supported on Android on Arm (again just an example).

A build script could read these files for a given target, i.e. for the arm-linux-androideabi it would include both linux-android.txt and arm-linux-androideabi.txt, and convert it to a Rust test file. Such a test file would look something like the following:
#![allow(unused_imports)]

// Used files:
// linux-android.txt
// arm-linux-androideabi.txt

use libc::{
    accept, // From linux-android.txt.
    SOCK_NONBLOCK, // From linux-android.txt.
    SOCK_CLOEXEC, // From linux-android.txt.
    accept6, // From arm-linux-androideabi.txt.
    // Etc...
};

If a definition is removed between versions the test file wouldn't build, and thus fail the test/CI.
This is just an idea I had, it might be too much work to maintain such lists of definitions. I can put in the work for the setup/build script, but I realise that that is not were most of the work is in.

This sounds like a great idea! We use rusr-semverver for this purpose but it doesn't make much sense currently. We, for example, sometimes move a declaration to the parent module but semverver complains about it (it's not a breaking change for us), that's why we ignore its check on bors. But this approach doesn't have such a false positive so it'd be better.

I like this plan! We might also be able to compare our lists to lists from other sources (e.g. Debian symbols files) to help us determine what we currently don't have supported. (Those lists don't include compile-time constants, but they include all library symbols.)


EXSRV002 without internet connection

Is it possible to add a file with the last build of each version of MS Exchange to be able to run the test EXSRV002 without an internet connection.
There is some organizations whose infrastructures implies that the MS Exchange server do not get a direct internet access.

This has already been raised and discussed in #17 .


[BUG] V2 volume is attached to a node first, the V1 volume will fails to attach.

Describe the bug (🐛 if you encounter this issue)
I first created a V2 volume vol-0 via the UI and created a pod to mount volume vol-0. Then, I created a V1 volume vol-1, and attempted to attach vol-1 to one of the nodes. However, vol-1 continuously appears in an 'attaching detaching' loop.

Events:
  Type     Reason                Age                   From                        Message
  ----     ------                ----                  ----                        -------
  Normal   Detached              13m                   longhorn-volume-controller  volume vol-1 has been detached
  Normal   Remount               13m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:04:32Z
  Normal   Remount               13m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:04:47Z
  Normal   Remount               12m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:05:03Z
  Normal   Remount               12m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:05:19Z
  Normal   Remount               12m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:05:34Z
  Normal   Remount               12m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:05:50Z
  Normal   Detached              11m (x7 over 13m)     longhorn-volume-controller  volume vol-1 has been detached
  Normal   Remount               11m                   longhorn-volume-controller  Volume vol-1 requested remount at 2024-01-02T09:06:05Z
  Warning  DetachedUnexpectedly  3m26s (x66 over 13m)  longhorn-volume-controller  Engine of volume vol-1 dead unexpectedly, reattach the volume

To Reproduce

Create one v2 1Gib volume "vol-0" on longhorn

Create volume's PV & PVC from longhorn UI

Deploy pod “mypod1” via cli kubctl apply -f pod_mount_1vol.yaml

pod_mount_1vol.yaml
kind: Pod
apiVersion: v1
metadata:
  name: ubuntu-mountvol0
  namespace: default
spec:
  containers:
    - name: ubuntu
      image: ubuntu
      command: ["/bin/sleep", "3650d"]
      volumeMounts:
      - mountPath: "/data/"
        name: vol-0
  volumes:
    - name: vol-0
      persistentVolumeClaim:
        claimName: vol-0

Create one v1 1Gib volume vol-1 on longhorn

Attach vol-1 to one of the nodes

Expected behavior
vol-1 should be attached
Support bundle for troubleshooting
supportbundle_3a85620c-00d7-4b51-a262-9f58ac9a441c_2024-01-02T09-11-33Z.zip
Environment

Longhorn version: master-head
Installation method (e.g. Rancher Catalog App/Helm/Kubectl): Kubectl
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version: v1.27.8+k3s2

Number of management node in the cluster: 1
Number of worker node in the cluster: 3

Node config

OS type and version: ubuntu 22.04
Kernel version:
CPU per node:
Memory per node:
Disk type(e.g. SSD/NVMe/HDD): SSD
Network bandwidth between the nodes:

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal): AWS EC2 t2.xlarge
Number of Longhorn volumes in the cluster: 2
Impacted Longhorn resources:

Volume names: vol-1

Additional context

Have u enabled v2 and v1, even though v1 should be enabled by default.

Have u enabled v2 and v1, even though v1 should be enabled by default.

Yes, I have enabled both V1 and V2 at the same time. After detaching the V2 volume, the V1 volume attaches successfully.  If I attach the V1 volume first and then attach the V2 volume, I don't observe the issue.

Weird... works well in my env.

@roger-ryao Can you provide me the environment?

Found weird log message in v1 data engine
2024-01-02T09:04:29.939879668Z [longhorn-instance-manager] time="2024-01-02T09:04:29Z" level=info msg="Wait for gRPC service of process vol-1-e-0 to start at localhost:10010" func="process.(*GRPCHealthChecker).WaitForRunning" file="healthchecker.go:36"
2024-01-02T09:04:30.047567445Z [vol-1-e-0] time="2024-01-02T09:04:30Z" level=error msg="Failed to startup frontend" func="controller.(*Controller).startFrontend" file="control.go:458" error="failed to get system block devices: failed function: ns.GetSystemBlockDevices.func2: open /sys/class/block/nvme0c0n1/dev: no such file or directory"
2024-01-02T09:04:30.047593849Z time="2024-01-02T09:04:30Z" level=error msg="failed to start up frontend: failed to get system block devices: failed function: ns.GetSystemBlockDevices.func2: open /sys/class/block/nvme0c0n1/dev: no such file or directory" func=cmd.startController file="controller.go:186"

cc @c3y1huang

Found weird log message in v1 data engine
2024-01-02T09:04:29.939879668Z [longhorn-instance-manager] time="2024-01-02T09:04:29Z" level=info msg="Wait for gRPC service of process vol-1-e-0 to start at localhost:10010" func="process.(*GRPCHealthChecker).WaitForRunning" file="healthchecker.go:36"
2024-01-02T09:04:30.047567445Z [vol-1-e-0] time="2024-01-02T09:04:30Z" level=error msg="Failed to startup frontend" func="controller.(*Controller).startFrontend" file="control.go:458" error="failed to get system block devices: failed function: ns.GetSystemBlockDevices.func2: open /sys/class/block/nvme0c0n1/dev: no such file or directory"
2024-01-02T09:04:30.047593849Z time="2024-01-02T09:04:30Z" level=error msg="failed to start up frontend: failed to get system block devices: failed function: ns.GetSystemBlockDevices.func2: open /sys/class/block/nvme0c0n1/dev: no such file or directory" func=cmd.startController file="controller.go:186"

code: https://github.com/longhorn/go-common-libs/commit/8f6f450107722ae183f2926ad58c17931115f56d
@c3y1huang Can you take a look the issue?
Some devices such as nvme0c0n1 created from SPDK and nvme-tcp does not have /sys/class/block/<disk>/dev. If the file doesn't exist, we should skip the device. (codes)
cc @innobead

@c3y1huang please check this first. Thanks.

Verified on master-head 20240104

longhorn master-head https://github.com/longhorn/longhorn/commit/dd71633920b515cd49b707103c6c21772a7e2c46
go-common-libs main https://github.com/longhorn/go-common-libs/commit/3993c59084471a20ccd863282a0af1757b7a9fbf
go-iscsi-helper master-head https://github.com/longhorn/go-iscsi-helper/commit/72aee873888a0f9a5278beac0c5c9774f50fd670
longhorn-engine master-head https://github.com/longhorn/longhorn-engine/commit/12e92e847462ace4bc919414f4001ede2848d165
longhorn-spdk-engine main https://github.com/longhorn/longhorn-spdk-engine/commit/6a7bd563c7f20c625a77b14af344e437dbc90cdc
longhorn-instance-manager master-head https://github.com/longhorn/longhorn-instance-manager/commit/ab68378cb16ee5741c367f5529909f6e2b40e635
longhorn-share-manager master-head https://github.com/longhorn/longhorn-share-manager/commit/cbfb909576b2883734ffb82b2e8490679e097034
longhorn-manager master-head https://github.com/longhorn/longhorn-manager/commit/970ba447c112ee5300f7cfc61b07b42c29fabaa5

The test steps
https://github.com/longhorn/longhorn/issues/7511#issue-2062180141
Result Passed


Add mongoose alias prop

add @prop({ alias })
add tests for alias
add tsdoc & example for alias
add readme doc for alias

closes #166
fixes #263

Coverage increased (+0.8%) to 85.941% when pulling c4e6eef501e09b600cbbb4a93d10b7f70c606ca7 on hasezoey:feature/fix263 into ea1c0ec6bbebdd6b27ba4580ec39c1d3535b2084 on szokodiakos:master.

Coverage increased (+0.8%) to 85.941% when pulling c4e6eef501e09b600cbbb4a93d10b7f70c606ca7 on hasezoey:feature/fix263 into ea1c0ec6bbebdd6b27ba4580ec39c1d3535b2084 on szokodiakos:master.


[Feature]: Manually bind the project name to match the agent

Preflight Checklist

[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Problem Description
1.When there are many application services and it is not easy to bind the project name when starting the agent one by one.
2.When manually binding the agent, there may be many agents, or the agent names are the same, and the relationship between the agent and the project name cannot be directly distinguished .
3.However, the engine management office can obtain the value of the service address. Generally, project deployment will have a list of service addresses, and different services correspond to different service addresses.
Proposed Solution
4.In the manual binding place, you can now select the agent to bind, but as mentioned above, it is difficult for the agent to distinguish the correspondence between items. In the manual binding form or the corresponding item adding interface, add a field for the service address. This field You can select the service address of the online agent that is not bound, or manually add the service address in the project add interface, so that the corresponding relationship between the agent and the project name can be well matched and managed .
Alternatives Considered
No response
Additional Information
No response

Or add a configuration switch in the system configuration module to set the agent name definition, the option is to use the service address naming for the agent name

Or add a configuration switch in the system configuration module to set the agent name definition, the option is to use the service address naming for the agent name

Thanks for the suggestion, a discussion will be arranged to discuss whether this feature needs to be added. Please waiting for notification.


Add a script to setup ceph account for s3 tests.

Some more info at: https://gist.github.com/dannyzaken/c85f0006e5d6582c8d8666cafce6ab76
Signed-off-by: Amit Prinz Setter<EMAIL_ADDRESS>Explain the changes

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

[ ] Doc added/updated
[ ] Tests added

Do we want to add it as part of the main test run script ?

I think the script is not idempotent (eg the append to the end of the ceph conf file in line 91-2).
So at least in current version of the script, I'm going to go with no.

Do we want to add an invocation to this script part of the main test run script?

@nimrod-becker for now, it is used mainly for the tests investigation effort. We might want to use it later as part of the CI run


json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15)

Traceback (most recent call last):
File "/home/focus/.local/bin/ai", line 5, in
from ai_cli.cli import cli
File "/home/focus/.local/lib/python3.11/site-packages/ai_cli/cli.py", line 10, in
from ai_cli.bot import Bot, get_bot
File "/home/focus/.local/lib/python3.11/site-packages/ai_cli/bot/init.py", line 12, in
from ai_cli.setting import Setting
File "/home/focus/.local/lib/python3.11/site-packages/ai_cli/setting.py", line 108, in
setting = read_setting()
^^^^^^^^^^^^^^
File "/home/focus/.local/lib/python3.11/site-packages/ai_cli/setting.py", line 97, in read_setting
return Setting.from_dict(json.load(f))
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15)

 rm .config/ai_cli/setting.json
and retry

Hello. I found the reason for this error during debugging today. Please try deleting the configuration file with the command below and try again.
rm .config/ai_cli/setting.json


Set schema paths using importlib

Follow the guidelines for python packages to set package internal directories (see here) with importlib.resources.files.
Remove SCHEMA_URL as all schemas are now part of the simtools package (we have set include-package-data = true in pyproject.toml, which means that all non-python files in the simtools directory are included as package data).

@VictorBarbosaMartins - thanks for the review!


Publish uefi-services (and uefi-exts) on crates.io

I don't think it is currently possible to use the uefi-services crate from something outside of the workspace in this project. It would be nice to just be able to add uefi and uefi-services to a projects dependencies and then define an efi_main and start building. Because efi-services isn't published as its own crate, this doesn't work at the moment.
The rust book mentions of workspaces that "If you publish the crates in the workspace to crates.io, each crate in the workspace will need to be published separately". So I don't think there is any way round this besides publishing it as a separate crate.

I've moved uefi-exts into the core crate and published uefi-services as of cb4188cd7645f344ae8f3ce2d61a4373a7132032


Saving debug JSON files as artifact

Current dependencies on/for this PR:

main

PR #104   👈

This comment was auto-generated by Graphite.


chore: prep for 6.8.4

The type of this PR is: Chore

Collaboration with @olerichter00 and @jo-rs.

Prep work for our next iOS version (6.8.4). Thanks all for the very comprehensive docs!
The changelog modifications were based on this comparison - https://github.com/artsy/eigen/compare/ios-6.8.3-2<IP_ADDRESS>...master. If it looks like we put any changelog items in the wrong place (6.8.3 vs 6.8.4), let me know!
Description

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a CHANGELOG.yml entry or my changes do not require one.

I left two small comments, please feel free to merge once you address them ⛴

Also, feel free to rename this PR from chore: prep for 6.8.4 to celebration: prep for 6.8.4 ;)


Silverblue toolbox script broke because rootless 'podman create' insists on having a command specified

/kind bug
Description
Here is the toolbox script that we have been working on for Fedora Silverblue.
If you follow the README.md until the fedora-toolbox create step, then you'll see that the podman create ... command fails:
$ ./fedora-toolbox --verbose create
...
...
No command specified on command line or as CMD or ENTRYPOINT in this image
./fedora-toolbox: failed to create container fedora-toolbox-rishi:28

This started happening somewhere between podman-0.8.5 and podman-0.9.1.
Changing the script like this solves the problem:
From 79ac919f63f90b4cf2b425d2e3221d86c44ccb7c Mon Sep 17 00:00:00 2001
From: Debarshi Ray<EMAIL_ADDRESS>Date: Wed, 12 Sep 2018 14:57:38 +0200
Subject: [PATCH] Make it work with newer podman

'podman create ...' now requires a command.
---
 fedora-toolbox | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fedora-toolbox b/fedora-toolbox
index a918ed484cdc..5861c615d70e 100755
--- a/fedora-toolbox
+++ b/fedora-toolbox
@@ -97,7 +97,8 @@ create()
                  --tty \
                  --volume $HOME:$HOME \
                  --volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
-                 $toolbox_image >/dev/null 2>&42; then
+                 $toolbox_image \
+                 /bin/sh --l >/dev/null 2>&42; then
         echo "$0: failed to create container $toolbox_container"
         exit 1
     fi
--
2.17.1

Is this a podman regression? Or is this a bug in the toolbox script that was somehow getting papered over in previous podman versions, and should be fixed in the script?
Output of podman version:
Version:       0.9.1
Go Version:    go1.10.4
OS/Arch:       linux/amd64

Output of podman info:
host:
  Conmon:
    package: podman-0.9.1-3.gitaba58d1.fc28.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0-dev, commit: 1d75f1d54e9e123a97e7f505e38df7ab7192cfa7-dirty'
  MemFree:<PHONE_NUMBER>0
  MemTotal:<PHONE_NUMBER>0
  OCIRuntime:
    package: runc-1.0.0-51.dev.gitfdd8055.fc28.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.0'
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 4
  hostname: bollard
  kernel: 4.17.19-200.fc28.x86_64
  os: linux
  uptime: 10m 51.89s
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: []
  GraphRoot: /var/home/rishi/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 3
  RunRoot: /run/user/1000/run

Additional environment details (AWS, VirtualBox, physical, etc.):
This is a physical laptop running Fedora 28 Silverblue 28.20180908.0

@giuseppe PTAL

I think I know what's going on here - create is presently wired to not create a user namespace, which I think means it can't use the c/storage store to fetch the image and determine the command/entrypoint

yes, we should avoid the command/entrypoint before podman is re-executed.  I think this patch could fix it:
diff --git a/cmd/podman/create.go b/cmd/podman/create.go
index bc010d04..5a1b7425 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -629,7 +629,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
                command = append(command, data.ContainerConfig.Cmd...)
        }

-       if len(command) == 0 {
+       if data != nil && len(command) == 0 {
                return nil, errors.Errorf("No command specified on command line or as CMD or ENTRYPOINT in this image")
        }

@@ -681,7 +681,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
        }

        var systemd bool
-       if c.BoolT("systemd") && ((filepath.Base(command[0]) == "init") || (filepath.Base(command[0]) == "systemd")) {
+       if command != nil && c.BoolT("systemd") && ((filepath.Base(command[0]) == "init") || (filepath.Base(command[0]) == "systemd")) {
                systemd = true
                if signalString == "" {
                        stopSignal, err = signal.ParseSignal("RTMIN+3")

@debarshiray do you have any chance to test it out?  I'll prepare a proper PR and test it better if can confirm it solves the issue for you

PR opened here: https://github.com/containers/libpod/pull/1472

Yes, #1472 works for me! Thanks.


Generic retry loop example does not have a way to exit where no retry is needed

Feedback from a user on the generic transaction retry loop logic:

@rmloveland, assigning this to you since you worked on it originally, but I'm unclear if transaction docs should rather shift under sql/app dev going forward? It's a grey area. cc @awoods187, @johnrk, @ericharmeling.

IDK re: where it should go, but I think this is a quick one (1-line change)
This comment is referring to pseudocode that does not include all of the necessary logic for an application; it only shows explicitly how to do the retries. The part where the user's app would exit in the normal situation where no retry is needed is in the block that looks like
try:
  # add logic here to run all your statements. <--- This is where the user code goes
  conn.exec('COMMIT')

The key is that the application developer adds their logic to exit where the comment goes.
Aaaaaand after writing all this I think I understand what the user is saying: the work item here is to add a fake exit statement after the COMMIT statement, which I can definitely go ahead and do! (1-line change) so it will become
conn.exec('commit')
exit # exit the while loop

or similar


UI customization

Any ideas how can we achieve a dynamic scanner view?

Use a Flutter view which gets the current preview image + meta information where detected barcodes are located to render the view directly in flutter. (idk about performance)
Pass layout options to the BarcodeScanner.scan() method.
Overlay the platform screen with a flutter screen which renders the overlay UI

This issue belongs to:

[ ] #265 The title in the app bar should be controlled by the strings option
[ ] #223 Allow to change reader width
[ ] #196 Configuring scan area
[ ] #188 UI customization
[ ] #179 Change design
[ ] #158 How to tweak the look of the scanner?
[ ] #152 Request - Camera outline ratio
[ ] #143 Scan QRCode Customer View?
[ ] #77 Scanning outside the "window" on iOS
[ ] #69 The transition is not smooth
[ ] #66 Scan line color
[ ] #43 Ability to highlight the barcode in live view and allow user to tap on desired barcode

Use a Flutter view which gets the current preview image + meta information where detected barcodes are located to render the view directly in flutter. (idk about performance) +1

From what I saw then, will it not be possible to change the design, even in future versions?

It's just a definition thing. We need to determine what should be customizable by devs and implement this feature.

The default Ui from the scanner doesn´t matches the Ui from my app, i really need to change it.
Try to make it custom!

thanks for this lib, its awesome
could you give me some reference about this..
about how to render flutter view inside the camera while scan the barcode

The best approach i've seen was the lib returning a Widget, so the dev could put anything on top of it (with Stack) without any need of implementation from the lib side.
As example, there is the qr_code_scanner
I'm new with Flutter and mobile development, so i may be saying something wrong, just tried to help.

Hi. Thanks for this awesome library.
Is it possible to remove the AppBar in Android when in scannerview?

Maybe native views are a good solution for customizing the UI? https://medium.com/flutter-community/flutter-platformview-how-to-create-flutter-widgets-from-native-views-366e378115b6

The barcode reads function is great, but without UI customization is very hard to adopt it. UI is essential feature for Flutter users.

@devtronic From the article

Embedding Android views is an expensive operation and should be avoided when a Flutter equivalent is possible.

So, it is a choice between customization and performance.

@devtronic From the article

Embedding Android views is an expensive operation and should be avoided when a Flutter equivalent is possible.

So, it is a choice between customization and performance.

Yes, we've to evaluate what brings a better performance:

Using a Native View for the camera preview or
passing the raw image through a platform channel to render it directly in flutter

Another option is pass parameters for easy customizations like view size, colors, alignment etc.

Make it responsive when changing screen orientation  portrait / landscape

I want only to remove the app bar from the default view. Are they any available solution?

@saddem123 , you can edit the sources (iOS e Android). Remember that this component is a wrapper

@alexnaldo  what you mean by change the sources I just import the library in flutter how to edit it?

@saddem123 You can fork this library, make the changes you need and then point to your fork in the pubspec.yaml, e.g.
barcode_scan:
    git:
      url: [your_fork]

I want only to remove the app bar from the default view. Are they any available solution?

What's about the flash button? If there is no app bar you can't toggle the flash.

Pretty simple to change the color of the text in the App Bar in iOS
BarScannerViewControllerSwift
`private func updateToggleFlashButton() {
if !hasTorch {
return
}
let buttonText = isFlashOn ? config.strings["flash_off"] : config.strings["flash_on"]

let customRightBarButtonItem = UIBarButtonItem(title: buttonText,
                                                    style: .plain,
                                                    target: self,
                                                    action: #selector(onToggleFlash)
)
customRightBarButtonItem.tintColor = UIColor.orange
navigationItem.rightBarButtonItem = customRightBarButtonItem

}`color
ScannerOverlay.swift
Corner line color orange
`override init(frame: CGRect) {
super.init(frame: frame)
line.backgroundColor = UIColor.orange
line.translatesAutoresizingMaskIntoConstraints = false
    addSubview(line)
}`

Scanner line color orange
At the end of the draw function inside ScannerOverlay.swift file
path.lineWidth = 2         UIColor.orange.setStroke()         path.stroke()
Can someone show me where the code is for the Android-related color options?  I can't find it.

Pretty simple to change the color of the text in the App Bar in iOS
BarScannerViewControllerSwift
Color of text Flash On / Flash Off
private func updateToggleFlashButton() {
    if !hasTorch {
      return
    }

    let buttonText = isFlashOn ? config.strings["flash_off"] : config.strings["flash_on"]

    let customRightBarButtonItem = UIBarButtonItem(title: buttonText,
                                                        style: .plain,
                                                        target: self,
                                                        action: #selector(onToggleFlash)
    )
    customRightBarButtonItem.tintColor = UIColor.orange
    navigationItem.rightBarButtonItem = customRightBarButtonItem

  }

ScannerOverlay.swift
Corner line color orange
override init(frame: CGRect) {
        super.init(frame: frame)
        line.backgroundColor = UIColor.orange
        line.translatesAutoresizingMaskIntoConstraints = false

        addSubview(line)
    }

Scanner line color orange
At the end of the draw function inside ScannerOverlay.swift file
path.lineWidth = 2
UIColor.orange.setStroke()
path.stroke()

Can someone show me where the code is for the Android-related color options? I can't find it.

I have the similar problem.I want to add a straight line to make it point to the center when scanning.
This requirement stems from the fact that when scanninng, the center point needs to be aligned in order to scan quickly and effectively.
Finally, Thanks to the person who provided this source for solving my many problems.

@saddem123 You can fork this library, make the changes you need and then point to your fork in the pubspec.yaml, e.g.
barcode_scan:
    git:
      url: [your_fork]

non related question : how to do the same functionality if i want to replace a flutter core widget with a custom one made by me

Any updates on this? Would like to adopt this but is basically unusable without being able to embed the scanner view into our own widget.

Hello! We already have a solution to change hide the title?

Hello sorry for answering so late I'm not using this email in the last
period.
The problem was solved for a long time now 2 months.
thank you and sorry again.
On Sun, Aug 9, 2020 at 6:50 PM Sandro-darli<EMAIL_ADDRESS>wrote:

Hello! We already have a solution to change hide the title?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mintware-de/flutter_barcode_reader/issues/187#issuecomment-671075039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOZ7RTRYFC247QPJYUDRNLR73HVTANCNFSM4KZUQZGA
.

I read the entire thread, still not sure how to customize scanner ui. Using Flutter,  No knowledge of Kotlin. Any step by step guide would be very helpful :)

@devtronic just marking the issue closed and bringing everyone on same thread won't help. How about some solution?

How about some solution?! This is an open source project so feel free to contribute!

How about some solution?! This is an open source project so feel free to contribute!

If I had kotlin or barcode scanning knowledge I would have created my own package :)

@saddem123 Solution to your issue, (for Android)
add these lines in android/app/src/main/AndroidManifest.xml after  tag
<activity
          android:name="de.mintware.barcode_scan.BarcodeScannerActivity"
          android:theme="@android:style/Theme.Black.NoTitleBar" />

This will remove title bar (app bar) in the scanning screen.

Would be a great help even we can modify the the outline colors to match out app design theme. Of course overlaying will give us more customisation.

@saddem123 Solution to your issue, (for Android)
add these lines in android/app/src/main/AndroidManifest.xml after </activity> tag
<activity
          android:name="de.mintware.barcode_scan.BarcodeScannerActivity"
          android:theme="@android:style/Theme.Black.NoTitleBar" />

This will remove title bar (app bar) in the scanning screen.
To just change the title use below:
<activity
     android:name="de.mintware.barcode_scan.BarcodeScannerActivity"
     android:label="My Activity Title" />

(Replace "My Activity Title" with your desired title)

Dear, i do not want to remove scan screen appbar, just want to change background color of app bar, please suggest how can we do? Thanks.


ios 9 build error

Returns signal SIGABRT termination.
2015-09-18 15:34:20.698 App[27540:1244610] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'customDirectEventTypes must return an array, but RCTYouTubeManager returned __NSDictionaryI'

+1 ;)

+1. Also happening on iphone 5c (ios 8.4) and El Capitan.

This was fixed but not pushed to npm. Just did that now: v0.3.0.


Updates to dependencies / serial port updates

Updated the dependencies as much as possible without breaking continuous integration scripts
allow the use of the newer versions of usbd-serial and usb-device
and fix this issue https://github.com/stm32-rs/stm32f7xx-hal/issues/213
Updated the examples for the usb serial port
Updated the examples for the latest cortex-m-semihosting

All that should be left now is

embedded-hal 0.2.7 -> 1.0.0
examples that use embedded-graphics 0.6.2 -> 0.8.1

For the record, I have published this in version 0.8.0


[Bug]: Get-CSCallQueue -Name returns multiple entries in case of partial match

What happened?

A bug happened!
Import all Call Queues Power Automate has an error because the

"Get-CSCallQueue -name" command in the Export-CallQueues function give back more than 1 result if the CQ names similar like "Helpdesk", "IT Helpdesk"

I fixed it in my version on the following way:
in the foreach ($CQName in $CallQueues) loop
Added:
$cqs=@()
and added all others command to one more foreach loop :
foreach ($cq in $cqs) { }

What is the version of the App?
V0.1
What were the steps you followed?

Start the Power Automate : Import all call queues

Area in which the issue occurred
Call Queues
Relevant log output
No response

Thanks reporting this issue @tkele we are working on updating the whole import scripts because we found a limitation if you have a lot of call queues are in an environment. Due to the timeout of flows the task will fail.
We will include this fix in the script

@tkele so based on your report I think you might also be able to resolve it like this:
Get-CsCallQueue -Name $CQName.Name | Where-Object {$_.Name -eq $CQName.Name}
This will avoid adding additional loops.

@tkele so based on your report I think you might also be able to resolve it like this:
Get-CsCallQueue -Name $CQName.Name | Where-Object {$_.Name -eq $CQName.Name}
This will avoid adding additional loops.

Thank you . I will change to this . I have a more complex issue with the AutoAttendant export and data structure. In case of AA the Call route can 12 different values  ( Tone0 - Tone 9 , TonePound, ToneStar) and in the SPO list and the export script don't manage it .  Do you plan to develope this part of the AA ?
Thanks
Tamás

Hi @tkele,
No not yet and it is not on the short term road map. However feel free to add it as a feature request in this section: https://github.com/OfficeDev/TACO/discussions/categories/feature-requests
Regards,
Johan


Moved the mesh folder to avoid the having to type pixi.extras.mesh.Mesh, plus tried getter-setters

:+1:

nice one Alvin! :+1:

Why did we change some deprecated things to be non-writable properties and leave the other ones as-is?

Yo! Its not to make them private. The purpose is so that anything that extends a DisplayObjectContainer would break. The below code now works ( but still outputs the deprecation message )
var myThing = function()
{
    PIXI.DisplayObjectContainer.call(this);
}

myThing.prototype = Object.create( PIXI.DisplayObjectContainer );

@GoodBoyDigital Huh? That doesn't make sense, defining it as a property or adding it as a property shouldn't be any different in this case (also object.create should use the prototype). I find it hard to believe that this change fixes anything.

Good catch @englercj . @alvinsight are you cool to tweak? We need to remove the 'new' keywords from the getters. Cheers dude!


Error when updating SensorConfig

"parameter, reachable, is not modifiable"
"parameter, battery, is not modifiable"

Sensor selectedSensor = selectedSwitch.DataContext as Sensor;
HueResults x = await Client.ChangeSensorConfigAsync(selectedSensor.Id, selectedSensor.Config);
Seems that the reachable and battery should be ignored.

In the documentation battery is marked WO, Optional for Put Commands. Indicating they can be provided. But seems logical you can't update the battery status yourself.
https://developers.meethue.com/documentation/supported-sensors
If you make battery and reachable null, they won't be send to the bridge. I'll make an update so they will be automatically removed.

https://github.com/Q42/Q42.HueApi/commit/59ced274d8b82e11ee788c2db1a58532c7701f7a

Fixed in release 3.2.7, now on NuGet


Hot reloading doesn't work in a fresh stable install

Describe the bug
Hot reloading doesn't work in container components.
The version of react-static is ^5.9.12.
To Reproduce

Create a new project using react-static create command with a basic template.
Start the dev server with yarn start
Change some text in a container component such as About.js - the changes are not reflected in the browser

Desktop (please complete the following information):

OS:  macOS High Sierra 10.13.6
Browser: chrome nightly

This has been fixed in https://github.com/nozzle/react-static/pull/748 but I don't think it has been included in the latest release yet. (fix was 4 days ago, release 6 days)
Adding plugins": ["react-hot-loader/babel"] to your babel.rc should fix your issue.
p.s. @tannerlinsley maybe do a new release with this included?

Indeed, it fixed the issue! I really appreciate your help :)
I think it'd be nice to have it "out of the box" 😅

@dontmakemethink next release should have it :)

Closing this issue as the bug has been fixed for you + permanent fix is on it's way.


O# crashes with global MONO version 5.4.1

Environment data
dotnet --info output: N/A
VS Code version:
C# Extension version: 1.15.0
Steps to reproduce
On OS X, install Mono 5.4.1
Open a C# project
Look at O# log
Expected  behavior
Expected: no native exception from Mono
Actual behavior
46 pages of stack trace from mono [I can share full log]
Workaround
Upgrading my machine to mono 5.10 seems to have fixed the issue

@rchande @akshita31 FYI


with oysterbooks closing down, will this project be maintained?

See subject ^, thanks!

Looking into it right now. Will get you an answer ASAP.

@thecaddy I will be maintaining this project for the foreseeable future.

A logistical update—on Dec 19 I'll be transferring ownership to my account.


idea: Drop Python 3.7 support in 0.45.0

For now, the Python 3.7 support is EOL in 2023-06-27, FYI https://devguide.python.org/versions/

Is it possible to drop the 3.7 binary in 0.45.0?

Python 3.7 support doesn't need extra effort from opendal side. I think it's fine to keep it until we find it failed to build or have other issues.

Cc @messense, if we decide to drop Python 3.7 support, what actions do we need to take? Changing this line will be enough?
https://github.com/apache/opendal/blob/3c4e2f1c42b88323ed13c4eb56b95e75b98b75a9/bindings/python/pyproject.toml#L32

Dropped.


Python3 support?

Wonder if this is builted for python2 or 3 or both.
Regards.

Not compatible with python3, yet


[iOS] Strange lastModified received from RNFB.fs.stat

@wkh237 Hello, I'm receiving a strange timestamp for lastModified when using RNFB.fs.stat on a saved file on iOS. Here's the output of the response:
{
    type: 'file',
    filename: '.picture.jpg',
    size: '86766',
    path: '/var/mobile/Containers/Data/Application/EFB8FD2B-B6E1-4DE6-8EB9-959993D455D6/Documents/AppName/.picture.jpg',
    lastModified: 407828584
}

Any idea what's going on? Thanks for help!

Strange as in because its numerical? Or strange because its not working?
It returns a epoch (unix timestamp), but I assume you already know that.
That is an odd date, I can confirm that I'm also receiving odd timestamps. Even with this fix: https://github.com/wkh237/react-native-fetch-blob/commit/5c20ca66a3381ad0e660344f33e86fe2bb33d637

I mean strange because the returned TS doesn't match the datetime I created the file.
Unless I created it on 1982-12-04 06:43:04 but it's not the case. XD

I thought that was what you meant, but just had to be sure ;D
I can get a timeInterval with the following (which returns the correct timestamp), but I think my JS is a bit squiffy and converting it wrongly.
NSDate * lastModified = [info fileModificationDate];
NSTimeInterval ti = [lastModified timeIntervalSince1970];

@Slooowpoke I just tried your fix and it is working now. I can't say why the *1000 in native code breaks the TS because I'm not familiar with Objective-C. Do you plan to make a PR or waiting for an enlightenment on the native *1000 problem? Thank you for your help. 👍

Glad it helped! I think I'm going to wait it out for someone who knows more about it, otherwise if I pick up enough Objective-C on the way I'll make one.
I read some stuff on the way about double casting a long (long long) but none of that seemed to yield results, I need to know more Objective-C syntax as well. >.<


SSCBench-KITTI-360 Velodyne

Thanks for sharing this interesting work!
I would like to know where the velodyne data for your KITTI 360 was downloaded from, the data I downloaded from this link doesn't seem right, https://www.cvlibs.net/datasets/kitti-360/download.php .

Thanks for sharing this interesting work! I would like to know where the velodyne data for your KITTI 360 was downloaded from, the data I downloaded from this link doesn't seem right, https://www.cvlibs.net/datasets/kitti-360/download.php .
Yeah, it is downloaded from this link. But I merge the data with the raw camera images manully. Simply copying the data and organizing them as the guidance would be ok.

Thank you for your response. We downloaded the data from the provided link, but we found that the images in the sequence "2013_05_28_drive_0002_sync" do not align with the Velodyne sequence. Could you please provide detailed information on how you prepared this dataset? Your answer would be very helpful for our work. Thank you.

Thank you for your response. We downloaded the data from the provided link, but we found that the images in the sequence "2013_05_28_drive_0002_sync" do not align with the Velodyne sequence. Could you please provide detailed information on how you prepared this dataset? Your answer would be very helpful for our work. Thank you.

I just download the data and move the files. Could you please provide a screenshot for your problem?

Thank you for your response. We downloaded the data from the provided link, but we found that the images in the sequence "2013_05_28_drive_0002_sync" do not align with the Velodyne sequence. Could you please provide detailed information on how you prepared this dataset? Your answer would be very helpful for our work. Thank you.

My data shares the same length. There seems no problem.

This is the length of the original data.

The starting numbers of the two sequences are different, and their lengths vary as well. How can I select a portion of the Velodyne data to ensure that its count aligns with the image data?

This is the length of the original data.

The starting numbers of the two sequences are different, and their lengths vary as well. How can I select a portion of the Velodyne data to ensure that its count aligns with the image data?

Hi, did you download data from the SSCBench? Here is the link for SSCBench-KITTI-360. The data may contain lidar data. As I didn't perform any operation on the source data and I forgot the detailed process. Sorry for causing your misunderstanding.
Also, I found that the serial number of the  lidar are different. The following image is mine. Maybe downloading the data using the above link from the SSCBench-KITTI-360 can solve this problem.

Thanks，You are right, the problem is solved.


nix-darwin support

Is your feature request related to a problem? Please describe.
Not really. Would like to have nix-darwin support as well.
Describe the solution you'd like
Understand that this is currently targeted towards NixOS, but would be great to have support for nix-darwin builds as well.
Additional context
Unfortunately, I am just getting started with flakes (and generally nix), but think the philosophy of having a repository to get up and running on nix could apply across NixOS and macOS.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I'm not inherently against it. Just wondering if this project is overly complex for usage as a simple packaging flake, as most of it is geared toward NixOS modules and profiles.
What did you have in mind?

Not sure I have anything intelligent to add. I found this this repo as I was exploring a migration to nix flakes. Thank you for the fantastic resource to get started with a nixos based configuration. Unfortunately, having done a fair bit of digging, I had a difficult time finding the same "best practices" for darwin as well.
For what it's worth, the way my current configs are structured is similar to the nixflk template, except os-specific modules and profiles are in os-specific dirs, e.g. /modules/os-specific/darwin and /modules/os-specific/nixos. Granted the darwin folder is relatively light compared to nixos.

@wangkev, just thought I'd let you know, I'm about to merge multiarch support which includes darwin support for now. This will allow you to pull the devShell and any packages that work on your system. Cheers!

Re-opening as more work is to be done.

This should be pretty similar to setting up nixosConfigurations. I believe the output is just darwinConfigurations. I think it would make sense for the host file to also include information about its own system: architecture, and nixos vs nix-darwin. This could be done by adding custom options like flake.system or flake.useNixDarwin. So you can set sane defaults. And since the options aren't referred to anywhere else in the configuration system, they won't mess with the final configuration. This would also fix mullti-arch support for nixosConfigurations.

I just following guide at my MacBook Air, I got this error, but I enabled flakes support. Error detail:

@c4dr01d, I haven't do any work on nix-darwin support just yet, so this isn't exactly a surprise. Though, I successfully setup a kvm based OSX installation yesterday, so I'm gonna see if I can make some progress on that front in the coming days.

Are home-manager configurations already supported? I see the claim This is great for keeping your environment consistent across Unix systems, including OSX in the users section, but I guess this is also not working for now.

@jokogr jokogr home-manager does work already, which is what that statement is currently referring too. There is a home-manager section in the docs to explain the relevant details. Since almost anything available in nixos is also available through home-manager, this can be mostly true, but it depend on how the user chooses to configure their programs: e.g. home-manager vs nixos modules.

This is somewhat enabled by the rebase on flake-utils-plus that currently takes place on api-next branch.
@Pacman99 are we actually able to already close this issue or some more testing is in order, beforehand?

This is now possible but you would have to use the direct systemFlake api and you wouldn't get any devos features. I think this would have to be implemented with a top-level darwin namespace in the api.

If we do plan on adding darwin support to hosts we might want to consider moving hosts and hostDefaults to the top-level of the api. Otherwise it can go darwin.hosts