Doesn't start after install, can't get through to the GUI

When running "uvicorn "app-txt2img:app" --host <IP_ADDRESS> --port 7860 --reload" i get the below error
C:\Users\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model>uvicorn "app-txt2img:app" --host <IP_ADDRESS> --port 7860 --reload
←[32mINFO←[0m:     Will watch for changes in these directories: ['C:\Users\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model']
←[32mINFO←[0m:     Uvicorn running on ←[1mhttp://<IP_ADDRESS>:7860←[0m (Press CTRL+C to quit)
←[32mINFO←[0m:     Started reloader process [←[36m←[1m18300←[0m] using ←[36m←[1mWatchFiles←[0m
Process SpawnProcess-1:
Traceback (most recent call last):
File "C:\Python\lib\site-packages\tensorboard\compat_init_.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (C:\Python\lib\site-packages\tensorboard\compat_init_.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python\lib\multiprocessing\process.py", line 314, in _bootstrap
self.run()
File "C:\Python\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "C:\Python\lib\site-packages\uvicorn_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "C:\Python\lib\site-packages\uvicorn\server.py", line 59, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Python\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Python\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Python\lib\site-packages\uvicorn\server.py", line 66, in serve
config.load()
File "C:\Python\lib\site-packages\uvicorn\config.py", line 471, in load
self.loaded_app = import_from_string(self.app)
File "C:\Python\lib\site-packages\uvicorn\importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "C:\Python\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in find_and_load
File "", line 1006, in find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Oliver\Documents\Github\Real-Time-Latent-Consistency-Model\app-txt2img.py", line 16, in
from diffusers import DiffusionPipeline, AutoencoderTiny
File "C:\Python\lib\site-packages\diffusers_init.py", line 3, in
from .configuration_utils import ConfigMixin
File "C:\Python\lib\site-packages\diffusers\configuration_utils.py", line 34, in
from .utils import (
File "C:\Python\lib\site-packages\diffusers\utils_init.py", line 21, in
from .accelerate_utils import apply_forward_hook
File "C:\Python\lib\site-packages\diffusers\utils\accelerate_utils.py", line 24, in
import accelerate
File "C:\Python\lib\site-packages\accelerate_init.py", line 3, in
from .accelerator import Accelerator
File "C:\Python\lib\site-packages\accelerate\accelerator.py", line 39, in
from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
File "C:\Python\lib\site-packages\accelerate\tracking.py", line 42, in
from torch.utils import tensorboard
File "C:\Python\lib\site-packages\torch\utils\tensorboard_init.py", line 12, in
from .writer import FileWriter, SummaryWriter  # noqa: F401
File "C:\Python\lib\site-packages\torch\utils\tensorboard\writer.py", line 16, in
from .embedding import (
File "C:\Python\lib\site-packages\torch\utils\tensorboard_embedding.py", line 9, in
HAS_GFILE_JOIN = hasattr(tf.io.gfile, "join")
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 65, in getattr
return getattr(load_once(self), attr_name)
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 97, in wrapper
cache[arg] = f(arg)
File "C:\Python\lib\site-packages\tensorboard\lazy.py", line 50, in load_once
module = load_fn()
File "C:\Python\lib\site-packages\tensorboard\compat_init.py", line 45, in tf
import tensorflow
File "C:\Python\lib\site-packages\tensorflow_init.py", line 37, in
from tensorflow.python.tools import module_util as module_util
File "C:\Python\lib\site-packages\tensorflow\python_init.py", line 37, in
from tensorflow.python.eager import context
File "C:\Python\lib\site-packages\tensorflow\python\eager\context.py", line 29, in
from tensorflow.core.framework import function_pb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\function_pb2.py", line 16, in
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\attr_value_pb2.py", line 16, in
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\tensor_pb2.py", line 16, in
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\resource_handle_pb2.py", line 16, in
from tensorflow.core.framework import tensor_shape_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__shape__pb2
File "C:\Python\lib\site-packages\tensorflow\core\framework\tensor_shape_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "C:\Python\lib\site-packages\google\protobuf\descriptor.py", line 544, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Any help is appreciated, want to test out this gem with my webcam!
Windows 10 latest
AMD Threadripper
2x3090 Nvidia GPU
64GB RAM
Installed in My documents with full rights on an NVME-SSD

hi @oliverban , your machine looks awesome to run this, mostly likely an issue with python environment.
could you please try it again? I've just pushed a new codebase, but make sure to pull and reinstall python requirements


Fixed #26157 and #2532 -- Updated django.db.backends.schema logging and docs

#26157 and #25321
Passed sql and params to extra parameter of logger. Updated docs to tell the same.

Should have a .. versionchanged:: 1.10 annotation with a description of what changed and a mention in the release notes. Maybe a test is feasible?
I don't think this really addresses #25321. I was thinking of adding something like (but not duration

Closed in favor of #6289


Update post-install message

Signed-off-by: AliceProxy<EMAIL_ADDRESS>Updates the post-install message to direct users to the cloud to get a free license instead of the edge-policy-console which no longer exists.

looks like we need to update our go version for circle CI to pass


Add GroupRight slot to Modus Content Tree items

Prerequisites

[X] I have searched for duplicate or closed feature requests
[X] I have read the Modus style guidelines

Proposal
Currently, the modus content tree component offers only a single slot for the label of the content tree items.
This epic is to update the content tree to offer a slots - “groupRight” slot (similar to the slots for the modus table)

This would allow the label slot to be used when only a label is needed but support actions on content where needed.
Motivation and context
No response
What is the issue regarding ?
@trimble-oss/modus-web-components
Priority
Medium
What product/project are you using Modus Components for ?
e-builder
What is your team/division name ?
e-builder
Are you willing to contribute ?
Yes
Are you using Modus Web Components in production ?
No response

@cjwinsor To understand the requirement and the need

@Roliver-Javier @yohernandez Before I dive into this review I have a few questions:

What is the purpose of the groupLeft slot. What is the use case for its addition?
What is the intended goal of groupRight slot. What is the use case for this addition?

I want to make sure we aren't over complicating without cause.

Hi @cjwinsor
the purpose for each group is to have content in both sides, currently we only have room to place a label and that slot has an specific role for this. The group-left slot would be for components with its own role in order to not generate confusion with the screen reader if we use the label slot as a content on the left


base.po: Update Chinese translation

Fix some Chinese translations.
Signed-off-by: Angus Ding<EMAIL_ADDRESS>

Please update the base branch to master first, then we can cherry-pick it into the 18.06 branch
Please also squash the 3 commits into a single one with proper commit subject line.


Fixed Response accessors for attributes

Changes Unknown when pulling 427b47f66b4a9a3843d20428b9f0d3e8c4daaa85 on fcastilloes:master into ** on kusanagi:master**.


stringprep:tolower/1 Return error

Erlang: 20
stringprep: 1.0.14 ~ 1.0.16
Hi All,
I not sure if this behavior is wrong, but I get error when try put binary with special characters to stringprep:tolower/1
> stringprep:tolower(<<240,159,152,138>>).
> error

Can anyone confirm that - this is the correct behavior for a similar binary, and if yes - how can I get around this case?
Cheers!

Related:
https://github.com/processone/ejabberd/issues/3587
https://github.com/processone/stringprep/commit/6d143ebcacaafe3a8adc669300a8ad001402b3d8

Fixed after two years - yey!


Added Margin On the Top and Made the Component Responsive

Added Margin On the Top and Made the Component Responsive
#23 #40

Any Further Changes Required

Thanks for the contribution @Baburao-sanivada

Thank You @thtauhid


[Land and see - Home + Stories] Horizontal scrolling is enabled even though there is nothing there

Current
User can move the whole page over to the left because the pink triangle is showing the full image.

Should be
User should not be able to scroll past the content and should be cut off just like the green triangle.

This is a known issue on Safari, as documented on the PR: https://github.com/ampproject/ampstart/pull/615

thanks! when #615 is fixed this one will be too. closing for now ( @camelburrito let me know if that's not true).


TopologicalSorter: streams to loops, and order vertices by dep count

Inspired by https://github.com/QuiltMC/chasm/blob/07823837e2d606c7c1961e5b67a87e9f62a21495/src/main/java/org/quiltmc/chasm/TopologicalSorter.java#L114

what's wrong with streams?


Permission denied @ rb_sysopen

Installed GitRob + all packages etc, configured it but when I try to run it with the command (example):
gitrob analyze acme.com then accept the disclaimer, I receive the following:
Do you agree to the terms of use? (y/n): y
/var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/commands/accept_terms_of_use.rb:50:in initialize': Permission denied @ rb_sysopen - /var/lib/gems/2.3.0/gems/gitrob-1.1.0/agreement.txt (Errno::EACCES) 	from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/commands/accept_terms_of_use.rb:50:in open'
from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/commands/accept_terms_of_use.rb:50:in accept_terms_of_use' 	from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/commands/accept_terms_of_use.rb:43:in handle_user_input'
from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/commands/accept_terms_of_use.rb:27:in initialize' 	from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/command.rb:7:in new'
from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli/command.rb:7:in start' 	from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli.rb:105:in accept_tos'
from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/lib/gitrob/cli.rb:83:in analyze' 	from /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in run'
from /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in invoke_command' 	from /usr/lib/ruby/vendor_ruby/thor.rb:359:in dispatch'
from /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in start' 	from /var/lib/gems/2.3.0/gems/gitrob-1.1.0/exe/gitrob:5:in <top (required)>'
from /usr/local/bin/gitrob:22:in load' 	from /usr/local/bin/gitrob:22:in '

SOLVED. My bad.
sudo chmod 777 /var/lib/gems/2.3.0/gems/gitrob-1.1.0/


question about the interpretation of hubness measurements

Hi,
Many thanks for such interesting package!
I have a question on how to interpret the measures for hubness. Are these measures bounded (like say [0, 1])? Do you have references that describe how to interpret them?
For example, I ran an analysis using my data set and computed some hubness measures for different number of neighbors (the script and dataset are in the attached zip file). I got these results:
for k= 5
2.4749 (skewness)	0.8889 (atkison)	0.8889 (gini)	0.8889 (robinhood)	1.0 (hub occurrence)	0.8889 (anti-hub occurrence)
for k= 15
0.7071 (skewness)	0.6667 (atkison)	0.6667 (gini)	0.6667 (robinhood)	1.0 (hub occurrence)	0.6667 (anti-hub occurrence)
for k= 30
-0.7071 (skewness)	0.3333 (atkison)	0.3333 (gini)	0.3333 (robinhood)	1.0 (hub occurrence)	0.3333 (anti-hub occurrence)
From the point of view of skewness, atkison, gini and robinhood. The hubness is reduced as the number of neighbors to investigate hubness is increased. Is this assumption correct? When the observed value can be considered high (or low)?
What about hub and anti-hub occurrences? How I can have hub occurrence high (and remain the same) while anti-hub decreases with increasing number of neighbors to investigate hubness? How anti-hubness is not relative very low, when hub occurrence is 1?
I thank you in advance for your comments and clarifications.
Kind regards,
Ivan
script_and_test_data.zip

Hi Ivan,
thanks for your continuing interest.

References:
Skewness (of the k-occurrence distribution) for measuring hubness was introduced by Radovanović et al. in their seminal paper, 2010.
The Robin Hood index was introduced as a hubness measure by Feldbauer et al. 2018 (there is a link to an open access technical report in the readme, if you don't have access).
In the experiments for this paper, we investigated multiple measures from inequality research (Atkinson, Gini, ...). They are still in the code, but were never discussed in any publication because we only followed up on the Robin Hood index. Robin hood tells you: What fraction of all nearest neighbor slots would have to be redistributed as to have all samples equally often as nearest neighbors to other samples (which would mean no hubness at all).
For hub and antihub occurrence please have a look at Flexer and Schnitzer, 2015.
Bounds: Skewness is not bounded (one of the reasons I find it hard to interpret). Robin Hood is in [0, 1). Hub and anti-hub occurrence are fractions in [0, 1].
Dependence on the k in k-occurrence: Hubness measures generally decrease when you increase k. Intuitively, when k approaches the number of samples in the dataset, all samples become nearest neighbors to all other samples, k-occurrence becomes a uniform distribution with skewness=0. Obviously, this is rather meaningless. Therefore, small k values are typically used to describe hubness, like 5 or 10.
(Anti)hub occurrence: These two describe slightly different things. While antihub occurrence is the fraction of all samples that are antihubs (never occur as nearest neighbor), hub occurrence is the fraction of all nearest neighbor slots occupied by hubs (that is, it's not the fraction of all samples that are hubs). So they two measures are not tightly coupled. In your example, all nearest neighbor slots are occupied by hubs in all cases. It seems there would be more hubs while increasing k from 5 to 30, thus reducing the number of antihubs. (I could not have a look at your data though).

I hope I could shed some light on these topics.

Hi @VarIr
Many thanks for sharing for all this information. It is very helpful.
Ivan


Return reqwest response as-is

Hi, thanks for this crate. I have a small feature request: currently, Request::execute can either write the response body to a writer or return it as a blob. It would be useful if, as a third option, it could return the response as-is. This would allow "pull" streaming the response - ie. reading from it.

@jscheid just published 0.16.0-alpha2 to crates.io. It expose a request.send() method which returns impl Future<Item=Response, Error=S3Error>. Let me know if that is what you're after.

Reworked the async interface to be a bit more ergonomic, I'd suggest you take a look at 0.17.0-beta, getting the future directly is supported quite nicely now.

Awesome, thanks!


Kyber: DefaultSignatureAlgorithmIdentifierFinder class missing Kyber Object Identifiers

I am experimenting Kyber key encryption in my project and have generated a Kyber key pair using Bouncy Castle provider and tried to store the private key in Keystore, but it expects a certificate chain associated with the private key, and that needs a signature algorithm.
https://docs.oracle.com/javase/8/docs/api/java/security/KeyStore.html#setKeyEntry-java.lang.String-java.security.Key-char:A-java.security.cert.Certificate:A-
DefaultSignatureAlgorithmIdentifierFinder class missing Kyber Object Identifiers
https://github.com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/operator/DefaultSignatureAlgorithmIdentifierFinder.java

Kyber is not a signature algorithm but a key encapsulation mechanism https://en.wikipedia.org/wiki/Key_encapsulation_mechanism. It can be used to build a public key encryption scheme but it does not have the same properties as RSA which "is" a public key encryption scheme and also a signature scheme (which is where your confusion might come from).
You can create a public key certificate containing a Kyber public key but the certificate will need to be signed by some other algorithm such as Dilithium (a post-quantum signature) or even RSA, if you don't need post-quantum authentication.

@Honzaik Thank you for the prompt reply and clarification, that addressed my query.


Dark themes .pre

Here i implemented 3 dark themes, slightly different
i've added 3 vars into previous postprocessor files and pushed them into few css
so default theme should be just like it is
these tweaks was minimal (diffusion, menu, tasks), but they change look, so if any other will be interested - they can continue with more css tweaks.

Please see https://secure.phabricator.com/book/phabcontrib/article/contributing_code/.

Please see https://secure.phabricator.com/book/phabcontrib/article/contributing_code/

it's not in russian  ,' )

Ok:

We don't accept code without coordination.
We don't accept pull requests on GitHub.
We're not interested in maintaining this feature in the upstream.

good to know (3) i didn't write too much, anyway it will be easier to insert this code for others

Sorry, it's just we've found maintaining code for infinity to be expensive on our side, so we're don't take many contributions unless it's well planned.
On Tue, Oct 20, 2015 at 4:20 PM, Ra<EMAIL_ADDRESS>wrote:

good to know (3) i didn't write too much, anyway it will be easier to insert this code for others
Reply to this email directly or view it on GitHub:
https://github.com/phacility/phabricator/pull/813#issuecomment-149729883

that's ok
about those long  *.php - that's just clones of default_postprocessor.php + few value changes
if anyone will analyze it


Fix kube-dns RBAC issues

Allow kube-dns and other kube-system services full access to the API.
See:

https://github.com/kubernetes/minikube/issues/1734
https://github.com/kubernetes/minikube/issues/1722

Fixes: #107
Release note:
NONE

/lgtm
/approve

There was an unexpected error in the logs which I have now added to the list:

log.txt

E1108 14:18:37.610718       1 reflector.go:205] github.com/jetstack/navigator/pkg/client/informers/externalversions/factory.go:68: Failed to list *v1alpha1.Pilot: an error on the server ("Error: 'dial tcp <IP_ADDRESS>:443: getsockopt: connection refused'\nTrying to reach: 'https://<IP_ADDRESS>:443/apis/navigator.jetstack.io/v1alpha1/pilots?resourceVersion=0'") has prevented the request from succeeding (get pilots.navigator.jetstack.io)

/lgtm


New UTM logo

This isn't an issue, and I am sorry for submitting too many issues so here is
a new UTM logo I made and I hope you like it.
new UTM logo:

if you don't think you can change the UTM logo to new logo
please let me know.
this isn't a bug, I don't know how to remove the bug label, sorry
you can remove the bug label, and I am new to github.

It looks fine but I’m not sure what the issue with the old logo is?

It looks fine but I’m not sure what the issue with the old logo is?

Well i am not saying that the old logo looks bad, or something, but I am just asking if you could use that logo. so could you?

No because rebranding is a lot of work and creates confusion. It shouldn’t be done “just because”. There has to be a good reason like “oh our previous logo was racist” or something.

No because rebranding is a lot of work and creates confusion. It shouldn’t be done “just because”. There has to be a good reason like “oh our previous logo was racist” or something.

oh ok I thought you will be offended when I tell you the reason why the logo should be changed so I should tell you the real reason?

No because rebranding is a lot of work and creates confusion. It shouldn’t be done “just because”. There has to be a good reason like “oh our previous logo was racist” or something.

should I tell you the real reason?


Fix: Correct basic_charset operator

Should have returned result.
https://github.com/ashvardanian/StringZilla/blob/645539b468f3c2902061425684d9b002c43a14f7/include/stringzilla/stringzilla.hpp#L308-L312

Much appreciated, @alexbarev!


New user account - Password Change

We have added the URI in intune to create an user and added to local administrator group along with defined password (AAD joined device).
But the new user account is enabled to change password for initial login. Can we have some settings not change the password ?

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

ID: 309bae29-c769-5051-6c3f-aebeb455cd34
Version Independent ID: bbdfad82-025e-8aee-b3fc-bcfb8b110674
Content: Accounts CSP
Content Source: windows/client-management/mdm/accounts-csp.md
Product: w10
GitHub Login: @MariciaAlforque
Microsoft Alias: maricia

Is there a workaround for this as yet? Been quite a while and still not working

I am also experiencing this issue. Any updates or ways to prevent this?

This issue does not seem to occur when using a less complex password. I reduced password length from 24 to 10 chars and removed the special character. The account now no longer gets a 'change-at-next-logon'-flag.

Hello, @SandiP538 thank you for providing feedback.
Note that the feedback section below documentation is intended for product documentation issues only.
Thus, please consider opening a product support ticket by the following link below for your problem so that it gets resolved quickly.
Windows 10 Support
You might also keep us informed about the resolution of your ticket so that we can ensure this documentation is up to date with relevant information.
@AndreaBarr Recommended closure

@AndreaBarr Recommended closure

Ok... So I figured it out.  Feel free to follow the below steps to resolve your admin creation issues via Intune custom CSP policy but make sure to do them in order or it will fail again.

Existing Devices with Local Admins still:

Assign “Create Local User” Custom Intune CSP Profile will create the user ‘LocalUser’ account
a)	See the following link for MS details.  https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-accounts
b)	Create user account Settings
i)	Name:
ii)	Description:
iii)	OMA-URI:   ./Device/Vendor/MSFT/Accounts/Users//LocalUserGroup
iv)	DataType: Integer
v)	Value: 1          (1 sets as user, 2 sets as Admin)
c)	Create user password settings
i)	Name:
ii)	Description:
iii)	OMA-URI:    ./Device/Vendor/MSFT/Accounts/Users///Password
iv)	DataType: String
v)	Value:

After the account has been created; assign “Restrict Local Admins” Custom Intune CSP Profile to restrict the local administrators on all assigned devices to only those listed in the profile.
a)	Issue [2] If a user is listed in the profile that does not exist, the profile will fail to apply.
b)	Issue [3] If you enable both profiles at once, the “User must change password at next logon” will be enabled on the account. This will stop the user from being able to use this account to elevate administrator privileges because the "User must change password on next logon" flag will be checked.
c)	See the following link for MS details: https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-restrictedgroups
d)	How to build the profile:
i)	Name:
ii)	Description:
iii)	OMA-URI:  ./Device/Vendor/MSFT/Policy/Config/RestrictedGroups/ConfigureGroupMembership
iv)	DataType: String
v)       Value:

