fetch command fails to checkout dependency contents into Carthage/Checkouts

Steps to Reproduce

Clone this sample repo that contains a Cartfile with a single dependency but no Cartfile.resolved.
Run punic resolve
Run punic fetch

Result
Punic fails to checkout the contents of the dependencies into the Carthage/Checkout directory. An empty Carthage/Builds directory is created (which is expected since it should not build the dependencies) but the contents of the dependencies are not checked out.
It's worth noting that this same behavior is also reproducible by running punic resolve --fetch.
Expected
Punic should checkout the contents of the dependencies into the Carthage/Checkout directory.

I do want to fix this but believe it will take an afternoon or so. It's the next fix I plan on addressing though.


Consider a confirmation email

Hi there,
I successfully worked through all of the verification steps, culminating in Docusign.
As a user, I expected a final email saying something to the effect of: "You're all set!"
If we were to implement this, a user would receive three emails during onboarding:

Subject: Confirm your email & phone number with Consumer Reports
Subject:  Sign the Authorization Letter
Subject:  You're All Set!

What do you think?

Ben

cc @ginnyfahs


Pasting negative numbers, or negative ngmodel...

Hello ppl, the ng-negative-number work only if you input the '-' char... but if you paste a negative number or change the ng-model to a negative value, it won´t work...
I am issuing this, because i need to change a money mask positive or negative acording to the dynamic calc of several fields... And thus can give me a ng-model positive or negative... but the field only gets the int and ignores the '-' from the model.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24891651-pasting-negative-numbers-or-negative-ngmodel?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

The built in behavior for entering negative values is not very natural. The user is forced to enter a number first before they press - to convert it to a negative number. Ideally it should allow the user -99999 in that order.

+1 for allowing user to enter negative sign first

+2 for allowing user to enter negative sign first

@kjavia I fixed that behavior! I'll do a PR.

@jlnery thanks. +1

the fix was merged?


fix: remove privacy screen plugin

Motivation
Remove not needed plugin that makes it difficult to make screenshot, share demo etc.

@StephenCoady Thank you @StephenCoady. Lots of lads doing demos tommorow may require this.


backpacks duping on a server when having the back slot filled (with curios installed)

so i dont know the exact reason why this happens and i dont have access to logs of the server but when i have my back slot filled or even if its empty and i have a backtank from create, the backpack just dupes and i can place it infinetly with all the items untill it kicks me from the server and i cant connect anymore due to playerdata not loading.
this is really easy to reproduce, just have your back slot or chestplate slot filled with something other than standart minecraft armor.

upload your client's log file when you tried to reconnect to the server. What ever the issue that causes you to fail to reconnect will spit out some info there that can help me diagnose.

So equipping create's backtank should be disabled with a backpack on, and it is on the server but not on the client. A list of items that disable the back slot is created when data packs are loaded and the server never sends that list to the client. So when you put on the backpack, the client and server desync and cause errors.
Keep a lookout for 20.1-0.22-v2. I'll have it fixed there.


RankSort loss computation over batch

At this line the predictions are flattened discarding the batch dimension. vectorize_labels also do the same. I guess the ranking and sorting of positives/negatives are done across image instances in the batch. Is this done intentional? I think instance-wise RankSort loss computation is more meaningful for the batch case.

Yes, it was an intentional design choice. The main reason is that the previous work on ranking-based losses suggest that the more example ranking-based losses have, the better approximation you get. More particularly, a previous work (https://arxiv.org/pdf/1912.03500.pdf -- see Section 4.3) introduced "score memory", in which they keep the examples from previous batches in order to increase the number of examples and ensure better approximation. Furthermore, if ranking-based losses (AP, aLRP or RS Losses) are called for each image in the batch, then training time will probably increase (need to be validated) since they are more expensive compared to score-based losses (e.g. cross-entropy). Note that even with one call per batch, it takes 1.5 times longer to train models on average.
There can be different choices in the implementation: Rank&Sort can be computed over all instances in the batch (as we did for better approximation and more efficient training time), over single images (as you suggested), over instances in each FPN level in each single image or even maybe for each ground truth etc. However, we have not validated this design choice thoroughly, and I am not sure which design choice is more meaningful. Why do you think image-wise implementation is more meaningful?

Thanks for the explanation. In the paper, the losses are said to be distributed over other negative/positive pairs. Assuming images in the batch are independent, it sounds meaningful to compute primary terms image-wise regarding this independency. However better approximation and speed gain may validate your approach. Sorry for the late response due to vacations.
Bu arada bu guzel calisma icin tebrik ve tesekkur ederim :)


Add URL field to DESCRIPTION

Btw, it would be great if RStudio could generate a DESCRIPTION file that has URL and also BugReports. Thanks!

You can get partway there by setting those in the devtools.desc option, e.g.
options(devtools.desc = list(
  URL = "path/to/repo",
  BugReports = "path/to/repo/issues"
))


Fix a compile warning

warning: OpentelemetryEcto.setup/1 is undefined (module OpentelemetryEcto is not available or is yet to be defined)
  lib/prima_opentelemetry_ex/instrumentation/opentelemetry_ecto.ex:22: PrimaOpentelemetryEx.Instrumentation.OpentelemetryEcto.instrument_repo/4

Yes, I've checked that it compiles and makes the warning go away.


Ts new methods

Add "Complexity Index" and "False Nearest Methods" to the main tree.

Coverage increased (+0.2%) to 88.832% when pulling 324d7f91ab7c65636b4f6908374a57cbee5394a5 on ts_new_methods into 41984b227382eeb542d15ec884a25dc6bb1ac8a4 on master.

Coverage increased (+0.1%) to 88.8% when pulling febc8a024012b6bd5deaad2eedc3974a48bd2529 on ts_new_methods into 41984b227382eeb542d15ec884a25dc6bb1ac8a4 on master.


MultiSelect defaults for MultiSelectionPrompt

Is your feature request related to a problem? Please describe.
Previously it was possible to select multiple items in MultiSelectionPrompt, allowing for multiple defaults. Working around this by just selecting each in a loop.
Describe the solution you'd like
A replacement extension method to allow selecting multiple defaults again.
Describe alternatives you've considered
Just selecting manually, it's working now.
Additional context
These previously existed, but was removed with the MultiSelect refactor.,

@RichiCoder1 Not sure if I misunderstand something, but I just tried it out and it's still working.
Could you share some code that reproduces this?

Ahh! I should clarify, setting defaults by calling the extension method Select on MultiSelectionPrompt, which used to accept an Enumerable of indices to select. This was a convient way to set multiple default selections before presentation to the user.

Removed here: https://github.com/spectreconsole/spectre.console/commit/865552c3f2046282519b85e543ed516142f7785a#diff-0e766947d13f6d9db4fd4cee1aa7845d9c776f4009124784ceb62e41b0939248L150

@RichiCoder1 Ah, yes. We obsoleted those a while back and recently removed them since they don't make much sense anymore after making the list hierarchical. There are, however, new methods for selecting items.
I'll write up an example once I'm at a computer.

I guess I have a weird case where hierarchical doesn't make sense, but I still want a number of items selected. I'm making it work fine using Select, so I'm not blocked at all. Can close this out though if it's an edge case request.

Sorry to jump on this, but I also stumbled a bit when I tried to implement selecting multiple items. (Mostly because of me, though...)
@RichiCoder1 Are you saying what you are currently missing is something like this: https://github.com/spectreconsole/spectre.console/commit/393b2b54e5e320f7e311014bdb2582bb922a1206#diff-a84d869307529eb26cb15b7f6566d9f31950d7ec0eacc2130fa9afc3a2ade7c4R115

@RichiCoder1 I don't think we should close this out. I don't think you're alone in wanting to select items in an easy way (@nils-a's comment proves this).
Question is, how can we make this easier to discover in the API? Can we add some extension method, such as AddSelectedItem/AddSelectedItems? Would something like that help?

Ooo, that'd work too. Or maybe an overload to AddChoices takes defaults as a second arg? Either would be good.

Ooo, that'd work too. And probably be more efficient.
Or maybe an overload to AddChoices takes defaults as a second arg.

Well, my problem was that I was "looking" at the current develop branch (i.e. 0.41.preview-something) trying to figure out selection while I referenced the 0.40.0 version.
But I think it's not as easy as AddSelectedItem - at least not for a hierarchical MultiSelectionPrompt. Only the first level of descendants are IMultiSelectionItem which support Select().
So, while one can do
var prompt = new MultiSelectionPrompt<string>();
prompt.AddChoices("one", c => s.Select())

one can not do
var prompt = new MultiSelectionPrompt<string>();
prompt.AddChoices("one", c => c.AddChild("one.one").Select())

or something like that.
AddChoices has a bunch of overloads and I would hesitate do duplicate each of them with an AddChoicesSelected variant.
I think it would make more sense to ensure every overload has the option to pass a Action<IMultiSelectionItem<T>> configurator and that the ISelectionItem<T> can also be Select()-ed like IMultiSelectionItem<T>
That way one should be able to do something like:
var prompt = new MultiSelectionPrompt<string>();
prompt.AddChoices(new[]{ "one", "two", "three" }, c => s.Select())

var prompt = new MultiSelectionPrompt<string>();
prompt.AddChoices(new[]{ "one", "two", "three" }, root => root.AddChild(string.format("{0}.one", root)).Select())

or even
var prompt = new MultiSelectionPrompt<string>();
prompt.AddChoices(new[]{ "one", "two", "three" }, root => root.AddChildren(string.format("{0}.one", root), string.format("{0}.two", root)), child => child.Select())

(That last one is me, dreaming, really...)


