not displayed icons in file browser

Description
Hi. Icons are not displayed

Neovim version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by<EMAIL_ADDRESS>
Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Operating system and version
Ubuntu 20.04.5 LTS
Steps to reproduce
open telescope-file-browser
Expected behavior
see the icon
Actual behavior
not see the icon
Minimal config
lua << EOF

  require('telescope').setup{
    defaults = {
      file_ignore_patterns = {"node_modules"}
    },
    extensions = {
      file_browser = {
        theme = "ivy",
        -- disables netrw and use telescope-file-browser in its place
        hijack_netrw = true,

      },
    }
  }

  require("telescope").load_extension("file_browser")
  require('telescope').load_extension('fzf')

EOF

Needs https://github.com/kyazdani42/nvim-web-devicons as per https://github.com/nvim-telescope/telescope.nvim/#optional-dependencies

Needs https://github.com/kyazdani42/nvim-web-devicons as per https://github.com/nvim-telescope/telescope.nvim/#optional-dependencies

Thank you for your response. I installed the nvim-web-devicons plugin and now it looks like this:

Please read nvim-web-devicons installation instructions carefully. You 99% don't have a patched font.

Please read nvim-web-devicons installation instructions carefully. You 99% don't have a patched font.

Thank you! It works


[BEAM-5193] Correct typos in KuduIOTest testWrite

Corrects some typos which slipped in to the original Kudu commit in error and meant the kudu testWrite() was not doing what it was intended to do.

It has gone unnoticed presumably because test environments have had more than 3 processor cores. The intended design was to ensure only at least 3 which is the minimum parallelism that the DirectRunner will provide.

The second loop here was just a typo and never executed. This corrects that to verify behaviour.

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---
---

R: @iemejia

retest this please

retest this please


Timepicker form validation is wrong when min or max timepicker attribute is used

Bug description: When updating invalid time with timpicker arrow buttons form is marked as valid even timepicker min time is greater than timepicker ng-model value.
Steps to reproduce:

Open plunker demo
Check that arrow to decrease minutes are disabled as current timepicker model equals min time
Manually set timepicker minutes to e.g. 25
Check that form is marked as invalid
Use timepicker arrow button to increase minute value.

Observed Timepicker is marked as valid
Expected Timepicker is still invalid as min time is greater than timepicker model time
Link to minimally-working plunker that reproduces the issue: http://plnkr.co/edit/klAzTHNfGQE6jE5EhdMK?p=preview
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.3
UIBS: 1.3.3
Bootstrap: 3.3.6

Closing in favor of #5957 as this will result in a complete rewrite of the widget, addressing all the outstanding issues.


[SourceKit] Update related identifiers request to serve local rename 🚥 #70255

Depends on https://github.com/apple/swift/pull/70255

This augments the related identifiers request to return more information that’s needed for local rename.
In particular this is:

Returning the compound decl name at the requested location (e.g. foo(a:)). This is needed so we can pass it to find-syntactic-rename-ranges, which will verify that the name at any given location matches this old name
Add an option to also return locations of non-editable base names, like init. While we don't want to return non-editable base names for Edit-All-In-Scope, we do want to return them if the related identifiers response is used as the input for find-syntactic-rename-ranges to rename initializer argument labels.
Return operator results in related identifiers. I don’t see a reason why we shouldn’t include them and it’s needed to rename operators
Don’t handle parameter labels when renaming operators. If we do try to handle operator labels, renaming of usages of the operators fails because they don’t have labels. This just ignores parameter labels of operators for the sake of rename. I think that’s alright because the labels won’t be used anywhere but in the function signature, so little point in including them in the rename refactoring.

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test macOS


added my stats

Issue

Description

Checklist

[x] Added contributor object in ascending order in contributors.json
[ ] Github action build passing
[x] No merge conflicts

Hey @subeshb1, please let me know my pull request is acceptable! Thanks :)

Hi @aortiz24. It is definitely acceptable and Great Job! You will be able to see your stats at https://developer-community-stats.netlify.app/ after its merged


error 'A dynamic link library (DLL) initialization routine failed. '.

I have a project that builds and works fine on the development machine (Windows 10 Home)
When I copy the built project to another machine (Windows 10 Pro) - I get the following error:
Failed to load 'C:/MyNet/testdb_Data/Plugins/sqlite3.dll' with error 'A dynamic link library (DLL) initialization routine failed.
'.
To simplify - the scene built is the CreateDBFromScript example scene
Any ideas?  Again - the same exact copied build of the project works on one machine, not on another...

I'm having the same problem with both a Windows 8.1 (pro, .NET 4.5) and Windows 10 (home, .NET 4.7). This error goes away when the machines install .NET 3.5 from the Windows Features. For whatever reason .NET 4+ does not play nice with this DLL.
This is quickly going to become an issue as Unity transitions to .NET 4.6 as the default, and begins dropping support for .NET 3.5.

I also have this problem. How to solve this problem


Automated Package Upgrade

:tada: This PR is included in version 7.7.250 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


If a qt programs has no wayland support, automatic make it run under xwayland

Basically, if that qt program doesn't have wayland support, run it under xcb instead
This would make my life easier, since I don't have to go on the journey of finding each program's .desktop file(not always located in /usr/share/applications :sob: )

No clue how to detect that, I'll have to look into that.
Have you also tried exporting QT_QPA_PLATFORM=wayland xcb to your Hyprland launch script?

I think the problem is that hyprland is setting that variable and MOZ_ENABLE_WAYLAND=1 in Compositor.cpp:170 AFAIK this is the only compositor that does that, It should be up  to the users to decide using them.

ok 1ddd7ee713cb67459eba9d78f6f2061995ec1f76

Yep that's the cause! now polymc launches, and obs also launch with wayland!


How to fix index.mjs' implicitly has an 'any' type?

After npm install npm install -D  @macfja/svelte-persistent-store I get this error.
I also restart VSCode but error still rise.
Error text:
Could not find a declaration file for module '@macfja/svelte-persistent-store'. <EMAIL_ADDRESS>implicitly has an 'any' type.
  There are types at<EMAIL_ADDRESS>but this result could not be resolved when respecting package.json "exports". The '@macfja/svelte-persistent-store' library may need to update its package.json or typings.ts(7016)

Here is a screenshot below

That's very strange:

package.json declare a types node
the types node is pointing to types/index.d.ts
the file types/index.d.ts exist
the file types/index.d.ts export writable from ./alias
the file types/alias.d.ts exist
the file types/alias.d.ts export the definition of writable

I should have miss something

After some quick test, it seems that declaring the types in the exports works.
Look like we can't have both exports and types at the root of the package.json
The documentation indicate that be default Typescript search for a declaration in the same directory of the imported file, but it don't indicate that types (at root level of package.json) is not used as a fallback

I will update teh lib to add types inside the exports node

I'll waiting for this.
Currently I just ignored types.. And it is working well...

I just publish the version 2.3.2 that should solve the typing issue


Please invite me to the Community Organization