Note: Applying the restriction will grant admin rights to user profiles that do not have it, or strip admin rights from those with it that are not listed. If you list an account that doesnt exist the policy will just fail.

After the user resets the device, the ability to elevate using the newly made accounts will be possible

Hope that helped, even if it was long.


Turn off other Mark when one is activated?

Hello, thanks for this great editor library. I made three mark say left, center, and right alignment. When I turn on center align, my text can be inserted at center, when I turn on right align, the text will align to right but center is still on state, is it possible to turn off other marks programatically?

I think you should do only one text-align mark. Then you have to store its align as an attribute. This can be left, right and center. You can check the link mark about how to store attrs.

I used custom attribute to identify node type so it is difficult to just use one mark to represent three alignments. Is it possible to execute two transaction in command? I am trying to dispatch state.tr.removeMark and then toggleMark..

I found the solution by chaining the transactions, thanks

Would be nice to post your solution here ❤

@philippkuehn Of course
const alignmentCommand = ({ type }) => (state, dispatch) => {
  const { from, to, $cursor } = state.selection
  const { left, center, right } = state.config.schema.marks
  if ($cursor) {
    // cursor only
    if (type.isInSet(state.storedMarks || $cursor.marks())) {
      dispatch(state.tr.removeStoredMark(type))
    } else {
      dispatch(state.tr
        .removeStoredMark(left)
        .removeStoredMark(center)
        .removeStoredMark(right)
        .addStoredMark(type.create())
      )
    }
  } else {
    // text selected
    const marked = state.doc.rangeHasMark(from, to, type)
    if (marked) {
      dispatch(state.tr.removeMark(from, to, type))
    } else {
      dispatch(state.tr
        .removeMark(from, to, left)
        .removeMark(from, to, center)
        .removeMark(from, to, right)
        .addMark(from, to, type.create())
      )
    }
  }
}