Zoom is crashing MacVim :(

This is a duplicate of this SE question
If I open Macvim, everything works fine, unless I zoom in (using Cmd+"+").
If I do that, then I get a strange black boarder around the added bit of the window and the whole thing freezes.
This is what I see:

(except, bizarrely, it isn't, because I see a black boarder, the mac screenshot shows a light gray one, and the image uploaded to Github mysteriously makes it white, which suggests there's something wrong with me)
...and there is a 40 second video of the problem here: https://youtu.be/cjKWRGLSWTk, which, thankfully, shows the same black border I see. Thank you YouTube.
This appears to be part of a few linked bugs on MacVim, I have quite a lot of trouble with the display not refreshing if I've changed the zoom level while the app is already full-screen and that's quite frustrating.
What information can I give to help you replicate this?

Can you generate some info following https://github.com/macvim-dev/macvim/wiki/Reporting-an-Issue ?
In particular, the most important information is:

OS version
Whether you have custom vimrc or not (you can try launching MacVim with mvim -u NONE -U NONE
Whether you have custom MacVim preferences defaults read org.vim.MacVim | grep 'MM\|SU'.

Ha! My bad, should have read the wiki.

High Sierra 10.13.6
/Applications/MacVim.app/Contents/bin/mvim -u NONE -U NONE  gives me the same error. And my custom vimrc is here: https://github.com/joereddington/dotvimdirectory (thank you for the reminder to commit and push

Josephs-Mini:.vim josephreddington$ defaults read org.vim.MacVim | grep 'MM\|SU'.
    MMAutosaveColumns = 155;
    MMAutosaveRows = 61;
    MMCurrentPreferencePane = General;
    MMLastWindowClosedBehavior = 2;
    MMOpenInCurrentWindow = 1;
    MMTopLeftPoint = "{375, 980}";
    MMUseCGLayerAlways = 1;
    SUEnableAutomaticChecks = 0;
    SUHasLaunchedBefore = 1;
    SUSendProfileInfo = 0;
Josephs-Mini:.vim josephreddington$

Does that help? And answers of the form "Maybe time to upgrade OSX" are probably right on the money...

To narrow the search of the source of the issue and limit testing various OS X versions, it works fine on 10.14.

I've updated OS, and it's removed the issue. :(

Sorry for the slow response here. It's nice that you have updated the OS and fixed the issue, but we still need to fix the issue. If other 10.13 users want to chime in please do. Otherwise I may have to hunt down some 10.13 machines / VMs to debug.

@ychin could you add few labels to show off affected OSes and what the problem is about?  We don't have long list of it and It would be much easier to navigate


[INFINITY-1794] [Hello-world] Re-enabled overlay tests for strict

Strict passed all tests: https://teamcity.mesosphere.io/viewLog.html?buildId=723444&tab=buildResultsDiv&buildTypeId=DcosIo_DcosCommons_Sdk_DcOsMasterStrict


Use static_link_msvcrt (libcrt, e.g. /MT) for Windows build

Description:
Use static_link_msvcrt (libcrt, e.g. /MT) for Windows build
This patch introduces necessary flag overrides to many foreign_cc
components and toggles the compile flag (/MT) for these packages;
  cares, curl, libevent, nghttp2, yaml and zlib

This has the side effect of having a working cares linkage for windows.
To expedite development and test review, observe cached test results.

This should have zero impact on Linux

Risk Level: Low
Testing: Local on Windows
Docs Changes: N/A
Release Notes: N/A

@lizan tagging you as you have been working on the windows build.

We fixed the merge conflict in windows/.bazelrc.
@lizan ready for another go-over.

please do not rebase and force push, change is messed up somehow, can you clean it up, or open another PR and close this one.

Superseded by PR #8280 per @lizan's request. Apologies for our merge conflict resolution.


Turicreate with TensorFlow 2.3?

I'm trying to install tensorflow 2.3 along with turicreate, but I'm getting into an issue:
 The user requested tensorflow==2.3.0
    turicreate 6.4 depends on tensorflow<2.1.0 and >=2.0.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Will turicreate upgrade tensorflow to 2.3 in the near future? I see that there aren't a lot of code commits recently, will there be ongoing support for this package or will people need to move to another package like vaex for out of core support?

TensorFlow 2.3 is currently supported on macOS. So I assume you are using Linux. Let me know if that's not correct.
The reason we do not support TensorFlow 2.3 on Linux is due to a change in TensorFlow which breaks our Sound Classifier, see #3303
If you're not using the Sound Classifier, then TuriCreate should work fine for you with TensorFlow 2.3. You can just install that version of TensorFlow manually after installing TuriCreate.


Macbook Mid2010 內建鍵盤及trackpad stopped working

night shift does work. MacOS High sierra 10.13.6
idk y , but i happed right after installing this mod...

keyboard and trackpad DOES WOEK in recover mode.

sorry for this err fixed
just restart it again
i comment this when i fist saw it happen
sorry about that


PDOException

exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (dbname.eav_attribute, CONSTRAINT FK_EntityId FOREIGN KEY (entityId) REFERENCES eav_entity (id) ON DELETE CASCADE ON UPDATE NO ACTION)'

fixed. use migration


Errors when compiling

When I compile the latest code commit df94dea I get this errors
csq.cpp: In function ‘int main(int, const char**)’:
csq.cpp:22:40: error: function call has aggregate value [-Werror=aggregate-return]
   22 |             string path_code = currdir + "/" + name + ".csq";
      |                                ~~~~~~~~^~~~~
csq.cpp:22:46: error: function call has aggregate value [-Werror=aggregate-return]
   22 |             string path_code = currdir + "/" + name + ".csq";
      |                                ~~~~~~~~~~~~~~^~~~~~
csq.cpp:22:55: error: function call has aggregate value [-Werror=aggregate-return]
   22 |             string path_code = currdir + "/" + name + ".csq";
      |                                                       ^~~~~~
csq.cpp:23:33: error: function call has aggregate value [-Werror=aggregate-return]
   23 |             curr_path = currdir + "/";
      |                         ~~~~~~~~^~~~~
csq.cpp:25:49: error: function call has aggregate value [-Werror=aggregate-return]
   25 |             string raw_code = readCode(path_code);
      |                                                 ^
csq.cpp:27:57: error: function call has aggregate value [-Werror=aggregate-return]
   27 |           vector<TokenStream> code = toTokens(raw_code); //Error starts
      |                                                       ^

csq.cpp:32:40: error: function call has aggregate value [-Werror=aggregate-return]
   32 |             string _code = Compile(code);
      |                                        ^
csq.cpp:33:52: error: function call has aggregate value [-Werror=aggregate-return]
   33 |             string final_code = addBuiltin(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                            ~~~~~~~~^~~~~
csq.cpp:33:43: error: function call has aggregate value [-Werror=aggregate-return]
   33 |             string final_code = addBuiltin(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                 ~~~~~~~~~~^~~~~~~~~~~~~~~
csq.cpp:33:59: error: function call has aggregate value [-Werror=aggregate-return]
   33 |        string final_code = addBuiltin(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~

csq.cpp:33:66: error: function call has aggregate value [-Werror=aggregate-return]
   33 | string final_code = addBuiltin(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

csq.cpp:33:84: error: function call has aggregate value [-Werror=aggregate-return]
   33 | = addBuiltin(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

csq.cpp:33:94: error: function call has aggregate value [-Werror=aggregate-return]
   33 | in(currdir + "/") + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~

csq.cpp:34:43: error: function call has aggregate value [-Werror=aggregate-return]
   34 |             writeCode(final_code, currdir + "/" + name + ".cpp");
      |                                   ~~~~~~~~^~~~~
csq.cpp:34:49: error: function call has aggregate value [-Werror=aggregate-return]
   34 |             writeCode(final_code, currdir + "/" + name + ".cpp");
      |                                   ~~~~~~~~~~~~~~^~~~~~
csq.cpp:34:56: error: function call has aggregate value [-Werror=aggregate-return]
   34 |             writeCode(final_code, currdir + "/" + name + ".cpp");
      |                                   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
csq.cpp:51:39: error: function call has aggregate value [-Werror=aggregate-return]
   51 |             string path_code = name + extension;
      |                                       ^~~~~~~~~
csq.cpp:53:49: error: function call has aggregate value [-Werror=aggregate-return]
   53 |             string raw_code = readCode(path_code);
      |                                                 ^
csq.cpp:55:57: error: function call has aggregate value [-Werror=aggregate-return]
   55 |           vector<TokenStream> code = toTokens(raw_code); //Error starts
      |                                                       ^

csq.cpp:58:40: error: function call has aggregate value [-Werror=aggregate-return]
   58 |             string _code = Compile(code);
      |                                        ^
csq.cpp:69:43: error: function call has aggregate value [-Werror=aggregate-return]
   69 |             string final_code = addBuiltin(pathValue) + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                 ~~~~~~~~~~^~~~~~~~~~~
csq.cpp:69:55: error: function call has aggregate value [-Werror=aggregate-return]
   69 |            string final_code = addBuiltin(pathValue) + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~

csq.cpp:69:62: error: function call has aggregate value [-Werror=aggregate-return]
   69 |     string final_code = addBuiltin(pathValue) + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~

csq.cpp:69:80: error: function call has aggregate value [-Werror=aggregate-return]
   69 | ode = addBuiltin(pathValue) + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

csq.cpp:69:90: error: function call has aggregate value [-Werror=aggregate-return]
   69 | uiltin(pathValue) + "\n" + "int main(){\n" + _code + "\nfreeMemory();\n}\n";
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~

csq.cpp:70:40: error: function call has aggregate value [-Werror=aggregate-return]
   70 |             writeCode(final_code, name + ".cpp");

Not even that there are some others issues too please check.#153

in eval.h i will be removing those statements because with now there is no need of them.

Modern G++ compiler can use both .h and .hpp so .h is okay for now and yes you can put it.

I hope now the issue will be over i have sorted it out see b22427f

And i sent you an invitation to join this org if you joined then you could directly do changes and give suggestion.

I have seen certain issues
It seems to be that the attempt to make csq command global is quite faulty you should correct bash file then rest your C/C++ code looks fine.

Could you tell the source and the file where the issue s present?

That was the reason why i didn't seperated .cpp and .h file because if we are compiling our code with make so it creates a lot of errors like here in this cause mostly error is caused due to vectors so i hope you should try something else.

Alright


[Docs] Reintroduce BenchMARL pointers in MARL tutos

I think this might be helpful to the reader.
I am not fixed on any phrasing so we can iterate on it

Got it.
I have integrated the suggestions, just added "using TorchRL" at the end


Logic to handle pvc/snapshot restoreSize mismatch

https://github.com/kubernetes-csi/external-provisioner/issues/727

FYI @kaovilai @dymurray We encountered this issue at both the places listed here. (customer case with portworx volumes for VM disks)
cc: @weshayutin


Using polygon tool, with "drawOnSingleClick: true", drawing inside existing annotation can't be started with a single click

Hi,
Using polygon tool, with "drawOnSingleClick: true", drawing inside existing annotation can't be started with a single click.
This is in OSD plugin.
In Annotorious this works correctly.
Also, not sure if this is connected:
The rectangle tool does not work with click, drag only, both on free space & inside the annotation.
Version: 2.7.11

Yes, that's currently an unresolved issue. Single click will always select in OSD at the moment. It's on the list, but I can't say for sure when I'll get a chance to look into it.


add GroqSharp provider

I have added the groq provider using https://github.com/Sarel-Esterhuizen/GroqSharp
the code needs some adjustment.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Loading microtype make table disappear in a document with documentclass book

Description
Table does not show in a documentclass book output when using table + tabular environment if microtype is loaded.
Take this document
```
\documentclass[]{book}

\usepackage{microtype}

\title{A Minimal Book Example}
\author{John Doe}
\date{23/06/2022}

\begin{document}
\maketitle

\begin{table}

\caption{\label{tab:tab-1}test}
\centering
\begin{tabular}[t]{r|r}
\hline
temperature & pressure\\
\hline
0 & 0.0002\\
\hline
20 & 0.0012\\
\hline
\end{tabular}
\end{table}

\end{document}

```

With microtype loaded

Without microtype (commenting the line with \usepackage{microtype})

Same with pdfTeX and XeLaTeX

microtype package info
$ tlmgr info microtype
package:     microtype
category:    Package
shortdesc:   Subliminal refinements towards typographical perfection
longdesc:    The package provides a LaTeX interface to the micro-typographic extensions that were introduced by pdfTeX and have since also propagated to XeTeX and LuaTeX: most prominently, character protrusion and font expansion, furthermore the adjustment of interword spacing and additional kerning, as well as hyphenatable letterspacing (tracking) and the possibility to disable all or selected ligatures. These features may be applied to customisable sets of fonts, and all micro-typographic aspects of the fonts can be configured in a straight-forward and flexible way. Settings for various fonts are provided. Note that character protrusion requires pdfTeX, LuaTeX, or XeTeX. Font expansion works with pdfTeX or LuaTeX. The package will by default enable protrusion and expansion if they can safely be assumed to work. Disabling ligatures requires pdfTeX or LuaTeX, while the adjustment of interword spacing and of kerning only works with pdfTeX. Letterspacing is available with pdfTeX or LuaTeX. The alternative package 'letterspace', which also works with plain TeX, provides the user commands for letterspacing only, omitting support for all other extensions.
installed:   Yes
revision:    63666
sizes:       run: 505k
relocatable: No
cat-version: 3.0e
cat-license: lppl1.3c
cat-topics:  micro-layout letterspace
cat-related: pdfcprot
cat-contact-bugs: https://github.com/schlcht/microtype/issues
cat-contact-repository: https://github.com/schlcht/microtype/
collection:  collection-latexrecommended

Is there any know conflicts ?

Ouch, this is bad. A quick fix is:
\MT@addto@setup{\let\@elt\relax}

This has already been fixed (by accident) in the dev version, which I'll upload to CTAN right away.


Can not find 'pushd' in setup.sh script for demo

I run the setup.sh script in demo/target/dynamodb-cross-region-replication-demo directory and it throw command not find exception like this
./setup.sh: 15: ./setup.sh: popd: not found
### Unpacking DynamoDB Local

./setup.sh: 20: ./setup.sh: pushd: not found

So  I think this script should start with "#!/bin/bash". And it ok for me after changing.
Thanks

Thank you lufeng1102. We will apply the change.

Closing issue as the new release no longer refers to this script.


kube-prometheus config compile fails

What did you do?
ran jsonnet -f vendor -m manifest my-config.jsonnet
my-config.jsonnet contained:
local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
           (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') + {
  _config+:: {
    namespace: 'monitoring',
    prometheus+:: {
      namespaces: ["default", "kube-system"],
      names: 'k8cb'
    },
    etcd+:: {
      ips: ['192.168.xx.213','192.168.xx.214','192.168.xx.215'],
      clientCA: importstr 'etcd-client-ca.crt',
      clientKey: importstr 'etcd-client.key',
      clientCert: importstr 'etcd-client.crt',
      serverName: 'etcd.k8cb.cluster.local',
    },
    grafana+:: {
      config: {
        sections: {
          "auth.anonymous": {enabled: true},
        },
      },
    },
  },
};

{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +
{ ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } +
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }

What did you expect to see?
compile succeed.
What did you see instead? Under which circumstances?
trying to run jsonnet -f vendor -m manifest my-config.jsonnet gave me:
RUNTIME ERROR: function has no parameter legend
        vendor/kubernetes-mixin/dashboards/node.libsonnet:(72:24)-(90:10)       thunk <cpuGraph> from <object <anonymous>>
        vendor/kubernetes-mixin/dashboards/node.libsonnet:197:19-27     thunk from <thunk from <object <anonymous>>>
        vendor/grafonnet/row.libsonnet:29:23-28 thunk from <object <anonymous>>
        vendor/grafonnet/dashboard.libsonnet:57:21-34   function <anonymous>

        <std>:905:54-58 thunk from <thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>>
        <std>:887:10-11 function <aux>

        <std>:905:50-83 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
        <std>:909:9-28  builtin function <join>
        <std>:915:39-78 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
        <std>:919:9-28  builtin function <join>
        <std>:905:50-83 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
        <std>:909:9-28  builtin function <join>
        <std>:915:39-78 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
        <std>:919:9-28  builtin function <join>
        <std>:920:5-23  function <anonymous>
        vendor/grafana/grafana.libsonnet:40:48-110      object <anonymous>
        During manifestation

It turns out this is not actually your fault. A dependency just got updated and is broken. I'm creating a PR to fix this.

hi @brancz . I ran into this too today. (I assume you'll please add an update to this issue with a link to the PR once it's created.)
Last week I did the following commands and they worked:
$ mkdir my-kube-prometheus; cd my-kube-prometheus
$ jb init
$ jb install<EMAIL_ADDRESS>$ ./build.sh example.jsonnet
$ cat jsonnetfile.lock.json    # Note that 11469474 is the commit for v0.22.0
{
    "dependencies": [
        {
            "name": "kube-prometheus",
            "source": {
                "git": {
                    "remote": "https://github.com/coreos/prometheus-operator",
                    "subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus/"
                }
            },
            "version": "1146947431102539186bae3e98bfc22c9ff39cca"
        }
    ]
}

But today I re-ran the same commands and encountered the same error that @KlavsKlavsen reported above.
And today I noticed after re-running the commands, my jsonnetfile.lock.json has a lot more dependencies in it:
$ grep '"name"' jsonnetfile.lock.json
            "name": "kube-prometheus",
            "name": "ksonnet",
            "name": "kubernetes-mixin",
            "name": "grafonnet",
            "name": "grafana-builder",
            "name": "grafana",
            "name": "prometheus-operator",
            "name": "etcd-mixin",

Here's one of the dependencies snippets from my jsonnetfile.lock.json:
        {
            "name": "kubernetes-mixin",
            "source": {
                "git": {
                    "remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin",
                    "subdir": ""
                }
            },
            "version": "df5b96b3acc89299681c301652098ecd98a25fba"
        },

I see that https://github.com/kubernetes-monitoring/kubernetes-mixin/releases doesn't currently have any releases - would it be possible to start creating releases in each of the mixins used by kube-prometheus?  And then could prometheus-operator/kube-prometheus somehow specify a given release for each mixin?
(We re-build clusters and re-deploy kube-prometheus fairly often. I'd prefer to not check in a known working copy of the generated manifests folder to our own code repository, but instead be able to assume the build.sh script will always complete successfully (when having done jb install for a specified release of prometheus-operator) and run that script every time we're deploying kube-prometheus.)

Agreed, the pace of things has slowed down a bit and it's going to start to make sense to do releases. I think I would like to do a bit more cleanup before we cut an official release of the kubernetes-mixin though.
The intermediate issue was just fixed though, if you just run jb update the dependency should be updated and everything should now successfully build.

Thanks @brancz , that sounds great:

thanks for promptly fixing the issue that was causing build.sh to fail (I re-ran it just now and it does indeed work once again - so I believe this issue can be closed now),
and if you can please start doing releases for all the mixins relatively sooner than later that'd be awesome.


Demo and website shows empty Datasheet

Hi everyone,
Firstly - awesome project really cool and really helpful and you've thought of it all! 🔥
I may have noticed a bug on the Docs website, every datasheet I can see has no data in it like so:

Issue on page: https://react-datasheet-grid.netlify.app/docs/getting-started
However, double clicking into the cell shows the data of "Elon".
Is this a new recent change that caused this issue, or is this just with the website issue not the package it self?
Thanks

This is due to the dark theme the website offers! Works fine when in light mode 😄


Login doesn't work on macOS

Hi everyone,
I don't have any clue, but on macOS, I can't login to my account, even when hard-coding my credentials.
I guess it's an error in the Dart package, but I need to investigate a bit more.
If someone on Windows or Linux can test the login, that would also be nice.

Mmm and this morning it's working 🤷♂


fix: usage of sobmodule API from simple-git

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Edit outputDirectory

Description
The current outputDirectory function creates unreadable content that makes it difficult for anyone to handle the saved content. This is because there is no indication of where the content data starts. To address this, I've implemented a new saving method. In this approach, I am saving the request headers and response headers in JSON format on the first line of the file. Following that, the response content. This should help make the output more organized and easier to handle.
Fixes: #(issue number)
Additonally
....

Hi, thanks for the PR.
While I do appreciate the time put in to writing this, I need to kindly decline from merging it.
The current output format is in the raw http response as defined in HTTP standard RFC2616 and there are parsers for http responses available in all of the widely spread programming languages.
In addition to this, there's a good bunch of automation and implementations people have built on top of the current behavior, and without a very strong case, I'm not willing to break that.


New package: Segmented v0.1.0

Registering package: Segmented
Repository: https://github.com/chasmani/Segmented.jl
Created by: @chasmani
Version: v0.1.0
Commit: fc93748d5838d349d5a3b84e002d3a99d077de37
Git reference: HEAD
Release notes:

To be developed

The repository doesn't exist anymore?

Hi. Yes sorry I was just practicing with Julia packages really - I didn’t
realise it was actually going to the Julia directory. I thought there would
be a way to reverse the addition.
Sorry for any inconvenience
Charlie
On Wed, 28 Apr 2021 at 17:32, Mosè Giordano @.***>
wrote:

The repository doesn't exist anymore?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JuliaRegistries/General/pull/35546#issuecomment-828598319,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSHQMCHINQUSZZ6ICNRFJDTLA2BBANCNFSM43WWI3ZA
.

Ok, no worries!


Validate maxRetriesPerRequest for Transactions

Our application does 3 types of transactions. These 3 transactions, satisfy these requirements.
Now how to know and validate if maxRetriesPerRequest is valid for these transactions? How to check if these transactions which are critical to the business are actually being retried.
Based on offline discussion with @luin, Transactions involving WATCH need to be retried on the application side. Not sure about other transactions without WATCH.
// type 1
redis.client.multi([
        ['incrby', someKey, 1],
        ['expire', key, someTIME],
      ]).exec((redisErr, results) => {})

// type 2
redis.client.multi([
      ['set', someKey, 'true'],
      ['rpush', someLIST, 'xxx'],
      ['publish', someCHANNEL, JSON.stringify(xxx)],
    ]).exec((redisErr, results) => {})

// type 3
WATCH mykey
val = GET mykey
val = val + 1
MULTI
SET mykey $val
EXEC

we are using ioredis client in cluster mode.

You can enable the debug log DEBUG=ioredis:* node yourapp.js and try to shut down the Redis server and observe the logs.
I personally don't recommend using WATCH as it's pretty tricky. You probably want to use Lua scripting instead.

maxRetriesPerRequest is only evaluated when the underlying connection to the server is down (aka on "close" event). It doesn't kick in in case of a transaction aborts (due to the syntax being wrong or a WATCH condition fails) or command errors (e.g. LPUSH a string key).


feat/dynamic-hud

https://discord.com/channels/531175899588984842/536970543736291346/912567991017816125

I noticed that it doesn't appear to update the actual state of the corner icons until a combat event occurs again making it appear to do nothing until the next time you're in combat and it "pops" into the correct state and is correct from that point forward.


[BUG] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>

Describe the bug
Warning about  Unsupported platform for<EMAIL_ADDRESS>To Reproduce
sudo npm -g install homebridge-harmony

Expected behavior
Installation / upgrade without warning
Screenshots
If applicable, add screenshots to help explain your problem.
 Please do not post your whole config and especially with logins / passwords !
Additional context
Add any other context about the problem here.

Hi, could you explain more please ?
Sent with GitHawk

when I run
sudo npm -g install homebridge-harmony
I get this warning
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/homebridge-harmony/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

Hi, thx did you notice any unexpected behavior ?
Sent with GitHawk

This can be safely ignored. It's caused because fsevents is a package used for handling file system  events in MacOS and is only used in MacOS. You're likely installing the package in some flavor of linux, and npm is correctly telling you that the package isn't needed/supported there.
I'm guessing it's a transient dependency of one of the devDependencies (best guess is husky). This will not cause any unexpected behavior.

I see this too on raspberian "Buster" version. Latest OS that is needed for new pi4.
pi@raspberrypi:~ $ sudo npm -g install homebridge-harmony
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/homebridge-harmony/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

<EMAIL_ADDRESS>updated 1 package in 64.963s

I did not see this warning on earlier versions.


Error importing a marketapp with the same name

Description
When you want to import a markerplace App with an already used name, an error is generated, because the name of the image is already in use
Interface Changes
Before sending the request to the server, in the step (Fireedge), a request or pool check must be made to verify that the name is not being used.
Additional Context
This check should also be in the FireEdge API.
This will also help to avoid errors of the following issue: https://github.com/OpenNebula/one/issues/6370

Progress Status

[ ] Code committed
[ ] Testing - QA
[ ] Documentation (Release notes - resolved issues, compatibility, known issues)

solved in  #6370


Can .pth change to pytorch .pt file

Hi, may I know what kind of models you train in torch? I would like to change the .pth to pytorch .pt file, since .pth is in conflict with python directory, and I cannot open in android mobile.
Thanks.

The model is trained with pytorch.
On Sat, Jul 3, 2021 at 7:52 AM Josonlchui @.***> wrote:

Hi, may I know what kind of models you train in torch? I would like to
change the .pth to pytorch .pt file, since .pth is in conflict with python
directory, and I cannot open in android mobile.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xuebinqin/U-2-Net/issues/225, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADSGORNLONYCANMBK4SB2FDTV2COLANCNFSM47XXERSA
.

--
Xuebin Qin
PhD
Department of Computing Science
University of Alberta, Edmonton, AB, Canada
Homepage:https://webdocs.cs.ualberta.ca/~xuebin/


how to change step values in seekbarPreference?

and I want to save summary value of seekbar is number not percentage
what should I do?
Thanks!

You can try to use setSeekBarIncrement() on your SeekBarPreference. With setMin() and setMax() you can specify the range. getValue() will give you the value and you can just set the summary based on your needs. Or better yet, you can listen to changes with setOnSeekBarChangeListener() and update the summary based on the current value.

Hi @EstherZeng, can you describe a particular use case?

@dirkam  @consp1racy  Thanks you guys for help!  I solved my problem.
May I ask you a question? How counld I change text size in preference, default text size is kind of small.


Update keyboard-shortcuts.md

Why:

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

This PR is blank and appears have been opened accidentally. I'm going to close it now, but feel free to open a new issue or ask any questions in discussions!

This PR is blank and appears have been opened accidentally. I'm going to close it now, but feel free to open a new issue or ask any questions in discussions!


pkg/datapath: Remove transitive dependency on netlink

See commit message.

/test

Hit known flakes - https://github.com/cilium/cilium/issues/18566, https://github.com/cilium/cilium/issues/16122 and https://github.com/cilium/cilium/issues/13011. Marking it as ready for merge.

/test

/test

Known infrastructure issue hit for 4.9 and 5.4 - https://jenkins.cilium.io/job/Cilium-PR-K8s-1.21-kernel-5.4/412/console. The tests never got triggered.
Travis test failure - https://app.travis-ci.com/github/cilium/cilium/jobs/558083053
=> [internal] load remote build context                                   0.0s
41442 => copy /context /                                                        0.1s
41443 => [internal] load metadata for docker.io/library/ubuntu:20.04            0.0s
41444 => [ 1/10] FROM docker.io/library/ubuntu:20.04                            0.0s
41445 => [ 2/10] RUN apt-get update                                            71.0s
41446 => [ 3/10] RUN apt-get -y install build-essential                       343.4s
41447 => => # Get:46 http://archive.ubuntu.com/ubuntu focal/main amd64 libdpkg-perl
41448 => => # all 1.19.7ubuntu3 [230 kB]
41449 => => # Get:47 http://archive.ubuntu.com/ubuntu focal/main amd64 patch amd64 2
41450 => => # .7.6-6 [105 kB]
41451 => => # Get:48 http://archive.ubuntu.com/ubuntu focal/main amd64 dpkg-dev all
41452 => => # 1.19.7ubuntu3 [679 kB]
41453
41454
41455The job exceeded the maximum log length, and has been terminated.
41456

/test-1.16-4.9

/test-1.21-5.4

Re-run of the travis job passed - https://app.travis-ci.com/github/cilium/cilium/jobs/558083054.
Multi-cluster test is expected to be unreliable as discussed in today's community meeting.

Rebase the PR. No need to run the e2e tests again.


Fix LIST command for file

now returns a list with a single file for "LIST filePath".
Using modified getFileList function with filePathAllowed = true.
Fixes #240

Thank you for the PR, please fix the lint issues reported here

Please also try to list a missing file in test case so we cover the stat error case, thank you for your patience

Sorry, but without help I probably won't be able to increase the coverage further. This is my very first experience with golang, and I still don't understand the basics.

Sorry, but without help I probably won't be able to increase the coverage further. This is my very first experience with golang, and I still don't understand the basics.

The patch coverage is 100%, adding the stat in getFileList some other code that previously was covered by test case is not reached anymore.
So this PR is ok for me. I cannot merge it manually, we have to wait for @fclairamb
Thank you for your contribution!

I improved test coverage in #242

Thank you @FunnyGamer & @drakkan, we can close this PR, right ?


#0: Disable enable_fast_runtime_mode by default

@mo-tenstorrent would this be okay? we set this in device perf pipelines.

Instead of turning it off by default, we will just remove the skip for validate when it is turned on. @arakhmati will address in separate PR.


⚠ Thumbnails API Endpoint has degraded performance

In b5745f1, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 5733 ms

Resolved: Thumbnails API Endpoint performance has improved in 1363745 after 9 minutes.


Distance field shader is not implemented

Sollumz doesn't have a specific shader for distance_map.
fwy_01_fwysign_text_002.ydr:


cannot find libnvvm

numba cannot find libnvvm.so on Ubuntu 12.04 + CUDA toolkit 6.
NUMBAPRO_NVVM environment variable seems to have no effect.

This is outdated. If you have trouble with a recent numba version, consider opening a new issue. Thanks!


json null value

Hello,
I encountered an issue with the following code:
c := struct {
    ActiveTime carbon.TimestampMilli `json:"activeTimeStamp"`
}{}

err := json.Unmarshal([]byte(`{"activeTimeStamp":null}`), &c)
fmt.Println(c.ActiveTime, c.ActiveTime.IsValid(), c.ActiveTime.IsZero(), err)

golang version: such as 1.21
carbon version: such as 2.3.12
I expected to get:
0 false true <nill>

But I actually get:
0 true false <nil>

Thanks!

v2.4.1 has been fixed and released https://github.com/golang-module/carbon/blob/e3a062b142b3b57c83d06ba3e2079e9e0918a3ea/encoding_unit_test.go#L396


I need to add a margin-bottom  symbol for markLine

Version
4.8.0
Reproduction link

Code here
            silent: true,
            data: [
              {
                xAxis : dates[dates.length-3], // value dynamic horizontal
                symbolSize:30
            }```

Please provide an online demo and be more specific about your requirement.


SSR with remote stats and assets

💬 Questions and Help
Hello, I have a question regarding SSR architecture.
I work with a serverless stack backed by microservices (mainly with Amaon Web Services), and I was wondering if this package could be used in such a pattern?
Mainly, I was thinking of a few things:

static webpack assets (chunks) hosted in AWS S3
CloudFront distribution backed by this origin for the static files
Lambda@Edge functions associated to this distribution, doing SSR

Following this pattern, the assets would be hosted in S3 and therefore cannot be accessed inline doing something like fs.readFile(), which is what ChunkExtractor seems to do if I am correct?
I have found this issue about filesystem override, but not sure how to use it to be honest?
Also, since files in S3 are supposed to be publicly accessible through CloudFront, I would prefer not to host the webpack stats in there.
Is it possible to host stats and actual assets separately?

I actually managed to get it working thanks to the publicPath option that I missed from the doc initially!
Instead of overriding the fileSystem, setting that setting with the CloudFront URL (well actually a custom domain) will makes the assets being loaded from CloudFront (under the hood, from S3).
I just had to:

make sure that both the stats files and the compiled node (server-side) chunks are also accessible locally from the function (I used copy-webpack-plugin to copy them into the execution folder)

Compiled lambda structure: (I use serverless-webpack)
/package.json
/yarn.lock
/server-side-rendering.js // the lambda function
/stats // webpack stats files
  /loadable-stats.node.json
  /loadable-stats.web.json
/app // server-side chunks
  /chunk1.js
  /chunk2.js
  /chunk3.js

And this is a simplified example of implementation:
const STATS_FOLDER = path.resolve(process.cwd(), 'stats');

const nodeExtractor = new ChunkExtractor({
  outputPath: path.resolve(process.cwd(), 'app'),
  statsFile: path.join(STATS_FOLDER, 'loadable-stats.node.json')
}};
const { default: App } = nodeExtractor.requireEntrypoint();

const webExtractor = new ChunkExtractor({
  publicPath: 'https://domain.tld', // the CloudFront distribution domain (either xxx.cloudfront.net or a custom domain if you associate it)
  statsFile: path.join(STATS_FOLDER, 'loadable-stats.web.json')
}};

// The rest is the same as shown in:
// https://github.com/smooth-code/loadable-components/blob/v5.10.2/examples/server-side-rendering/src/server/main.js#L44

Good if you make it work! If you have time and if you want to contribute, feel free to write a guide on the website! @flosch-hb

Hey @neoziro, sure, I have one way to do it, probably not the absolute best architectural way to do so, but I can still document it as a starter :)
Is it here? https://github.com/smooth-code/loadable-components/tree/master/website/src/pages/docs

Yes it is ☺


node: host is not closed if it was passed via option

We are replacing libp2p.Host in case of passing it through the option so it is not closed properly by lifecycle when node stops.

There is a question here that needs to be answered. Who is responsible for the lifecycle of a dependency given as an option?
Managing it ourselves is less error-prone for our code while it might cause problems for the user. However, though, if probably documented, the user will be glad to do do less work, delegating lifecycling to us, while we have better control.
The soon-to-be-released FX feature to add lifycling through annotations will facilitate the fix here.

Ref: https://github.com/celestiaorg/celestia-node/issues/923

This can be closed

I am not sure we closed it. The lyfecycling for provided hosts is not figured out


error  while outging call made

Rejecting secure audio stream without encryption details: audio 58843 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126

Sounds like a server configuration issue, what server software is it trying to connect to?

You need to make sure your certificates are authentic, this seems to come due to self signed certificates where webrtc do not like anymore.


⚠ Bofrost.es has degraded performance

In e8e5458, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1641 ms

Resolved: Bofrost.es performance has improved in 29ea325 after 8 minutes.


Feat : Add CodeGen for Go (http) #130

Feat : Add CodeGen for Go (http) #130

@CodeHariK Replace all tabs by whitespaces.

Where

I changed tabs to spaces in go code

import 'package:http/http.dart' as http;

void main() async {
  var uri = Uri.parse('https://api.foss42.com');

  final response = await http.get(uri);

  int statusCode = response.statusCode;
  if (statusCode >= 200 && statusCode < 300) {
    print('Status Code: $statusCode');
    print('Response Body: ${response.body}');
  } else {
    print('Error Status Code: $statusCode');
    print('Error Response Body: ${response.body}');
  }
}

package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  url := "https://api.foss42.com"
  method := "GET"
  headers := map[string]string{}

  req, err := http.NewRequest(method, url, nil)
  if err != nil {
    fmt.Println("Error creating request:", err)
    return
  }

  // Set headers
  for key, value := range headers {
    req.Header.Set(key, value)
  }

  // Make the HTTP request
  client := &http.Client{}
  resp, err := client.Do(req)
  if err != nil {
    fmt.Println("Error making request:", err)
    return
  }
  defer resp.Body.Close()

  fmt.Printf("%s\n%s\n\n", resp.Status, resp.Header)

  // Read and print the response
  bodyText, err := io.ReadAll(resp.Body)
  if err != nil {
    fmt.Println("Error reading response body:", err)
    return
  }
  fmt.Println(string(bodyText))
}

These two are equivalent dart and go code
Go code is generally lengthy, unlike most languages, but it is totally valid, I don't see any problem or difference in any test case.

@CodeHariK the difference between both the codes is very evident. It is not about the length, but about what is required and what is not. Let me know when you have made the required changes to the PR.

Please verify

@CodeHariK, Deleting comments is not how open source works. This is a completely unacceptable behavior. Others who might come to the PR will now have no clue about the flow of discussions that were happening. Open source is about being open to feedback, accepting mistakes and improving. Hope you respect the spirit of open source from next time.

bro it was useless comment, in which i was comparing my old code with dart code and another one in which i added spaces instead of tabs, and i am new to this, i didn't know.

@CodeHariK The comments were important to the conversation at that time, post which the PR was modified. Each comment in this discussion is part of the PR history and just because any comment is no longer relevant does not mean you should delete it, as that comment led to the improvement.

What am i supposed to do now

Just don't repeat it again in this project or any other open source project.

Ok, Please verify

@CodeHariK Can you kindly update the test cases to include example Request Models POST 4 to POST 9 which have been recently added.

Thanks for working on this PR.
This PR currently has issues with multipart. Hence, we have accepted an alternate PR which resolves the issue.


Do not end initialization process before assign attributes

Make sure that after_initialize callback for resource will be called
after assigning attributes from abilities. This is possible because
most of AR methods are able to take optional block argument.

@bronislav As far as I can see, there are still no tests here. You should add some if you want this to be merged :)

I don't necessarily see a problem with this, but I also don't see a reason for it. Is there a scenario where the current logic is failing or is this just an opinionated change?

My use case it when I assign default values for some entity depending on the the attribute assigned by cancan.
For example, I have company which have default time zone field. And when I create for example project entity I want copy default time zone from the company. This usually done in after_initialize callback. But in current implementation company field is nil because cancan didn't assign it yet. I can't move assignment from the after_initialize because I want show it on the new from fro user to be able to change default values.

@bronislav That's fair. I would highly recommend against using after_initialize :), most stuff like that typically happens on before_validation.
The other issue I'd like you to address then is the fact that resource_base may not be an ActiveRecord object. Have you tested this with other adapters? If they cannot play nicely I would be in favor of keeping the original behavior instead of adding complexity to handle an edge case like this, as I believe very few people use after_initialize for this kind of logic.

If set default value in before_validation callback, then is won't appear on the new form. I know that using after_initialize is quite tricky but didn't find other solution.
About other adapters. When I made pull request I have checked all three of supported adapters to make sure that they may consume block during initialization process. So, I read their sources but didn't check it manually.

@bronislav With Datamapper alone it does not share the same behaviour as active record:
[1] pry(CanCan::ModelAdapters::DataMapperAdapter)> model_class.create do |thing|
[1] pry(CanCan::ModelAdapters::DataMapperAdapter)*   thing.secret = true
[1] pry(CanCan::ModelAdapters::DataMapperAdapter)* end
=> #<Article @id=7 @published=false @secret=false @priority=<not loaded>>

Along with that case, there's the issue where you want your attributes to be assigned before your after_initialize logic, but others may not want this.
Others may want their after initialize logic to occur before assignment and the best way to solve this problem for both scenarios is to avoid using after_initialize. There's almost always a better way of solving the issue.
Thank you for raising the issue.


Add optional claim_txid to ReverseSwapInfo

The field is dynamically calculated based on the rev swap status.
Fixes #512

Outside of this PR, but I wonder if it worth pushing status changes to swaps as events also?

Makes lot of sense to me.

@ok300 looks like we need to add here also the lock tx.


A value is trying to be set on a copy of a slice from a DataFrame.

Hi,
updated to 2.1.0 and this message is displayed:
A value is trying to be set on a copy of a slice from a DataFrame.
|         Iteration : 1 (BEAR)                                                 |

Timestamp : 2021-05-14 08:00:00

Close : 41649.67

EMA12 : 41113.39

EMA26 : 41443.94

Crossing Above : False

Currently Above : False

Crossing Below : False

Currently Below : True

Condition : EMA12 is currently below EMA26 and has crossed over

SMA20 : 40947.21

SMA200 : 46134.6

|              MACD : -330.55                                                  |
|            Signal : -542.7                                                   |
|   Currently Above : True                                                     |
|   Currently Below : False                                                    |

Condition : MACD is currently above Signal and has crossed over

Action : WAIT

================================================================================

/opt/pycrypt/bot-btc-eur/models/exchange/coinbase_pro/api.py:214: SettingWithCopyWarning:

A value is trying to be set on a copy of a slice from a DataFrame.

Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versu
s-a-copy
df['price'] = df.apply(lambda row: round((float(row.executed_value) * 100) / (float(row.filled_size) * 100), 2) if float(row.fil
led_size) > 0 else 0, axis=1)
^C2021-05-14 08:59:29.426749 closed
Config:
"coinbasepro" : {
    "api_url" : "https://api.pro.coinbase.com",
    "api_key" : "",
    "api_secret" : "",
    "api_passphrase" : "",
    "config" : {
        "base_currency" : "BTC",
        "quote_currency" : "EUR",
        "granularity" : "120",
        "live" : 1,
        "verbose" : 1,
        "graphs": 1,
        "graph": 1,
        "save_graphs": 1
    }
},
"telegram" : {
"token" : ":",
"client_id" : ""
}

}
Are there more people experiencing this?

Yeah, I'm seeing the same

Same issue here, as well...
{

    "coinbasepro" : {
        "api_url" : "https://api.pro.coinbase.com",
        "api_key" : "",
        "api_secret" : "",
        "api_passphrase" : "",
        "config" : {
            "granularity" : "120",
            "base_currency" : "ETC",
            "quote_currency" : "USD",
            "live" : 1,
            "sellatloss" : 1,
            "disablebullonly" : 1,
            "disablebuyobv" : 1,
            "disablebuyelderray" : 1,
            "disablelog" : 1,
            "verbose" : 1
        }
    }

}

I've never seen this myself. Are you still getting this error on the latest version?
It looks like a Pandas warning rather than an error. Maybe you are running a different version of Pandas to me?
% python3 -m pip freeze | grep pandas
pandas==1.1.4
Can you confirm which version of Pandas you are using and if it is different to mine please install the version I have and let me know if this resolves your issue?

I've also had this error.
I'm running the bot in Docker so the pandas version is the last one (1.2.4) since requirements.txt don't set the version.
I guess that the simple solution is to put the version (1.1.4) in requirements.txt.

had the same error, fresh installed with fresh requirements and with fresh directory, 2 folders 1 BTC-EUR 1 ADA-EUR
ADA-EUR is no error
BTC-EUR has the same error dont know why its almost the same folder
tested with MATIC-EUR aswell error

I'm also having the same issue.   I get the error when i set it up for BTC-USD, but when its set up for UMA-USD there is no error.  it seems to be happening in the getOrders def in api.py when its converting the values in the DataFrame df.
i've installed v2.23.3 and confirmed that pandas is version 1.1.4
any ideas?

This is fixed in v2.25.0


Show max depth or prevent drop on folders

I've got a tree that has categories and within those there are child links. I render two different trees, one that shows just the top level categories (and I want it only to ever display the root level nodes) and one that when you select a category shows the children of the selected category. Imagine it's a bit like windows explorer with 2 panes, and the left pane only ever shows the top level items.

This is all working great apart from one small thing! :)
If you drag within the top level category tree and drop onto one of the other categories, it then opens the node and shows all the sub items.

Is there a way you can tell a tree to allow drag and drop, but not to automatically open the folders if you drag something into it OR only ever show a max-depth of children (so you could set it to one for example)
I'm using a controlled tree and have my own handlers for onMove etc.
I hope that rather convoluted explanation makes sense... Thanks for any help, it's a terrific package!

I managed to get a solution and tackled it in a different way. What I do is pass a modified version of the top level node data into the left hand tree where I strip all the children from the array. That makes it behave as leaf nodes, so no folder opening!

Great! Glad you found a solution. I love seeing screenshots of people using the package. Happy coding.


Use Parallel GC by default

Expected Behavior
Throughput is maximised during build.
Current Behavior
JVM default GC is used.
Context
From my understanding the Parallel GC prioritises throughput over latency for garbage collection which would make a sensible default.
Currently users will only get this explicit recommendation if using Gradle Doctor, testing their own build, or finding a recommendation online like this one in the Android Developers documentation.
Apologies if this has been raised previously, I thought it must have been but couldn't find anything when searching past issues.

@runningcode WDYT about this?

I think we should measure the impact on the Gradle build using the Gradle Profiler and implement the change if it shows an improvement!

Just something to note: Last time we measured using parallel GC, it made some Android scenarios faster and others slower relative to the default JVM, and we decided against making this the default or even recommending its use. Admittedly it has been a while since we did this (it was early 2021 I think) so it's possible the situation has changed. We would certainly want to measure the impact before making any changes.


Custom picture upload

Describe the feature
In some regions, the network cannot use imgur. Can you modify it to be stored locally on the server or use the URL?
Additional Context
No response

We also already support images from Discord's CDN:
https://cdn.discordapp.com/attachments/


Add Mapbox attribution to map on main page

The current map on the main page uses styles hosted on Mapbox. According their documentation, attribution is required: https://docs.mapbox.com/help/getting-started/attribution/

Maps using Mapbox map styles or data supplied by Mapbox must display both the Mapbox logo and text attribution.

Mapbox requires two types of attribution: a logo and text attribution.
Mapbox logo
The Mapbox logo is a small image containing the stylized word "Mapbox". It typically resides on the bottom left corner of a map. While you may move the logo to a different corner of the map, we require the Mapbox logo to appear on our maps so that Mapbox and its maps get proper credit.
Text attribution
The text attribution contains at least three links: © Mapbox, © OpenStreetMap and Improve this map. You must properly attribute and link Mapbox and OpenStreetMap when using the Mapbox Streets tileset. Some other Mapbox-provided tilesets require additional attribution which is stored in the TileJSON of the tileset. If you are using Mapbox software to render a map based entirely on data from a non-Mapbox source, you may omit the text attribution but must still display the Mapbox logo.

As well the map on the main pages uses Leaflet:

Other mapping frameworks
If you are using Mapbox maps with another open source library, like Leaflet or OpenLayers, the Mapbox logo and attribution are still required. These libraries may not automatically add necessary attribution, so you'll need to add it yourself. To get the Mapbox logo in various formats and styles, download the Mapbox logo file on our Press page.

@vronk FYI, see above.
@PixlTracer @IvdL22
Can you review this?
Available at the "main page" in test:
https://test-dhcr.clarin-dariah.eu/

@patrickakk Sorry, Patrick, I am sorry, how exactly do I need to test/review this? I see the attribution and the map seems to work fine.

@IvdL22 Yes, it's only about the attribution. The quotes and link in the first comment of this issue explain that attribution is required when using their services. The attribution was not added to the application in the past.
I've tried to implement it in the way described in the documentation.
Please let me know when something is missing and maybe ask others involved in the project as well @PixlTracer  @vronk .
If we all agree that it's implemented the way it should, then we can mark this issue as "Done" ?

Implemented in 2023-09.


[Feature Request] Unit Testing and Page Rendering Test

What is the new or updated feature that you are suggesting?

Unit Testing and Page Rendering Test
Adding unit tests and page rendering tests in the GitHub workflow would allow maintainers easily review pull requests ensuring the codes are following the guidelines and pages are rendering correctly.

What docs changes are needed to explain this?
The readme documentation.

@t-bello7 progress check on this

I have not started working on it.


Is version 2+ support GCM? #question

Hi,
I am using the legacy v1 plugin, we are not ready to upgrade to FCM just yet, but will be very soon. So is it possible to use the latest library with GCM?
Regards,
Lim

No, 1.x is for GCM and 2.x is for FCM.


Install successful installs even with --only-downloads.

Drive-by: Make set-installed accept --only-downloads.
"Download only" mode works by marking execute_process and friends to fail instantly when a port is run, and we just hope the vcpkg_from_Xxx is reached before that failure happens. Then, we didn't install the result, even if it "succeeded".
This failed for ports which put their "get" operation into a helper port, since the helper cmake script dependent ports were expecting to use was unavailable.
Before:
PS C:\Dev\vcpkg> .\vcpkg.exe install ignition-math4 --only-downloads
Computing installation plan...
The following packages will be built and installed:
  * ignition-cmake0[core]:x86-windows -> 0.6.2#4
    ignition-math4[core]:x86-windows -> 4.0.0#3
  * ignition-modularscripts[core]:x64-windows -> 2022-05-11#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Detecting compiler hash for triplet x86-windows...
Installing 1/3 ignition-modularscripts:x64-windows...
Building ignition-modularscripts[core]:x64-windows...
-- Installing: C:/Dev/vcpkg/packages/ignition-modularscripts_x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake
Downloaded sources for ignition-modularscripts[core]:x64-windows
Elapsed time to handle ignition-modularscripts:x64-windows: 51.88 ms
Installing 2/3 ignition-cmake0:x86-windows...
Building ignition-cmake0[core]:x86-windows...
CMake Error at ports/ignition-cmake0/portfile.cmake:3 (ignition_modular_library):
  Unknown CMake command "ignition_modular_library".
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

Downloaded sources for ignition-cmake0[core]:x86-windows
Elapsed time to handle ignition-cmake0:x86-windows: 43.37 ms
Installing 3/3 ignition-math4:x86-windows...
Building ignition-math4[core]:x86-windows...
CMake Error at ports/ignition-math4/portfile.cmake:1 (ignition_modular_library):
  Unknown CMake command "ignition_modular_library".
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

Downloaded sources for ignition-math4[core]:x86-windows
Elapsed time to handle ignition-math4:x86-windows: 43.78 ms
Total install time: 4.206 s
RESULTS
    ignition-modularscripts:x64-windows: DOWNLOADED: 51.88 ms
    ignition-cmake0:x86-windows: DOWNLOADED: 43.37 ms
    ignition-math4:x86-windows: DOWNLOADED: 43.78 ms

SUMMARY FOR x64-windows
    DOWNLOADED: 1
SUMMARY FOR x86-windows
    DOWNLOADED: 2
PS C:\Dev\vcpkg>

After:
PS C:\Dev\vcpkg> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.exe install ignition-math4 --only-downloads
Computing installation plan...
The following packages will be built and installed:
  * ignition-cmake0[core]:x86-windows -> 0.6.2#4
    ignition-math4[core]:x86-windows -> 4.0.0#3
  * ignition-modularscripts[core]:x64-windows -> 2022-05-11#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Detecting compiler hash for triplet x86-windows...
Installing 1/3 ignition-modularscripts:x64-windows...
Building ignition-modularscripts[core]:x64-windows...
-- Installing: C:/Dev/vcpkg/packages/ignition-modularscripts_x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake
-- Performing post-build validation
Elapsed time to handle ignition-modularscripts:x64-windows: 63.08 ms
Installing 2/3 ignition-cmake0:x86-windows...
Building ignition-cmake0[core]:x86-windows...
-- Downloading https://github.com/ignitionrobotics/ign-cmake/archive/ignition-cmake_0.6.1.tar.gz -> ignitionrobotics-ign-cmake-ignition-cmake_0.6.1-1.tar.gz...
-- Extracting source C:/Dev/vcpkg/downloads/ignitionrobotics-ign-cmake-ignition-cmake_0.6.1-1.tar.gz
-- Applying patch do-not-compile-gtest.patch
-- Applying patch support-arm64.patch
-- Applying patch uuid-do-not-require-pkg-config.patch
-- Applying patch fix-find-ign-curl.patch
-- Using source at C:/Dev/vcpkg/buildtrees/ignition-cmake0/src/make_0.6.1-6417790457.clean
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-<IP_ADDRESS>73.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Found external ninja('1.11.0').
-- Configuring x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:23 (message):
  This command cannot be executed in Download Mode.

  Halting portfile execution.

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:326 (vcpkg_execute_required_process)
  installed/x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake:8 (vcpkg_configure_cmake)
  installed/x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake:160 (ignition_modular_build_library)
  ports/ignition-cmake0/portfile.cmake:3 (ignition_modular_library)
  scripts/ports.cmake:147 (include)

Downloaded sources for ignition-cmake0[core]:x86-windows
Elapsed time to handle ignition-cmake0:x86-windows: 1.004 s
Installing 3/3 ignition-math4:x86-windows...
Building ignition-math4[core]:x86-windows...
-- Downloading https://github.com/ignitionrobotics/ign-math/archive/ignition-math4_4.0.0.tar.gz -> ignitionrobotics-ign-math-ignition-math4_4.0.0-1.tar.gz...
-- Extracting source C:/Dev/vcpkg/downloads/ignitionrobotics-ign-math-ignition-math4_4.0.0-1.tar.gz
-- Using source at C:/Dev/vcpkg/buildtrees/ignition-math4/src/ath4_4.0.0-89bdbdf369.clean
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-<IP_ADDRESS>73.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at C:/Dev/vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Found external ninja('1.11.0').
-- Configuring x86-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:23 (message):
  This command cannot be executed in Download Mode.

  Halting portfile execution.

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:326 (vcpkg_execute_required_process)
  installed/x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake:8 (vcpkg_configure_cmake)
  installed/x64-windows/share/ignition-modularscripts/vcpkg-port-config.cmake:160 (ignition_modular_build_library)
  ports/ignition-math4/portfile.cmake:1 (ignition_modular_library)
  scripts/ports.cmake:147 (include)

Downloaded sources for ignition-math4[core]:x86-windows
Elapsed time to handle ignition-math4:x86-windows: 965.5 ms
Total install time: 5.452 s
RESULTS
    ignition-modularscripts:x64-windows: SUCCEEDED: 63.08 ms
    ignition-cmake0:x86-windows: DOWNLOADED: 1.004 s
    ignition-math4:x86-windows: DOWNLOADED: 965.5 ms

SUMMARY FOR x64-windows
    SUCCEEDED: 1
SUMMARY FOR x86-windows
    DOWNLOADED: 2
PS C:\Dev\vcpkg>

Observe that in the before we failed to download the sources of ignition-cmake0 and ignition-math4.


buildEnv: improvements

Add the possibility to specify arbitrary arguments
(same as with other derivation helpers).
This allows one to use a buildEnv helper to define a
package.
Tests:

Using fixed attribute throws an error.
Using an arbitrary attribute such as nativeBuildInputs,
meta, dontPatchELF or dontStrip work fine.

An example of improvement it could bring:
was:
runCommand name {
  inherit build;
  inherit meta;

  nativeBuildInputs = [ makeWrapper lndir ];

  dontPatchELF = true;
  dontStrip = true;

}
(let
  buildWithPlugins = buildEnv {
    name = "thunar-build-with-plugins";
    paths = [ build ] ++ thunarPlugins;
  };

in ''
  mkdir -p $out
  pushd ${buildWithPlugins} > /dev/null
  for d in `find . -maxdepth 1 -name "*" -printf "%f\n" | tail -n+2`; do
    ln -s "${buildWithPlugins}/$d" "$out/$d"
  done
  popd > /dev/null

  ${replaceLnExeListWithWrapped "$out/bin" [ "thunar" "thunar-settings" ] [
    "--set THUNARX_MODULE_DIR \"${buildWithPlugins}/lib/thunarx-2\""
  ]}
'')

now could be:
buildEnv {
  inherit name;
  inherit build;
  inherit meta;

  paths = [ build ] ++ thunarPlugins;

  nativeBuildInputs = [ makeWrapper lndir ];

  dontPatchELF = true;
  dontStrip = true;

  postBuild = ''
    ${replaceLnExeListWithWrapped "$out/bin" [ "thunar" "thunar-settings" ] [
      "--set THUNARX_MODULE_DIR \"$out/lib/thunarx-2\""
    ]}
  '';
}

cc @edolstra @vcunat

ping


Trojan: MSIL/Perseus.AKR!rfn

Is your feature request related to a problem? Please describe.
You Need to make it more Secure for a user to trust Cause Windows Defender detected.
Describe the solution you'd like
Encrypt the code or use the Clean Version with packages.

You're calling yourself a programmer and hacker but, you don't seem to understand how coding and releasing software works.
First, this tool is FREE-for educational use. You're a programmer (make it more Secure) make it so
Second, Windows Defender detects it- helps prevent no skill script kiddies from abusing
And, to be removed from AV companies hot list one needs to summit their software (at the least) to major AV companies
Then to help avoid future detection purchase a certificate. However not full proof if code is often updated
Purchase a next level Certificate (more expensive) again not full proof if code is often updated
So inconclusion, if you offer your hard work for FREE would you Pay to go through all this?
It's opensource you're a programmer (make it more Secure) make it so
FYI, for a free tool as this, it is very secure, if you would take the time to read the code
you should have no reason to not trust this software..

You're calling yourself a programmer and hacker but, you don't seem to understand how coding and releasing software works.
First, this tool is FREE-for educational use. You're a programmer (make it more Secure) make it so
Second, Windows Defender detects it- helps prevent no skill script kiddies from abusing
And, to be removed from AV companies hot list one needs to summit their software (at the least) to major AV companies
Then to help avoid future detection purchase a certificate. However not full proof if code is often updated
Purchase a next level Certificate (more expensive) again not full proof if code is often updated
So inconclusion, if you offer your hard work for FREE would you Pay to go through all this?
It's opensource you're a programmer (make it more Secure) make it so
FYI, for a free tool as this, it is very secure, if you would take the time to read the code
you should have no reason to not trust this software..

FYI,      Trojan: MSIL/Perseus.AKR!rfn The "!"  means it was detected by  a A.I. learning detection method not a actual listed virus.

FYI,      Trojan: MSIL/Perseus.AKR!rfn The "!"  means it was detected by  a A.I. learning detection method not a actual listed virus.

Okay dude thank you for all what you said and i will told u that I'm respecting all the efforts.
I just said that if Windows defender detect that as trojan what can be helpful to use it and the Defender work or the Antivirus work that what i mean from this issue that all 🙏

Okay dude thank you for all what you said and i will told u that I'm respecting all the efforts.
I just said that if Windows defender detect that as trojan what can be helpful to use it and the Defender work or the Antivirus work that what i mean from this issue that all 🙏


Version 0.1.14 is breaking

Hello guys, it's really nice to have a CLI tool to integrate into the CI pipeline, but I'm facing an error with version 0.1.14, the previous version 0.1.13 was working nicely.
I'm using the bitbucket pipeline, here is my pipeline step, where I'm installing the CLI.
- step:
        name: Upload codecov reports
        image: python:3.10-alpine
        script:
            - apk update
            - apk add build-base git
            - pip install codecov-cli
            - codecovcli create-commit --git-service bitbucket
            - codecovcli create-report --git-service bitbucket
            - codecovcli do-upload --git-service bitbucket

I'm not specifying a version, that's why I'm getting the latest, but I fixed 0.1.13 to fix the pipeline.
However, using the 0.1.14 version, I've got the error.
+ codecovcli create-commit --git-service bitbucket
Traceback (most recent call last):
  File "/usr/local/bin/codecovcli", line 5, in <module>
    from codecov_cli.main import run
  File "/usr/local/lib/python3.10/site-packages/codecov_cli/main.py", line 12, in <module>
    from codecov_cli.commands.labelanalysis import label_analysis
  File "/usr/local/lib/python3.10/site-packages/codecov_cli/commands/labelanalysis.py", line 11, in <module>
    from codecov_cli.runners import get_runner
  File "/usr/local/lib/python3.10/site-packages/codecov_cli/runners/__init__.py", line 8, in <module>
    from codecov_cli.runners.python_standard_runner import PythonStandardRunner
  File "/usr/local/lib/python3.10/site-packages/codecov_cli/runners/python_standard_runner.py", line 13, in <module>
    import pytest
ModuleNotFoundError: No module named 'pytest'

Is it something I'm doing wrong?
Thanks

@almeidaalex that is really strange. It should be ok now, pytest is a strict requirement on pytest-cov (which is a requirement on codecov-cli). Can you try with the latest versions and see if you are getting an issue?


Added error flag in multiplex constructor opts

Hi James,
We are starting to see intermittent errors coming from the multiplex module when dataplex is under heavy load. I am not sure what causes the problem as the error comes up at seemingly random times, but essentially one of the sub-streams of multiplex seems to be throwing an error which is then not caught. The stack trace looks something like:
events.js:72
throw er; // Unhandled 'error' event
^
Error: type":"create","key":"34f5d66d-264
at createOrPush (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:88:57)
at decode (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:69:5)
at decode (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:73:9)
at decode (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:73:9)
at decode (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:73:9)
at Transform.decode [as _transform] (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/index.js:73:9)
at Transform._read (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at Transform._write (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
at doWrite (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
at writeOrBuffer (/usr/share/DateraContainer/node-cli-<IP_ADDRESS>-bb1fe3c.chroot/src/node-api/mystral/mystral-client/node_modules/dataplex/node_modules/multiplex/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\
It is odd because the content of the error is part of a data chunk, as you can see in the first line of the backtrace.
In any case, adding "error: true" to the constructor args to multiplex from within dataplex seems to have solved the problem. I can't say I have a full understanding of what's going on there, so if you have time to investigate further and see if this is the right solution that would be much appreciated.
Thanks!

+1


Pydantic model for config

Detailed Description
Our configuration is getting a bit more complicated. It might worth having a pydantic model, with some default values.
Context

try to keep the code neat

Possible Implementation

Change here to a pydantic model
Load from yaml file
Could be a list on model configruations
different yaml file for "day_ahead"

Hi @peterdudfield, I would like to pick this issue. Can you elaborate on what needs to be done, so that I can move in the right direction and get started.

Hi @rudra2112 thanks for getting in touch
We currently have big dictionary that reapeats it self sometimes - here
I think we need to

Create a pyandatic model. Perhsps the fields can be the same as the dictionary keys
write yaml file with these variables in it
load the yaml file in the main app.
Have a different yaml file for the day ahead configuration https://github.com/openclimatefix/pvnet_app/blob/main/pvnet_app/app.py#L161

have you worked with pydantic before?

@peterdudfield, Thanks for the reply, Will start working on it. And Yeah I have worked a bit with Pydantic Models before.

Hey @peterdudfield, Should I replace with model_dict with a Pydantic Model with the fields pvnet_v2, pvnet_v2_sat0min_v9_batches, etc. and all its occurrences or just the the model config with pydantic model?
And how should I structure the additions? the yamls, and models.py

Yea I would do something like that. Perhaps models.py could contain a pydantic model called Model and it could have the following fields

name
pvnet_name
pvnet_version
summation_name
summation_version
use_adjuster
save_gsp_sum
save_gsp_to_forecast_value_last_seven_days

you might need a second pydnatic model, call Models which is a list of model. You can then easily save the dict to yaml file and can be loaded easily.
Does this make sense?


[Event Request] Table 5965 Service Contract Heder event OnCalculateEndPeriodDateOnPrepaidCaseElse

ServiceContractHeader variable should be passed as VAR
BEFORE
[IntegrationEvent(false, false)]
local procedure OnCalculateEndPeriodDateOnPrepaidCaseElse(ServiceContractHeader: Record "Service Contract Header"; var EndPeriodDate: Date)
begin
end;
AFTER
[IntegrationEvent(false, false)]
local procedure OnCalculateEndPeriodDateOnPrepaidCaseElse(var ServiceContractHeader: Record "Service Contract Header"; var EndPeriodDate: Date)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


NumPy symbols imported into scipy namespace

I was getting some strange errors while using the scipy.fft module in #10238.
>>> scipy.fft.fft
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'function' object has no attribute 'fft'

I have now found out that most of NumPy's symbols are exported into the scipy base module. This is all done from within scipy/__init__.py
https://github.com/scipy/scipy/blob/1169d27ad47a29abafa8a3d2cb5b67ff0df80a8f/scipy/__init__.py#L68-L74
Is there any possibility of removing this behavior?

Ugh, that's definitely a nuisance if we want to create a new scipy.fft subpackage.  The history of importing the numpy names into the scipy namespace goes way back, and I'm pretty sure most would agree that, in hindsight, it was a mistake.   Using the numpy names in the scipy namespace is certainly discouraged these days.  I wish we could remove those imports completely, but such a change creates a backwards incompatibility that could break user's code. Even if we are not promoting the usage, and even if we discourage it when we see it, folks still manage to find and use those numpy names in scipy.
I don't have a good recommendation at the moment.  Anyone have any bright ideas for handling this?
We could consider different names, e.g. scipy.spectral, scipy.dft, scipy.fourier, etc.  I'm not too excited about any of those, to be honest.
Also, can we consider doing some deprecation magic to deprecate the use of all those numpy names in scipy?  That won't help us with fft right now, but it would eventually free up the name scipy.fft once the deprecation has been in place long enough that the names can be removed.

I don't have a good recommendation at the moment. Anyone have any bright ideas for handling this?

Do __call__ = np.fft in scipy/fft.py (or scipy/fft/__init__.py). It should work I think.

... and +1 for deprecating these NumPy functions, probably using some magical decorating-as-deprecated loop.

Apparently callable modules are impossible.
https://stackoverflow.com/questions/1060796/callable-modules

Argh, I thought I had "solved" this problem once before and __call__ was the solution. Apparently not, sorry for the noise!
I'll think a bit more, but that StackOverflow makes it sound impossible :(

Apparently callable modules are impossible.

That's OK.  It was an interesting idea, but I would not have supported actually implementing it.  It feels like an API hack that we would later regret.

... actually, since we require 3.5+ now, it looks like there is a solution that should work in that thread by hacking sys.modules:
import sys

class MyModule(sys.modules[__name__].__class__):
    def __call__(self):  # module callable
        return 42

sys.modules[__name__].__class__ = MyModule

It's not pretty, but we'd only have to live with it for a few cycles until the NumPy functions are removed anyway.

Ouch, that's a problem.

We could consider different names, e.g. scipy.spectral, scipy.dft, scipy.fourier, etc. I'm not too excited about any of those, to be honest.

We've talked about scipy.transforms before, and that's a name that could make sense. IIRC we discussed it when someone wanted to add a Hankel transform, and when we still wanted to integrate PyWavelets into SciPy.

Closing since this should work now, and we have a plan for deprecation in #10290


nimble examples don't work with nRF Connect (IDFGH-10605)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4.2
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
core-esp32-c3
Power Supply used.

I was trying spp_server, bleprph and blehr with nRF Connect on my Adroid phone
They can't connect with default settings( which have  Security manager legacy pairing and Security manager secure connections (4.2) checked  in nimble options), disconnect reason 531.
After uncheck these two options, it can connect, but don't respond to read, write, enable notify operations etc, after a while, connection lost, disconnect reason 520 for spp_server and bleprph, 531 for blehr.
Steps to reproduce.
Try it with nRF Connect, you'll see.
Debug Logs.
I (371) NimBLE_BLE_PRPH: BLE Host Task Started
I (371) NimBLE: GAP procedure initiated: stop advertising.

No response

Hi , we tried to reproduce the issue for mentioned examples at our end, but it is working fine.  Below is one screenshot and log file for the success case run.

Success logs.txt
So, i think, this might be some other issue. For debugging this, can you please provide.

Your sdkconfig
Any changes done, if any
Debug enabled console logs.

Following is the procedure for getting debug enable logs:
                        Component Config  --> Log Output --> Default Log Verbosity --> Debug

                        Component Config --> Bluetooth --> NimBLE Options --> NimBLE Host log verbosity --> Debug Logs

If possible, can you please run bleprph and blecent and perform the connection operation to confirm more ?  If issue is seen even in this setup at your end, then debug logs would be helpful to narrow down the failure reason.

Hi，ESPAbhinav,
Thanks for the respond.
I realized that the failure may because of some ble bond info saved in nvs before, so I erased the whole chip and tried again with nothing changed, it works!
Though, there's still something wrong, the first time read on characteristic which's uuid end with f6, it would have GATT AUTH FAIL，but only after this step, all functions work well.
Without this step, write to the characteristic which's uuid end with f7 would fail, you'll see a wait circle keep spining, no respond any more.

I tested more, blehr works well, spp_server have same issue as bleprph.

Hi, @ESPAbhinav ,
I got what you need, the logs are long so I save them to files as attached.
sdkconfig.txt
bleprph_gatt_auth_fail.txt
bleprph_direct_write_0x55.txt

Hi, @ESPAbhinav,
I tried it with another phone, it works well.
Seems it truely is a particular phone issue.
Thank you so much for the help.

Hi, @ESPAbhinav,
I tried it with another phone, it works well.
Seems it truely is a particular phone issue.
Thank you so much for the help.

Hi, @zzzh,
Thank you for confirmation.


Using .mjs files causes "Error: Vitest was initialised with native Node instead of Vite Node"

Describe the bug
(this is solved, leaving this issue here for anyone else running into the same problem)
When tests have the .mjs extension, or tests import files explicitly with the .mjs extension, all tests would fail and I'd get a message saying: Error: Vitest was initialised with native Node instead of Vite Node.
Got help on the Discord, and the solution was to add this config:
export default defineConfig({
  test: {
    deps: {
      inline: [/(.*)\.mjs$/],
    },
  },

That solved the issue for me.
Reproduction

System Info
-

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Closing this immediately since it's already solved.

I just want to point out that this RegExp will inline every .mjs file, including inside node_modules, so it is better to came up with a RegExp that covers only your source folder. Usually, src.


undefined method `-' for "ntp.mycorp.com":String) on line #63:

Cookbook version
3.6.2
Chef-client version
13.12.14
Platform Details
RHEL/Centos 6/7
Scenario:
Use only one NTP server
Steps to Reproduce:
assign only one value for NTP server
Expected Result:
define only 1 ntp server for in the ntp.conf
Actual Result:
[2019-03-27T07:54:33+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2019-03-27T07:54:33+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-03-27T07:54:33+01:00] ERROR:
Chef::Mixin::Template::TemplateError (undefined method `-' for "ntp.mycorp.com":String) on line #63:
61: <%# We should guard the servers array against deep merge. %>
62: <%# This should keep authoritative local servers from being included twice. %>
63: <% ( node['ntp']['servers'] - node['ntp']['peers'] ).sort.each do |ntpserver| -%>
64: <%#   Loop through defined servers, but don't try to upstream ourself %>
65: <%   if node['ipaddress'] != ntpserver and node['fqdn'] != ntpserver -%>
(erubis):63:in block in evaluate'   /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in instance_eval'
/opt/chef/embedded/lib/ruby/gems/2.4.0/gems/erubis-2.7.0/lib/erubis/evaluator.rb:74:in evaluate'   /opt/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.9.4/lib/chef/mixin/template.rb:161:in _render_template'

Hello,
I close this issue as it was not in the ntp cookbook but rather in our sync script between our cmdb and the chef master.
which send the value as string if instead of an array if we have only 1 ntp server is defined.
To overcome this issue, i have apply te following solution in the attributes/default.rb
if node['ntp']['servers'].is_a? String
  override['ntp']['servers'] = %W( #{node['ntp']['servers']} )
end


ANC - adjust display logic for RH status on progress report

#1314 per https://github.com/TIP-Global-Health/eheza-app/issues/1314#issuecomment-2361466238