Name
Cephas
Discord Username (if applicable) E.g John#412
A][CE#5644
Questions & suggestions?
No response

Welcome to Communitypro @CephasPeter we are so pleased to have you join us 🙌🏾🤩


What's new in Windows Server, version 2004 page needs more detail.

[Enter feedback here]
The what's new in Windows Server, version 2004 page needs to be updated with more details. Is there anything new other than Server Core container improvements ? If so, it should be stated.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 738d569b-2ab6-9681-b7b0-6af9040da16b
Version Independent ID: abda3eec-da9f-1620-5e29-6c4e99a9e4d2
Content: What's New in Windows Server, version 2004
Content Source: WindowsServerDocs/get-started/whats-new-in-windows-server-2004.md
Product: windows-server
Technology: server-general
GitHub Login: @Heidilohr
Microsoft Alias: helohr

GitHub page blame view: https://github.com/MicrosoftDocs/windowsserverdocs/blame/master/WindowsServerDocs/get-started/whats-new-in-windows-server-2004.md
Page created May 26, 2020, 12:47 PM PDT in PR #4407 (From private repo), commit https://github.com/MicrosoftDocs/windowsserverdocs/commit/2477982bfd6dc42b0eefeb648c1adefdc8d485c3
Page updated by Heidilohr on Oct 13, 2020, 11:18 AM PDT, in commit https://github.com/MicrosoftDocs/windowsserverdocs/commit/30fb6ddc320291fb89cf2b93e44879d59f9de186
  @@ -1,18 +1,20 @@
  ---
- title: What's New in Windows Server, version 2004
- description: New features in Windows Server, version 2004
+ title: What's New in Windows Server, versions 2004 20H2
+ description: New features in Windows Server, version 2004 and 20H2.
  ms.topic: article
  author: Heidilohr
  ms.author: helohr
  ms.date: 05/27/2020
  ms.localizationpriority: high
  ---

- # What's new in Windows Server, version 2004
+ # What's new in Windows Server, version 2004 and 20H2

  >Applies to: Windows Server (Semi-Annual Channel)
- To learn about the latest features in Windows, see [What's New in Windows Server](whats-new-in-windows-server.md). This topic describes some of the new features in Windows Server, version 2004.
+ To learn about the latest features in Windows, see [What's New in Windows Server](whats-new-in-windows-server.md). This topic describes some of the new features in Windows Server, version 2004 and 20H2.
+
+ Windows Server, version 20H2 is the next Semi-Annual Channel release of Windows Server, version 2004. This version focuses on reliability, performance, and other general improvements, but has no new features. Like other Semi-Annual Channel releases, it’s supported for 18 months after its release. To learn more about the support dates for Semi-Annual Channel releases, see [Windows Server release info](windows-server-release-info.md).

  ## Server Core container improvements

Click to see image details.

#please-close


Front end test ci

integrating front end testing

added commas in back end unit test
removed codecov branch from back end testing action


Feature request: bigint as data type for parameter

Reporter
Laurens / Richard
Is your feature request related to a problem? Please describe.
The parameter tag doesn't support the BIGINT data type, which forces the DB server to do data type conversion.
Describe the solution you'd like
Bigint data type to be added
Describe alternatives you've considered
None, we do not want to do data type conversion in SQL.
Additional context
Add any other context or screenshots about the feature request here.

Another approach could be to avoid the use of bigints in the database itself.

After talking to Richard / Arnold I understand what you are saying, in this particular case it was not recommended to use bigint.
Although that doesn't take away that the data type is still missing and there might be use cases where one would like/have to work with bigints.

Let's "fix" this when we have a specific use case and has become an actual problem

Let's "fix" this when we have a specific use case and has become an actual problem


Simplify label 'DNA-templated transcriptional preinitiation complex assembly'

Change label 'DNA-templated transcriptional preinitiation complex assembly' to
'transcriptional preinitiation complex assembly
(RNA-templated 'preinitiation complex' does not seem to exist)
@krchristie Is this right ?
Thanks, Pascale

@pgaudet - I don't know enough about RNA-templated transcription to say that a PIC does or does not exist for this. Personally, I prefer term names that are less ambiguous. Many times when we make term names simpler and thus potentially ambiguous, it comes back to bite us later when we discover that we have inconsistent annotations.


[Clone] Dev Home "clone a repository" filter only filters on beginning of string, not sub-strings

Dev Home version
No response
Windows build number
No response
Other software
No response
Steps to reproduce the bug
Expected result
No response
Actual result
No response
Included System Information
No response
Included Extensions Information
No response

Duplicate of #1050


Error when changing "forward_frames" parameter from 4 to 2

Hi,
I just tried changing the forward_frames parameter from 4 to 2. This should, if I understood it correctly, change the maximum number of frames in a tube from 8 to 4. I then ran the preprocessing with this parameter change to get the ground truth Btubes. When I run the training with this parameter change, I get the following error:

Rank: 0 Start!
Building TubeTK Model
MOT17 data
==> Training data : 635400
==> Validation data : 5898
Training

  0%| | 0/635400 [00THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=383 error=11 : invalid argument

  0%| | 0/635400 [00
Traceback (most recent call last):
  File "main.py", line 270, in &ltmodule>
    main(train_arg, model_arg)
  File "main.py", line 230, in main
    train(model, optimizer, data_loader, sched, tensorboard_writer, max_acc=max_acc, step_start=step)
  File "main.py", line 113, in train
    losses = run_one_iter(model, optimizer, data, scheduler, False)
  File "main.py", line 66, in run_one_iter
    losses = model(imgs, img_metas, return_loss=True, gt_tubes=gt_tubes, gt_labels=gt_labels)
  File "ANACONDA_ENV_PATH/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "ANACONDA_ENV_PATH/lib/python3.7/site-packages/torch/nn/parallel/distributed.py", line 376, in forward
    output = self.module(*inputs[0], **kwargs[0])
  File "ANACONDA_ENV_PATH/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "USER_PATH/TubeTK/network/tubetk.py", line 86, in forward
    return self.forward_train(img, img_meta, **kwargs)
  File "USER_PATH/TubeTK/network/tubetk.py", line 71, in forward_train
    x = self.extract_feat(img)
  File "USER_PATH/TubeTK/network/tubetk.py", line 63, in extract_feat
    x = self.neck(x)
  File "ANACONDA_ENV_PATH/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "USER_PATH/TubeTK/network/fpn.py", line 56, in forward
    laterals[i], scale_factor=2, mode='nearest')
RuntimeError: output with shape [1, 256, 1, 56, 72] doesn't match the broadcast shape [1, 256, 2, 56, 72]
Traceback (most recent call last):
  File "launch.py", line 95, in &ltmodule>
    main()
  File "launch.py", line 91, in main
    cmd=process.args)
subprocess.CalledProcessError: Command '['ANACONDA_ENV_PATH/bin/python', '-u', 'main.py', '--local_rank=0', '--batch_size', '1', '--config', './configs/TubeTK_resnet_50_FPN_4frame_1stride.yaml', '--logName', './logs/example_4frame_1stride', '--model_name', 'TubeTK_example_4frame_1stride']' returned non-zero exit status 1.

The line numbers might have changed very slightly since the original implementation because I added print statements in some parts. I did not change anything else in the code though.
How do I get the code to work with a different forward_frames value? Do I have to change other hyperparameters (e.g. model_stride)?
Thanks!

The downsampling rate on the temporal dimension is 8 in our implementation. That is, after inputting a video with 8 frames, the final output of the FPN only has one frame. So if you want to input 4 frames, you need to remove one downsampling layer and change the "model_stride" hyperparameter. For example, remove the final downsample layer and change the model_stride to [[2, 8],[4, 16], [4, 32], [4, 64], [4, 128]]

I changed the model_stride parameter as recommended by you and removed the final downsample layer by:

Commenting lines 134 - 135 in network/resnet.py:
# x = self.layer4(x)
# outs.append(x)
Changing line 26 of network/tubetk.py to:
self.neck = FPN(in_channels=[512, 1024], arg=arg)

It seems to be working now. Thanks!


2283_Cell_types_with_missing_definition

2283_Cell_types_with_missing_definition

Thank you for your review and help. I will implement based on your comment and rise a new ticket for the logical definition of the blood vessel.

[Logical def] Kidney blood vessel cell revise logical definition #2290


multi fetch same articles

when I click fetch button, articles which have been fetched would be added again on the page, it is not so elegant, I hope you can optimize for this

For me, after clicking the get button, new highlight for the same article will not be updated

For me, after clicking the get button, new highlight for the same article will not be updated

Yeah. I can replicate this issue with v1.4.0 too.
Thanks for the report. I will work on the fix 👍

Refer to #3


When I create a new thread, cpu and memory usage suddenly rose to 100%.

I tried to create a new thread in kivy to perform other tasks, I built a new button, and bind the start function, in this function used threading to start my program. But once the implementation of this thread, cpu and memory suddenly rose to 100%, until the crash. But when it is running alone, there is no problem. I do not understand the problem lies in which, please help me!
ps:  I tried to run the program is  local of shadowsocks
It's home page is : https://github.com/shadowsocks/shadowsocks/tree/master

Based on what you described, it's unlikely you're experiencing a kivy bug, check out our support channels, and make sure you have prepared an example.
https://github.com/kivy/kivy#support

I found the reason! In my process there is a code on the logging, the content is logging.getLogger (''). Handlers = [], each time running here, cpu and memory will suddenly rise to 100% until crash. As long as this line commented out, there is no problem. But kivy will be being given, the content is related with the logging, I think this should be kivy the logging module and the logging module of my program had a conflict.
My procedure directly on the set of logging, not derived from the new object, these settings may affect the normal operation of Kivy bars. I am looking for a solution ....

@falseen, if that's indeed the case, it may be interesting. Could you share a runnable example?

@dessant  Sure!
It's on my github home page, you can download it here. shadowsocks-kivy
I just started to create it, there are many places not perfect.
The program will start running by clicking the "start" button, and the  logging.getLogger (''). Handlers = [] is located at line 301 o f /shaowsocks-kivy/kivy/shadowsocks/shell.py.
My environment：

windows7 64bit
python34 64bit
kivy 1.9.1

I was hoping for a short, runnable example, your repo also contains binary blobs, so I will not be able to run it, shadowsocks is a pip install away.
Anyway, maybe the way kivy overwrites the root logger conflicts with shadowsocks, if you boil it down to a simple example, please take a look at this issue and see if it applies: https://github.com/kivy/kivy/issues/4322.

I seem to find the real reason.
Run logging.getLogger('').handlers = [], then run VERBOSE_LEVEL, the error will appear.
A simple example ：
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.gridlayout import GridLayout
import threading
import time
import logging
Builder.load_string("""

<RootWidget>:
    BoxLayout:
        Button:
            id: but_1
            font_size: 20
            bold: True
            text: ' Start '
            on_press: root.start_second_thread()
""")

class RootWidget(GridLayout):

    stop = threading.Event()

    def start_second_thread(self):
        threading.Thread(target=self.infinite_loop).start()

    def infinite_loop(self):
        iteration = 0
        while True:
            if self.stop.is_set():
                # Stop running this thread so the main Python process can exit.
                return
            logging.getLogger('').handlers = []
            logging.addLevelName(VERBOSE_LEVEL, 'VERBOSE')
            time.sleep(100)
            iteration += 1
            print('Infinite loop, iteration {}.'.format(iteration))
            time.sleep(1)

class ThreadedApp(App):

    def on_stop(self):
        # The Kivy event loop is about to stop, set a stop signal;
        # otherwise the app window will close, but the Python process will
        # keep running until all secondary threads exit.
        self.root.stop.set()

    def build(self):
        return RootWidget()

if __name__ == '__main__':
    ThreadedApp().run()

Obviously, the key to the problem is that xx, Kivy APP seems to cover this variable VERBOSE_LEVEL.

I have ran your last example on py3.4, windows 10, kivy master, and there is no error, it loops as expected and it exits cleanly when the app is closed.

Oh, it seems because more than one VERBOSE_LEVEL = 5,  I re-modified the code, you can try again.

Now the declaration of VERBOSE_LEVEL was removed, of course it will produce a NameError.

I have further replaced logging.addLevelName(VERBOSE_LEVEL, 'VERBOSE') with logging.addLevelName(5, 'VERBOSE') and the thread runs without issues, as the first version.

Looks not for one reason, there are multiple reasons. I'm troubleshooting the root cause of the problem.

I'm only looking for an example which reproduces the issue for now. 😁

My English is so poor that I can not express too much complexity. You follow my example above can reproduce this problem. The key lies in this code:
logging.getLogger('').handlers = []
logging.addLevelName(VERBOSE_LEVEL, 'VERBOSE')

Replacing VERBOSE_LEVEL with 5 can certainly solve the problem, but this is not the root cause of the problem. I can not tell where the root cause of the problem is, but I can be sure that running logging.getLogger (''). Handlers = [] and VERBOSE_LEVEL  will cause the problem.

@falseen, look, your english has nothing to do with it. :)
Please copy and paste the example from here: https://github.com/kivy/kivy/issues/4933#issuecomment-274069804
Run it.
It will crash with a NameError, because the VERBOSE_LEVEL variable was not declared, That is a programming error.
Before the post was edited by you (which removed the VERBOSE_LEVEL declaration), the example was running and working fine. So you have to share an example which shows your issue, without us needing to modify it in any way.

But when I run the above example is not a NameError, it will directly lead to panic.
Now I want to know is that when you run the above example is prompted NameError or crash?
What I mean is that after running logging.getLogger (''). Handlers = [] kivy seems to have added a global variable called VERBOSE_LEVEL. At least here is the case.

It crashes with a NameError when the Start button is pressed.

If I do not run logging.getLogger (''). Handlers = [], running VERBOSE_LEVEL will normally throw a NameError error. But running logging.getLogger (''). Handlers = [], and then run VERBOSE_LEVEL it will crash.

If you are there all the normal, then it may be my environment has a question. I went on to find out why. thank you.

You could open an issue for shadowsocks and ask them to not touch the root logger. We will also likely do the same in kivy, It is just bad practice, and leads to all kinds of interoperability issues.

I can change the shadowsocks code, but this is not a good idea. The best is to find the root cause. From the present situation, it seems that more than one reason. I now skip the logging problem, and look for another problem.

Now I am sure, running logging.getLogger (''). Handlers = [], and then run like logging.info() such statements, it will certainly be the problem.

I reproduce the problem in ubuntu, although it does not like Windows, like crashes, but the cpu occupancy has reached 100%. See pictures.

Could you test if commenting out this line in kivy fixes your issue?
https://github.com/kivy/kivy/blob/5913d861f45119dfff0b6cb5d004e6f79858563c/kivy/logger.py#L320

Ok, I can finally reproduce your issue with the last example you posted.
If you comment out that line in kivy, the chash should be solved, but you may see an infinite recursion when the app is closed.
Here is a work in progress pr: https://github.com/kivy/kivy/pull/4940.

Also, the exception in the thread occurs because logging.getLogger('') returns the root logger, which is currently also the kivy logger, so you mess up the kivy logger handlers.

You're great, it's not dead. But it began to suggest the following error:

I modified logger.py according to your pr. My kivy version is Kivy-1.9.2.dev0

Yes, the pr will need further changes.

I tried to comment out the following line in logger.py, the problem seems to be solved.
sys.stderr = LogFile('stderr', Logger.warning)

This is an educated guess as to the cause rather than a confirmed and tested statement:

Kivy monkey patches its Kivy.Logger to be the root logger, so when a call to getLogger('') is made, the Kivy Logger is returned.
All the handlers were all removed from this logger by the user.

(By the way, it is probably safer to call removeHandler() than just overwrite the attribute.)

So now, when any log message is made, there are no handlers available.
Since Python 3.2, if there are no handlers available on a logger (nor any of its ancestors), a logger called logging.lastResort is used.
lastResort sends the message to sys.stderr.
But Kivy's Logger redirects sys.stderr back into the log system, where it gets raised again, causing an infinite loop.

There are a number of existing issues on various Kivy behaviours here, but I think this explains why there was an infinite loop.


Sandbox - execute returns 401 and re-tries

Potentially a CSRF retry?

It looks like the problem I wanted to ask about. I'm integrating PayPal checkout and testing it in Sandbox. The problem is that EVERY time it makes 2 execute payment calls, it has been like this for at least last month: first call to execute payment which always fails with 401 and then makes another payment execute call and it return 200.

Payment actually is executed successfully, payment.execute.then() is executed, but onError event is called too, and that's (this onError function) where I wanted to show a popup saying "there's an error and payment didn't went through" and possibly reload/redirect after, but since onError happens every single time even on successful payments it doesn't seem it can be used at all...
Questions:

Failing on 1st call to execute payment which always causes onError is a Sandbox only issue?
What's the best way of catching errors during payment execution? I've tried to simulate error by providing same invoice number twice and code below doesn't catch this error, but onError() is called with no info in it (that's parameters of onError(data, actions) function:  "data":"{}","actions":null) This is the code:

		onAuthorize: function(data, actions) {
			// Make a call to the REST api to execute the payment
			var result = actions.payment.execute()
				.then(function (response) {
// persisting payment response, showing success window
				}).catch(function(error) {
// catching error in payment execution (or in further execution of my code)
					});
				});
			return result;
		},
		onError: function(data, actions) {
// logging error, showing error popup and reloading page
		},