@patrikengborg sure.
class LeftMark extends Mark {
  constructor() {
    super()
    this.command = alignmentCommand
  }
  get name() {
    return 'left'
  }
  get schema() {
    return {
      parseDOM: [
        {
          tag: 'div[data-type="left"]',
        },
      ],
      toDOM: (node) => ['div', { 'data-type': 'left' }, 0],
    }
  }
}


Fixes #92

Updates project.json and scientist.nuspec to reference new location of repository.

Thanks! The build is broken, but I'm pretty sure it's not this change.
Attempting to gather dependencies information for package 'FAKE.Core.4.4.2' with respect to project 'tools', targeting 'Any,Version=v0.0'
Using credentials from config. UserName: nuget
Please provide credentials for: https://ci.appveyor.com/nuget/haacked-vvu4pkqlwluu
UserName:

I have no idea what's going on here.


Issue with multiprocessing startup: can't run worker with ddtrace-run

I used to run the taskiq worker ... with ddtrace-run (i.e. ddtrace-run taskiq worker ...) but this is raising an error now:
Traceback (most recent call last):
  File "/Users/murilositonio/.pyenv/versions/remediation-automation-api-3.11/bin/taskiq", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/envs/remediation-automation-api-3.11/lib/python3.11/site-packages/taskiq/__main__.py", line 73, in main
    command.exec(sys.argv[1:])
  File "/Users/murilositonio/.pyenv/versions/3.11.3/envs/remediation-automation-api-3.11/lib/python3.11/site-packages/taskiq/cli/worker/cmd.py", line 26, in exec
    run_worker(wargs)
  File "/Users/murilositonio/.pyenv/versions/3.11.3/envs/remediation-automation-api-3.11/lib/python3.11/site-packages/taskiq/cli/worker/run.py", line 164, in run_worker
    set_start_method("fork")
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/context.py", line 247, in set_start_method
    raise RuntimeError('context has already been')
RuntimeError: context has already been set

