ModuleNotFoundError: No module named 'cv2'   Warning It seems you're trying to use a module that doesn't come with our installer. Check this FAQ in our docs to learn how to do this.

Issue Report Checklist

[ ] Searched the issues page for similar reports
[ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
What steps reproduce the problem?

What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version:
Python version:
Qt version:
PyQt version:
Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

this error how to slove tell me

Closing as a duplicate of issue #20230.


Add helm plugin scaffolding new layout

Description of the change:
This PR adds the helm plugin scaffolding the files with the new layout and using the current sdk helm pkg implementation (image)

added e2e tests for helm new layout. See:/test/e2e-helm-new/e2e_suite.go and ./hack/tests/e2e-helm-new.sh
centralize the method ReplaceInFile in the test/internal/utils.go since it is useful for all tests
Impl e2e tests in shell for the new layout. See hack/tests/e2e-helm-new-shell.sh

Motivation
SDK is in a process to be integrated with KB which means that its project layouts will be aligned. More info : Integrating Kubebuilder and Operator SDK.
This PR adds the Helm Plugin which will provide the Helm project in the new layout by the command operator-sdk init --plugins=helm.operator-sdk.io/v1`. For a further understanding see the WIP: https://github.com/operator-framework/operator-sdk/pull/329 and the doc Extensible CLI and Scaffolding Plugins.
Follow-ups

(Blocked by this one) - Fix OLM/CSV gen commands for Helm/Ansible operators - Done in https://github.com/operator-framework/operator-sdk/pull/3341
(Blocked by this one) Update docs to use plugins instead of the operator-sdk new --type and add api commands - Done in: https://github.com/operator-framework/operator-sdk/pull/3326
(Blocked by this one) Remove operator-sdk new --type=-helm https://github.com/operator-framework/operator-sdk/pull/3343

Hi @estroz,
Thank you for your input. Following my comments inline.

I was under the impression that scaffold-related machinery would be kept in a separate repo to be used by the upcoming independent Go/CLI, Ansible, and Helm repos.

We decide in the latest meeting that for now, all will be in the SDK repo.

If we are adding kubebuilder scaffolds here, I'd prefer separate PRs for:

Adding cmdutil, machinery and filesystem packages.

See the first comment of this PR. Blocked by add kb internal in internal/kubebuilder #3305

Adding Helm plugin code and e2e tests.
Modifying Go plugin code.

However, we might be able to do more one split to just  Modifying Go plugin code.

@camilamacedo86 thanks for pointing out #3305. I would still prefer you split Helm and Go plugin changes into separate PR's.

Hi @estroz,

@camilamacedo86 thanks for pointing out #3305. I would still prefer you split Helm and Go plugin changes into separate PR's.

I revert the changes and keep just the centralization of sdk scaffold which I understand that address all your concerns.  Could you please give a look and let me know if you are ok with now?

I am closing because I am testing in my fork. I will re-open soon.

/reopen


HackerRank (Medium) Common Child Problem

Is your feature request related to a problem? Please describe.
https://www.hackerrank.com/challenges/common-child/problem
Describe the solution you'd like
In C++
Programming language

[ ] C
[X] C++
[ ] Java
[ ] Python

I'm participantnof LGM-SOC21. I can solve it through java . Please assign me this issue


Circle doesn't move around while blinking

It's supposed to move randomly across the window, without ever exceeding its edges. But it always shows up in the same spot.

Hi, I was wondering if I could be assigned this issue? Thank you for your time!

Hi, I was wondering if I could be assigned this issue? Thank you for your time!

Of course @David-J-Tinley. You're assigned. Let me know if you need extra information as this is a new project that's still in an idea-phase.

@luisgizirian sounds good, thank you! I will get started!

Happy to have you on board @David-J-Tinley. Thank you!

Hi @luisgizirian, I had a few questions about this project. I am currently using a Mac with the newer M2 chip (but I also have a Windows 11 computer as well) so I have not been working on the CUDA build for this project. I have just been working with the main.cpp and the other header and source files for it. I noticed there seems to be some unfinished code in these files. Would you like me to fill in the code? I am able to compile and build the project but nothing really happens during its runtime. I think its just from some missing class definitions and so on. I'd love to be a part of filling out this build. Let me know what you are thinking or I you think this is all because I'm using a newer Mac I'll be happy to transfer the work to my Windows computer and see how it goes? Either way, thank you and have a good day!

Thank you for your appreciations @David-J-Tinley, Please let me know what you think about this PR (https://github.com/movement-disorders/therappeye/pull/7) which intention is to set a better ground, taking the first step towards maturing from the original idea.
Also, check issue #4
[I'll tackle all your comments in an additional reply]

[here's the additional reply]
Given PR #7 (branch: introducing-presentation-hierarchy), compiling and running with visible results has improved. Please keep using the system that's more comfortable for your situation. We'd like that those who choose to involve, keep working on the platform they need.
Don't worry about CUDA, as it's a possible improvement to discuss down-the-line. I was playing with it as I could get my hands on a Jetson Orin Nano Dev Kit.
About the structure and missing class definitions, #7 gives a more complete initial path in that sense, having cleared unused filed and created a set of base classes to satisfy #4.
I think #7 will allow us a better starting point, having took care of: an elaborated idea, a base class hierarchy, seeing results when running after building in Linux (ARM) and Windows 11 (Intel x86_64). I'd really like to merge it into main and move from there,
The issue that originally gave birth to this, remains there ready to be tackled, so you may resume once past this.
Enjoy the rest of your day!

Thank you for the explanation @luisgizirian, I see that you have a new pull request waiting to be merged so once that happens I will update my fork of the repository with the changes you made and work with them from there.

@David-J-Tinley, if the situation doesn't change after refreshing with the latest bits, here's a hint on SFML (a prerequisite) and M chips (https://stackoverflow.com/questions/69720807/how-do-i-use-sfml-on-apple-m1-mac)

Thank you @luisgizirian!


fix: don't error if socket doesn't connect

If connect_to_server() excepts, sock never gets assigned a value, and in fact never gets defined, resulting in a exception that sock is referenced before assignment when trying to sock.close().

This patch avoids the nasty exception stack trace, but the useful error message from homeassistent.helpers.entity "Update for sensor... fails" is also gone.


Unable to search for Hotels

After looking at this further if a user comes from a pages that is secure HTTPS and goes to the hotels landing page search does not work and you get JS errors.  However if you navigate to the hotels landing page from a page that's not secure HTTP it works fine.

fixed in landing-pages, can be closed


Error - While Creating Plan  -convert_plan.py

Hi,
I  am getting the following error, when I try to create engine with command given.
Also attached is the error log.  Appreciate info/help.
(Using inception_v1.pb)
Command::
python scripts/convert_plan.py data/frozen_graphs/inception_v1.pb data/plans/inception_v1.plan input 224 224 InceptionV1/Logits/SpatialSqueeze 1 0 float
Error:
--------------- Timing InceptionV1/InceptionV1/Conv2d_1a_7x7/Conv2D + InceptionV1/InceptionV1/Conv2d_1a_7x7/Relu(14)
createConstants (243) - Cask Error in ../builder/caskConvolutionTraits.cpp: 0 (initDeviceReservedSpace)
createConstants (243) - Cask Error in ../builder/caskConvolutionTraits.cpp: 0 (initDeviceReservedSpace)
Error_log.txt

Hi Sachinhalla,
Does this issue persist if you restart the Jetson TX2?

Hi  jaybdub-nv,
Thank you for your reply.
Actually I am trying to work this out on my laptop with Maxwell based quadro GPU on it.
I have TX2 listed components installed.  Is that fine to work with and optimize/Infer this for gpu on my laptop. Pl let me know.

Hi,
In stage of Convert frozen graph to TensorRT engine:

When I run "python scripts/convert_plan.py data/frozen_graphs/inception_v1.pb data/plans/inception_v1.plan input 224 224 InceptionV1/Logits/SpatialSqueeze 1 0 float",
I got some error:
Traceback (most recent call last):
File "scripts/convert_plan_lcx.py", line 75, in
data_type
File "scripts/convert_plan_lcx.py", line 41, in frozenToPlan
subprocess.call([UFF_TO_PLAN_EXE_PATH] + args)
File "/usr/lib/python3.5/subprocess.py", line 557, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.5/subprocess.py", line 947, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
Please help, thank you.

Hi,
In stage of Convert frozen graph to TensorRT engine:
When I run "python scripts/convert_plan.py data/frozen_graphs/inception_v1.pb data/plans/inception_v1.plan input 224 224 InceptionV1/Logits/SpatialSqueeze 1 0 float",
I got some error:
Traceback (most recent call last):
File "scripts/convert_plan.py", line 75, in
data_type
File "scripts/convert_plan.py", line 41, in frozenToPlan
subprocess.call([UFF_TO_PLAN_EXE_PATH] + args)
File "/usr/lib/python3.5/subprocess.py", line 557, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.5/subprocess.py", line 947, in init
restore_signals, start_new_session)
File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
Please help, thank you.


Perf: optimize scalar multiplication for 2-chains

Description
Similar idea as #1061 applied to 2-chains. But mulitplexers are costly in native arithmetic so the lookup idea is limited to only varScalarMul with Lookup2.
Type of change

[x] New feature (non-breaking change which adds functionality)

How has this been tested?

Current tests are passing.
How has this been benchmarked?
e.g. BLS12-377 on BW6-761:

G1 varScalarMul goes from 3,851 scs to 3,587 scs.
PLONK verifier circuit goes from 372,598 scs to 367,119 scs.

Checklist:

[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I did not modify files generated from templates
[x] golangci-lint does not output errors locally
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@ivokub the PR is good to go on my end.


Sample is failing to start

Hello team,
i was trying to build an application using this cloudant boot template, but i can´t get it started.
I tried both way using an application written from scratch (following example structure) and building this sample, and i always get this error:
***************************
APPLICATION FAILED TO START
***************************

Description:

Field cloudant in com.ibm.cloud.cloudant.spring.sample.CloudantJavaSdkSpringSampleApplication required a bean of type 'com.ibm.cloud.cloudant.v1.Cloudant' that could not be found.

The injection point has the following annotations:
        - @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.ibm.cloud.cloudant.v1.Cloudant' in your configuration.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootRun'.
> Process 'command '/usr/lib/jvm/java-17-openjdk-<IP_ADDRESS>.7-2.fc39.x86_64/bin/java'' finished with non-zero exit value 1

This output is from just trying to run:
gradle bootRun

in the samples folder.
Probably i'm just doing something wrong, can you help me, thanks!

Sorry this is a side effect of being between versions.
If you get the 0.1.5 tagged version of the sample at https://github.com/IBM/cloudant-spring/tree/0.1.5/sample (it should work with Spring 2.7.18).
main migrated the sample deps to Spring boot 3.x but doesn't yet have a new cloudant-spring release to go with it - that 0.2.0 release will be coming shortly.

Thanks @ricellis, do you have an idea of when the new version is going to be released?

Hopefully next week.

Perfect, thanks a million, i think i can wait then! :)

Earlier than expected: https://github.com/IBM/cloudant-spring/releases/tag/0.2.0


FIX: Prevent repeated lookup of obj.dependencies by Injector

This unnecessary repeated call to Injector slows down the construction
of frequently instantiated classes.
On admin/pages, this reduced execution from 1.67s to 1.56s, and it
reduced the impact of having an extension added to DBField by 33%
(from 100ms to 67ms)

Looks good to me!

Parent issue https://github.com/silverstripe/silverstripe-admin/issues/199

I've pushed up a linting fix. Will merge once it's green.


doc(book): point out how multiple log levels are done

Description
This extends the book documentation around -D LOG.
Reason we should do this explicitly is that we do comma-join LOG into DEFMT_LOG, so it's not immediately obvious to those who know defmt how this is done.

[x] I have followed the Coding Conventions.
[x] I have performed a self-review of my own code.
[x] I have made corresponding changes to the documentation.

I'd prefer the soon-to-be possible comma separated variant mentioned as default, as that matches how rust logs are usually defined.

Wow, this might be the reason why sccache didn't recognize changes to the DEFMT_LOG variable - laze just didn't pass them on ...

Updated the PR to reflect what works once the latest laze is around. I've even removed the two--D form -- no good reason to confuse users.
Once the single form works, this whole PR is really needed so much any more, though; it was a good idea because it did not work the way people would expect, but now that it will…

Once the single form works, this whole PR is really needed so much any more, though; it was a good idea because it did not work the way people would expect, but now that it will…

IMO docs improve with this anyways! And we found & fixed a nasty bug. :) Thanks a lot!

6759b90: error Disallowed type doc used, please use one of ["build", "chore", "ci", "docs", "fix", "feat", "perf", "refactor", "style", "test"]
linter wants the commitprefix to be docs (plural)

Thanks, should go green now.


modulesync 7.1.0

The acceptance tests aren't going to work in docker containers, since the test code is setting kernel boot parameters. We'll need to run these tests on full virtual machines.

In that case: should we merge none the less and permanently brick the CI (seems very bad)?
Or do we find a workaround for this?
I dont think we will get full virtual machines for all our testcases anytime soon. Maybe we can rig something up in our modulesync config where we can explicitly disable the test cases we pull from the metadata?

@zilchms there is some support recently for running acceptance tests using vagrant-libvirt virtual machines: https://github.com/voxpupuli/gha-puppet/pull/49


missing _CoreScanner_i.c file

Downloaded v<IP_ADDRESS>. Tried to compile the SampleApp_CPP.prj with the source code, encountered missing _CoreScanner_i.c file.
What did I do wrongly?
How do I resolve it

I experienced same thing and I posted same post in zebra developer portal.
But I finally solved it, making nonofficial file.
I explored "_CoreScanner.h" file, and I found out that the problem is some variables declared as EXTERN_C.
These 4 variables are declared as EXTERN_C.

IID_ICoreScanner
LIBID_CoreScanner
DIID__ICoreScannerEvents
CLSID_CCoreScanner

These variables need to have proper initial value.(GUID of class or library)
I found out classes' GUID from "_CoreScanner.h" and library ID from c# project
So this Nonofficial _CoreScanner_i.c code works!
========_CoreScanner_i.c=========(Nonofficial)
#include "rpc.h"
#include "rpcndr.h"
const IID IID_ICoreScanner = { 0x2105896C, 0x2B38, 0x4031, {0xBD,0x0B,0x7A,0x9C,0x4A,0x39,0xFB,0x93} };
const IID LIBID_CoreScanner = { 0xDB07B9FC, 0x18B0, 0x4B55, {0x9A,0x44,0x31,0xD2,0xC2,0xF8,0x78,0x75} };
const IID DIID__ICoreScannerEvents = { 0x981E3D8B, 0xC756, 0x4195, {0xA7,0x02,0xF1,0x98,0x96,0x50,0x31,0xC6} };
const CLSID CLSID_CCoreScanner = { 0x9F8D4F16, 0x0F61, 0x4A38, {0x98,0xB3,0x1F,0x6F,0x80,0xF1,0x1C,0x87} };
I compiled with this source and it works!

Relevant _CoreScanner_i.c file added into the source. Please pull it from the commit ID a53b92563d7ef7998c17bb7cdb027748a8b604b1


Traceability graph is no longer shown

I have downloaded the App (2.2.1 RC, Win64), all of a sudden, the traceability graph does no longer show anything, when I right-click on "traceability" and select "view traceability graph". It works fine with Version 2.1.10 RC.
In the <install_dir>, I have the "neo4j-community-3.1.1" folder, I use Windows 7 (64bit)
By the way: changing the port of the traceability daemon in the settings seems to have no effect. After saving the settings, closing the app and restarting, the default port 8083 is set again.
[update: I have tried the same with the 32-bit version of the app, same problem]

Hi Christian,
What do you mean " no longer show anything" ?
I can see the browser, but the graph is empty (see attached)

Hi Luis,
I cannot even see this browser view, the panel is just empty. I have been in contact with @joshoell about this issue, and it turns out that Neo4J does not start on my machine with this RC. I can start in manually though (using the commands described in the wiki). The Neo4J DB seems to start for Jos from the App 2.2.1. RC though. (by the way, my system settings tell me that I have Java version 8 update 101 (Build 1.8.0_101-b13) installed).

I know Jos did some tweaks to that, but I think it was only for Linux. In any case, can you try the latest build at http://overture.au.dk/into-cps/into-cps-app/master/Build-278_2017-03-13_14-30/ ?

@cfjkoenig , is this occurring with the new release?

@ldcouto : yes, I still have the same problem, @joshoell is currently working on ways to find the error; it seems that Neo4J is not starting correctly. I'll let you know once we found something.

Fixed by commit 7bd486934e39b156b33108d1a95344891a694ea3


feat: default scale down flag

Ref https://github.com/actions-runner-controller/actions-runner-controller/issues/899
Actually need to test it locally as well as add docs

Added 315d07b to fix test failures due to the HRA reconciler's default scale down delay in test changed from 10 minutes to zero.


fix: default value miss in route & upstream resource

add default value for PathHandling in route and HTTPSVerifyCertificate in upstream.
to fix https://github.com/Kong/kubernetes-ingress-controller/issues/1212

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


Marked as malware by Chrome Webstore

Now is unavailable is Chrome Webstore. What happened?

Chrome removed my extension due to I didn't fix the permission violation in 14 days. (Sorry, I'm busy these days)
However, don't worry, I have republished a new version without the tabs permissions, and it will be available again soon.

I'll close this issue since the new version already available again.


Mac OS Clone

Project title
Mac OS Clone
Project Description
Hey I am GSSoc Contributor , want to add a MAC OS Clone using HTML, CSS .
Stack:

[X] Html
[X] CSS

/assign


Command line support could be very useful

Command line support could be very useful in the following scenarios:
Exporting and importing metadata from and to multiple files. This might be useful for backing up metadata, or moving files in bulk where a direct NTFS to NTFS copy is not available.
Supporting scenarios where a file editor does not preserve metadata on update, e.g. AutoCAD. Command line support could enable metadata to be saved and restored automatically before and after an edit operation.
Making File Metadata server friendly.  In general, all software functions installed on a server should be accessible from the command line for administrative purposes.
This work item was migrated from CodePlex
CodePlex work item ID: '9130'
Assigned to: 'Dijji'
Vote count: '1'

[UnknownUser@19/11/2013]
Resolved with changeset 80188.


ImportError: DLL load failed while importing glm: The specified module could not be found.

i got this error Traceback (most recent call last):
File "main.py", line 16, in
import shader
File "C:\Users\Desktop\minecraft-python\shader.py", line 4, in
import glm
ImportError: DLL load failed while importing glm: The specified module could not be found.

(program exited with code: 1)
Press any key to continue . . .
Ps: i have installed pyglm.

try to reinstall an older version the pluglm or whatever it's called it seems like the shader.py doesn't recognize that version

how did you install pyglm?

I am going to close this as this was opened a long time ago.


[Bug]: Desktop version execution plan details check box optimization

ODC version
ODC4.2.3
OB version
independent
What happened?
Desktop version execution plan details check box optimization

What did you expect to happen?
Maybe this box can be moved a little to the left
How can we reproduce it (as minimally and precisely as possible)?

Anything else we need to know?
No response
Cloud
No response

pass


Support complete snippet syntax as defined by Code

[ ] final tabstop
[ ] nested placeholders
[ ] choices
[ ] variables

– snippet syntax (based on TextMate definition)

/await #12


No output in debug console with physical device

The debug console in VS code does not display output using a physical device with Flutter 1.10.5 in combination with macOS Catalina beta 5 en Xcode 11.0.
The only information provided is:
Running "flutter pub get" in client...                              0,7s
Launching lib/main_staging.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: XXXXXXXXXXX
Xcode build done.                                           43,5s
Checking for advertised Dart observatories...
Checking for available port on com.example.example._dartobservatory._tcp.local
Checking for authentication code for com.example.example._dartobservatory._tcp.local
Since I do have output when using the simulator I was wondering what might be wrong.

Dart Code extension: 3.4.1
Flutter extension: 3.4.1 (not activated)
VS Code: 1.38.1
Dart SDK: Ver: 2.6.0-edge.cb80ea7ba9124fd42a34c1d021232113e20d21b1
Flutter SDK: Ver: 1.10.5

Flutter doctor:
[✓] Flutter (Channel dev, v1.10.5, on Mac OS X 10.15 19A558d, locale nl-NL)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)

@christopherfujino Are we tracking this somewhere?

@Taco55 can you provide the verbose doctor output, via flutter doctor -v. If your device has iOS13, then this is a duplicate of https://github.com/flutter/flutter/issues/41133

Yes, it is the same issue. Since it is already tracked I will close this issue.


refactor busboy constructor - add esm

@kibertoad
I know you assigned esm support, but i took the opportunity to also refactor the whole busboy constructor functionality and write corresponding unit tests.
It makes it also possible to set autoDestroy to true or false, if somebody wants to do that.
test coverage for main.js increases to 100%

Checklist

[x] run npm run test and npm run benchmark
[x] tests and/or benchmarks are included
[x] documentation is changed or added
[x] commit message and code follows the Developer's Certification of Origin
and the Code of conduct

@kibertoad
Maybe if this helps for the approval:
This PR is actually non-backwards-breaking :). You can put the unit tests to master and you will see all the errors thrown are having the same reasons.
123 passing (254ms)
  5 failing

  1) busboy-constructor
       should throw an Error if no options are provided:

      AssertionError: expected [Function] to throw error including 'Busboy expected an options-Object.' but got 'Cannot read property \'highWaterMark\' of undefined'
      + expected - actual

      -Cannot read property 'highWaterMark' of undefined
      +Busboy expected an options-Object.

      at Context.<anonymous> (test/main.spec.js:6:40)
      at processImmediate (internal/timers.js:464:21)

  2) busboy-constructor
       should throw an Error if options does not contain headers:

      AssertionError: expected [Function] to throw error including 'Busboy expected an options-Object with headers-attribute.' but got 'Missing Content-Type'
      + expected - actual

      -Missing Content-Type
      +Busboy expected an options-Object with headers-attribute.

      at Context.<anonymous> (test/main.spec.js:9:42)
      at processImmediate (internal/timers.js:464:21)

  3) busboy-constructor
       should throw an Error if content-type is not set:

      AssertionError: expected [Function] to throw error including 'Missing Content-Type-header.' but got 'Missing Content-Type'
      + expected - actual

      -Missing Content-Type
      +Missing Content-Type-header.

      at Context.<anonymous> (test/main.spec.js:16:55)
      at processImmediate (internal/timers.js:464:21)

  4) busboy-constructor
       should throw an Error if content-type is unsupported:

      AssertionError: expected [Function] to throw error including 'Unsupported Content-Type.' but got 'Unsupported content type: unsupported'
      + expected - actual

      -Unsupported content type: unsupported
      +Unsupported Content-Type.

      at Context.<anonymous> (test/main.spec.js:19:86)
      at processImmediate (internal/timers.js:464:21)

  5) busboy-constructor
       if busboy is called with stream options and autoDestroy:true, autoDestroy should be set to true:

      AssertionError: expected false to equal true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/main.spec.js:36:61)
      at processImmediate (internal/timers.js:464:21)

yeah, it looks good, just need a bit of focus to review it throughly. also want to apply the infamous triplet pattern for cross cjs/esm support.

@kibertoad
Do you mean this?
if (typeof define === 'function' && define.amd) {
  define('Busboy', function () {
    return Busboy;
  });
} else if (typeof module !== 'undefined' && module.exports) {
  module.exports = Busboy;
  module.exports.default = Busboy
  module.exports.Busboy = Busboy;
} else {
  global.Busboy = Busboy;
}

we've been doing just the second branch without condition in the past. global doesn't seem applicable to node-only lib, do you find first branch useful?

I just copied and modified it from another project.

AMD seems frontend-focused too. So I'd suggest keeping just the second branch without any checks.

@kibertoad
add infamous ejs, cjs triplet :)

We also need to update TS types and add import tests.
See https://github.com/pinojs/sonic-boom/blob/master/types/index.d.ts and https://github.com/pinojs/sonic-boom/blob/master/types/index.test-d.ts for how this can be done for the infamous triplet.

@kibertoad
Seems like it was already OK?

@Uzlopak I'm not so sure. Busboy in TS exports only a type, not a constructor. BusboyConstructor is exported as a default, but not as Busboy as well, so you can't do named import for a constructor.

@kibertoad
Ok now?


continuation local storage context lose in bookshelf promises

continuation-local-storage in nodejs is similar to thread local storage in java but is based on chains of Node-style callbacks instead of threads.
continuation-local-storage provides a namespace to set variables. When I try to access these variables inside 'then' function of any bookshelf promise,the Namespace loses the active context and I could not find these variables.
My first middleware for each request
var cls = require('continuation-local-storage');
app.use(function (req, res, next) {
    var namespace = cls.getNamespace('my session');
    bookshelf.transaction(function (tx) {
        namespace.run(function () {
            namespace.set('transaction', tx);
            next();
        });
    });
});

My next middleware
var namespace = require('continuation-local-storage').getNamespace('my session');
namespace.get('transaction')   // transaction defined
new EntityModel({id:1})
.fetch()
.then(function(){
     namespace.get('transaction') //transaction undefined
})

Can you give me any idea about the promise library used by bookshelf so that I can try to override it's 'then' function to bind namespace with 'then'?

No idea what you're talking about. Can you be more clear about what that continuation-loca-storage is?
Also, this seems like it's not related to Bookshelf at all. You are calling that namespace.get() thing with a string in the first case and with a variable in the second, which I assume is indeed undefined, since you probably meant to call it also with a string.

continuation-local-storage in nodejs is similar to thread local storage in java. I was looking for a way to set variables across the request-response cycle in nodejs.
Use Case: My aim is to avoid passing transaction instance to each of the update queries in bookshelf. For this I had overidden the bookshelf functions which update the database. I had set transaction instance in the beginning in my first middleware with the help of continuation-local-storage.
We need to first create a namespace with continuation-local-storage.Then set variables in this namespace to access across the req-res cycle.
My first middleware for each request
var cls = require('continuation-local-storage');
app.use(function (req, res, next) {
    var namespace = cls.getNamespace('my session');
    bookshelf.transaction(function (tx) {
        namespace.run(function () {
            namespace.set('transaction', tx);
            next();
        });
    });
});

My next middleware
var namespace = require('continuation-local-storage').getNamespace('my session');
namespace.get('transaction')   // transaction defined
new EntityModel({id:1})
.fetch()
.then(function(){
namespace.get('transaction') //transaction undefined
})

I'm trying to implement transactions and avoid passing the database context object down every single service level module that interacts with it. I thought CLS would be the best method, but I too am having trouble with the context persisting through the bookshelf.transaction method.

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again

I'm reviving this issue. I have the same problem with Bookshelf that seems to temper with continuation-local-storage, here is the code (I'm also using express):
Creating my local storage and binding it to every http request
let cls = require('continuation-local-storage');
cls.createNamespace('my-app');

const app = express()
app.use((req, res, next) => {
  let requestContext = require("continuation-local-storage").getNamespace("my-app");
  requestContext.bindEmitter(req);
  requestContext.bindEmitter(res);
  requestContext.run(() => {
    requestContext.set('requestId', uuidv4());
    next();
  });
});

Using the local storage in a function
const requestContext = require("continuation-local-storage").getNamespace("my-app");

function getSomethingInDB (data, next) {
  console.log('1- requestId is set to: ' + requestContext.get('requestId'))
  new data.Model({id: data.id})
    .fetch()
    .then(fetchedData => {
        console.log('2- requestId is set to: ' + requestContext.get('requestId'))
        next()
    })
}

Calling getSomethingInDB will output
// 1- requestId is set to: 7728ed56-0d4a-4b4f-9806-dd3a712c3b8a
// 2- requestId is set to: undefined

After a call with Bookshelf, context is definitely lost.
I tried with other libs that use node cls or node async_hooks, the behavior is a bit different but still falsy: context gets written, Bookshelf keeps it on the first request, but then it doesn't get refreshed correctly when new request come in. "2- requestId is set to: " will print the value of the previous request instead of the new one.
Any idea on what could go wrong here?

I'm pretty sure this is in no way related to Bookshelf, but is probably due to the fact that on the second call to requestContext.get('requestId') you're indeed in a different context because:

You're not returning the Promise created in getSomethingInDB()
There's no mention of how the getSomethingInDB() is being used


Discovery: Flat-network multiclusters

Explore how to interconnect our WCs and make pods reachable.
This would be an interesting feature for multicluster setups.
Refs: https://linkerd.io/2023/09/11/linkerd-214/#flat-network-multicluster

This might help https://docs.cilium.io/en/stable/network/clustermesh/intro/
but the requirement of a flat-network is still there

Just took a look at what they mean by flat network: It's basically what we just disabled by introducing Cilium. This would require enabling the ENI mode of Cilium for a cluster.

archiving this because we are not using linkerd anymore


maybe patched

it doesnt work for me anymore

Please explain.


TF2: tfp.distributions.Normal in tf.keras.Model issue

I just found that if I returned a distribution in call not a tensor and called self(tf.keras.Input()) in __init__, it would throw an exception 'Normal' object has no attribute 'shape'
class MyModel(tf.keras.Model):
    def __init__(self):
        super(MyModel, self).__init__()

        self.l = tf.keras.layers.Dense(2)
        self(tf.keras.Input(shape=(3,)))

    def call(self, inputs):
        x = self.l(inputs)

        policy = tfp.distributions.Normal(loc=x, scale=x)
        return policy

model = MyModel()

Tried given code forTF-1.15rc1 and 2.0rc2 i was able to replicate the error. Kindly find the gist of colab.Thanks!

@BlueFisher This is more related to tfb repository. Can you open the issue here. Thanks!

@BlueFisher This is more related to tfb repository. Can you open the issue here and then close this issue. Thanks!

Thanks for reminding


Query Installed Components and Toolchains

Describe the problem you are trying to solve

I have an Ansible role for installing a Rust development environment on arbitrary Linux machines. One of the features I want to support is to install a list of components and toolchains. In order to do this, I need some way of querying what is installed and what isn't, so I can only run the rustup component add and rustup toolchain install commands when the given component or toolchain does not exist.
Describe the solution you'd like

If it were possible to do rustup components list --installed and rustup toolchain list --installed, this would satisfy my requirements and generally make scripting around rustup easier.
Notes

Outside of Ansible, this would also be useful in shell scripting:
if ! rustup component list --installed | grep -qP '^rls-x86_64-unknown-linux-gnu' ; then
    rustup component install rls-x86_64-unknown-linux-gnu
fi

More examples can also be thought of, but the use-case should be fairly clear.

I am emending this because rustup toolchain list only does show the installed toolchains. rustup component list shows all available components.


Add theme tips

This PR adds a tips section to the documentation; helping the user style Hyper like the main screenshot.

Thank you @beauallison


Coverage build no longer covers headers

@htuch I know you mentioned this but do you know when this regressed? cc @lizan. It would be great to get this fixed next week.

The breaking change is https://github.com/envoyproxy/envoy/pull/6866, i.e. the Bazel 0.26 update. Presumably this has to do with how headers are treated in bazel-out. You can see in earlier coverage runs paths such as coverage.bazel-out_k8-dbg_bin_include_envoy_access_log__virtual_includes_access_log_interface_envoy_access_log_access_log.h.html (https://circleci.com/gh/envoyproxy/envoy/227465#artifacts/containers/0). Will dig into this more today.

So, it looks like the headers are actually mapped where they were before:
envoybuild@db6158d4afec:/build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/execroot/envoy$ find -L . -name access_log.h
./include/envoy/access_log/access_log.h
./bazel-out/k8-dbg/bin/include/envoy/access_log/_virtual_includes/access_log_interface/envoy/access_log/access_log.h

It seems the exclusion that was added in https://github.com/envoyproxy/envoy/pull/6866/files#diff-9cdd51e93f8baceb29ebff17ff73e194 is the issue, as it excludes all headers. @lizan do you know why this change was necessary?


Update development docs

Proposed changes
Updated docs

Welcome @ArnoldCJ666! This change looks like an improvement, but it needs a proper commit message.
Check out the Zulip commit message guidelines for more details: https://zulip.readthedocs.io/en/latest/contributing/version-control.html#commit-messages

Fixed the commit message and integrated this, thanks @ArnoldCJ666!


Access to Marker Object(s)

I would like to know if there is a way (besides hacking the code) to get access to the marker object(s). What I'm looking for is to disable popup (or change its content), and to make the marker draggable.
Thanks.

Hi @mepa1363,
The first thing you can do (and is officially supported) is to set your default marker options during in plugin initalization:
var geocoder = L.control.geocoder('<your-api-key>', {
      markers: {
          draggable: true
      }
}).addTo(map);

Notice that I assigned the geocoder to a variable. This way I have access to it later, and read the markers property on the geocoder object:
console.log(geocoder.markers); // --> [ Array ]
geocoder.markers[0].setPopupContent('Hello world');

The array represents any markers that are currently visible, so if something in the plugin clears the markers on the map, then the references to that marker are cleaned up as well.
Referring to the markers in this way is not documented but I think it's useful if it were officially supported, so please give it a try and let me know what you think. If we can iron out any kinks in this implementation then I'll go ahead and release it as a documented feature in a future version.

Hi @louh,
Thanks for your help. Everything worked well except for the function that unbinds (disable) the popup. Is there any way to disable popups?
One more thing; I am using two geocoder controls in a single interface. Since the markers are draggable, I am sending the coordinates to the Mapzen reverse geocoder to get the address back. Now I want to change the text in the associated search box accordingly. Is there a built-in function to that?
Thanks.

Re: disabling popups. Hmm. It might be hard because the plugin binds and shows the popup immediately so there's not a way to hook into that and modify the behavior (without hacks). I did write a proposal for a popup option that would allow you to control its behavior, here: https://github.com/mapzen/leaflet-geocoder/issues/72. Let me know if that would work the way you'd expect.
Re: changing text in the search box after a reverse geocode - it sounds like you've implemented your own reverse geocoding functionality that occurs on marker dragging. You can set the input in the text box like this:
geocoder._input.value = 'Your text';

(Assuming you have geocoder variable assigned to one instance of the control)
_input is an internal variable and it's not documented, but it is not likely to change.

Hi @louh,
Thanks so much for you help. It works like a charm.


Working Example?

Hi,
I finally got the plugin installed into my docker installation of gotity.
I configured (MQTT-Server and credentials) for the plugin via REST-API and enabled the plugin.
[
	{
		"id": 1,
		"name": "MQTT",
		"token": "xxxxx",
		"modulePath": "github.com/tystuyfzand/gotify-mqtt",
		"author": "Tyler Stuyfzand",
		"website": "https://meow.tf",
		"enabled": true,
		"capabilities": [
			"configurer",
			"messenger"
		]
	}
]

servers:
- address: <IP_ADDRESS>:1883
  username: "gotify"
  password: "xxxxx"
  subscribe:
  - 'gotify/mqtt'

Now I tried to publish something to the topic "gotify/mqtt". But how exactly looks the publish topic and the body like?

You just need to send JSON over MQTT, which internally deserializes:
{
  "title":"Testing123",
  "message":"Some message",
  "priority":123,
  "extras":{ "some":"value" }
}

Hm, strange.
Nothing happens if I publish this json to the topic gotify/mqtt. Even a raw test string gives no result in gotify.
How can I see if the plugin is correctly installed?
Since I run the container on my Intel-NUC server, I just placed the amd64.so file inside the plugins folder
Linux gotify 5.15.35-1-pve #1 SMP PVE 5.15.35-3 (Wed, 11 May 2022 07:57:51 +0200) x86_64 GNU/Linux

and configured the plugin via REST-API of gotify.
When I connect to the MQTT-Broker via MQTT-Explorer (using the configured credentials), I can see a connection in the log:
1663397983: New connection from <IP_ADDRESS>:59313 on port 1883.
1663397983: New client connected from <IP_ADDRESS>:59313 as mqtt-explorer-03f033f4 (p2, c1, k60, u'gotify').

When I start gotify (installed as docker container) I got this message in the log:
Starting Gotify version 2.1.7@2022-09-11-07:29:06
Started Listening for plain HTTP connection on :80

No errors or other messages. Only later on my REST queries:
[GIN] 2022/09/17 - 08:58:52 | 200 |      323.26µs |   <IP_ADDRESS> | GET      "/plugin"
[GIN] 2022/09/17 - 08:59:04 | 404 |      31.128µs |   <IP_ADDRESS> | GET      "/plugin/1"
[GIN] 2022/09/17 - 08:59:09 | 200 |     260.766µs |   <IP_ADDRESS> | GET      "/plugin/1/config"

Strange - I went saved the plugin settings from the gotify website again and now I got the successful connection.
Don't know why i had to do this from the gotify website instead via REST-API. But now it works :)
Thanks!


ADS-B Exchange connection frequency

Hi, I'm not sure where to ask that question, but I'm sure here are the experts.
Why is the ADS-B Exchange service way more "chatty" than the other services? Is there a way to limit the connection frequency?
Of course, data has to be transferred back to the service, but I see ADS-B like every 5 seconds in my connection and DNS logs, while I see connections to for example Plane Finder(pfclient-upload.planefinder.net) only every 30 seconds.
Is that just my perception, or is my configuration not correct, or is it just the way it is with ADS-B Exchange?
Thank you so much for all the great work!

I guess it could be tweaked to send data with at a different frequency.
But I don't know which config need to be updated on ADS-B Exchange service.
Furthermore, we don't have any way of changing it for this docker image right now, but if we found the proper one we could.
Let's explore ADS-B Exchange config.

Super cool, thank you very much!

Can confirm that adsbexchange has the highest rate of dns requests. Planefinder does talk a lot too, but not as much as adsbexchange.
Would appreciate both of them were at the same dns request level of flightradar24.
Here is a screenshot from PiHole with those 3 providers beeing in my "Top Permitted Domains" list:

Some insights from ADSB-exchange devs in this thread.
https://www.reddit.com/r/ADSB/comments/cxz2cd/i_dont_trust_adsb_exchange_i_dont_think_you/

Explanation from Reddit is pretty good. I'll close the issue, I cannot do anything on my side anyway.

Agree! Funny that you close it today, yesterday I decided to disable ADS-B Exchange. I'll only share to other services now.
Planefinder also seems to have a pretty "unique" DNS lookup mechanism, since I have the same behavior as @xEtarusx. But they do only 1/4th of the DNS requests of ADSB-Exchange. ADSB-Exchange did around 36.000 on Friday, more like one every 3 seconds and not "makes DNS request at most twice every 30 seconds" as mentioned on Reddit. So I'm just annoyed by their software 😁
Thank you for looking into it!


MM-51662 Update help text for settings to enable SVGs and Latex

Summary
We're adding a recommendation for enabling SVGs similar to the one that enabling Latex has. Also, the default values listed for these two settings are incorrect for new installs. The one for inline Latex is correct though since it only has an effect when regular Latex is turned on.
Ticket Link
https://mattermost.atlassian.net/browse/MM-51662
Related Pull Requests
https://github.com/mattermost/mattermost-server/pull/22956

@cwarnermm I updated those, fixed the missing asterisks from the end of "warning", and also changed the warning on the Latex settings to match the SVG one since that's what we did in the System Console


Updating documentation with protection time

Based on an issue described in the ICM below the recommended update was to state discovery can take up to 8 hours but the actual protection of the system can take additional time as it depends on the size of the VM.
Reference ICM#: 239725964
This is because the discovery typically runs every 8 hours.

Hello @jcbrooks92  , thanks for the question! Can you please share the MS Doc's link that you are referring to?

@HarshitaSingh-MSFT apologies for not providing it. Here's the link:
https://docs.microsoft.com/en-us/azure/backup/faq-backup-sql-server#why-can-t-i-see-an-added-database-for-an-autoprotected-instance-

@jcbrooks92 Thanks for bringing this to our notice. I have made necessary changes to the document. Once its approved , the changes will be live soon.
We will close the issue for now. If there are further questions , please revert and we will be glad to assist you.


perf: decrease atomic references

Summary
Since we don't have to worry about parallelism in a single-threaded runtime, AtomicReference and related are used in many places that they don't strictly need to be. This PR removes uses of AtomicReference in some hot code paths to avoid the extra function call.

After running some (micro-) benchmarks, it appears there isn't really a difference. Closing for now


need more docs and example

The example is confusing or insufficient. This repo has no wiki (unlike Middleclass). You have to inspect the source code and its specs to look up all available APIs.
Personally, if it was me from a year ago. It took me days. I submitted this issue on the same day as my junior require my assistance on this library.

Found a demo:

https://github.com/kikito/stateful-demo

A note: that demo is more than a decade year old. It runs on older versions, but it gasp the usage of this library.
Sorry for late response.


Add flow type support

TypeScript is winning popularity, but I we are a lot of people who still using flow.

I think one way that we could accomplish this is with optional .babelrc support, provided that adding the optional babel support doesn't increase our bundle too much or make us slower to boot.
If you are interested in working on that @gabrielperales, please let me know.

now， facebook use typescript ~~


Release 1.2.0

Codecov Report

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

@@          Coverage Diff          @@
##           master    #31   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines          47     47
  Branches       11     11
=====================================
  Hits           47     47

Continue to review full report at Codecov.

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


Fixing typo in the various markdown files

Typo in the various document files.
Fixes #12090
Files where typos are found

email.md
export-and-import.md
install.md
main-secure-upgrade.md

I merged this as e16d721921cf8518f5f5c337fea44e108b53070a, after removing about half the hunks which were either bad English or undesired style changes (e.g. we use sentence case in all of our headings).  Thanks for finding these @mohitm15!

@timabbott thanks


[spdlog] Some issues

Xmake Version
v2.7.6+HEAD.f00d2ed0a
Operating System Version and Architecture
Windows 11
Describe Bug
The spdlog package has some issues.

The option header_only is set to true by default despite cmake always having it as OFF in the main target. I'm unsure if this can be changed at this point without affecting existing consumers.

Setting the option header_only to false doesn't actually work because of a define typo: SPDLOG_COMPILE_LIB should be SPDLOG_COMPILED_LIB. This can be fixed easily.

The option fmt_external adds fmt as a dependency but sets it to header_only despite the cmake having a separate option FMT_EXTERNAL_HO for this. Unsure if this can be changed without affecting existing consumers.

With some feedback I can prepare a pr to fix these issues if possible.
Expected Behavior
Without these fixes there is no way to prevent Windows.h from infecting consumers.
Project Configuration
No response
Additional Information and Error Logs
No response

you can open a pr.

The option fmt_external adds fmt as a dependency but sets it to header_only despite the cmake having a separate option FMT_EXTERNAL_HO for this. Unsure if this can be changed without affecting existing consumers.

any idea? @xq114

PR: https://github.com/xmake-io/xmake-repo/pull/1850


VPF Renewable Generation Dataset Integration

--WIP--
Description
This epic coordinates the integration of the Vibrant Pattern Energy Renewable Generation datasets. It contains estimated county-averaged hourly capacity factor for wind and solar generating facilities in the US from 2019 through 2023.
This data is similar to the gridpathtoolkit capacity factor data, but it's calculated using different methodology and is published at different granularities. Part of the project scope includes comparing the two data sources.
Review the methods used create this dataset.
This dataset is currently proprietary.
Data source moniker: vpfregen [should this be vce?]
Motivation
This project is funded by Vibrant Pattern Futures to ensure that the dataset be programmatically verified and made easily accessible to the public.
Scope
View our SOW document and hours estimations.
# Tasks
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3873
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3880
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3874
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3875
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3876
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3877
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3878
- [ ] https://github.com/catalyst-cooperative/pudl/issues/3879
- [ ] Publicize the `vpfregen` data (blog post, share on socials)

Uncertainty and Risk
Each of the issues contain a description of their own inherent risks, uncertainties, and expected results. Here are some of the high-level uncertainties we anticipate:
[Add]

In the licensing agreement Chris asked that the dataset be attributed to VCE, so I think it should probably be vceregen

Chis noted in his email a few days ago that his preferred moniker is vcerare standing for Resource Adequacy Renewable Energy, so I'm going to use this moving forward.

There are still some memory issues to work through with this dataset, but the tasks themselves are complete.


Does it support streaming process?

Hello
Bark model is really exciting but too slow.
Does it support streaming process?

In principle sure. But I don't know of any open source forks doing it yet (but I am fully up to date, there may be some.)

I am looking into this as well.  I want my computer to be headless and talk to me.  With claude.ai, I build a simple "chat" on the commandline that generates sequential .wav files and sends them to the audio device using python sounddevice.
Currently,  I'm looking at generation.py, to see if I can attach to the generated PCM stream to stream directly to an audio device or FFMPEG.
`import time
import sounddevice as sd
from bark import SAMPLE_RATE, generate_audio, preload_models
def main():
# download and load all models
preload_models(coarse_use_small=True, fine_use_small=True, text_use_small=True)
print("Audio generation program started. Press Ctrl+C to exit.")

try:
    while True:
        # prompt for text input
        text_prompt = input("Enter the text for audio generation (or press Ctrl+C to exit): ")

        # generate audio from text
        print("Generating audio...")
        audio_array = generate_audio(text_prompt, history_prompt="v2/en_speaker_1")

        # play audio directly
        print("Playing audio...")
        sd.play(audio_array, SAMPLE_RATE)
        sd.wait()  # Wait until the audio is finished playing

        print("Audio playback finished.")

        # small delay to prevent excessive CPU usage
        time.sleep(0.1)

except KeyboardInterrupt:
    print("\nProgram terminated by user. Goodbye!")
finally:
    sd.stop()  # Ensure any ongoing playback is stopped

if name == "main":
main()
`


FingerprintManager class is marked as deprecated in VisualStudio 2019

Android.Hardware.Fingerprints.FingerprintManager class  is marked as deprecated in VisualStudio 2019. What class should we use instead? Please give some comments about this issue.

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

ID: febd430b-faf9-e25d-1bc8-de82a8453423
Version Independent ID: 100f9740-a1f6-38de-57bb-e954c533dd92
Content: Getting Started with Fingerprint Authentication - Xamarin
Content Source: docs/android/platform/fingerprint-authentication/get-started.md
Product: xamarin
Technology: xamarin-android
GitHub Login: @davidortinau
Microsoft Alias: daortin

Thanks for submitting an issue and we apologize for the delayed response. The requested updates haven't been made since the creation of the issue, and the timeline for resolution may vary based on resourcing, so the issue is being moved to an internal repo to better track it.


Deploy Via Docker + HF = worker error

Hello,
I'm experiencing an issue with the docker deployment using a custom embedding model. I'm trying to use BAAI/bge-large-en-v1.5.
Below is my deployment and outputs.
Configure vars
mkdir env_scripts
cd env_scripts
touch env_scripts/env_vars.env
nano env_scripts/env_vars.env
cat env_scripts/env_vars.env
INTERNAL_API_KEY=qxzZOs0LPqjgkJiv3279rqqxHgzi9k5r
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=SuperSecret
POSTGRES_DB=vectorflow
POSTGRES_HOST=postgres
RABBITMQ_USERNAME=guest
RABBITMQ_PASSWORD=guest
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
EMBEDDING_QUEUE=embeddings
VDB_UPLOAD_QUEUE=vdb-upload
LOCAL_VECTOR_DB=qdrant
# Client Vars - Test
EMBEDDING_TYPE=HUGGING_FACE
VECTOR_DB_TYPE=QDRANT
TESTING_ENV=testing123

Deploy via docker
docker pull rabbitmq
docker pull postgres
docker pull qdrant/qdrant
docker-compose build --no-cache
docker-compose up -d
deploy HF model
cd src
docker build --file hugging_face/Dockerfile -t vectorflow_hf:latest .
docker run --network=vectorflow --name=vectorflow_hf -d --env-file=../env_scripts/env_vars.env vectorflow_hf:latest --model_name "BAAI/bge-large-en-v1.5"
All containers appear normal at this point
Testing
cat src/testing_client-custom.py
import os
import requests
import json
import dotenv
# Load environment variables from .env file
dotenv.load_dotenv(dotenv_path='../env_scripts/env_vars.env')

#####################
# Testing Variables #
#####################
filepath = './api/tests/fixtures/test_medium_text.txt'
url = "http://localhost:8000/embed"
internal_api_key = os.getenv("INTERNAL_API_KEY")
embedding_type = os.getenv("EMBEDDING_TYPE")
vector_db_type = os.getenv("VECTOR_DB_TYPE")
index_name = os.getenv("INDEX_NAME")
testing_environment = os.getenv("TESTING_ENV")

##################
# Testing script #
##################

headers = {
    "Authorization": internal_api_key,
}

data = {
    'EmbeddingsMetadata': json.dumps({
        "embeddings_type": embedding_type,
        "chunk_size": 384,
        "chunk_overlap": 128,
        "chunk_strategy": "PARAGRAPH",
        "hugging_face_model_name": "BAAI/bge-large-en-v1.5"
    }),
    'VectorDBMetadata': json.dumps({
        "vector_db_type": vector_db_type,
        "index_name": index_name,
        "environment": testing_environment
    })
}

files = {
    'SourceData': open(filepath, 'rb')
}

print("sending request")
response = requests.post(
    url,
    headers=headers,
    data=data,
    files=files
)

if response.status_code != 200:
    print(f"Error: {response.text}")
    print(f"Status code: {response.status_code}")
    exit(1)

response_json = response.json()
job_id = response_json['JobID']
print(f"Job ID: {job_id}")

# poll the server for the job status
url = f"http://localhost:8000/jobs/{job_id}/status"
job_status = None
while job_status != "COMPLETED" and job_status != "FAILED":
    headers = {
        "Authorization": internal_api_key,
    }

    response = requests.get(
        url,
        headers=headers
    )

    response_json = response.json()
    job_status = response_json['JobStatus']

print(f"Job status: {job_status}")

Docker logs from "vectorflow_worker" container
wait-for-it.sh: waiting 15 seconds for rabbitmq:5672
wait-for-it.sh: rabbitmq:5672 is available after 7 seconds
--- Logging error ---
Traceback (most recent call last):
  File "/app/worker/worker.py", line 231, in callback
    os.environ["VECTOR_DB_KEY"] = vector_db_key
  File "/usr/local/lib/python3.9/os.py", line 684, in __setitem__
    value = self.encodevalue(value)
  File "/usr/local/lib/python3.9/os.py", line 756, in encode
    raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not NoneType
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
  File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
  File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format
    record.message = record.getMessage()
  File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
  File "/app/worker/worker.py", line 283, in <module>
    start_connection()
  File "/app/worker/worker.py", line 276, in start_connection
    consume_channel.start_consuming()
  File "/usr/local/lib/python3.9/site-packages/pika/adapters/blocking_connection.py", line 1883, in start_consuming
    self._process_data_events(time_limit=None)
  File "/usr/local/lib/python3.9/site-packages/pika/adapters/blocking_connection.py", line 2044, in _process_data_events
    self.connection.process_data_events(time_limit=time_limit)
  File "/usr/local/lib/python3.9/site-packages/pika/adapters/blocking_connection.py", line 851, in process_data_events
    self._dispatch_channel_events()
  File "/usr/local/lib/python3.9/site-packages/pika/adapters/blocking_connection.py", line 567, in _dispatch_channel_events
    impl_channel._get_cookie()._dispatch_events()
  File "/usr/local/lib/python3.9/site-packages/pika/adapters/blocking_connection.py", line 1510, in _dispatch_events
    consumer_info.on_message_callback(self, evt.method,
  File "/app/worker/worker.py", line 238, in callback
    logging.error('Error processing batch:', e)
Message: 'Error processing batch:'
Arguments: (TypeError('str expected, not NoneType'),)

Could you please point me in the right direction for resolving this ?
Much appreciated!

Hey, it looks like the vector_db_key variable is not being set. This is a bug on our part that it should not need to be set if you are running the vector db locally.
trying passing in something like this:
headers = {
    "Authorization": os.getenv("INTERNAL_API_KEY"),
    "X-VectorDB-Key": "test-key,
}

and see if it fixes it

Based on that it looks like it inferenced successfully. BAAI/bge-large-en-v1.5 does require 1.34 GB of RAM so if you're machine does not have a lot it won't work but I don't think thats the issue here.
I'll investigate and get back to you

I'm investigating this now. One thing I notice that will become an issue for you after this error is resolved is in the vdb_upload_worker, your TESTING_ENV variable should be the same name as the vector DB environment or URL that you are using. In this case it should be qdrant. I will update this in the docs since its confusing

I just tested your configuration locally and I did not get the psycopg2.OperationalError. I suspect something happened where your connection was terminated, maybe with the container being idle. I will add in some connection retry functionality to fix this. In the interim, try restarting your rabbitmq and postgres containers.
Another heads up BTW, your code will fail in the vdb_upload_worker if you have not created a new collection inside qdrant after spinning it up because you are using a model with a 1024 dimensional vectors but the default qdrant instance is not configured with a collection for those dimensions. I will add this to the configuration script.
I was ultimately able to get the embedding and upload to succeed with your configuration.

I just merged this PR which adds additional logic to prevent the DB connection from closing quickly and will automatically try to establish a connection before DB calls. It will also retry if there is a connection error, and it does so in an idempotent way. Please let me know if this fixes the issue

@iguy0 are you still encountering this issue?


Fix Docs

Hi @timeartist
Were you able to submit the CLA?
Best,
Amit

Yes
On Jun 27, 2016 11:22, "Amit Gupta"<EMAIL_ADDRESS>wrote:

Hi @timeartist https://github.com/timeartist
Were you able to submit the CLA?
Best,
Amit
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry/cf-release/pull/989#issuecomment-228831035,
or mute the thread
https://github.com/notifications/unsubscribe/AD-OA-eyydKVrVNUJaBEvJzdjLPvcrq1ks5qQBTjgaJpZM4I7asg
.

@timeartist Ok, @cfdreddbot didn't work, I'll manually confirm.

@Amit-PivotalLabs confirmed that we have the CLA

Great, thanks! Story prioritized.
On Mon, Jun 27, 2016 at 11:32 AM, Chip Childers<EMAIL_ADDRESS>wrote:

@Amit-PivotalLabs https://github.com/Amit-PivotalLabs confirmed that we
have the CLA
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry/cf-release/pull/989#issuecomment-228834119,
or mute the thread
https://github.com/notifications/unsubscribe/AC9t3hHN4LCijiZcRbr2vh4LsTwxZP_lks5qQBdXgaJpZM4I7asg
.

Thanks for the fix to the readme, Adi! I bet folks tripped on that. Merged.


rename static resources

Renamed the following resources:

Letter to OSD (Finance Resources), Govt of Kerala - letter-to-osd-finance-resources-govt-of-kerala
Letter to Director, Govt of Chhattisgarh - letter-to-director-govt-of-chhattisgarh
Letter to Deputy Secretary (Budget), Govt of Tamil Nadu - letter-to-deputy-secretary-budget-govt-of-tamilnadu

@arunsud - please check and confirm if this works.

Hey @apoorv74 this works Thanks.


Context Source Forwarding

not yet finished

@fgalan @kzangeli @dcalvoalonso r? please
/cc @jason-fox

I haven't been able to have a look to the specification yet (sorry for that! I'll do...) but, before I forget about it, it'd like to comment something:
It would be a good idea to have a look to current Orion issues looking for those related with forwarding problems/limitations and check if the new specification would solve them. For instance (not exahustive list):

https://github.com/telefonicaid/fiware-orion/issues/847
https://github.com/telefonicaid/fiware-orion/issues/2282
idPattern support in registrations (not sure right now if this has an specific isssue associated...)

For each issue a comment explaing how Context Source Forwarding Specification solves it would be great, in order to check the "coverage" of all them.

Just adding to @fgalan 's list of forwarding issues, I've done a broad trawl of Notifications issues:

telefonicaid/fiware-orion#3164
telefonicaid/fiware-orion#3045
telefonicaid/fiware-orion#3107
telefonicaid/fiware-orion#3008
telefonicaid/fiware-orion#3106
telefonicaid/fiware-orion#3078  ??????
telefonicaid/fiware-orion#2986
telefonicaid/fiware-orion#2560
telefonicaid/fiware-orion#2282
telefonicaid/fiware-orion#1146
telefonicaid/fiware-orion#1145

I have cherry picked this and  moved the texts to an NGSI-v2 specific README.md - forwarding for NGSI-LD has not been brought forward to the ETSI CIM committee yet, so I have removed the references to LD for now.


Test Buttons

Test Button Functionality from TestRumble on -A- button press.
What I mean is:
See if, when we press the button, how the controller reacts. It should be an action on first tap kind of thing, should not repeat the action on hold!
This is also useful for Advanced AprilTag Driving with its auto Alignment on option button press to manage camera stream states accordingly.

Yup, it is only on the press of the button.
This is the Logic:
//get a boolean lastA = false //and a variable boolean currentA = gamepad1.a; if(currentA && !lastA )    gamepad1.rumbleBlips(x);     //where x is how many blips of rumbling the controller should do


[2.x] Clear Documentation Issues & UX Issues.

Please check these requirements

[X] This feature helps everyone using this package
[X] It's feasible and maintainable
[X] It's non breaking
[ ] I issued a PR with the implementation (optional)

Description
Hey,
This won't be an issue that's structured the way your forced issue templates are set. It's just a quick issue.
Documentation confused me for a good 5 minutes basically.
The repo is set as 2.x as the default branch. So I landed on that branch and this is what happened.

I installed the package as instructed via composer.
Ran the command two-factor:install.
No command in that namespace was found.

I checked the package files in the Vendor namespace, and there was no command so it wasn't an autoload issue.
I checked packagist and then saw that 2.x is not yet stable. (It also said release on the right of the repository I'm just blind).
Also, when I went to switch branches, you had master listed as a branch, so I clicked that. It's stale but, it could confuse others but I jumped to the 1.x branch.
Now, I seem to be implementing your package smoothly after reading the correct documentation 😄
I can submit a PR with a notice in the README where the installation instructions are informing the visitor to visit the other documentation as a fix? I think the correct solution is to use the 1.x branch as the default branch on this repository.
I assume you guys just aren't setting that as the default branch because some of Github's stuff and some tools always default to the default branch which makes things confusing if you guys are mainly spending time on version 2.x
Code sample
try {
} catch ($exception e) {
throw new Exception();
}

Aye I found this, it was just the initial 'Huh?'
All makes sense no problem have a nice week


Reactivity Checked item

Hi,
I used the context menu to add member of an issue when onClick but the checked value of this item is not updated.
{
  label: t('members'),
  children: members.map(member => ({
    label: member.name,
    checked: issue.value.members?.find(m => m.id === member.id) ? true : false,
    clickClose: false,
    onClick: () => {
      if (issue.value.members.find(m => m.id === member.id)) {
        issue.value.members = issue.value.members.filter(m => m.id !== member.id);
      } else {
        issue.value.members.push(member);
      }
    },
  })),
}

I clicked on it, the issue is updated because we can see the number 1 on issue behind but member item is not checked on menu

Hi, Please check Vue.js docs about reactivity.
The expression of checked that you write will only be evaluated once when MenuData is created, and it will be fixed to the value at the moment of creation and will not change.
You can wrapper your expression with computed, so it will re-evaluate when its reactive dependencies have changed.
checked: computed(() => issue.value.members?.find(m => m.id === member.id) ? true : false),


Help a noob to get this thing going #3: remote installation method (no sudo)

ianh@pi1:~/Software/radiopadre-devel/bin$ ./install-radiopadre
install-radiopadre: Found existing radiopadre virtualenv in /home/ianh/.radiopadre/venv
install-radiopadre: The installation appears to be incomplete. Burning it down and starting over.
install-radiopadre: Creating /home/ianh/.radiopadre
install-radiopadre: Creating radiopadre virtualenv in /home/ianh/.radiopadre/venv
New python executable in /home/ianh/.radiopadre/venv/bin/python
Installing Setuptools..............................................................................................................................................................................................................................done.
Installing Pip.....................................................................................................................................................................................................................................................................................................................................done.
install-radiopadre: Activating virtualenv
install-radiopadre: Installing dependencies. This may take a few minutes
Requirement already satisfied (use --upgrade to upgrade): APLpy in /home/ianh/.local/lib/python2.7/site-packages (from -r /home/ianh/Software/radiopadre-devel/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): astropy<2.0.11 in /home/ianh/.local/lib/python2.7/site-packages (from -r /home/ianh/Software/radiopadre-devel/requirements.txt (line 2))
Downloading/unpacking jupyter (from -r /home/ianh/Software/radiopadre-devel/requirements.txt (line 3))
  Downloading jupyter-1.0.0.tar.gz
  Running setup.py egg_info for package jupyter

Downloading/unpacking notebook<5.7.3 (from -r /home/ianh/Software/radiopadre-devel/requirements.txt (line 4))
  Downloading notebook-5.7.2.tar.gz (13.4MB): 13.4MB downloaded
  Running setup.py egg_info for package notebook

Downloading/unpacking matplotlib (from -r /home/ianh/Software/radiopadre-devel/requirements.txt (line 8))
  Downloading matplotlib-3.0.3.tar.gz (36.6MB): 36.6MB downloaded
  Running setup.py egg_info for package matplotlib

    Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.
    Beginning with Matplotlib 3.0, Python 3.5 and above is required.

    This may be due to an out of date pip.

    Make sure you have pip >= 9.0.1.

    Complete output from command python setup.py egg_info:

Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.

Beginning with Matplotlib 3.0, Python 3.5 and above is required.

This may be due to an out of date pip.

Make sure you have pip >= 9.0.1.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/ianh/.radiopadre/venv/build/matplotlib
Storing complete log in /home/ianh/.pip/pip.log
install-radiopadre: Dependencies failed to install, see log above

However!
ianh@pi1:~/Software/radiopadre-devel/bin$ pip --version
pip 19.0.3 from /home/ianh/.local/lib/python3.5/site-packages/pip (python 3.5)

@IanHeywood, I suggest downgrading matplotlib to an earlier version if you haven't tried it yet) because matplotlib> v2.2.4 only supports python3. Maybe this will fix the error.

Sorry, for some reasons I had notifications off for the public repository, so I missed the original complaint!
@Mulan-94's suggestion is correct. I've modified requirements.txt on the issue-39 (public) branch, it should install the correct matplotlib version automatically now. @IanHeywood please check?


Consider removing What Input from framework -- or update docs with warning about #a11y harm

In the name of web accessibility, I'd like to propose the removal of What Input as a dependency of Foundation. I understand that it is mainly in place to appease clients and picky designers in regards to focusable elements and their focus ring but it truly can hurt the built-in / free awesome power of focus state that web browsers offer us.
In almost every accessibility audit that I've done that fails WCAG 2.0 AA guidelines outline: none; is the number 1 culprit for failure. This fails the W3C's WCAG 2.0 AA 2.4.7 Focus Visible guideline.
I love how the team here puts accessibility at top of mind for components and it's a shame that in the documentation we are encouraging the removal of outlines which many users rely on to know where they are in the UI.
There is no guarantee that a keyboard user isn't a mouse user and the other way around. Many users jump around from input mechanism to input mechanism. This could be eye tracking software, speech recognition, a sip and puff device, a joystick, a single on/off button, a pointing stick, a braille embosser, a mouse, touchpad, touchscreen and more!
To assume the user is only a keyboard user and only they benefit from visual focus state in the UI isn't best practice and I feel we shouldn't be encouraging this approach.
I've addressed this concern with the author of What Input with this thread: Weird behavior when the mouse is moved outside the window and then in again #17 and check out this PR that was merged by the author which adjusts his readme documentation in a way that supported the removal of encouraging outline: none; for alternative focus states.
If this is the only use case for What Input is to remove outlines I propose removing it as a dependency and remove that section from the Accessibility page of Foundation's documentation. This could be turned into an informative / instructional section about the importance of focus state. (I'd be happy to write)
Mouse users (even though there is no such thing really) need outlines as well!
If there is no way that we can get this anti-pattern removed from the framework and documentation I recommend we put a large warning with that section on the  Accessibility page that this approach harms accessibility and does not conform to the WCAG 2.0 2.4.7 guideline.

This is a very well-thought-out proposal. I totally agree that we should—at the very least—add a warning to the Accessibility page about the negative effects outline:none.
But before we just rip What Input out of Foundation, we should consider the reasons why it was added: It's a common practice for designers to add :focus { outline: none; } to their every project. We knew if we did nothing, this line of harmful CSS would sneak its way into tons of apps. What Input was an attempt to thwart this practice.
Maybe instead of hardcoding outline:none, the What Input mixin could use a reasonable variable from _settings.scss? Something like…
// _settings.scss
$whatinput-mouse: 1px solid darken($primary-color, 15%);

// util/_mixins.scss
@mixin disable-mouse-outline {
  [data-whatinput='mouse'] & {
    outline: $whatinput-mouse;
  }
}

(Of course, disable-mouse-outline isn't semantic and should also be changed.)
Then, heeding our warnings, the setting could be easily changed to none. And with What Input in place, apps are better off than they'd be with the ham-fisted :focus { outline: none; }.
Thank you for bringing this up, @joe-watkins.

@andycochran Thanks for taking a look at this ;) I feel like this is a great solution.

@andycochran do you want to move this forward? I think we'll get more interaction & feedback if we make it an actual PR...


Checkpoints other than squeezeDet don't work for the demo

Hi,
I've done installation, and trying to do the demo as described in README. I downloaded model_checkpoints.tgz, untar it. Now, I'm running python ./src/demo.py. It works as expected with the default parameters. But if I try to specify any other checkpoints from model_checkpoints, it doesn't work. E.g. if I do this:
python ./src/demo.py --checkpoint=./data/model_checkpoints/squeezeDetPlus/model.ckpt-95000

I get the following error:
$ python ./src/demo.py --checkpoint=./data/model_checkpoints/squeezeDetPlus/model.ckpt-95000
2017-05-30 18:09:07.901895: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-05-30 18:09:07.901920: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-05-30 18:09:07.901926: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-05-30 18:09:07.901941: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-05-30 18:09:07.901946: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Traceback (most recent call last):
  File "./src/demo.py", line 217, in <module>
    tf.app.run()
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "./src/demo.py", line 212, in main
    image_demo()
  File "./src/demo.py", line 164, in image_demo
    saver.restore(sess, FLAGS.checkpoint)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1457, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run
    run_metadata_ptr)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 982, in _run
    feed_dict_string, options, run_metadata)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1032, in _do_run
    target_list, options, run_metadata)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1052, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [64] rhs shape= [96]
	 [[Node: save/Assign = Assign[T=DT_FLOAT, _class=["loc:@conv1/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](conv1/biases, save/RestoreV2)]]

Caused by op u'save/Assign', defined at:
  File "./src/demo.py", line 217, in <module>
    tf.app.run()
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "./src/demo.py", line 212, in main
    image_demo()
  File "./src/demo.py", line 161, in image_demo
    saver = tf.train.Saver(model.model_params)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1056, in __init__
    self.build()
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1086, in build
    restore_sequentially=self._restore_sequentially)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 691, in build
    restore_sequentially, reshape)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 419, in _AddRestoreOps
    assign_ops.append(saveable.restore(tensors, shapes))
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 155, in restore
    self.op.get_shape().is_fully_defined())
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 270, in assign
    validate_shape=validate_shape)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 47, in assign
    use_locking=use_locking, name=name)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
    op_def=op_def)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/dsavenko/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [64] rhs shape= [96]
	 [[Node: save/Assign = Assign[T=DT_FLOAT, _class=["loc:@conv1/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](conv1/biases, save/RestoreV2)]]

Is it expected?

Thanks for letting me know. Seems that it's broken by a recent update. I'll fix that later.

Please check-out the newest commit. Now demo.py can also load SqueezeDet+. But you need to use the flag --demo_net=squeezeDet+ and --checkpoint=./data/model_checkpoints/squeezeDetPlus/model.ckpt-95000 together so it can load the right model specification and parameters.

Works great, thank you! I did similar to what you've done for Resnet50 and VGG16 in this PR: #50 (they are also broken right now). Could you please validate and change the net classes if necessary (I've only modified demo.py)?

@BichenWuUCB Hi, I try to download the model_checkpoints from your github, but when I click the hyperlink, I can't visit the paper.  I would appreciate  if you can send me the model_checkpoints file. My<EMAIL_ADDRESS>


IRC is barren wasteland.

Where did everybody go?

 :P

I've just been waiting for activity on Ark to be more active

@felixangell, pls make a C frontend to my new LLVM clone
progress:

@MovingtoMars lol, looks good so far :+1: -- what happened to ssvm?

@felixangell it was shit. The new one has an API that's actually kinda usable! I'll work in it for a few days then upload.

@MovingtoMars hahaha, fair enough. Gimme a poke when you upload it :older_man:


Browsersync localhost:3000 doesnt work

Bug Report
Expected Behavior

Visiting localhost:3000 should load the BrowserSync-ed version of the website.
Actual Behavior

Visiting localhost:3000 gives you an ERR_CONNECTION_CLOSED.
Visiting the External Url works as expected.
Steps to Reproduce

Edit your wpgulp.config.js project url.
(Optional) set browserAutoOpen: true
type npm start
If you didn't set browserAutoOpen to true, then visit localhost:3000

node -v: 8.11.1
npm -v: 5.6.0
browser-sync: @2.24.7

Then, specify:

Operating system: Windows 10
Browser and version (if relevant): Chrome v68

Possible Solution

Edit gulpfile.babel.js in line 86 browserSync.init:
proxy: config.projectURL => host: config.projectURL
and add proxy: 'http://yoursite.test'

Is it still the same since the last two versions? I mean try now, WPGulp has been updated.

Yep, I'm having issues with this also (mac) I can view :3001 fine but nothing else

I am having the same issue, wpgulp works on my windows pc but does not work on my mac. Everything seems to compile fine but the browser just refreshes endlessly... I have cleared my dns cache and changed my host file. nothing seems to work

This issue still exists. It keeps refreshing endlessly, just like @RyanCadby

For anyone still facing this issue, it's because the projectURL wrong value.
How do you access your WordPress Project? Let's say it's inside xampp/htdocs/projects/new-wordpress-site/ and in order to access it using localhost, you type: localhost/projects/new-wordpress-site/.
Copy that path, and give it to projectURL so it can access your Project Files.
❌ projectURL: 'localhost:3000'
❌ projectURL: 'localhost:3001'
❌ projectURL: 'localhost'
❌ projectURL: '<IP_ADDRESS>'
✔ projectURL: 'http://localhost/projects/new-wordpress-site/'


[release-1.10] handle remove files in secret watcher

This is an automated cherry-pick of #33413

@googlebot I consent

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio_release-1.10
eccfc18f81515212f2e417f51e6740a9433128f0
link
/test unit-tests_istio_release-1.10

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.

/retest


[번역예정] Node.js Streams: Everything you need to know

https://medium.freecodecamp.com/node-js-streams-everything-you-need-to-know-c9141306be93

3개월만에 숙제 끝!


channel: Add option to notify users newly added to a channel.

When someone adds another user to a channel, we send the user that was added a Notification Bot message to let them know.
This PR adds an option for whether or not this message is sent. If the number of newly added users is more than 100,
we don't send notifications.

The checkbox unchecks and becomes disabled if the number of users to be added to the channel crosses the limit (100).
If the number of users then reduces, the checkbox becomes enabled again, but is left unchecked.

Fixes #31189

Screenshots and screen captures
Stream Edit Panel

Set the max limit to 2 users for testing, so 3 or more user pills disable the checkbox.

Stream Creation Panel

Set the limit to 2 users for testing.

The cursor changes to  when hovering over the checkbox while it is disabled.

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

@zulipbot add "buddy review"
@pratik-pc Please have a look

Screencast from 05-08-24 05:55:58 PM IST.webm
@kuv2707 When I add more than 2 members, I can't enable the notification checkbox

Actually I had set the limit to 2 for testing. Once it passes buddy review, I'll bump it up to 100

@kuv2707 Oh okay then it is working as intended. Though while creating new stream checkbox is not getting disabled even though works correctly when adding subscribers to existing streams.

@pratik-pc Things work fine on my side.
Can you elaborate on what exactly doesn't work correctly when creating a new stream?

Screencast from 09-08-24 02:56:45 AM IST.webm
@kuv2707 Alright I guess this only happens when you create stream when modal is already open.

Screencast from 13-08-24 10:30:05 PM IST.webm
Looks go to me now. Just a simple issue with the newly introduced button; inconsistent highlight and clickable area.

@pratik-pc Please have a look now.
The inconsistency was due to the elements from stream edit ui lingering even after the view changes to stream creation.
The solution was to remove the checkbox from there so that only one instance of it is there in the DOM.

@pratik-pc does this look good to you now?

Looks good to me now
@zulipbot remove "buddy review"

@zulipbot add "mentor review"
@Riken-Shah @madrix01 Please have a look

@alya It would be great if a maintainer took a look at this, since it seems that my mentors wouldn't be able to dedicate time anymore

Yes, thanks for flagging! @sahil839 perhaps you could review this one?


Can I use code to automatically create a process definition

Can I call the dolphinscheduler API with postman to query a process definition or to create a new process definition?
I have a lot of DAG to migrate from the airflow on dolphinscheduler .These DAG's have a lot in common, so you would like to use code to auto-create DAG's. Dolphinscheduler supports this
DolphinScheduler1.2.0

version 1.2.1 can support create DAG through open API
relate PR :  [#1497] DAG automatic layout when use api call process definition create
1.2.0 not support DAG automatic layout

I have now upgraded to version 1.2.1, and I haven't found the use method of "open API "after looking through the network documents. Can you give me an example?Or provide usage documentation

http://<IP_ADDRESS>:8888/dolphinscheduler/doc.html


Minor dedupe xla/pxla tracing code.

Hey, are you planning to add this support in sharded_jit also?

Hey, are you planning to add this support in sharded_jit also?

How would I do that? Should I put in a pull request onto Skye's branch? Do you want me to do that before this gets merged?

The sharded_jit is already in the interpreters directory. Let's ask @skye if she thinks there is value in adding this improvement there, or she will add it herself in the final version.

The sharded_jit is already in the interpreters directory. Let's ask @skye if she thinks there is value in adding this improvement there, or she will add it herself in the final version.

Ah. I didn't realise that was already in. I've added the change there too.


The toggleDevMode() does not work

When I toggle the dev mode I get an error in the console.

This issue is stale because it has been open 60 days with no activity. Add required comments or this will be closed in 15 days.


Update collision pipeline docs to make clear that CollisionWorld::add(...) doesn't return a CollisionObjectHandle

Hey, thanks a bunch for NCollide. I've used it via other crates for a while and am attempting to use it directly for the first time today.
The collision pipeline docs seem to indicate, both explicitly and implicitly in variable names, that CollisionWorld::add(...) returns a handle. I spent a while today wondering why I couldn't stash my handle and refer to it later, use it for updates, etc.
Looks like the return type has changed and the docs/examples in them haven't been updated. I eventually found the .handle() method, but not before spending some time wondering if I was missing a conversion somewhere, wondering if I should use something other than a handle, etc.
Thanks.

It's been over a year since this issue was opened and whilst attempting to read through the examples provided I too hit this issue.
To further add to the confusion, after following the advice of the deprecation notice on CollisionWorld::set_position I naturally changed my code to use the recommended CollisionObject::set_position which has left me scratching my head with the following error.
error[E0499]: cannot borrow `world` as mutable more than once at a time
  --> server\collisions\src\main.rs:92:5
   |
90 |     let (player_handle, player_object) = world.add(player_spawn, player, player_group, query_type, ());
   |                                          ----- first mutable borrow occurs here
91 |     log::info!("Added our player; {:?}", player_handle);
92 |     world.update();
   |     ^^^^^ second mutable borrow occurs here
93 |     player_object.set_position(player_pos);
   |     ------------- first borrow later used here

It's made for a rather confusing time attempting to put ncollide to use. Could anybody enlighten me as to how I'm supposed to do this properly? I do not feel that reading over the docs for the relevant types has helped me understand the intended usage. If I disregard the deprecation notice I'm at least able to move my object.


fix(content-item-horizontal-with-media): style updates

Related Ticket(s)
#5649
Description
Update styles to align component with grid
Changelog
New

left and right padding

Changed

storybook grid column positioning

Hey, @ariellalgilmore thank you for going over this. A few little things:

The "With media" story is only present for Web Components. Isn't there a React one, too?
The grid alignment is a little off for the text (look like it overhangs) and for the image (its off grid a little) and it should respect the max-width: 640px all the time, including on max

What it is now:

Whats expected:

For the small breakpoint we got text and image again:

Thanks and let me know if you got any questions!


MatchControl - mutliple timer issue

On each refresh/reopening of the matchcontrol page, an additional event is registered on the elapsed event. This results in multiple executions on each elapsed per client.

done


Messages as config

[x] This issue isn't duplicated - you can check if it is by using the search bar located at the top left hand corner and select "Issues" on the left.
[x] This issue includes appropriate markdown for sections - e.g. code blocks for crash dumps.
[x] This issue is understandable - feel free to use your native language to write issues if you are not comfortable with English.

Issue description
What problem do you have?
I always have to make a pr when I update myplot, because my custom messages.

Reproducing the issue

Update myplot
Done?

Client information
PocketMine-MP Version:
Plugin Version:
PHP version: 7.2.1 (default)
Has nothing to do with OS.

Optional information
Put a console error here, but please make sure you have your debug level set to 2 in your pocketmine.yml

also, duplicate of #210

Oh xD


Error on asset lib

im testing the asset lib and there are some errors?

it was only listing on godot 4.3 and not on 4.2 anymore.
the installation for 4.3 looks like don't run and keeps wo response.
I tried the build runtime, but with the demo project I cant run the project when its not inside the repository folder.
how can I encapsulate the runtime and addon folder to insert on other projects?

i'm not too familiar with how godot asset store handles asset libs across version, however you can still download the 4.2 version from the branch here: https://github.com/mrjsj/godot-duckdb/tree/assetlib-v0.4.0-godot-4.2.2

if you just install the asset lib, there's no code implementation, so you need to create a script similar to this: https://github.com/mrjsj/godot-duckdb?tab=readme-ov-file#how-to-use

i assume you're on a windows pc? i haven't had the chance to test on windows, so i'm not familiar with any issues related to it, however i have tested both the demo project, and installing from asset store in a fresh project and have no issues at all unfortunately.

im having a error "error(-1): no debug info in PE/COFF executable" when trying to execute the addon, this error for some reason looks like corrupt the project. I tried install the assetlib version, download the din and replace and run the code example on the release, none of then seens working. Ty I gonna see how I gonna follow


Add search and JQL functions to Jira bot

This PR adds functionality for searching issue summaries with search and full blown JQL search with jql.
It also supports the user defining their own HTTP scheme in the domain, this is useful for circumstances where Jira is served behind an authenticating proxy. This allows you to connect to a secondary listener that might not be HTTPS. An optional configuration parameter was also added display_url so the URL for the output links can also be controlled.
E.g. Users access Jira through a proxy at https://jira.mydomain.com. The actual Jira host listens on http://jira1.mydomain.com:8081. You can now configure this using
[jira]
username = test
password = test_password
domain = http://jira1.mydomain.com:8081
display_url = https://jira.mydomain.com

Thanks for the quick review, I was hesitant to spam the commit history. Will address those issues now.

Merged, after squashing that last documentation fixup commit, thanks @pemontto!


Zoomed images are blurry on mobile due to translate3d

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/swiper-zoom-forked-qce1m?file=/index.html
Bug description
When image is zoomed it gets transform: translate3d(0px, 0px, 0px) scale(X) style. Due to translate3d(0px, 0px, 0px) part the image is blurry, if translate3d is replaced with translate(0px, 0px) the issue is fixed.
transform: translate3d(0px, 0px, 0px) scale(3):

transform: translate(0px, 0px) scale(3):

Expected Behavior
Zoomed image should look sharp on mobile.
Actual Behavior
Zoomed image looks blurry on mobile.
Swiper version
6.7.5
Platform/Target and Browser Versions
iOS 14.6 Safari
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

Swiper will stick with translated3d for better performance. The fact image is blurry is more of a browser bug, rather than Swiper's