So how can I catch there errors and get error description to tell the client that it has insufficient funds or log other errors (like duplicate invoice number) ?
Thank you in advance

Failing on 1st call to execute payment which always causes onError is a Sandbox only issue?

From my testing, yes, this only occurs on sandbox.

So how can I catch there errors and get error description to tell the client that it has insufficient funds or log other errors (like duplicate invoice number) ?

Right now the client-side execute doesn't provide granular errors. This is a backlog item for us. I've raised an issue to track:
https://github.com/paypal/paypal-checkout/issues/479

Thank you for answering, looking forward to #479


tcp: check option length before d_len update

Signed-off-by: zhanghongyu<EMAIL_ADDRESS>Change-Id: I67eb94228c32f70eb5622426e680ed562eb9d42d
Summary
Impact
Testing

@zhhyu7 remove the change-id from commit message.


HeartRenderer does not provide DrawContext

As specified in the commit bae76d440f41299ea4fff4f48e4f74c65d322df8, HeartRenderer does not use DrawContext. This is a problem, as adding compatibility for it forces the construction of our own DrawContext.
An example of this is the following Mixin snippet when porting Spectrum to 1.20:
	private void renderPlayerHeartsAzureDikeInjector(MatrixStack poseStack, PlayerEntity player, int x, int y, int maxHealth, int currentHealth, int displayHealth, int absorption, boolean renderHighlight, CallbackInfo ci) {
		InGameHud hud = MinecraftClient.getInstance().inGameHud;
		int scaledWidth = ((InGameHudAccessor) hud).getWidth();
		int scaledHeight = ((InGameHudAccessor) hud).getHeight();

                // Construct own DrawContext, as its not being passed. Loses data, and could produce undefined behavior or bugs
		DrawContext context = new DrawContext(MinecraftClient.getInstance(), MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers());
		context.getMatrices().multiplyPositionMatrix(poseStack.peek().getPositionMatrix());

                // Pass to our own API
		HudRenderers.renderAzureDike(context, scaledWidth, scaledHeight, player);
	}