I initially though this had something to do with #177, but if I comment that if condition (if platform == "darwin") it starts the workers, but with an error still:
[2023-07-28 11:33:57,731][taskiq.worker][INFO   ][MainProcess] Starting 2 worker processes.
[2023-07-28 11:33:57,747][taskiq.process-manager][INFO   ][MainProcess] Started process worker-0 with pid 22823
[2023-07-28 11:33:57,753][taskiq.process-manager][INFO   ][MainProcess] Started process worker-1 with pid 22824
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main
    exitcode = _main(fd, parent_sentinel)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 130, in _main
    self = reduction.pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/synchronize.py", line 110, in __setstate__
    self._semlock = _multiprocessing.SemLock._rebuild(*state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main
    exitcode = _main(fd, parent_sentinel)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 130, in _main
    self = reduction.pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/synchronize.py", line 110, in __setstate__
    self._semlock = _multiprocessing.SemLock._rebuild(*state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
[2023-07-28 11:33:59,967][taskiq.process-manager][INFO   ][MainProcess] worker-0 is dead. Scheduling reload.
[2023-07-28 11:33:59,967][taskiq.process-manager][INFO   ][MainProcess] worker-1 is dead. Scheduling reload.
[2023-07-28 11:34:00,975][taskiq.process-manager][INFO   ][MainProcess] Process worker-0 restarted with pid 22833
[2023-07-28 11:34:01,082][taskiq.process-manager][INFO   ][MainProcess] Process worker-1 restarted with pid 22834
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main
    exitcode = _main(fd, parent_sentinel)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 130, in _main
    self = reduction.pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/synchronize.py", line 110, in __setstate__
    self._semlock = _multiprocessing.SemLock._rebuild(*state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 120, in spawn_main
    exitcode = _main(fd, parent_sentinel)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/spawn.py", line 130, in _main
    self = reduction.pickle.load(from_parent)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/murilositonio/.pyenv/versions/3.11.3/lib/python3.11/multiprocessing/synchronize.py", line 110, in __setstate__
    self._semlock = _multiprocessing.SemLock._rebuild(*state)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory

If I rollback to an older version (0.6.0, for instance) it works. It also works for scheduler.
Do you know what it can be?

Btw this works fine if I spawn some containers. Definitely a problem with darwin

Hi! Guess it was fixed in https://github.com/taskiq-python/taskiq/commit/4f9f1ae2f2b5181850fa85672e82517070d8ae13.
If not, please try running one version before this commit.

Hi @s3rius, I'm using a Macbook Pro 16 with Ventura 13.5 (not sure if you'd like to see any other specific info tho)

@MuriloScarpaSitonio, hi. I'm unableto test your case, but can you please try changing this line to
        set_start_method("fork", force=True)

Because on linux I couldn't reproduce this error even with ddtrace.


Caffe Translator Error: BatchNorm

I want to translate ResNet-152 into caffe2. However, I get this error:
KeyError: 'No translator registered for layer: name: "bn_conv1"\ntype: "BatchNorm"\nbottom: "conv1"\ntop: "conv1"\nbatch_norm_param{\n  use_global_stats: true\n}\n yet.'

Following is how i run caffe_translator.py:
python caffe_translator.py ResNet-152-deploy.prototxt ResNet-152-model.caffemodel
--init_net resnet152_init.pb --predict_net resnet152_pred.pb

I am also receiving an error rn trying to convert a ResNet 50:

KeyError: 'No translator registered for layer: name: "bn_1"\ntype: "BatchNorm"\nbottom: "conv_1"\ntop: "conv_1"\nparam {\n  lr_mult: 0.0\n  decay_mult: 0.0\n}\nparam {\n  lr_mult: 0.0\n  decay_mult: 0.0\n}\nparam {\n  lr_mult: 0.0\n  decay_mult: 0.0\n}\nbatch_norm_param {\n  use_global_stats: true\n}\n yet.'

I found a PR that seems to address this issue: https://github.com/caffe2/caffe2/pull/430
Finishes successfully. Hope it works!

@littleowl Hope it works!

Fix it with my prototxt because SpatialBN in caffe2 is not in-place layer. Howerver, when i running it, i get this warning:
W0502 17:55:53.081574 13078 conv_pool_op_base.h:554] You are hitting a case where Caffe's legacy padding calculation is hit. This leads to inefficient and sometimes incorrect  results. We are keeping this behavior for backward compatibility, but you are strongly recommended to move away from it.

@KeyKy I do actually get the same [enforce fail at operator.cc:69] error as you. I'll try your prototxt - Thx!

Analyzing your prototxt file - it seems as though for every BatchNorm layer you set the name to also be the top. I have done the same and everything seems OK so far. Not able to try running it just yet as I'm trying to get this working on iOS.

@littleowl very helpful. Also tried that PR, it works on my translation.(Confirm)

@KeyKy, thanks for the exploring. However, there are too many batchnorm layers in resnet, did you change the prototxt by hand or script? If second, could you share it? Thks!

@Primus-zhao i change the prototxt by hand.

@KeyKy I used your method to convert caffe to caffe2 for ssd (ref: ). However, during detection, I am facing the same warnings:
You are hitting a case where Caffe's legacy padding calculation is hit. This leads to inefficient and sometimes incorrect results. We are keeping this behavior for backward compatibility, but you are strongly recommended to move away from it.
This gives me false detection bounding boxes. Could you help me with that if you were able to solve the issue?
Thanks!

@rams16592 could you give me your image which has false detection bounding boxes. my email is<EMAIL_ADDRESS>

@rams16592 I have received your email. I found detection_out_op is slow because i implement it in cpu and ssd caffe has a gpu implementation. I will try it a few days later.

@KleinYuan
base on the script https://github.com/caffe2/caffe2/pull/430/files, i can translate my model correctly, but when i test my new caffe2 model , i find the feature output is wrong, the number is NaN or zero.Have you test the model you transfered？is it correct?

@nyyznyyz1991 yes, I have the same issue and look into that.

Hi @rams16592 , i have implemented the gpu detection_out_op and benchmarked it. See the latest commit. It should be faster than before!!

@KeyKy Thank you! I just saw that and tried. The cost for detection output has decreased for Jetson Tx1 too.
However when I was benchmarking, I saw that the difference between the convOp for Caffe and Caffe2 is not much. Is that the same case with you still?
I saw you too faced the same problem. (ref: https://github.com/caffe2/caffe2/issues/534)

@rams16592 Yes. This kind of difference also exists between (mxnet and caffe)[https://github.com/msracver/Deformable-ConvNets]. Analogically between caffe2 and caffe.

@KeyKy I see now. Thanks for the update. I understood the reason.

@nyyznyyz1991 @KleinYuan - I too have this issue with the NaN after patching the caffe_translator.py file and adapting the net structure with Netscope.
One thing I noticed was that some of the layers of data contain really really small numbers like 0.0122e-6 or something like that. I have no idea if that mattered, but it got me to thinking that maybe there is something wrong with protobuf.
Looking at my setup, I had :

3.2 installed on my Mac.
3.1 build from the build_ios
2.6.1 from the docker images for both caffe and caffe2. because that's the default from apt-get

I was using 3.2 to do the translation and 3.1 for the implementation and the original files were maid with 2.* probably.
Not sure how to properly update protobuf binaries from 2.* to 3.* or even if it's a big deal or not.
Anyone know if they are compatible?
So I wondered if maybe there was some incompatibilities going on.
I then tried to do the translation using 2.6.1 from docker and tried that in iOS.
Surprisingly, I no longer get NaN at all. That's good news, but not so much since instead I just get the incorrect values of 1.0 and 0.0 no matter what in my final layer (which only has a length of 2).
Obviously assuming there are going to be problems going from 2.* to 3.*
Which means that I can try 2 things.

python implementation for testing with 2.6.1 (python novice)
build everything with the same 3.* version.

Totally not sure if I'm going down the right rabbit hole or not, but thought I would share my insights.


Add uninstall command, and more tweaking of the setup / install commands

Some commit messages could have been tidied up…


Require socket

when loading mimic, you get the following error:
/Users/hubert/.rbenv/versions/1.9.3-p448/gemsets/comptroller/gems/mimic-0.4.3/lib/mimic.rb:89:in `rescue in listening?': uninitialized constant Mimic::Server::SocketError (NameError)
requiring socket explicitly in mimic.rb takes care of it.

@lukeredpath any chance you can merge and release this small change?

Woot! 🍻


How to do reversed animation?

I mean animate from drawn state to erased state. Actually, I want to do cyclic animation for progress loader, which will be animate painting then animate erasing then again painting and then erasing and so on... Could you give me a hint how to do it ?

Actually I did something like that.
Instead of using the animations you must set the progress yourself.
The call is:
pathView.setPercentage(0.5f);

This will give you exactly half of the svg path animation, so you can hook it up with something
that is changing that value from 0 to 1 and then from 1 to 0.
Should be easy.


Fix typing issues

Description
I fixed some of the type annotations as well as replaced a couple __eq__ operations with torch.eq
Status

[ ] Ready to go

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

Project coverage is 80.74%. Comparing base (a4349f0) to head (a794a9f).
Report is 17 commits behind head on main.

Additional details and impacted files


Black normals

Godot version
4 alpha 11
System information
Windows 10, Vulkan,  RX560
Issue description
Hi,
I've recently got a problem with normal maps.
I tried different model formats (gltf, fbx) and normal maps but can't get rid of this black sides of the model.
Is this a bug or is there a workaround?
Regards
abgenullt
Steps to reproduce
Import a model and a normal map. Assign a new material with a normal map to it.
Minimal reproduction project

test.zip

I still have this problem with version 4.1.1. Can someone confirm this issue?

I've never been able to reproduce this in any of my projects, nor the official demo projects. The issue is likely with the source model itself.

When I open the test project with Godot 4.1 stable, the normal map is detected and displayed as what seems to be a red-and-alpha channel icon in the file browser and as a regular RG-compressed normal map in the inspector.
The scene itself looks fine when enabling the default environment and sun - the only difference between the models seems to be a slightly darker shadow color:

Same goes for 4.1.2 RC1. My system specs are: Win11, RTX 3070 Ti.

Thank you for your affort.. I really don't know why but after I deleted and re-downloaded the project, the problem was gone...

I will test more models and check, if I can find the reason..

This may be due to the same cause as https://github.com/godotengine/godot/issues/64854.

I don't think so. I have this problem on freshly imported models, too. If I find a the reason, I will let you know.

Ok, that is very strange. If I copy the working model from the test project to a new, blank project and activate the normal map. I will get the same black normals on one side again..

I get the same effect on two complete different systems.
I really don't know what is going on here..
test2.zip


yii2-jui Dialog Misses close Icon

The problem seems to be with Jquery  and there is a workaround mentioned here
and here I quote it:
"The reason this is happening, is because you are calling bootstrap in, after you are calling jquery-ui in. Literally, swap the two so that instead of:
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="/js/bootstrap.min.js"></script>

it becomes
 <script src="js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

"

Is this problem unique to me?

No, it is not unique to you.  Why has nobody addressed this?
How can we get Bootstrap to load before jQuery UI?

You can add:
'//code.jquery.com/ui/1.11.4/jquery-ui.min.js',
to
public $js = [
    'js/bootstrap.js',
    '//code.jquery.com/ui/1.11.4/jquery-ui.min.js',
];

in /vendor/yiisoft/yii2-bootstrap/BootstrapPluginAsset.php


It would be great if Turkmen language will be added

Language to Add
TK (Turkmenistan)
Confirmation of Intent

[X] I confirm I'm offering to help translate for this new language via Crowdin.

Yes I think it would be great if bookatack will have Turkmen translation, could you guide me how to accomplish this?

@mikebionic I've now enabled the Turkmen language on our Crowdin:
https://crowdin.com/project/bookstack/tk
You should be able to sign-up there, and then you'll have an interface to translate each of the translations.
These then automatically sync to the application and, when the language is mostly complete, I'll add it as a user language option.
If there's little progress after a while (few months), I may remove the language option.

Isn't there an easier version, like exporting a .json or .strings file and after translated on computer, upload and merge strings?

@mikebionic There's the PHP format we store translations in: https://github.com/BookStackApp/BookStack/tree/l10n_development/lang/tk
If you're able to work to that format (keeping the structure, keys and filenames intact) I could do a one-time initial import of those files, but any further changes beyond that initial import would ideally be done in Crowdin.

Since there's been no further discussion/follow-up here, I'll go ahead and close this off since the language has been made available on Crowdin.


port NDT_CUDA from from fast_gicp to small_gicp

Hi, thank you for your great work. I have been using fast_gicp for a project on the jetson orin for registration on relatively large (10 million+) point clouds. I found that out of all the methods, NDT_CUDA is the only one with acceptable performance. However you mentioned that its implementation may have some bugs due to how quickly you implemented it. It would be highly appreciated if you can port NDT_CUDA to small_gicp with a more stable implementation :) Thank you again!

I recognize that GPU-based methods have high demand and am thinking of introducing them to small_gicp. The problem is that GPU implementation requires a completely different software design and would require as much effort as writing another library from scratch... Anyways, I will try to find time to tackle it.


DDC needs to implement the changes of lang/#807

There are new test failures on [VM/nnbd] Implement pre-nnbd language changes (see lang/#807)..
The tests
corelib/type_tostring_test RuntimeError (expected Pass)
corelib_2/type_tostring_test RuntimeError (expected Pass)

are failing on configurations
dartdevk-checked-linux-release-chrome
dartdevk-strong-linux-release-chrome
dartdevk-weak-linux-release-chrome

These tests have been updated (in CL above) to pass on the VM when implementing the changes of lang/#807.
Until DDC implements the same changes, these 2 updated tests will fail.

/cc @sigmundch

This was fixed by ab30452


Case debounce tradlayout

Woops! I was aiming for my own repository. This isn't ready to merge with yours just yet...


Problem: BigchainDB and Tendermint tightly coupled and need some supervision

Problem
BigchainDB and Tendermint are very tightly coupled which implies that if the connection(ABCI) between BigchainDB and Tendermint breaks, the system halts i.e. Tendermint does not re-iniate the connection and both processes keep running without being productive.
Solution
Supervise both the services/processes with a process manager. For now using Monit. Monit will launch both BigchainDB and Tendermint and will monitor the lifecycle of both services.
Workflow
When BigchainDB is installed e.g.:
$ git clone https://github.com/bigchaindb/bigchaindb.git
$ cd bigchaindb/
# might need sudo or python3, details not important here
$ python setup.py install

OR
$ pip install bigchaindb

It will install a script bigchaindb-monit-config, which is placed under /usr/local/bin and can be intiated using:
$ bigchaindb-monit-config

For more options:

$ bigchaindb-monit-config -h

    Usage: bigchaindb-monit-config [-h]

    Configure Monit for BigchainDB and Tendermint process management.

    ENV[MONIT_PID_PATH] || --monit-pid-path PATH

    Absolute path to directory where the the program's pid-file will reside.
    The pid-file contains the ID(s) of the process(es).

    ENV[MONIT_SCRIPT_PATH] || --monit-script-path PATH

    Absolute path to the directory where the executable program or
    script is present.

    ENV[MONIT_LOG_PATH] || --monit-log-path PATH

    Absolute path to the directory where all the logs for processes
    monitored by Monit are stored.

    ENV[MONIT_EXEC_PATH] || --monit-exec-path PATH

    Absolute path to the directory to run the script form.

    -h|--help
        Show this help and exit.

Once the above script is executed successfully with the message BigchainDB process manager configured!. User can use monit to monitor both processes at the same time i.e. if one of them crashes or the connection breaks, monit will restart them.
$ monit -d 1

# For more detailed info about monit

$ monit --help

Issues Resolved
Resolves #2238
Dependencies
Monit
Remaining TODOs

[x] The default path for .monitrc Monit control file is $HOME/.monitrc, we don't want to override it if someone is already using it with monit. So change the current script to become more interactive about .monitrc file. Something similar to ssh-keygen
[x] We send monit logs to $HOME/.bigchaindb-monit/logs/<bigchaindb-logs> but at the same time the BigchainDB process, generates log files at $HOME/<bigchaindb-logs>(default path). There should only be one location for this.
[x] In help, print the default values
[x] Cleanup some TBD items in the script.

Codecov Report

Merging #2410 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #2410   +/-   ##
======================================
  Coverage    86.9%   86.9%
======================================
  Files          38      38
  Lines        2168    2168
======================================
  Hits         1884    1884
  Misses        284     284

It would be really helpful if the same could be included in the docs.

@kansi could you, please, suggest a section to update? I think, it would not be equally useful everywhere. Also, depending on the status quo it might be difficult to introduce a new section properly without a good idea of what else will go there.

Some docs to update or add:

http://docs.bigchaindb.com/projects/server/en/master/simple-network-setup.html
http://docs.bigchaindb.com/projects/contributing/en/latest/dev-setup-coding-and-contribution-process/run-node-as-processes.html
Maybe add a new page with more details in the Appendices of the BigchainDB Server docs.

Note: There's an open PR (#2388) to delete the old page in the Appendices about installing OS-level dependencies.

@ttmc I plan to update http://docs.bigchaindb.com/projects/server/en/master/simple-network-setup.html in the following PR when we ship a new release since the instructions depend on the binary that is to come with the new version.
Thank you for other hints though!

I will defer review until the docs explaining how to use this are written in a future pull request.

@ttmc giving it a second thought, what if we add the docs now, although the script they depend on will come a little later? It's only about a single section in the end..

@ttmc I checked http://docs.bigchaindb.com/projects/contributing/en/latest/dev-setup-coding-and-contribution-process/run-node-as-processes.html - the Monit setup does not really belong there because:

The following doc describes how to run a local node for developing BigchainDB Tendermint version.

I will just create a Monit setup section in "Appendices".

I will just create a Monit setup section in "Appendices".

Actually, I would prefer to only keep it inside the network setup guide to avoid maintaining it in two different places.

I will test the new docs soon, but I already have some basic questions about how this works. (I looked at the Monit setup code but I didn't find the answers there.)
What does Monit monitor/check, and what triggers it to restart BigchainDB and/or Tendermint? Will it always restart both?

What does Monit monitor/check, and what triggers it to restart BigchainDB and/or Tendermint? Will it always restart both?

A crash of the BigchainDB root process will trigger a restart of both. A crash of the Tendermint process will only trigger a restart of Tendermint, what should be fine. Also, it does not try to bring Tendermint up while BigchainDB is not running.


Added macOS support for Big Sur and above

Changed package requirements to support macOS v11. Haptic feedback conditionally used only on iOS devices.

Thank you @chdominguez!


How to fix  "the shell command has become unresponsive" and "an existing connection was forcibly closed by the remote host"?

I use SharpAdbClient in the c # project to control the NoxPlayer emulator. However I often encounter exceptions "sharpadbclient.exceptions.shellcommandunresponsiveexception: 'the shell command has become unresponsive'" and "an existing connection was forcibly closed by the remote host". Why does this happen, is there a way to resolve it? thanks

Do you have a simple way to reproduce this problem?


Gracefully Restarting A Self-Hosted Nancy Application

I am wondering if there is a way to send a system signal (Unix) to a self-hosted Nancy application and have it terminate the processing of all requests before exiting similar to this Apache's feature.
I am concerned about requests being terminated midway when the application is updated which could leave the database in an inconsistent state. Any hint would be appreciated.
Many thanks

Do you have your application load balanced??? If so then just remove the machine from the load balancer. Wait for requests to finish. Then deploy. Then add it back in.

No it's not, however you just made me realize that I could pause the front-end reverse proxy to achieve the same result. The update will result in downtime anyway no matter where graceful restart is handled since this is a single node setup. If there is ever a need to make this system HA and therefore load balanced, then what you suggest would cover this scenario too.
Thank you


nscodec issues

#125 described that there are remaining issues in nscodec, but did not reference what they actually were in the issue or the code.
Here are some of my findings.
With chroma-subsampled bitmaps, the chrome decompressed lengths do not match the example in ms-rdpnsc 4. (though I am not sure if the supersampling code handles this correctly).
The rle decompression can cause a segv (nsc_rle_decode->memset). I'll post the full trace separately and try to grab the offending buffer.
The colors are not correct. My suspicion is this may be related to the alpha channel/drawing mode/what it's being transparent on top of.
For the time being, I recommend documenting the '--nsc' command line as experimental

// testcase for problematic bitmap
static const uint8 segv_bitmap_data[] =
{
0x0b, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00,
0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0xfb, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xff, 0xfc, 0x7f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x7f, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0xfb, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00
};

the seg fault in rle decode  i will look into it.
The chroma decompressed length doesn't match because i am storing the 9th bits caused by colorloss recover at the end of buffer.
i didn't find any better way to store the 9th bits(using 16bit for every byte would be waste of space and causes extra headache)

Hi atong,
If you can confirm it is indeed a bug in rle_decode can you post a gdb trace of it like the arguments passed to nsc_rle_decode() and for which  plane buffer (i =  0,1,2 ) in for loop in nsc_rle_decompress_data() ?
Probably a problem with origsize .
I have never encountered such bug with rle_decode() and kinda hard to reproduce without more info.
And the colors are not correct and i have no idea about that that was the main issue in #125

Sorry, I forgot to note the width/height (0x400/0x17f) for the segv_bitmap_data, which was needed to reproduce the issue (pass that bitmap to process_nsc_message).
I think I found the issue, this should fix the segv, 0x5fc00 was chopped to 0xfc00.
--- a/libfreerdp-codec/nsc.c
+++ b/libfreerdp-codec/nsc.c
@@ -264,7 +264,8 @@ void nsc_rle_decode(STREAM* in, STREAM* out, uint32 origsz)
void nsc_rle_decompress_data(NSC_CONTEXT* context)
{
STREAM* rles;

  uint16 i, origsize;

  uint16 i;

  uint32 origsize;
  rles = stream_new(0);
  rles->p = rles->data = context->nsc_stream->pdata->p;
  rles->size = context->nsc_stream->pdata->size;

Did someone got any progress on this?

no :(
the color issue is still there ,atong was supposed to work on it :)

I'm moving this to 1.1 branch. In case someone object, please shout ;-)

I have found the bug it was in the color conversion.I have requested a pull  to fix #325 .let me know how it turns out.


Wrong picture orientation on Samsung devices

Hi,
After taking a picture with this library I create a Bitmap and set it in an ImageView as follow:
 public void onPictureTaken(CameraView cameraView, byte[] data) {
     Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);
     imageView.setImageBitmap(bitmap);
}

This works fine on a Nexus 5X, however on Samsung devices the picture orientation appears to be incorrectly rotated 90 degrees to the left when the device orientation is portrait. Is there a way to fix this issue?

LG-K500h (X screen)  has the same behaviour, after the photo is taken, is rotated 90 degrees to the left.

This is because Samsung (also Sony) devices write EXIF orientation = 6 but BitmapFactory.decodeByteArray() ignores the EXIF rotation tag. (I think it will work if you write the data out to a file and then read it using BitmapFactory.decodeFile) You have to rotate the image yourself before displaying it.

Did someone find a workaround ?

I've created pull request[https://github.com/google/cameraview/pull/45/files] which adds option to have, as result, byte array and angle of image so u can easily rotate bitmap.
All u have to do is copy ExifUtil class and then use getOrientation with byte array.
Then u can rotate bitmap, e.g.
private Bitmap rotateBitmap(Bitmap source, int angle) {          Matrix matrix = new Matrix();          matrix.postRotate(angle);          return Bitmap.createBitmap(source, 0, 0, source.getWidth(), source.getHeight(), matrix, true);  }
I've tested it on samsung galaxy s6/nexus5 and it does work for me.

is anyone gonna fix this ?

I don't think this is a issue with the library anymore, the application should be in charge of rotating the image if necessary by reading the image Exif data. This can be easily achieved using the new Exif support library
The exif library allows you to easily find out how much you have to rotate the image before you display it to the user. This is how it could be done:
@Override
public void onPictureTaken(CameraView cameraView, byte[] data) {
            // Find out if the picture needs rotating by looking at its Exif data
            ExifInterface exifInterface = new ExifInterface(new ByteArrayInputStream(data));
            int orientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1);
            int rotationDegrees = 0;
            switch (orientation) {
                case ExifInterface.ORIENTATION_ROTATE_90:
                    rotationDegrees = 90;
                    break;
                case ExifInterface.ORIENTATION_ROTATE_180:
                    rotationDegrees = 180;
                    break;
                case ExifInterface.ORIENTATION_ROTATE_270:
                    rotationDegrees = 270;
                    break;
            }
            // Create and rotate the bitmap by rotationDegrees
}

I think this issue can be closed now.

its still not working . more than 5 years. And bug still here. I cant believe it . Samsungs devices have a lot of bugs. I cant understand why they cant fix this problem.

you should follow @ivacf comment https://github.com/google/cameraview/issues/22#issuecomment-269321811

@ivacf I am using this code. normalizeImageForUri method is used to fix these things. But, I am getting a problem in Nougat device. I am not sure if the same issue persists in lower versions. The issue is I have sent the Uri to this method by calling Uri.fromFile(photoFile) where photoFile is the file that is made from the Util class and Uri is extracted using this code FileProvider.getUriForFile(mCallerActivity,                                 BuildConfig.APPLICATION_ID + ".provider",                                 mPhotoFile);
I am unable get the ExifInterface object, I get a FileNotFoundException. Whereas, if I am using the same file to upload the image to my S3 bucket and that is successful. Can you please let me know why the ExifInterface object is not getting the File?
`
public static void normalizeImageForUri(Context context, Uri uri) {
try {
ExifInterface exif = new ExifInterface(uri.getPath());
int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED);
Bitmap bitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), uri);
Bitmap rotatedBitmap = rotateBitmap(bitmap, orientation);
if (!bitmap.equals(rotatedBitmap)) {
saveBitmapToFile(context, rotatedBitmap, uri);
}
} catch (IOException e) {
e.printStackTrace();
}
}
private static Bitmap rotateBitmap(Bitmap bitmap, int orientation) {
    Matrix matrix = new Matrix();
    switch (orientation) {
        case ExifInterface.ORIENTATION_NORMAL:
            return bitmap;
        case ExifInterface.ORIENTATION_FLIP_HORIZONTAL:
            matrix.setScale(-1, 1);
            break;
        case ExifInterface.ORIENTATION_ROTATE_180:
            matrix.setRotate(180);
            break;
        case ExifInterface.ORIENTATION_FLIP_VERTICAL:
            matrix.setRotate(180);
            matrix.postScale(-1, 1);
            break;
        case ExifInterface.ORIENTATION_TRANSPOSE:
            matrix.setRotate(90);
            matrix.postScale(-1, 1);
            break;
        case ExifInterface.ORIENTATION_ROTATE_90:
            matrix.setRotate(90);
            break;
        case ExifInterface.ORIENTATION_TRANSVERSE:
            matrix.setRotate(-90);
            matrix.postScale(-1, 1);
            break;
        case ExifInterface.ORIENTATION_ROTATE_270:
            matrix.setRotate(-90);
            break;
        default:
            return bitmap;
    }
    try {
        Bitmap bmRotated = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
        bitmap.recycle();

        return bmRotated;
    } catch (OutOfMemoryError e) {
        e.printStackTrace();
        return null;
    }
}

private static void saveBitmapToFile(Context context, Bitmap croppedImage, Uri saveUri) {
    if (saveUri != null) {
        OutputStream outputStream = null;
        try {
            outputStream = context.getContentResolver().openOutputStream(saveUri);
            if (outputStream != null) {
                croppedImage.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);
            }
        } catch (IOException e) {

        } finally {
            closeSilently(outputStream);
            croppedImage.recycle();
        }
    }
}

private static void closeSilently(@Nullable Closeable c) {
    if (c == null) {
        return;
    }
    try {
        c.close();
    } catch (Throwable t) {
        // Do nothing
    }
}

`

you can check https://github.com/react-native-community/react-native-camera

@ivacf does your code require API level 24?

@MoustafaElsaghier - Thanks for this solution. I have implemented this and tested. Working good on Samsung J pro but image turns upside down(i.e. 180 degree) in Samsung J Core. Don't know why it is. Please suggest a solution.

@MrBrown09 sorry for the late answer
I've solved this by using OrientationEventListener and in onOrientationChanged I reversed the orientation that means if it is 0 put it 180 and if 180 set it 0
the same with 270 and 90.
if you need any help how calc angel tell me, please

关键原因：bitmap 不包含 exif 信息
解决方法1：读文件前获取 exif 信息，bitmap 写入到文件以后写入 exif 信息。
public static ExifInterface getExif(String filePath) {
try {
return new ExifInterface(filePath);
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
public static void setExif(String filePath, ExifInterface exif) {
    try {
        ExifInterface newExif = new ExifInterface(filePath);
        final Class<ExifInterface> cls = ExifInterface.class;
        final Field[] fields = cls.getFields();
        for (Field field : fields) {
            final String fieldName = field.getName();
            if (!TextUtils.isEmpty(fieldName) && fieldName.startsWith("TAG")) {
                final String tag = field.get(cls).toString();
                final String value = exif.getAttribute(tag);
                if (value != null) {
                    newExif.setAttribute(tag, value);
                }
            }
        }
        newExif.saveAttributes();
    } catch (Exception e) {
        e.printStackTrace();
    }
}

解决方法2：读取 exif 信息，按 exif 信息旋转，最后一定不能再写入原来的ExifInterface.TAG_ORIENTATION的值，该值旋转后应该为0。
public static Bitmap resetOrientation(String filePath) {
if (TextUtils.isEmpty(filePath)) {
return null;
}
    final Bitmap bitmap = decodeBitmapFromFile(filePath);// 略
    final int degree = getOrientationDegree(filePath);
    return rotateBitmap(bitmap, degree);
}

public static int getOrientationDegree(String imagePath) {
    if (TextUtils.isEmpty(imagePath)) {
        return 0;
    }

    try {
        final ExifInterface exifInterface = new ExifInterface(imagePath);
        final int attributeInt = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED);
        switch (attributeInt) {
            case ExifInterface.ORIENTATION_ROTATE_90:
                return 90;
            case ExifInterface.ORIENTATION_ROTATE_180:
                return 180;
            case ExifInterface.ORIENTATION_ROTATE_270:
                return 270;
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
    return 0;
}

public static Bitmap rotateBitmap(Bitmap bitmap, int degree) {
    if (degree == 0 || bitmap == null) {
        return bitmap;
    }

    final Matrix matrix = new Matrix();
    matrix.setRotate(degree, bitmap.getWidth() / 2, bitmap.getHeight() / 2);
    return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
}

anyone fixed this bullshit for samsung android 8 + ?? (for example on samsung s8 with OS 8.0 + its  stilll returned bad rotation)

@petergayduchik able to solve the issue by this.
you have to rotate image by 90 degree.
`[@Override
public void onPictureTaken(CameraView cameraView, byte[] data) {
// Find out if the picture needs rotating by looking at its Exif data
ExifInterface exifInterface = new ExifInterface(new ByteArrayInputStream(data));
int orientation = exifInterface.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1);
int rotationDegrees = 0;
switch (orientation) {
case ExifInterface.ORIENTATION_ROTATE_90:
rotationDegrees = 90;
break;
case ExifInterface.ORIENTATION_ROTATE_180:
rotationDegrees = 180;
break;
case ExifInterface.ORIENTATION_ROTATE_270:
rotationDegrees = 270;
break;
      default:
            matrix.postRotate(IMAGE_ROTATION_ANGLE_90);
            break;
    }
    // Create and rotate the bitmap by rotationDegrees

}](url)`

i hate developers on Samsung side . It's perfect idiotism .
How the f...k it's possible to create this stupid system :
Photo taked in portrate /landscape mode always have logic where WIDTH > HEIGHT(for example 4000x3000)
every time
From Camera :
Portate camera mode : exif = 0, photo rotated on 90 degree in left way  (incorrect)
Landscape camera mode : exif =0, photo in normal view  (correct)
From Gallery :
Portrate photo : exif = 90 , photo rotated on 90 degree in left way (incorrect)
Landscape photo: exif = 90 , photo in normal view (correct)

I have the same problem bug it is for face detection with camera2 API, my app is blocked in portrait mode and I don't now why, with a samsung Galaxy note 8, face detection only work in landscape mode... Do someone know how to fix it ?

@Bonten156 I came across this blog, might be helpful for you.
https://medium.com/@kenodoggy/solving-image-rotation-on-android-using-camera2-api-7b3ed3518ab6

Anyone fixed this in Android 11 Samsung Device?

@amkrys is this work for you?

@amkrys is this work for you?

@amkrys is this work for you?

no but now am using https://github.com/Dhaval2404/ImagePicker this library and its working fine for Samsung devices too


-h or --help do not list available scripts nor help command

nps version: 5.9.0
node version: 8.9.4
npm version: 6.1.0

Scripts file (or at least the relevant bits):
module.exports = {scripts: {
	default: 'nps dev',
[...]

The command executed:
nps -h

The output:
20000 $ nps -h
Usage: ../../../../bin/node_modules/nps/dist/bin/nps.js [options] <script>...

Commands:
  init        automatically migrate from npm scripts to nps
  completion  generate bash completion script

Options:
  --config, -c      Config file to use (defaults to nearest package-scripts.yml
                    or package-scripts.js)                             [default:
         "/path/to/my/package-scripts.js"]
  --silent, -s      Silent nps output                 [boolean] [default: false]
  --log-level, -l   The log level to use
                   [choices: "error", "warn", "info", "debug"] [default: "info"]
  --require, -r     Module to preload
  --scripts         Log command text for script        [boolean] [default: true]
  --help-style, -y  Choose the level of detail displayed by the help command
                           [choices: "all", "scripts", "basic"] [default: "all"]
  -h, --help        Show help                                          [boolean]
  -v, --version     Show version number                                [boolean]

Examples:
  ../../../../bin/node_modules/nps/dist/bi  Runs the `test` script then the
  n/nps.js test build                       `build` script
  ../../../../bin/node_modules/nps/dist/bi  Runs the `test` script and forwards
  n/nps.js "test --cover" "build --prod"    the "--cover" flag then the `build`
                                            script and forwards the "--prod"
                                            flag

Problem description:
This output does not include the section Available scripts that you get when you run nps help.
It also does not include the command help in the Commands: section, so you can't find that out without reading the documentation
Suggested solution:
-h and --help should also list available scripts. This is IMHO the least surprising UX.

Hi @wmertens, thanks for the issue. I agree listing available scripts with -h or --help makes sense from a UX perspective. Would you be free to make a PR for this?


Google Chrome 32.0.1700.107 portable not work (42.xxx not work too). Work only Firefox 38.0.5 portable

Tested on
http://stephenlb.github.io/webrtc-sdk/

Wrox 4 me!

Should be good now -> https://www.pubnub.com/developers/demos/webrtc/


Falha ao iniciar o servidor Brevent

Redmi/spes_global/spes:13/TKQ1.221114.001/V8<IP_ADDRESS>.TGCMIXM:user/release-keys
library: /data/app/~~bKMQUeToXAy5UvVeJaVPOA==/me.piebridge.brevent-jeSu3gPvdqWaaBb9tq8rBA==/base.apk!/lib/arm64-v8a/libbrevent.so
apk: /data/app/~~bKMQUeToXAy5UvVeJaVPOA==/me.piebridge.brevent-jeSu3gPvdqWaaBb9tq8rBA==/base.apk, name: lib/arm64-v8a/libbrevent.so
use exists /data/local/tmp/brevent
checking for server..fail
[command] pm path me.piebridge.brevent
package:/data/app/~~bKMQUeToXAy5UvVeJaVPOA==/me.piebridge.brevent-jeSu3gPvdqWaaBb9tq8rBA==/base.apk
please report bug to https://github.com/brevent/Brevent/issues/new with logs below
Click to show logs
--- crash start ---
[command] logcat -b crash -t '06-19 17:29:30.000' -d
--- crash end ---
--- brevent start ---
[command] logcat -b main -t '06-19 17:29:30.000' -d -s BreventLoader BreventServer
--- brevent end ---

please report bug to https://github.com/brevent/Brevent/issues/new with logs above
SE ALGUÉM SOUBER COMO RESOLVER ISSO AÍ

Aparece essa mensagem quando eu tento conectar o servidor do Brevent, começou a ocorrer isso aí depois da segunda tentativa de conectar, a primeira foi de boa.

fail with no log, we cannot do anything.


Adding Berserker Rage

Is it possible to add the spell Berserker Rage (ID=18499) for the warrior please? I use it to generate more rage but I can't add it on the settings

Berserker rage is not useful for warrior dps as currently the sim doesn't have any damage taken mechanics for dps. For prot it might be partially useful, however, rage has never been an issue for prot. There's no promise, but I'll keep this as low priority suggestion for now.

Okay I understand. I used to put the two points on the talent tree to have the 20 rage points bonus. That's the way I meant "use it to generate more rage". It's still 20 rage points every 20 secs
Thanks a lot for your time and your comment !


Unable to log in to Stratux raspi

Stratux version: stratux-v1.6r1-eu027-3d07b461-us

Stratux config:
SDR

[ ] single
[ X] dual

GPS

[ X] yes
[ ] no
type:

AHRS

[ ] yes
[ ] no

power source: Battery pack
usb cable:

EFB app and version: (e.g., WingX Pro7 8.6.2)
EFB platform: (e.g., iOS 9.2)
EFB hardware: (e.g., iPad Mini 2)

Description of your issue:
I am using a pre-built kit and trying to log in to the Raspberry pi with Stratux v 1.6 Image flashed with log in credentials "pi" and password "raspberry". As seen in the screen below, typing "pi" results in no change, neither does typing "raspberry". Please help me log in to the Raspberry Pi. I even tried flashing a new SD card with the same v1.6 image, but it led to the same result.

If possible, enable "Replay Logs", reproduce the problem, and provide a copy of the logs in http://<IP_ADDRESS>/logs/stratux/ and http://<IP_ADDRESS>/logs/stratux.log

.

It sounds like your keyboard is not being recognized if you're typing "pi" right there and nothing is showing up. If you're using a wireless keyboard, try a wired one. If that doesn't work, try searching the broader internet for why typing does not show up at the login prompt on my RPi. Or something like that.

Which “v 1.6 image, specifically?
Sent from my iPhone

On Mar 28, 2022, at 3:27 PM, Jigisha Sampat @.***> wrote:

Stratux version: stratux-v1.6r1-eu027-3d07b461-us
Stratux config:
SDR
single
[ X] dual
GPS
[ X] yes
no
type:
AHRS
yes
no
power source: Battery pack
usb cable:
EFB app and version: (e.g., WingX Pro7 8.6.2)
EFB platform: (e.g., iOS 9.2)
EFB hardware: (e.g., iPad Mini 2)
Description of your issue:
I am using a pre-built kit and trying to log in to the Raspberry pi with Stratux v 1.6 Image flashed with log in credentials "pi" and password "raspberry". As seen in the screen below, typing "pi" results in no change, neither does typing "raspberry". Please help me log in to the Raspberry Pi. I even tried flashing a new SD card with the same v1.6 image, but it led to the same result.
If possible, enable "Replay Logs", reproduce the problem, and provide a copy of the logs in http://<IP_ADDRESS>/logs/stratux/ and http://<IP_ADDRESS>/logs/stratux.log
.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.

@pp4life it was a faulty cable on the keyboard, thank you! I am further trying to access the .go files on the raspberry pi, could you guide me on how to look for the same? Rn I am only able to view the startup service files.
@wa9als its v1.6r1-eu027-3d07b461-us.img file

I can't help you on the programming side. However, why do you need the .go files from the RPi? Aren't they all right here in this repository? It's an open source project, right?

@pp4life Yes, but I am trying to access them on the RPi machine. I basically want to ultimately access all the positional data logs from a run of stratux and save them as a CSV. Do you have any ideas on how to do the same? I am not the greatest at programming either.

You can turn on and off logs web interface. I'm not too familiar with what it'll log, but I think everything. Be warned, it's a lot of data and isn't meant to be used by the casual user. Connect to the Stratux via WiFi then open a web browser to <IP_ADDRESS>. In the menu I think you'll find somewhere to turn on logs. If not, tap on the version number at the top multiple times (7, I think) until developer mode is enabled. In any case, I just searched, "Stratux logging" and found several posts on reddit of people trying to do the same thing.


The thrown ConnectionError does not get error code

The thrown ConnectionError does not allow for the error code to be obtained. Business is unable to interact based on specific error codes, kneeling down to seek repair.

    try:
        xxxx()
    except ConnectionError as e:
        print(e.error_code)


Add Goreleaser to build releases

The files needed to build the packages I have put in the system/ folder. Some of these are duplicates from the debian folder, this is intentional since I think we can remove the ´debian`folder going forward.
The only noticable difference between our "old" debian package and these are that the tkey-ssh-agent.1 was gzip. It is not here.
Have tested the packages only on Ubuntu so far.
Both arm64 and amd64, headless and with gui.
Headless does not work with pinentry at the moment.