Ah, I missed switching to this. I'll get to it as soon as I am back from vacation (sometime next week).

I assume that DrawContext refered to GuiGraphics from official mappings

I just realised that there is no need for a mixin here. The way I do my injection is by just making it so that the vanilla render loop never starts, I do not overwrite the whole vanilla method. You can see that here
https://github.com/Terrails/colorful-hearts/blob/bae76d440f41299ea4fff4f48e4f74c65d322df8/fabric/src/main/java/terrails/colorfulhearts/fabric/mixin/GuiMixin.java#L22-L26
The already present solution where your render is injected at TAIL of vanilla's renderHealthBar method should work without any issues


"TypeError: decoding Unicode is not supported" when trying to install using pip

Hi.
Thank you for sphinxcontrib-fulltoc.
Windows 7 Enterprise 64-bit SP1
Python 2.7.9 (x86-64)
I installed sphinx using pip without error:
>pip install sphinx
Collecting Sphinx
  Downloading Sphinx-1.3.1-py2.py3-none-any.whl (1.3MB)
    100% |################################| 1.3MB 350kB/s
Collecting sphinx-rtd-theme<0.2,>=0.1 (from Sphinx)
  Downloading sphinx_rtd_theme-0.1.8-py2.py3-none-any.whl (418kB)
    100% |################################| 421kB 890kB/s
Requirement already satisfied (use --upgrade to upgrade): colorama in c:\python27\lib\site-packages (from Sphin
x)
Collecting snowballstemmer>=1.1 (from Sphinx)
  Downloading snowballstemmer-1.2.0.tar.gz (49kB)
    100% |################################| 53kB 1.6MB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.4 in c:\python27\lib\site-packages (from Sphin
x)
Collecting Pygments>=2.0 (from Sphinx)
  Downloading Pygments-2.0.2-py2-none-any.whl (672kB)
    100% |################################| 675kB 203kB/s
Collecting docutils>=0.11 (from Sphinx)
  Downloading docutils-0.12.tar.gz (1.6MB)
    100% |################################| 1.6MB 267kB/s
Collecting babel>=1.3 (from Sphinx)
  Downloading Babel-1.3.tar.gz (3.4MB)
    100% |################################| 3.4MB 158kB/s
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.3 in c:\python27\lib\site-packages (from Sp
hinx)
Collecting alabaster<0.8,>=0.7 (from Sphinx)
  Downloading alabaster-0.7.4-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pytz>=0a in c:\python27\lib\site-packages (from babel
>=1.3->Sphinx)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in c:\python27\lib\site-packages (from Jin
ja2>=2.3->Sphinx)
Installing collected packages: sphinx-rtd-theme, snowballstemmer, Pygments, docutils, babel, alabaster, Sphinx
  Running setup.py install for snowballstemmer
  Running setup.py install for docutils
  Running setup.py install for babel
Successfully installed Pygments-2.0.2 Sphinx-1.3.1 alabaster-0.7.4 babel-1.3 docutils-0.12 snowballstemmer-1.2.
0 sphinx-rtd-theme-0.1.8

But then when I trying installing sphinxcontrib-fulltoc, I get an error:
>pip install sphinxcontrib-fulltoc
Collecting sphinxcontrib-fulltoc
  Downloading sphinxcontrib-fulltoc-1.1.tar.gz
Installing collected packages: sphinxcontrib-fulltoc
  Running setup.py install for sphinxcontrib-fulltoc
    Complete output from command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\rami~1.abu\\appdata\\local\\temp\\pip-build-mfyh2w\\sphinxcontrib-fulltoc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\rami~1.abu\appdata\local\temp\pip-ienfui-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\sphinxcontrib
    copying sphinxcontrib\fulltoc.py -> build\lib\sphinxcontrib
    copying sphinxcontrib\__init__.py -> build\lib\sphinxcontrib
    running egg_info
    writing sphinxcontrib_fulltoc.egg-info\PKG-INFO
    writing namespace_packages to sphinxcontrib_fulltoc.egg-info\namespace_packages.txt
    writing top-level names to sphinxcontrib_fulltoc.egg-info\top_level.txt
    writing dependency_links to sphinxcontrib_fulltoc.egg-info\dependency_links.txt
    [pbr] Reusing existing SOURCES.txt
    running install_lib
    copying sphinxcontrib/fulltoc.py -> C:\Python27\Lib\site-packages\sphinxcontrib
    Skipping installation of C:\Python27\Lib\site-packages\sphinxcontrib\__init__.py (namespace package)
    byte-compiling C:\Python27\Lib\site-packages\sphinxcontrib\fulltoc.py to fulltoc.pyc
    running install_egg_info
    Copying sphinxcontrib_fulltoc.egg-info to C:\Python27\Lib\site-packages\sphinxcontrib_fulltoc-1.1-py2.7.egg-info
    Installing C:\Python27\Lib\site-packages\sphinxcontrib_fulltoc-1.1-py2.7-nspkg.pth
    running install_scripts
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\rami~1.abu\appdata\local\temp\pip-build-mfyh2w\sphinxcontrib-fulltoc\setup.py", line 29, in <module>
        pbr=True)
      File "C:\Python27\lib\distutils\core.py", line 151, in setup
        dist.run_commands()
      File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "C:\Python27\lib\site-packages\pbr\packaging.py", line 203, in run
        return du_install.install.run(self)
      File "C:\Python27\lib\distutils\command\install.py", line 575, in run
        self.run_command(cmd_name)
      File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "C:\Python27\lib\site-packages\pbr\packaging.py", line 372, in run
        for args in get_script_args(dist, executable, is_wininst):
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1934, in get_script_args
        header = get_script_header("", executable, wininst)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1603, in get_script_header
        if not isascii(hdr):
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 86, in isascii
        unicode(s, 'ascii')
    TypeError: decoding Unicode is not supported

    ----------------------------------------
    Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\rami~1.abu\\appdata\\local\\temp\\pip-build-mfyh2w\\sphinxcontrib-fulltoc\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\rami~1.abu\appdata\local\temp\pip-ienfui-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\rami~1.abu\appdata\local\temp\pip-build-mfyh2w\sphinxcontrib-fulltoc