The generated windows binaries are yet to be verified. But it is ready for review and testing.

I have continued to verify:

Signature on our Darwin binary seems OK.
Alpine is possible to install. Since we don't sign the packages at the moment one needs to pass --allow-untrusted.
We are shipping unnecessary files for alpine, most likely.

Windows binaries (including tray) checked on windows.

Wrapped the pre-hook command in "sh -c " is the answer to make it run properly. Added a commit that fixes it.


There is very little information for learning winUI3 with C++, so it is strongly recommended to launch the C++ version

Issue type
enhancement
Which version of the app?
WinUI 3 Gallery
Description
There is very little information for learning winUI3 with C++, so it is strongly recommended to launch the C++ version。
There are no examples. You have to figure it out by yourself. Even a small problem may take a lot of time.
Since winui3 c++ functions are provided, why not provide more examples of c++ learning UI3?
So please provide a C++ version as soon as possible to encourage C++ users to learn UI3
Screenshots
No response
Windows version
No response
Additional context
No response

Thanks for the feedback! This is a suggestion we have gotten before, and unfortunately it will take a lot of resources we don't have to populate the samples with its C++ equivalent.
As such, I am closing this issue as it is not planned.


Environment Selection bar disappeared in Interactive Window

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

Open VS Code
Ctrl+Shift+P, Python Interactive Window

Actual behavior
The bar that shows current kernel/environment flashes as interactive window launches, and then completely disappears.
Expected behavior
In the Interactive Window, on top of control buttons, there used to be a bar that shows current kernel/environment, which you can click on and switch if needed.

Your Jupyter and/or Python environment
Please provide as much info as you readily know

Jupyter server running: Local
Extension version: 2020.9.111407
VS Code version: 1.49.2
Setting python.jediEnabled: true | false
Setting python.languageServer: Jedi | Microsoft | None
Python and/or Anaconda version: 3.6.10 64-bit
OS: Windows 10 1909
Virtual environment: virtualenv

Python Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

This has been fixed


Error scrape manager from consul SD

What did you do?
Consul service discovery Job for wmi and node exporters
What did you expect to see?
Expected to have all targets discovered and scraped
What did you see instead? Under which circumstances?
Node exporters were fine but nothing in discovery page and nothing scraped for wmi
Got error in log prometheus (see log)
Only one server had a wrong IP address but the whole discovery job failed. (249 IP were OK and 1 was wrong ==> no scrape at all)
Didnt find any metrics that reflect this error, impossible to monitor
sd shouldnt discard all targets if only one is wrong
Environment

System information:
Linux 3.10.0-1127.18.2.el7.x86_64 x86_64

Prometheus version:
version 2.23.0

Prometheus configuration file:

- job_name: 'generic-exporter-consul'
  scrape_timeout: 30s
  consul_sd_configs:
    - server: 'ipconsul:8500'
      token : 'token'
      datacenter: 'dc1'
      tag_separator: ';'
      services:
        - node-exporter
        - wmi-exporter

  relabel_configs:

    - source_labels: ['__meta_consul_service']
      target_label:  'job'

    - source_labels: ['__meta_consul_node']
      target_label:  'info_fqdn'
      replacement:   '$1'

Logs:

level=error ts=2021-02-03T15:13:20.828Z caller=scrape.go:421 component="scrape manager" scrape_pool=generic-exporter-consul msg="creating targets failed" err="instance 564 in group wmi-exporter: \"172.x.x.x/172.x.x.x:9182\" is not a valid hostname",

Thank you!
Do you have any idea why the IP address was not correct in consul? is that something actionable in our side?
If there is an error in a service discovery, IIRC prometheus should keep the old targets.
There should be metrics for this, but by looking at the code, indeed there are no metrics now.

It was a copy/paste error on app who wrote into consul, and yes we did correct it.
The ip shouldnt have been wrong (dont know why consul allowed it) but the problem is that it froze all scrape on for this "service" (wmi-exporter).
This behaviour is not normal and the fact that there is no metric to track thoses errors too.

just experience very similar error with ec2 SD, resulting in the entire job being dropped until the affected instance was terminated
level=error ts=2021-02-04T19:01:26.073Z caller=scrape.go:421 component="scrape manager" scrape_pool=jenkins msg="creating targets failed" err="instance 81 in group us-east-1: no address"
in this case we rewrite address to a fqdn set in another tag on the instance, this occurs when the instance is being destroyed and persists ~ 15 minutes

For reference, this is the line in the code that should have a metric so that you can detect and alert this case more easily: https://github.com/prometheus/prometheus/blob/8b215fe90725c72f570f0acfcda6c2597aa453bf/scrape/scrape.go#L421

Also, this has to be analyzed more deeply: Are we dropping targets we should better not drop in that case?

Also, this has to be analyzed more deeply: Are we dropping targets we should better not drop in that case?

For me the problem is there :
https://github.com/prometheus/prometheus/blob/8b215fe90725c72f570f0acfcda6c2597aa453bf/scrape/target.go#L455
Shouldnt return, that drop all target of the group.
Should queue errors  in a array and continue.
Return array of errors at the end.


mergeServerEnv=true hits StringIndexOutOfBoundsException in boundary condition with no env vars

MAIN PROBLEM
With v3.3-M3 liberty-maven-plugin and config
    <plugin>
        <groupId>io.openliberty.tools</groupId>
        <artifactId>liberty-maven-plugin</artifactId>
        <configuration>
            <mergeServerEnv>true</mergeServerEnv>
        </configuration>
    </plugin>

I get this error when there is "nothing to merge":

Caused by: java.lang.StringIndexOutOfBoundsException: start -1, end 1, length 7
at java.lang.AbstractStringBuilder.checkRangeSIOOBE (AbstractStringBuilder.java:1724)
at java.lang.AbstractStringBuilder.replace (AbstractStringBuilder.java:946)
at java.lang.StringBuilder.replace (StringBuilder.java:302)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.getMergedServerEnvPath (StartDebugMojoSupport.java:439)
at io.openliberty.tools.maven.server.StartDebugMojoSupport.copyConfigFiles (StartDebugMojoSupport.java:349)
at io.openliberty.tools.maven.server.CreateServerMojo.doExecute (CreateServerMojo.java:87)
at org.codehaus.mojo.pluginsupport.MojoSupport.execute (MojoSupport.java:122)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)

It would be better to tolerate this as a boundary condition.
The reason I have set merge to "true" (with nothing to merge) is that my project is a template that can be added on to and I want to keep the generated keystore password if an env is added.
Also it's possible to have no env vars in the POM but to do mvn ... -Dliberty.env.foo=bar
DOC
I think this text from:  https://github.com/OpenLiberty/ci.maven/blob/master/docs/common-server-parameters.md#common-server-parameters

mergeServerEnv | _Merge the server environment properties from all specified sources with the default generated server.env  file in the target server. Conflicts are resolved with the same  precedence as the replacement policy when this attribute is set to false. The properties specified in the env attribute are highest precedence... _

is trying to say that liberty.env.xyz vars have the highest precedence, when it says:  "properties specified in the env attribute"  right?
If so, I think that's not clear and could be fixed along with this.