Any ideas?
Thank you.

Hi, i solved upgrading the setuptools by running: pip install -U setuptools

@megha24 thanks, a very old setuptools is what struck me as most likely source of the problem, though I did try testing with setuptools==0.6c11 and pip==1.5.4 and couldn't reproduce.
@ramiabughazaleh if you hit this again can you report the versions of setuptools and pip and I'll see if I can find the source, otherwise recommend running with a relatively recent version of both.


Static analysis for rebranding

I wrote a static analysis script that looks for likely rebranding errors, and also fixed all the issues it found.

Looks like the message signing unit test was expecting the wrong behavior.  Now that it's fixed, the test fails.  How nice.  I'll fix that before trying to merge.

Looks like the message signing unit test was expecting the wrong behavior. Now that it's fixed, the test fails. How nice. I'll fix that before trying to merge.

Fixed.  If this PR passes Travis, then I think it's ready to merge.

Passed Travis, modolu the known AppImage bug that's not related to this PR.  Merging.


Migrate over default lint ignores, environments

Migrates these over, which gives us greater flexibility with security linters, among other things. This PR will be a no-op until the next release of the CLI, since these are not yet merged from sourced plugins.
In total, handles the following:

Adds default lint ignores
Adds default environment(s)
Removes trunk-cache-prune definition (will be internal still)
Fixes a small bug where the change set of this PR was triggering all latest linter tests to run

failure() || success() feels like it could be always() - but fix that separately

failure() and success() do not cover the full set of options (always() is more encompassing than I want. Can talk more offline)


dvt&fch

corrected

corrected

Really? I still see all modifications applied to BitcoinJob instead of a derived class.

otherwise on real net you get:
[2021-09-17 17:11:28.9573] [E] [dvt] [Bitcoin Payout Handler] Wallet is locked but walletPassword was not configured. Unable to send funds.

Closed due to lack of interest


Improvement Request

Hello Rob!
Could be usefull to have the possibility to take the raw value out from the class.
Is possible to have the rawData keyword to have the raw value from the board?
Also, could be usefull to insert a fourth error status, "No Board", checking if all the bits of the message are == 0.
I'm doing some test but the actual code is not discriminating from no thermocouple and no board at all.

Hi,
Good ideas,
No board
Definitely useful as in real life broken wires / loose connector do happen. Mostly after some time.
I don't know if checking all bits are zero will work in all cases. I am thinking of broken wire and a floating pin. That would result in random bits so not all necessary zero. Using a pull up would make all bits 1 prevents a floating line, but if it would solve all or disrupts something else needs more thinking / investigation. Agree?
raw data
would not be difficult, something like line 99
uint32_t value = 0;

should become a global var raw (within the class) and then add a
uint32_t getRawData() { return raw; };

The access function prevents overwriting the raw data from an application.
Please post a Pull Request for raw data it should be straightforward and I have little time this week.
(working on another lib)

needs more thinking / investigation. Agree?

For sure, at the moment i'm out of stock of boards, in a few days i should receive new one.

Please post a Pull Request for raw data it should be straightforward and I have little time this week.

I think everything i've done it correctly
Pull request #2

@RobTillaart Hey there,
I was working with @Banfotech in order to give him a little bit of help.
We were discussing about your library and found the issue above.
As you did i suggest him to try with a pull-up resistor on MOSI line in order to check if it's possible to have a line of 1's without issues to MAX31855 functionality.
ASAP we'll test and let you know, i've checked also adafruit library and found that even theirs is not able to understand if a board is connected or not and to me it would be great to add this feature.
In the meantime I'm going to make the PR you've requested
BR

👍

Bit set
Description

None
OK

0
thermocouple open circuit

1
thermocouple short to GND

2
thermocouple short to VCC

This is now solved imho, the NO BOARD is named NO COMMUNICATION and the rawData is implemented too.


Voxel Edit

Add my Voxel Edit project to the website's projects page.

Finished this a while back


Improve saving Test Results to csv

As part of a code review, Ben noted the save-as feature for csv files should really be using streaming interfaces.
https://github.com/CDCgov/prime-simplereport/pull/337#pullrequestreview-553366884

We should move towards encoding our results as JSON instead of investing more in our CSV format. current architecture work ongoing https://app.zenhub.com/workspaces/simplereport-5ff8be8854ae8b000e378210/issues/cdcgov/prime-simplereport/667

If the feature is to let facilities download their own test results, then I suspect they'd rather have csv. However, the columns used by the datahub probably won't be what they want.


Add Tests

Tests are needed for the following:

LiteCollection
LiteModel.findPath()

Tests should be added for each method of each class.

[ ] Add stress tests

#23 resolves this issue.


Error: Attempting to load Segment twice for Karma Jasmine Tests

I'm trying to include route change tracking for UI-Router events in the run() method, like below:
  angular
    .module('enterprise')
    .run(onRun);

  function onRun($rootScope, segment) {
    var deregistrationCallback = $rootScope.$on('$stateChangeSuccess', function() {
        segment.page();
    });

    $rootScope.$on('$destroy', deregistrationCallback);
  }

However, my karma jasmine tests are throwing these errors:
PhantomJS 1.9.8 (Mac OS X 0.0.0) service: trackingService tests
        Error: Attempting to load Segment twice.

Can you share the code you use to set up your tests? Specifically how you initialize your module and/or ngSegment in the beforeEach of your test script.
That error is thrown either when the Segment Analytics.js script has already been included on the page (which sets analytics.initialized to true), or when segmentLoader.load() is called twice. I think it may be that the same instance of the segment loader is being used in two tests.

Here is my test code:
(function() {
  'use strict';

  describe('service: resultService', function() {
    var resultService;
    var study;

    // Load the service's module
    beforeEach(module('enterprise', 'mockData'));  // injects 'testdata.mock.js' file

    beforeEach(inject(function($rootScope, _resultService_) {
      // Initialise injectables
      resultService = _resultService_;
      study = AppStudyRes;
    }));

    it('should exist', function() {
      expect(!!resultService).toBe(true);
      expect(resultService.getStudy).toBeDefined();
    });

  });
})();

Here is the error produced by the failing test:
PhantomJS 1.9.8 (Mac OS X 0.0.0) service: resultService should exist FAILED
	Error: Attempting to load Segment twice.
	    at /Users/dennislo/app/bower_components/angular-segment-analytics/segment.min.js:1


Build copts may not need LLVM_ENABLE_RTTI

See #182 and #185 for context. Once the CMake build is more stable, we should be able to debug that particular option to see if it is really needed.

I believe it is needed for the python bindings. I can see a path to it not being needed from my work on npcomp, but if it isn't hurting anyone right now, it will reduce churn to just leave it on for now.

(if we want smaller builds we'll want it disabled, though #898)

I believe we only presently need it for LLVM when we have Python bindings in the loop, and we have less size pressure on that side right now (or once AOT lands).
And to be clear, I've been able to triage and fix the vague linkage errors that cause this each time before, but it is basically walking through a pile of glass and is very likely to regress on each integrate. I'd like to write a little tool to diagnose the issue where vague, multiple linkage of vtables is coming into the build and then fix upstream versus hunting and pecking through.

Oh, I misread the name as "IREE_ENABLE_RTTI" - yeah, LLVM side doesn't matter.

Don't care about the compiler-side having it enabled (especially with llvmjit getting evicted).


Adding an option to get only envs and nodes.

Adding a env_node_only (i.e. -e) option. Uses the Chef RESTful API to first get envs, and their nodes. This is faster than getting all node objects and querying them. Allows hundreds of Chef nodes to be available in Rundeck quickly.
Cost:

Some information is lost (e.g. machine type etc.).
Machine name is set to unix for any machine.

Usage example:
sudo ./chef-rundeck -c /home/chef/.chef/knife.rb -u username -w
http://servername:4040 -e
PS: I am new to git/ruby

@sriramgd ^^


Made it so that the default config directory on Windows is AppData\Local\catnip

I don't use Windows, so this might not work. (It probably does though.)

I have a old laptop running windows. I probably should test if every thing still works anyways..


Possible Rultor Bug

In #223, I asked @yegor256 to make a release. After the release was ordered and performed, two issues occurred:

Rultor named the release after the issue (i.e., "Release" instead of 0.1.18). Maybe, it is not a bug, but for the future, we should consider naming release issues properly.
Rultor forgot to update the EO version in sandbox/pom.xml, so a manual update from 0.1.15 to 0.1.18 is needed.

@yegor256 what do you think, Yegor? Is it a bug (especially, the second problem)?

You @nlchar/z need to have one of these roles in order to do "Request order start": ARC, PO; I'm sorry to say this, but at the moment you've got no roles in this project

@nlchar the first one is not a bug, it's a feature. The second one is also not really a bug, but we can automate it.


Feature/IL-300/scrollup

added button to scroll up to the top of the screen
removed scale on buttons
minor fixes with margins

the button after adding an item to cart should contain the text that the item is in cart and be locked

when item is added this button splits into two parts indicating that item was added


perf(wasm): generate scope text with visitor

Follow-on after #5232. oxc_wasm build scopes text with a single AST traversal. Previous implementation was O($n^2$).
If we can assume scopes are listed in traversal order, then we could do it a bit more efficiently just from ScopeTree, but this approach will handle out-of-order scope IDs (which you'd get if printing a post-transform ScopeTree).
Also reduce creating and discarding Strings for indentation - reuse a single string instead.

#5264  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

I am considering merging scope and symbol into one, based on
https://github.com/oxc-project/oxc/blob/813e10ce507760df23dea67aef88de6791b67da5/crates/oxc_semantic/tests/main.rs#L9-L96
Because I think keeping the consistent with our semantic snapshot is easy to debug the bugs

I see your point of it being easier for debugging if the format is consistent. But I think visually it might be a bit too much information all in one place to combine the 2. It'd work if you had expand/contract buttons so you didn't have to see everything at once. Maybe that's achievable with our new fancy Playground?


[Bug]: API response is stringified when it's a HTML response

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
API response is stringified when it's a HTML response, for example when using yahoo.com

Steps To Reproduce

Run an API query for yahoo.com and observe the response to be as seen in the image above. Expectation is that it needs to be be in readable format

Environment
Release
Version
Cloud

Unassigning myself since this is a client side change. The solution here would be to pretty print the response after taking the content type and data into account.


clean before publish

Ah yeah! That's a lot of stuff to clean :D
I think this is cause I'm using yarn link


Laravel 5.0 Support

Any thought's on updating this package for 5.0? Looking through your code, I don't see any dependency issues using illuminate/support: ~5.0 over 4.2. Is allowing installation of this package with either versions possible through composer? I know Laravel 5.0 is in it's infancy at the moment, but I'd definitely like to try this package out with it.

I did some updates to support laravel 5. https://github.com/jildertmiedema/laravel-plupload/tree/v0.3.0

Great thanks!


Including embassy in CI: the name HAL is defined multiple times

Hi, We'd like to support the embassy async runtime, and we're taking baby steps toward that goal.
I'd appreciate any hints or tips on what we should be doing.
Right now we can't seem to include it in a test crate (workspace member).  The error we are getting is when cargo tries to compile embassy-macros:
Compiling embassy-macros v0.1.0 (/home/runner/work/minitrace-rust/minitrace-rust/minitrace-tests/embassy/embassy-macros)
error[E0428]: the name `HAL` is defined multiple times
  --> minitrace-tests/embassy/embassy-macros/src/macros/main.rs:11:1
   |
9  | const HAL: Option<&str> = Some("embassy_stm32");
   | ------------------------------------------------ previous definition of the value `HAL` here
10 | #[cfg(feature = "nrf")]
11 | const HAL: Option<&str> = Some("embassy_nrf");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HAL` redefined here
   |
   = note: `HAL` must be defined only once in the value namespace of this module

error[E0428]: the name `HAL` is defined multiple times
  --> minitrace-tests/embassy/embassy-macros/src/macros/main.rs:13:1
   |
9  | const HAL: Option<&str> = Some("embassy_stm32");
   | ------------------------------------------------ previous definition of the value `HAL` here
...
13 | const HAL: Option<&str> = Some("embassy_rp");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `HAL` redefined here
   |
   = note: `HAL` must be defined only once in the value namespace of this module

If you're compiling with --all-features it won't work I think because it will try to enable the macros for all the platforms supported. I've got embassy included with std support in a test package like this though, so it's possible:
embassy = { path = '..', features = ["std", "time", "time-tick-1mhz"]}


Make .twig files open with PHP syntax

.twig files are basically PHP files, it would be nice if they could be opened with PHP syntax/highlighting by default.

Thanks for the suggestion. You should consider opening an issue or pull request on the language-php package to update this list. This is not related to Atom core, as far as I can tell.


Curl error

Getting this error today : curl: (28) Failed to connect to deployer.org port 443 after 135428 ms: Connection timed out
Deployer version 6.9 using deployphp/action@master
The url replies with a 200 in a timely manner when I curl from the CLI.
Maybe it would make more sense to node http module to retrieve to contents of the manifest ?

I've same problems

Duplicate of https://github.com/deployphp/deployer/discussions/3824


Parallelizing Get-Cve26855 and fixing single hit scenario

Sharing to get any feedback on the changes.
Issue:
Get-Cve26855 is currently single threaded and hence slow. The script also fails to show output when there is only hit recorded in the httpproxy logging folder.
Changes/Fixes:

Parallelized the search of log files in the Logging\HttpProxy folder. Steps:
   1. We create batches of the files
   2. Each batch of files is searched using a job created using start-job and the results are then accumulated
   3. A common progress bar is shown for all jobs.
           a. The write-progress function in GetCve26855LogsScriptBlock creates the progress object for each of the jobs
           b. The progress objects of all jobs are then utilized to update the common progress bar in showJobProgress.

Fixed the following scenarios where log detection does not work.
   1. If there is only one hit (one attack) in the https proxy logs
   2. If there is only one log file in the httpproxy folder (not likely to happen as IIS would ensure that there are more files in httpsproxy log folder structure)
   3. Cause of above: Powershell causes automatic conversion of System.Collections.ArrayList to PSCustomObject if there is only one object in the list.
   4. Fix:
             i. We explicitly ensure that the hits and fileCount objects are arrays even in case when there is only 1hit/ 1 file(with dangerous logs)
             ii. Also for the issue 2b we just strongly type the files object that stores the paths of files in the logging/httpproxy folder hirearchy.

Testing/validation
In progress

Need to put this on hold for some time

Let's close this one for now. We can revisit.


Performance Sheet Analysis Tool

Performance Sheet Analysis Tool
Intro
This is a web tool for easily analyzing Excel and CSV performance sheets. Primarily, it calculates FPS and Adjusted Utilization for each operation.
GitHub Repository
Deployment (available till 9/13)
Codebase
The tool is built using Streamlit for the interface, with Pandas and NumPy for data manipulation and sheet formatting. The main file containing the web interface and data manipulation is streamlit_app.py. The dependencies are listed in requirements.txt, and the .streamlit file contains configurations for UI styling.
Usage
How it Works
To utilize the tool, a user selects the Grayskull or Wormhole configuration, adjusting core count for calculations accordingly. Then, the user uploads a .csv or .xlsx performance sheet. The tool automatically starts the analysis process

Results
After a few seconds, the tool displays FPS for All Operations, MatMul + Conv Operations only, and Other On-Device
Operations (excluding MatMul + Conv).  The user can download performance sheets filtered for any of these configurations.

Downloaded Spreadsheet
If downloaded, the modified spreadsheet appends an Adjusted Utilization column for each operation, and an FPS column for the configuration. It also shuffles the Core Count + Device Kernel Duration columns to the end for easy comparison.

Run Locally
To run the tool locally, install the requirements from requirements.txt using the command pip install -r requirements.txt. Then, within the directory, run the command streamlit run streamlit_app.py. The web tool will default to opening at http://localhost:8501/, unless port 8501 is already in use.

This tool also has a complementary web tool to visually graph operations.
GitHub Repository
Deployment (available till 9/13)
Codebase
The tool is built using Streamlit for the interface, along with Pandas, NumPy, and MatPlotLib for data manipulation and graphing. The main file containing the web interface and data manipulation is streamlit_app.py. The dependencies are listed in requirements.txt, and the .streamlit file contains configurations for UI styling.
How it Works
To utilize the tool, a user selects the Grayskull or Wormhole configuration, adjusting core count for calculations accordingly. Then, the user uploads a .csv or .xlsx performance sheet. The tool automatically starts the graphing process

Results
After a few seconds, the tool displays multiple graphs for the categories of All Operations, MatMul + Conv Operations only, and Other On-Device Operations (excluding MatMul + Conv). Each category has graphs for Core Count + Utilization, Device Kernel Duration + Utilization, and Device Kernel Duration vs Utilization.

There is also a Pie Chart to show the breakdown of Operation Types in the data.

Downloaded Spreadsheet
Graphs and data are downloadable via buttons below each graph and a Download Data section at the bottom of the tool.
Run Locally
To run the tool locally, install the requirements from requirements.txt using the command pip install -r requirements.txt. Then, within the directory, run the command streamlit run streamlit_app.py. The web tool will default to opening at http://localhost:8501/, unless port 8501 is already in use.

fyi @davorchap @jvasilje @eyonland @ayerofieiev-tt @dvartaniansTT


Resolve case of incorrect Source Url

Type: Incorrect
Summary:
Resolve case of incorrect Source Url
Details:
There is an incorrect url provided which does not point to the commit "b67b58c617".
Wheras the repo https://github.com/unpaper/unpaper has the commit id present.
Path : https://github.com/unpaper/unpaper/search?q=b67b58c617&type=commits
Resolution:
The component's source url is being curated as the commit id is not present in the present url and is present in the https://github.com/unpaper/unpaper.
Path: https://github.com/unpaper/unpaper/search?q=b67b58c617&type=commits
Affected definitions:

unpaper b67b58c6179a5acc1e8909fbf39a1a3def2924be

@ariel11 @capfei I think Declared License is GPL-2.0-only - https://github.com/Flameeyes/unpaper/blob/b67b58c6179a5acc1e8909fbf39a1a3def2924be/file.c. I'm not finding mention "or later". Thoughts?

Hi Angela,
Actually there is the Source Url curation request sent as well as it is currently pointing to the url -https://github.com/Flameeyes/unpaper
Whereas the right one seems to be - https://github.com/unpaper/unpaper.
So under the above right url, the LICENSES file has the license mentioned as GPL 2.0 or any later version.
" This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version."
Hence it is being curated as GPL 2.0 or later.
Please do let me know in case of any other concerns.
Thank You.
Best Regards,
Sandhya
From: Angela Earnshaw @.>
Sent: 10 November 2022 16:38
To: clearlydefined/curated-data @.>
Cc: MENTA, SANDHYA VARALAKSHMI @.>; Author @.>
Subject: Re: [clearlydefined/curated-data] Resolve case of incorrect Source Url (PR #22302)
@ariel11https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fariel11&data=05|01|sandhya.varalakshmi.menta%40sap.com|0ecbc35b4f964957ac8a08dac30bc391|42f7676cf455423c82f6dc2d99791af7|0|0|638036752532527646|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=FTedg8Fm%2BXvPSV4inLZJ3gxiungz9kUIT2CMUDWnHA8%3D&reserved=0 @capfeihttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcapfei&data=05|01|sandhya.varalakshmi.menta%40sap.com|0ecbc35b4f964957ac8a08dac30bc391|42f7676cf455423c82f6dc2d99791af7|0|0|638036752532527646|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=woPujp9WitCyAmC2kBHfezMNwbbF%2FUSj4q%2F3AMuMaiI%3D&reserved=0 I think Declared License is GPL-2.0-only - https://github.com/Flameeyes/unpaper/blob/b67b58c6179a5acc1e8909fbf39a1a3def2924be/file.chttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFlameeyes%2Funpaper%2Fblob%2Fb67b58c6179a5acc1e8909fbf39a1a3def2924be%2Ffile.c&data=05|01|sandhya.varalakshmi.menta%40sap.com|0ecbc35b4f964957ac8a08dac30bc391|42f7676cf455423c82f6dc2d99791af7|0|0|638036752532527646|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=en%2BaNtnFBDmA5g5jt0ke7e2TUgQuIHpUWGbR5y501yo%3D&reserved=0. I'm not finding mention "or later". Thoughts?

Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fclearlydefined%2Fcurated-data%2Fpull%2F22302%23issuecomment-1310119944&data=05|01|sandhya.varalakshmi.menta%40sap.com|0ecbc35b4f964957ac8a08dac30bc391|42f7676cf455423c82f6dc2d99791af7|0|0|638036752532527646|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=WNoU%2F%2Br%2BKZL4JQGqXElNivkkEVPfdB6g2RVHnbBjDDE%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAWRCVUZDOWJ2UZ3MHR4LA53WHTJPHANCNFSM6AAAAAAR4NXPIQ&data=05|01|sandhya.varalakshmi.menta%40sap.com|0ecbc35b4f964957ac8a08dac30bc391|42f7676cf455423c82f6dc2d99791af7|0|0|638036752532683873|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=P28msvc2na22NqhEt8RJ6thd3UxbGoROv7a7pEaMBgk%3D&reserved=0.
You are receiving this because you authored the thread.Message ID: @.***>

@Sandhya060893 I don't understand this source correction. Why would we update a fork url with the original source url? This component correctly points to https://github.com/Flameeyes/unpaper/tree/b67b58c6179a5acc1e8909fbf39a1a3def2924be, which does exist in this fork. This curation isn't for unpaper/unpaper but the fork Flameeyes/unpaper.

@capfei - I agree.  This particular definition page of ClearlyDefined is for flameeyes/unpaper/tree/b67b58c6179a5acc1e8909fbf39a1a3def2924be, so the name/namespace and commit ID are correct.  I think we can close this PR, yes?


Doing an "or" condition chain

Your Question
Hi!
How can i do an "or" condition. i would like to chain multiple where conditions in gorm. i can't seem to find anything about it on the docs.
Thanks very much!
Expected answer
Any links or examples would be great

http://v2.gorm.io/docs/advanced_query.html#Group-Conditions

Thanks!!!


Using persist mount (/app/storage) causes errors on start

When using the docker compose file of:
version: '3.8'

services:
  blackcandy:
    image: ghcr.io/blackcandy-org/blackcandy:latest
    container_name: blackcandy
    volumes:
      - /media_data:/media_data
    environment:
      - MEDIA_PATH=/media_data
      - SECRET_KEY_BASE=<data>
    ports:
      - "3000:3000"
    restart: unless-stopped

The service launches fine. However, when attempting to set the persist data mount (see below), it doesn't launch due to not seeing any database files in said persist mount:
 ✔ Container blackcandy  Created                                                                                0.0s
Attaching to blackcandy
blackcandy  | bin/rails aborted!
blackcandy  | ActiveRecord::StatementInvalid: SQLite3::CantOpenException: unable to open database file (ActiveRecord::StatementInvalid)
blackcandy  |
blackcandy  |
blackcandy  | Caused by:
blackcandy  | SQLite3::CantOpenException: unable to open database file (SQLite3::CantOpenException)
blackcandy  |
blackcandy  | Tasks: TOP => db:prepare
blackcandy  | (See full trace by running task with --trace)
blackcandy  | [16] Puma starting in cluster mode...
blackcandy  | [16] * Puma version: 6.4.2 (ruby 3.3.1-p55) ("The Eagle of Durango")
blackcandy  | [16] *  Min threads: 5
blackcandy  | [16] *  Max threads: 5
blackcandy  | [16] *  Environment: production
blackcandy  | [16] *   Master PID: 16
blackcandy  | [16] *      Workers: 4
blackcandy  | [16] *     Restarts: (✔) hot (✖) phased
blackcandy  | [16] * Preloading application
blackcandy  | [16] * Listening on http://<IP_ADDRESS>:3000

Said docker compose file that generates this error:
version: '3.8'

services:
  blackcandy:
    image: ghcr.io/blackcandy-org/blackcandy:latest
    container_name: blackcandy
    volumes:
      - /media_data:/media_data
      - ./storage_data:/app/storage
    environment:
      - MEDIA_PATH=/media_data
      - SECRET_KEY_BASE=<data>
    ports:
      - "3000:3000"
    restart: unless-stopped

Is there a step I'm missing here?

+1.. same here...
This was the command I used:
docker run -v ./media_data:/media_data -v ./storage_data:/app/storage -e MEDIA_PATH=/media_data ghcr.io/blackcandy-org/blackcandy:latest

Are you running in rootless mode, e.g. via Podman? Then you need to make sure the storage_data directory is writable by the uid the container is running with (which might be something like 100999 for Podman).

Are you running in rootless mode, e.g. via Podman? Then you need to make sure the storage_data directory is writable by the uid the container is running with (which might be something like 100999 for Podman).

I ran mine as root using "vanilla" docker iirc.

This happens because the Dockerfile specifies a user here.
Your local directory ./storage_data needs to be writable by user with id 1000 or group with id 1000.

Awesome, I'll open an issue adding that as a comment to the docs! Thanks.

I think there should be an option to create the user based on the uid and gid the docker container is started and correct permissions to the mapped storage inside the container.
(like an entry point inside the docker image? I had to create this for an image with a very similar issue)


Sonoff RF Bridge error message

What issue do you have? Please be as thorough and explicit as possible.
[Sonof RF Bridge 3] could not be initialised as val.charAt is not a function.
Details of your setup.

Do you use (1) Homebridge (+ config-ui), (2) Homebridge (CLI) or (3) HOOBS?

Homebridge Config-UI

Which version of Homebridge/HOOBS do you have?

1.1.7

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Please also mention your version of Node.js/NPM if known.

14.15.4

Which version of this plugin (homebridge-ewelink) do you have? Has the issue started since upgrading from a previous version?

4.4.1

Which eWeLink devices do you have that are causing issues? Please include product models if applicable.

Sonoff RF Bridge Rev. 1 and Rev. 2
Please paste any relevant logs below.

[Sonof RF Bridge 3] could not be initialised as val.charAt is not a function.

Hi @axelweichert
Please can you turn on Debug Logging via the plugin settings and restart Homebridge? This should give a full length error message in the logs which I would be grateful to see.
Thanks

Hi @axelweichert
Please can you turn on Debug Logging via the plugin settings and restart Homebridge? This should give a full length error message in the logs which I would be grateful to see.
Thanks

[20/01/2021, 15:16:22] [eWeLink] [Sonof RF Bridge 3] could not be initialised as TypeError: val.charAt is not a function
at ucfirst (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:64:16)
at FakeGatoHistory.registerEvents (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:433:75)
at new FakeGatoHistory (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:373:12)
at new deviceRFBridge (/usr/local/lib/node_modules/homebridge-ewelink/lib/device/rf-bridge.js:83:34)
at eWeLinkPlatform.initialiseDevice (/usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:444:29)
at /usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:107:47
at Map.forEach ()
at eWeLinkPlatform.eWeLinkSetup (/usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:107:24)
at processTicksAndRejections (internal/process/task_queues.js:93:5).

[20/01/2021, 15:16:22] [eWeLink] [Sonof RF Bridge 3] could not be initialised as TypeError: val.charAt is not a function
at ucfirst (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:64:16)
at FakeGatoHistory.registerEvents (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:433:75)
at new FakeGatoHistory (/usr/local/lib/node_modules/homebridge-ewelink/lib/fakegato/fakegato-history.js:373:12)
at new deviceRFBridge (/usr/local/lib/node_modules/homebridge-ewelink/lib/device/rf-bridge.js:83:34)
at eWeLinkPlatform.initialiseDevice (/usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:444:29)
at /usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:107:47
at Map.forEach ()
at eWeLinkPlatform.eWeLinkSetup (/usr/local/lib/node_modules/homebridge-ewelink/lib/index.js:107:24)
at processTicksAndRejections (internal/process/task_queues.js:93:5).

Thanks. Please update to v4.4.2.
It might be an idea to remove this RF bridge from the cache so it is re-added properly with its subdevices.
There was an issue with the code when it added subdevices of RF bridges, which has been fixed, but might need to be re-added to work again.
Please let me know how you get on

Thanks. Please update to v4.4.2.
It might be an idea to remove this RF bridge from the cache so it is re-added properly with its subdevices.
There was an issue with the code when it added subdevices of RF bridges, which has been fixed, but might need to be re-added to work again.
Please let me know how you get on

Perfect. Everything works fine now. Thanks for your help. :-)

Perfect. Everything works fine now. Thanks for your help. :-)


Final implementation of Math optimizers for #948

Hey!
This pull request implement math optimizer(s) for some functions:

[X] sin
[X] cos
[X] asin
[X] acos
[X] tan
[X] sqrt

It's time to review and :beers:

ping @andresgutierrez

ping @andresgutierrez


number of reservations per service by week and by month

changes merged https://github.com/AntiAnt/gingr_reports/commit/e72f13e57e199e6aad5493c7242dd451df86e2dc


Getting token balances on other chains returns undefined

I'm using the tutorial to get token balances on ETH Mainnet and it works great, but if I switch to Polygon for example, I get back an array of undefineds.
`
export function useTokensBalance(tokenList: any[], account?: string | null) {
return useContractCalls(
tokenList && account
? tokenList.map((token: any) => ({
abi: ERC20_INTERFACE,
address: token.address,
method: 'balanceOf',
args: [account],
}))
: []
)
}
`

You need to filter tokens by chainId. The same tokens does not exist on multiple chains.
There might be equivalents, but most of the time with different addresses.