Yes, I think we should fix this (although I can see why we didn't think it was necessary). The -Dliberty.env.* properties would be detected as server.env properties that need to be merged and would not hit this condition. As for the documentation, it is trying to say that liberty.env.* properties have highest precedence. Further down in the documentation it states:
"Note that properties specified with -D on the command line are also analyzed for the property name formats listed above and take precedence over Maven properties specified in the pom.xml."
I'll try to make it a little clearer.


check and see if Arduinos keep consistent port numbers every time they are plugged in

Need to autodetect Arduinos because USB port naming is inconstant on USB hub.


please let me know if there is any new merge request

please reply here if you have new merge request

@LinxuanHu I have pull three merge request please go through them.

@LinxuanHu I have pull three merge request please go through them.

merged

I can still see one pull req. in your repository,

YOU HAVE NO MORE PULL REQUESTS

YOU CAN TURN ON NOTIFICATIONS FOR PULL REQUESTS


bump kube-1.6.2

Codecov Report

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

@@           Coverage Diff           @@
##           master     #564   +/-   ##
=======================================
  Coverage   38.06%   38.06%
=======================================
  Files          46       46
  Lines        3145     3145
=======================================
  Hits         1197     1197
  Misses       1752     1752
  Partials      196      196

Impacted Files
Coverage Δ

core/controlplane/config/config.go
55.2% <ø> (ø)
:arrow_up:

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 467d3a8...332aed3. Read the comment docs.

@redbaron LGTM. Thanks for the contribution as always 👍


Jnuit4 parallel test runner

Relevant Issues : #855
Type of change :

[ X] New feature

Proposal for Junit parallel test runner.

@pshrm I like it. are you interested in joining a slack channel ? send your e-mail to  at gmail dot com

@pshrm oops I backed out your change completely. turns out this is just not easy with junit 4

@ptrthomas would you please let me know issues with it? I may try to resolve them.

@pshrm there was a build failure right ? it was my mistake to merge it. anyway JUnit 4 is famous for not supporting parallel, which I had kind of forgotten. the junit "child" cannot be the "Hook" just having a single "child" that calls parallel() messes up the JUnit internal data structures and flow. sorry, I am not spending any more time on this - lesson learned


[Bug]: Stuck during discard changes

Is there an existing issue for this?

[X] I have searched the existing issues

Description

Error response:
{"responseMeta":{"status":500,"success":false,"error":{"code":5000,"message":"Provided file format is incompatible, please upgrade your instance to resolve this conflict.","errorType":"INTERNAL_ERROR"}}}
appsmith version v1.8.5
Steps To Reproduce

Deploy
Discard Changes

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
1.8.5

@akash-codemonk

The error message should be displayed inside the modal. We do this for all the other git flows
Yes the status bar should be reset and provide the option to retry.
cc - @infinitetrooper

Updated UI
https://user-images.githubusercontent.com/67054171/224610601-5fc9670f-4760-4fde-a0f1-f49e6600ed8e.mov

https://appsmith-f0vvksftr-get-appsmith.vercel.app/

Verified the fix and it's working as expected


feat(v2): proper realtime hot reload with react-hot-loader

Motivation
TL;DR See Test Plan
@yangshun mentioned to me on Discord that the hot-reload is actually not working. So I did some investigation and it was indeed not working. It fallbacks to page refresh.
It was because I forgot to correctly configure the module.hot 😢.  See https://webpack.js.org/guides/hot-module-replacement/.
Anyway. I learned a lot about Hot Module Replacement. Things are slightly more complicated on our side because in development: we are a SPA and in production: we are SSR + SPA. There is a reason why tools like create-react-app is very popular, hahaha. They settle this kind of things for us
However, I remembered Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015, so in this PR I added https://github.com/gaearon/react-hot-loader to take the hot reload into next level. (Real-time hot reload)
Other changes:

Add --hot-only CLI options to let user disable fallback to full page refresh if hot-reload is not working
Use express.static to follow v1 way, contentBase should be the default publicPath
Add some TODO plugin hooks on devserver

Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Development:
Before
Notice that there is a flash of screen. This is in fact a full page refresh. This is quite similar to v1 way of live reload.

After
Notice that there is no flash of screen. This is a hot reload. In fact, it's realtime

Production:
Netlify - https://deploy-preview-1336--docusaurus-2.netlify.com/
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

This looks more like it! Finally we have hot reload :)


Search icon does not look right

Input looks isolated from entire search component.

It would look objectively better if there would not white background color, entire component would look less isolated.

Are you sure that it's not the same in Sugar?

Search in sugarizer now looks like first one, but I proposed it to look like second one.

Just checked how it works on Sugar.
On Sugar the unselected field is gray:

And when cursor is inside, the whole field has a white background:

Should be better if it could be in Sugarizer like in Sugar.

var searchInput = document.getElementById("desktopToolbar_searchtext_text");//<input> selection
var searchBox = document.getElementById("desktopToolbar_searchtext");//<div> selection

searchInput.onfocus = function(){ searchBox.style.background = "#ffffff"; }

searchInput.onblur = function(){ searchBox.style.background = "#e5e5e5";}

This should do the job?

Should be tested on the context of the app.
Try to do the update and send a PR.

Fixed in https://github.com/llaske/sugarizer/commit/55c865b7a24612d716bc025d1f056fa61854bb85
Thanks for your help to identify the issue.
You've right it was related to enyo stuff: parent control didn't call the this.inherited(arguments) when rendered.


fix: #464 use session to store search filter

Title and Issue number

Title :  Keep track of search filters while navigating between challenges
Issue No. : #464
Code Stack :  JSX
Closes #464

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have updated the Index.html file for my contribution

@sadanandpai I believe we would need a clear-filters button after this.


map_and_batch() is way faster than map().batch() ???

Please make sure that this is an issue related to performance of TensorFlow.
As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:performance_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
TensorFlow installed from (source or binary): Binary
TensorFlow version (use command below): tensorflow-gpu 2.2.0
Python version: Python 3.5.2
Bazel version (if compiling from source): None
GCC/Compiler version (if compiling from source): gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
CUDA/cuDNN version:  CUDA Version: 10.1 , libcudnn7-dev <IP_ADDRESS>-1
GPU model and memory: NVIDIA Tesla V100, Memory 32480MiB

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
When training ResNet-50 with ImageNet (in TFRecord), the time per epoch with "map_and_batch()" is 3 times faster than using ".map().batch()".
I know "map_and_batch()" will be depracated (https://www.tensorflow.org/api_docs/python/tf/data/experimental/map_and_batch?hl=en).
But if this is faster and working just fine, then why ??
Describe the expected behavior
Accoridng to some previous posts, these two API should have similar performance.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
On the same machine, when i use
dataset = dataset.apply(tf.data.experimental.map_and_batch(
lambda value: parse_record_fn(value, is_training, dtype),
batch_size=batch_size))
the results are:
Epoch 1/30
2859/2859 [==============================] - 2638s 923ms/step - accuracy: 0.5294 - loss: 2.9772 - val_accuracy: 0.6064 - lr: 0.1000 - val_loss: 2.6385
Epoch 2/30
1700/2859 [================>.............] - ETA: 17:26 - accuracy: 0.6093 - loss: 2.6254
However, when we use
dataset = dataset.map(lambda value: parse_record_fn(value, is_training, dtype))
dataset = dataset.batch(batch_size=batch_size)
the results are:
Epoch 1/30
2859/2859 [==============================] - 6732s 2s/step - loss: 2.9723 - accuracy: 0.5304 - lr: 0.1000 - val_loss: 2.6656 - val_accuracy: 0.5948
Epoch 2/30
2110/2859 [=====================>........] - ETA: 27:56 - loss: 2.6110 - accuracy: 0.6128

Take a look at https://github.com/tensorflow/tensorflow/issues/20059


Always receive 404/401 :(

Hey guys...
Well, I making a GET request for my domain http://mydomain.com/api/v1/angles/3 using HTTPPie/curl and everthing works fine.
But when I try make the same request with Alamofire I always receive 404! That is my code:
let headers = [
            "Authorization": "mytoken" // its just a plane token
        ]
        Alamofire.request(.GET, "http://mydomain.com/api/v1/angles/3", headers: headers)
            .responseJSON { response in
                print(response.request)  // original URL request
                print(response.response) // URL response always return status code 404

        }

When I add a slash in my URL the request return 401, but I certify any times, my token is correct :(
let headers = [
            "Authorization": "mytoken" // its just a plane token
        ]
        Alamofire.request(.GET, "http://mydomain.com/api/v1/angles/3/", headers: headers)
            .responseJSON { response in
                print(response.request)  // original URL request
                print(response.response) // URL response always return status code 401

        }

Someone know what happening? :(

Hi @bkawakami,
Github is for reporting issues and new feature requests. Questions like these belong on Stack Overflow with an Alamofire tag.
Cheers.


Skip property from generics

I think I hit a bug in Obfuscar while upgrading from 2.2.10 to 2.2.22 where an interface's property is not properly handled, so I get Method X in type Y from assembly Z does not have an implementation error while trying to build applications that links against the obfuscated lib.
The problem here is I can't seem to be able to properly skip ignoring the type so that it is not crunched out by Obfuscar.
This more or less reproduces the scenario:
file1.cs
namespace My.Application.Here
{
    public interface IIface
    {
            string Error { get; set; }
            bool Success { get; set; }
    }
}

file2.cs
namespace My.Application.Here
{
    public class Implemme<T> : IIface
    {
            public string Error { get; set; }
            public bool Success { get; set; }
    }
}

So, what I would get when I try to reference this from outside is something like:
Method 'get_Error' in type My.Application.Here.a from assembly 'MyAssembly, Verison=<IP_ADDRESS>, (...)' does not have an implementation
Adding this to obfuscar.xml didn't help:
<SkipProperty type="My.Application.Here.Implemme" name="Error" />

I suspect that's because I should prepend/append something as Implemme is a generic type. Should I just use a regexp (that may potentially hit stuff I didn't want to if the names get similar), or is there a way to ensure I only get the very type (and its possible type specifications)?

Please provide a complete sample project.

I can't promptly write a dummy solution to reproduce the issue, I was actually just looking into ways to properly override the default behavior at least to get going.
I walked back between versions and 2.2.20 works for me (so introduced with 2.2.21 if that helps). I'll close this issue now and reopen when I have time to provide a test case.

not too big a diff between versions .20 and .21... the commit 3bd00128cc0bc938a1474a56aafae32bd263d9f7 is really likely to be the one that introduced the issue for me.