Replaced SIGKILL with SIGINT

Codecov Report

Merging #283 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #283   +/-   ##
=======================================
  Coverage   71.66%   71.66%
=======================================
  Files           8        8
  Lines        1094     1094
=======================================
  Hits          784      784
  Misses        263      263
  Partials       47       47

Flag
Coverage Δ

#unittests
71.66% <0%> (ø)
:arrow_up:

Impacted Files
Coverage Δ

service/driver.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Signal on windows is not implemented.

@aandryashin @vania-pooh if this PR was about killing ffmpeg process, I've researched this question for Windows before. There's a command line tool written on C ages ago, which emulates CTRL+C key press behavior for specified process. It allows to gracefully stop ffmpeg process (actually this is the only valid way on Windows I believe). Not sure if it could be easily emulated on Go.
Anyway you can download it from my repo.
And here's a usage example on java.

@sskorol no, this is about killing webdriver process when working without Docker on Windows.


Support string literals

When there is a piece of string literal "\x19Ethereum Signed Message:\n32"

the runtime code should contain this as a byte sequence
the code generation should maybe copy this thing into the memory?  Maybe, instead of pushing instructions into the codegen environment, the codegen_exp function should return the location of the literal, so that the caller can deal with that.

This is needed for #113


Add new overloads for packet payload and will payload

This PR adds new overloads for several builders in order to support ArraySegments without conversion overhead.

Fixes https://github.com/dotnet/MQTTnet/issues/1720.


Use Vitest instead of Mocha

This is an experiment replacing mocha throughout with Vitest, which was already what the react-hooks package was using. It's muuuuch faster, especially in watch mode (which is on by default). Vitest 1.0 just entered beta, but this is already a vastly superior experience & I'd suggest making the switch.
I haven't looked into the CI implications, but I can.

I'm no fan of Mocha and fast tests are good tests!

Oh man, this is such a huge improvement.  I merged it after testing locally and seeing how much faster it is. Thanks so much for this!


IOS - get noticed when the the scanning dialog is swiped out

Hello,
this is just a question. Is there anybody who knows how to get a notice when the scanning dialog is swiped out.
As you know, now users can swipe the scanning dialog, but the plugin doesn't say it has been closed.
We could prevent from being swiped out. There is a pull request for it. But, I am wondering If there is a possibility to receive a callback when user closes the dialog, by swiping it out.
Thanks a lot for your help.
Regards,
inverplax.

Hello,
after investigating, I would propose to add a few lines:

(void)viewWillDisappear:(BOOL)animated{
[self.processor performSelector:@selector(barcodeScanCancelled) withObject:nil afterDelay:0];
}

They go into the implementation of CDVbcsViewController.
The code works, but is it a good solution? What do you think?


MIssing overlays on some players

description of problem
some players such as 20d6334b7f9541ebbf7f860205ebf846, f5667ad6b4b3434ba58f2ed2396f62f2, and b44d2d5272dc49c28185b2d6a158d80a don't show an overlay when the overlay parameter is present.
steps to reproduce:

set a skin with a hat by going to https://namemc.com/skin/8fb5faa25f6931de and clicking apply (any method of setting any skin with a hat will likely work but this is how I did it)
load Minecraft and join a multiplayer server (this step might not be required)
go to https://crafatar.com/avatars/<your UUID>?overlay

expected behavior:

actual behavior:

skin used for example:

a note on reproducibility:
it appears this bug is somewhat unpredictable and I cannot guarantee that this method will reproduce the bug. I would do further testing but crafatar.com uses a cache making testing slow.
other notes:
I have considered the possibility that this bug may be related to the Hat option in Minecraft's Skin Customization options however I am fairly certain this has no affect on this bug.

Something I forgot to mention in my original comment is that this is a regression. I don't know exactly when it stopped working as expected but it seems to be within the last week or so.

Thank you for reporting this!
Crafatar stores plain-avatars and overlay-avatars as two separate PNG files. When a skin has no overlay, only the plain-avatar is stored. When someone then requests an overlay-avatar, crafatar checks if there's an overlay-avatar and otherwise just serves the plain-avatar.
I recently deleted plain-avatars and overlay-avatars due to disk space issues. These users must have been stored again between deleting their plain-avatars and their overlay-avatars, so the overlay-avatars went missing. I'll make sure to keep this in mind when deleting files again.
The issue should now be fixed. Note that Cloudflare might keep the cached version around for a short while.

Thank you. It seems to be working as expected now


'mutex' in namespace 'std' does not name a type on win10 64

Environment info
Operating System:
windors10 64bit
CPU/GPU model:
C++/Python/R version:
MinGW64
gcc version 8.1.0 (x86_64-win32-seh-rev0, Built by MinGW-W64 project)
LightGBM version or commit hash:
Error message

C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:42:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex lock_;
^~~~~
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:42:3: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:15:1:
+#include
#include
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:42:3:
std::mutex lock_;
^~~
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h: In member function 'void ThreadExceptionHelper::CaptureException()':
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:27: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex guard(lock_);
^~~~~
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:27: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:27: error: 'mutex' is not a member of 'std'
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:27: note: 'std::mutex' is defined in header ''; did you forget to '#include '?
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:32: error: template argument 1 is invalid
std::unique_lockstd::mutex guard(lock_);
^
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:40: error: In file included from '
' was not declared in this scope
std::unique_lockstd::mutex guard(C:/Users/Downloads/LightGBM/include/LightGBM/utils/common.h:9lock_);
,
from ^C:/Users/Downloads/LightGBM/include/LightGBM/config.h:13
,
from C:/Users/Downloads/LightGBM/include/LightGBM/application.h:8,
from C:\Users\Downloads\LightGBM\src\main.cpp:5C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:40::
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:42:8:note:  suggested alternative: 'error: clock''
std::unique_lockstd::mutex guard(mutexlock_' in namespace ');
std^' does not name a type
std::
mutexclock lock_;
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:35:34: warning: ^unused variable '
C:/Users/Downloads/LightGBM/include/LightGBM/utils/openmp_wrapper.h:42:3:guard ' [note: -Wunused-variable']
std::unique_lockstd::mutex guardstd::mutex' is defined in header '(lock_);
^'; did you forget to '
#include '?
Reproducible examples

Steps to reproduce
Does windows not support mutex? How should I fix this?

it seems is the mingw problem: https://stackoverflow.com/questions/14191566/c-mutex-in-namespace-std-does-not-name-a-type
we recommend using vc++ in Windows.

Also refer to https://github.com/microsoft/LightGBM/issues/2593#issuecomment-558749711. Please make sure to use MinGW-w64 with posix threads.


Switched from TypeScript's noUnusedLocals to typescript-eslint's

Fixes #3509
Edit: e2e failures look unrelated. Putting in review anyway!

I'm fixing the build in #3569 , after which I will merge this in.


aio login does not work with Safari

Example error in the Developer Console:
XMLHttpRequest cannot load http://<IP_ADDRESS>:64320/ due to access control checks.

Works in:

✅  Chrome Mac 83.0
✅   Firefox Mac 77.0.1

Does not work in:

❌  Safari Mac 13.1.1

blocked on the client side, doesn't even go to the server
may be because of the https:// and http:// mismatch, trying to enable ssl on my local express server to test

Using https://github.com/shazron/cors-test to test CORS.

Found the issue: Safari does not allow mixed content. This snippet from this page (https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content) explains:

Note: Since Firefox 55, the loading of mixed content is allowed on http://<IP_ADDRESS>/ (see bug 903966). Chrome allows mixed content on http://<IP_ADDRESS>/ and http://localhost/. Safari does not allow any mixed content.

The workaround is, to have a self-signed certificate for the local http server so it can be connected via SSL. However, this generates a lot of trust warnings in the browser and XmlHttpRequest connections will be blocked.
Thus, the self signed cert needs to be installed on the local key store. To install the cert in a cross-platform way, we need to use something like https://mkcert.dev which adds in more complexity.

@shazron any solution to mitigate this for Safari users?

Generate a root cert and private key
openssl req -newkey rsa:2048 -x509 -nodes -keyout key.pem -new -out cert.pem -config req.cnf -sha256 -days 3650
We then include this cert and key in the local web server we run. But we also need to install this cert for everything to work seamlessly.
On macOS, we can call this (user needs to be an admin, and type in their password when prompted):
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain cert.pem
For cross-platform, we will need to use something like:
https://mkcert.dev/

The update in the certificate looks like a bigger change. Is it possible to mitigate by allowing the user to select a different browser (e.g. chrome) upon login?

@sarahxxu we can launch Chrome: I will have to test on the different OSes the lib we are using. Chrome will have to be a requirement.

Looks like the Webkit team has decided to follow the web spec content from loopback addresses should no longer be treated as mixed content even in secure origins, late last month. No implementation yet though (hopefully there is a surprise release during WWDC 2020). See https://bugs.webkit.org/show_bug.cgi?id=171934
Doubt it though.

Just tried the latest Safari Technology Preview Release 108 (Safari 13.2, WebKit 156<IP_ADDRESS>) - issue not fixed.

FWIW, another solution is to use an embedded electron browser for a controlled environment on all OS.

@alexkli that was the original implementation we had, before we tried this lightweight new thing  :) https://github.com/adobe/aio-lib-ims-oauth/commit/bb1589d4a03c743ff767268339671f049c8c843f

Short Term Fix
TLDR;
on macOS only, if the default browser is Safari, we launch another browser -- Chrome, then Firefox, if not available. If neither of these 2 are available, we prompt the user to install Chrome. If on any other OS, we just launch the default browser (current behaviour).
Plan
Safari does not (practically) exist on any other OS than macOS. The last official version is Safari for Windows 5.1.7 (in 2010), we are at version 13 now. Needless to say, we won't support Safari on Windows.
Thus, if on macOS, and the default browser is Safari, we launch the next available browser after getting a list of browsers installed (precedence: Chrome, then Firefox). If on any other OS, we just launch the default browser (current behaviour).
To detect the default browser (cross platform): we use https://github.com/sindresorhus/default-browser. There is a PR to expand Windows support, but since we don't care about the default browser on Windows this is fine.
However the state of libraries to detect installed browser apps in a is a bit fragmented. https://github.com/substack/browser-launcher is the one that is used the most; there is also the fork browser-launcher2, also unmaintained. Windows support is very poor -- thus the existence of https://github.com/vweevers/win-detect-browsers borne out of frustration with the browser-launcher project). Also Linux support is not robust. I installed Google Chrome on Ubuntu (the only way is from a .deb file) and it was undetected.
But right now we are only concerned for macOS support for installed browser detection.
macOS detection support is limited to the main browsers: Safari, Chrome, and Firefox (tested and verified). Edge, Brave, Opera and Chromium will not be detected (tested and verified). If we need this support I can send a PR but not sure when it will ever be integrated. We can just support the big other big 2 for now.
Thus at this time, we will only fall back to installed Chrome, or Firefox, on macOS. If the user does not have any of these browsers, we prompt them to download Chrome.

@purplecabbage suggested a fallback on GET, triggered by the user when the error occurs. See GIF:

Right now from the localhost server we will just output a text response, with no styling, if this occurs.

@shazron how will then the fallback view look like (message and link)?

I'm thinking just a simple link (all this text underlined):
Please click on this link to proceed with your Adobe sign in to the Adobe I/O CLI.
This is only shown in the case of the failure (which will be Safari only).
After the link is clicked, we can redirect back to a success message on the same server (to take advantage of the styling and UI)

LGTM as a temporary solution, and we'll rework the general styling and UI  of the login flow very soon.

Fixed in https://github.com/adobe/aio-cli-plugin-auth/releases/tag/2.3.0
Do an aio update

@shazron Nice solution, can confirm it works and is useable!
Using Safari 13.1 on macOS 10.15.4.


Random should account for completed problems when randomizing

We should

Parse the contents of the file returned by projecteuler.net/history
Create a user's solved problems list
Instead of using the range from 0-Max Problem Number, we should have a problems to do array, then use problemsToDo.length as the max and return problemsToDo[randomIndex]
Save problemsToDo to chrome.storage.local

Pushing this back a version, as it is a feature.


generate: Remove superfluous err check from Save

Wrong PR target (trying out my preferred approach from #140).


Fix:(initialize) remove fix_seed for initialization

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
https://github.com/InternLM/InternEvo/issues/18
Modification
Please briefly describe what modification is made in this PR.
BC-breaking (Optional)
Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here and update the documentation.
Checklist
Before PR:

[ ] Pre-commit or other linting tools are used to fix the potential lint issues.
[ ] Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
[ ] The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[ ] The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

[ ] If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects.
[ ] CLA has been signed and all committers have signed the CLA in this PR.

LGTM

@kkscilife This pull request for https://github.com/InternLM/InternEvo/issues/18


Reply Back To email using SwiftMailer

Q
A

Bug report?
no

Feature request?
yes

RFC?
yes/no

How used?
Standalone/Symfony/3party

Swiftmailer version
~5.3

PHP version
7.0.10

Observed behaviour
I used the library to send the emails to some specific email addresses. It works fine.
Expected behaviour
I want to reply back to email. Can it be done using this library ? I read the documentation but could not find anything related to this .

You can't. To do it you need to do some things by yourself:

Use another library to connect to an inbox by IMAP or POP and read a message you want to reply.
Parse the message data (from, subject, body) and insert it to a SwiftMailer message to make a reply message.
Send the reply message using SwiftMailer.


fix Issue 14828 - duplicate symbol __ModuleInfoZ

always emit __arrayZ/__assertZ/__unittest_failZ helpers (even in release)
to avoid linkage issues when instantiating a template of that module
with different compiler flags

also fixes Issue 14748 - Removing std.stdio import causes 2x increase in "Hello, world"
same underlying issue, some undefined helper function drag in a different
module which happens to have weak definitions of those helpers

Issue 14828 – [REG2.067] duplicate symbol __ModuleInfoZ depending on ordering of files passed to dmd

LGTM
When making PR's that fix a bugzilla issue, please include a link to the issue, such as https://issues.dlang.org/show_bug.cgi?id=14828

Also should reference other PRs that address the same issue - https://github.com/D-Programming-Language/dmd/pull/3552 and https://github.com/D-Programming-Language/dmd/pull/4851

When making PR's that fix a bugzilla issue, please include a link to the issue, such as https://issues.dlang.org/show_bug.cgi?id=14828

I usually do, it was a little late yesterday.

If it is actually ok to require deimos-like modules to be compiled, too, maybe we can resurrect https://github.com/D-Programming-Language/dmd/pull/3958 to get proper TypeInfo for structs.
A lot of work has been done to avoid compilation of these files (by trying to guess what TypeInfo the backend will require, not completely successful so far), switching to a simpler compilation model would avoid all these complications.

If it is actually ok to require deimos-like modules to be compiled, too, maybe we can resurrect #3958 to get proper TypeInfo for structs.

This is not what we decided. You'll almost never need an __arrayZ or __assertZ helper in deimos (b/c there are no D arrays in C, and rarely asserts in headers), and you could still workaround needing them.


Only single step two player mode, no real two player mode!?

Hello,
first of all: I thought the console menu would be really annoying, but I really like this style to start training and add my own game env that easy as well.
I wrote a game engine for the board game Kingdom Builder (https://github.com/Counterfeiter/KingdomBuilder) and build a wrapper (work still ongoing). The problem is, the two player option will fail, because each step the player should alternate, but that's not the always the case for some games.
So, please correct me if I am wrong: I can select one player game and muzero tries to maximizes the score for both player. So this combined players collaborate a kind of?!
My game environment provides a player index, also that's the next step in your TODO list to make it multiplayer. I think the multiplayer option and the "more then on step per player" option is really close to implement. Maybe we could talk here about req. implementation changes and later I could do a pull request.
Thanks and best regards
Sebastian

Hi Sebastian,
Very good question, which I'm not sure my answer is correct. Keep that in mind ;)
I think that by setting up a single-player game, MuZero will try to maximize the combined score of both of them, and not each other. I think the players will collaborate towards a maximum score (the sum of the scores)
Since this implementation can play Tic-Tac-Toe (2 player game) I think a two-player game will work out well.
I'm also looking eagerly to the multi-player implementation, especially if they can have different policy networks associated with different rewards.
Perhaps someone more knowledgeable than me can share their perspective.
Thank you,
João

Hi Counterfeiter,
An other solution for your environment would be to add a « pass » action so you can artificially turn your game into a turn by turn game.


Ispn 8033 stream rehash is broken with a map operation

https://issues.jboss.org/browse/ISPN-8033

looks good to me, except this suspicious test:
org.infinispan.scattered.stream.ScatteredStreamIteratorTest.waitUntilProcessingResults[SCATTERED_SYNC, tx=false]

Hrmm this change shouldn't cause that, my guess is that it is a random failure. I will check into it though.

@pruivo @wburns should have been fixed by https://github.com/infinispan/infinispan/pull/5258

Looking at [1] it seems that scattered cache still skipped a segment (as it is null), which is what #5258 fixed. My guess is that there is another reason outside of this that can cause a segment to be skipped.
This PR is just to make sure that the stream is generated fresh each time a rehash occurs.
[1] http://ci.infinispan.org/job/Infinispan/job/PR-5272/7/testReport/junit/org.infinispan.scattered.stream/ScatteredStreamIteratorTest/waitUntilProcessingResults_SCATTERED_SYNC__tx_false_/

The only thing I can think of if this PR is causing this failure is that Scattered cache iteration requires the same stream instance to be returned every time from the supplier. But that defeats the purpose of the supplier and actually ends up applying intermediate operations (map/flatMap/filter) multiple times, which is why map/flatMap don't work then.

ok. going to push the button :)

Yeah sadly I think @rvansa needs to look into it again possibly. But I know that this fixes a real issue, that you can reproduce every time with the test change [1] I have.
[1] https://github.com/infinispan/infinispan/pull/5272/files#diff-d7679d36fd7db7278a4661ebd6adbd0cR91

Integrated! thanks @wburns

@wburns Maybe you should have moved the test to to unstable group? Let's try to avoid at least the test failures we know about in master :)

@danberindei sounds fine to me. We should probably update the unstable ones every couple days until we finally have green (making sure to create JIRAs to fix them obviously)


Error message when installing the module....

Hello,
I tried to install your module on my Windows machine through Git Bash command line interface. I encountered the following error messages. I have installed pandoc (I used its msi) and nbconvert (via conda install).
Can anyone help me resolve the issue? Thanks.
Error message no. 1 occurred during the installation:

$ npm i hexo-jupyter-notebook --save
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+<EMAIL_ADDRESS>updated 1 package and audited 5876 packages in 6.672s
found 1 low severity vulnerability
run npm audit fix to fix them, or npm audit for details

Error message no. 2 occurred when activating local Hexo server:

ERROR Plugin load failed: hexo-jupyter-notebook
Error: Cannot find module 'co'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (E:\GoogleDrive\GitHub\technical_note\node_modules\hexo\lib\hexo\index.js:227:21)
at E:\GoogleDrive\GitHub\technical_note\node_modules\hexo-jupyter-notebook\index.js:4:12
at fs.readFile.then.script (E:\GoogleDrive\GitHub\technical_note\node_modules\hexo\lib\hexo\index.js:240:12)
at tryCatcher (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:694:18)
at Promise._fulfill (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:638:18)
at Promise._resolveCallback (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:432:57)
at Promise._settlePromiseFromHandler (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:524:17)
at Promise._settlePromise (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:694:18)
at Promise._fulfill (E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\promise.js:638:18)
at E:\GoogleDrive\GitHub\technical_note\node_modules\bluebird\js\release\nodeback.js:42:21
at E:\GoogleDrive\GitHub\technical_note\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

It seems that the issue is simply caused by the dependency of module co. After installing with the command npm install co, the issue is resolved.


Update sovrn bidder docs

🏷 Type of documentation

[ ] new bid adapter
[ ] update bid adapter
[ ] new feature
[x] text edit only (wording, typos)
[ ] bugfix (code examples)
[ ] new examples

📋 Checklist

[ ] Related pull requests in prebid.js or server are linked
[ ] For new adapters check submitting your adapter docs

@cpabst I made another commit to this PR to fix the version for the ortb spec.  In the process I also accidentally pushed my update-sovrn-bidder-docs branch to this repo....oops. lmk if this can be merged now?

@torizoemitchell I'll take a look at this in the morning, and let you know.


number as string (text)

Hi. I have a number like this:<PHONE_NUMBER>1
In export, the first digit (0) will be removed and the number will be like this:<PHONE_NUMBER>.
how can I set the column format as string (text)?
I've tried to set "stringifyLongNum" as "true" but didn't make any changes.

Hi @msghaderi77 ,
  data() {
    return {
      json_data: data,
      json_fields: {
        "Complete name": "name",
        City: "city",
        Telephone: "phone.mobile",
        "Telephone 2": {
          field: "phone",
          callback: (value) => {
            return `'${value}`;
          },
        },
      },
      json_meta: [
        [
          {
            key: "charset",
            value: "utf-8",
          },
        ],
      ],
    }
  },

const data = [
  {
    name: "Tony Peña",
    city: "New York",
    country: "United States",
    birthdate: "1978-03-15",
    phone: "04515153151"
  },
]

    <JSONExcel :leading_zero="true" class="btn btn-default"
               :data="json_data"
               worksheet="My Worksheet" :fields="json_fields"
               name="filename.xls">Download Excel (you can customize this with html code!)
    </JSONExcel>

You can add something like this then only it will work you need's to convert it to some string Or you can add Whatever string you want.
Thanks,
Pratik Patel

Hi @msghaderi77 ,
   <downloadExcel :leading_zero="true" class="btn btn-default"
                   :data="json_data" type="xlsx"
                   worksheet="My Worksheet" :fields="json_fields"
                   name="filename.xlsx">
    </downloadExcel>

Try xlsx it will work.
Thanks,
Pratik Patel

Hi @msghaderi77 ,
   <downloadExcel :leading_zero="true" class="btn btn-default"
                   :data="json_data" type="xlsx"
                   worksheet="My Worksheet" :fields="json_fields"
                   name="filename.xlsx">
    </downloadExcel>

Try xlsx it will work.
Thanks, Pratik Patel

this one does not work.
Excel will give me an error that the file format or file extension is not valid!!!!

Hi @msghaderi77 ,
   <downloadExcel :leading_zero="true" class="btn btn-default"
                   :data="json_data" type="xlsx"
                   worksheet="My Worksheet" :fields="json_fields"
                   name="filename.xlsx">
    </downloadExcel>

Try xlsx it will work.
Thanks, Pratik Patel

this one does not work. Excel will give me an error that the file format or file extension is not valid!!!!

It's available in new version.
Please update it to latest version.
1.0.15

Great.😍
It's working.


List panels and panel members

[ ] Implement panel member create response handling
[x] VCR panel import

{
  "result": {
    "status": "COMPLETED",
    "percentComplete": 100
  },
  "meta": {
    "status": "Success"
  }
}


[Usage]: openbmb-MiniCPM-Llama3-V-2_5  在vllm的兼容openai接口服务下无法使用

Your current environment
报错信息如下：
INFO:     <IP_ADDRESS>:35858 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/api_server.py", line 130, in create_chat_completion
generator = await openai_serving_chat.create_chat_completion(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/serving_chat.py", line 197, in create_chat_completion
return await self.chat_completion_full_generator(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/serving_chat.py", line 448, in chat_completion_full_generator
async for res in result_generator:
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 772, in generate
async for output in self._process_request(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 888, in _process_request
raise e
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 884, in _process_request
async for request_output in stream:
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 93, in anext
raise result
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 46, in _log_task_completion
return_value = task.result()
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 637, in run_engine_loop
result = task.result()
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 565, in engine_step
await self.engine.add_request_async(**new_request)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 323, in add_request_async
processed_inputs = await self.process_model_inputs_async(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 305, in process_model_inputs_async
return self.input_processor(llm_inputs)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/inputs/registry.py", line 202, in process_input
return processor(InputContext(model_config), inputs)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/model_executor/models/minicpmv.py", line 366, in input_processor_for_minicpmv
+ text_chunks[1]
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/api_server.py", line 130, in create_chat_completion
generator = await openai_serving_chat.create_chat_completion(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/serving_chat.py", line 197, in create_chat_completion
return await self.chat_completion_full_generator(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/entrypoints/openai/serving_chat.py", line 448, in chat_completion_full_generator
async for res in result_generator:
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 772, in generate
async for output in self._process_request(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 873, in _process_request
stream = await self.add_request(
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 676, in add_request
self.start_background_loop()
File "/root/anaconda3/envs/MiniCPMV/lib/python3.10/site-packages/vllm/engine/async_llm_engine.py", line 516, in start_background_loop
raise AsyncEngineDeadError(
vllm.engine.async_llm_engine.AsyncEngineDeadError: Background loop has errored already.
How would you like to use vllm
No response

补充：
vllm serve /path/to/llava-hf_llava-v1.6-mistral-7b-hf   --port 8010     --trust-remote-code    没问题
vllm serve /path/to/openbmb-MiniCPM-Llama3-V-2_5   --port 8010     --trust-remote-code   报错
openbmb-MiniCPM-Llama3-V-2_5是从hugging face下的

应该已经修复了 https://github.com/vllm-project/vllm/pull/6787，我也同步更新了此库代码

已经可以用了 但是返回很长一段，我把<|eot_id|>设置成终止符就可以了


Including ruby tools on capability

Including the detection of ruby rake and bundler

Hi @Nepomuceno, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;


[BUG] Updates on Documents with "BackLink" do not behave as expected.

Describe the bug
Several exceptions caused by BackLink.
To Reproduce
import asyncio
from beanie import init_beanie, Document, BackLink, WriteRules, Link
from beanie.odm.operators.update.general import Set
from motor import motor_asyncio
from pydantic import Field

class Children(Document):
    name: str
    parent: BackLink['Parent'] = Field(original_field='children')

    class Settings:
        name = 'BackLinkChildren'

class Parent(Document):
    children: list[Link[Children]] = Field(default_factory=list)

    class Settings:
        name = 'BackLinkParent'

async def init():
    client = motor_asyncio.AsyncIOMotorClient(
        'mongodb://root:12345678@localhost:27017'
    )
    await init_beanie(
        database=client.Noah,
        document_models=[
            Parent, Children,
        ],
    )

async def step1():
    await init()
    await Parent(children=[Children(name='a'), Children(name='b')]).save(link_rule=WriteRules.WRITE)

async def step2():
    await init()
    parent = await Parent.find_one(fetch_links=True)
    children = parent.children.pop()
    await Children.find(Children.id == children.id).delete()
    parent.children.append(Children(name='c'))
    await parent.save(link_rule=WriteRules.WRITE)

async def step3():
    await init()
    parent = await Parent.find_one(fetch_links=True)
    children = parent.children.pop()
    await Children.find(Children.id == children.id).delete()
    for ch in parent.children:
        ch.parent = None
    parent.children.append(Children(name='c'))
    await parent.save(link_rule=WriteRules.WRITE)

async def step4():
    await init()
    parent = await Parent.find_one(fetch_links=True)
    children = parent.children.pop()
    children.name = 'hello'
    await Children.find_one(Children.id == children.id).upsert(Set(children), on_insert=children)

if __name__ == '__main__':
    asyncio.run(step1())
    # asyncio.run(step2())
    # asyncio.run(step3())
    # asyncio.run(step4())
    ...

Expected behavior
step2
My expectation is to have a result in database as  {children: [{name: 'a'}, {'name': 'c'}]} after delete the last Children of Parent and put it into a new Children and store it, but the database result is {children: [{name: 'a'}, {'name': 'b'}, {'name': 'c'}]}.
step3
I set the BackLink of child to None and it does what I expect.
step4
An error occurs when I use the upsert with BackLink.
I wonder if there is a better way to implement step3?
And are those exceptions bugs or there is an instructions for implementing these functionalities?

Hi! I'm not sure if this will be supported.
You can think of backlinks as projections, where the data sources are the models with links. Therefore, changing the data of the back-linked documents is possible, but altering the number of them or rewriting the field that contains them is a bit tricky.
I believe this is more due to a lack of documentation than a bug. I'll take a look at what I can do here.

Hi! I'm not sure if this will be supported.
You can think of backlinks as projections, where the data sources are the models with links. Therefore, changing the data of the back-linked documents is possible, but altering the number of them or rewriting the field that contains them is a bit tricky.
I believe this is more due to a lack of documentation than a bug. I'll take a look at what I can do here.

Okay, I understand. Thank you for your reply.


msg_show is shown twice, when buffer is saved to a file

Describe the bug
When I save buffer to a file, the message is shown twice. Also I've figured out, it only happens with Lua buffers that my custom "BufWritePost" auto command handlers (sourcing $MYVIMRC).
Which version of Neovim are you using?
NVIM v0.9.0-dev-1737+g23d8f5b87-dirty
Build type: Release
LuaJIT 2.1.0-beta3
To Reproduce
Steps to reproduce the behavior:

Create auto command for event "BufWritePost" and file pattern (let's say "*.lua"), that sources $MYVIMRCvim.api.nvim_create_autocmd("BufWritePost", {
  pattern = "*.lua",
  nested = true,
  command = "source $MYVIMRC",
})

Open Lua file (ex, test.lua)
Modify buffer and try to save it with :w
Message "test.lua" 160L, 4330B written is shown twice by Noice notify window

Expected Behavior
The message should be shown only once
Screenshots

Does this also happen if you define the autocommand in an augroup and clear it before?

you need to clear the group indeed. not related to noice at all

Yeah, I clear it in my real config. @gennaro-tedesco
local augroup_config = vim.api.nvim_create_augroup("config_reload", { clear = true })

Without 'noice' it writes to messages only ones. I suspect it's somehow related to blocking operations and how redraw works

Also it only is shown once, if I print something within my Lua file.

@Fausto-Korpsvart you mean that < message? Please check the docs, wiki, other issues. That's standard Neovim behavior

@Fausto-Korpsvart you mean that < message? Please check the docs, wiki, other issues. That's standard Neovim behavior

@folke, yes, I mean the File saved message is not displayed and instead the < symbol is displayed, the problem happens when Noice is enabled, with a standard configuration where Neovim has a standard behaviour this doesn't happen, which makes me think that something in Noice is causing this, I know it's not something serious or urgent to solve compared to other problems Noice can have, I only noticed it because I don't use Notify to show this message, I use the mini integration of Noice, and suddenly I don't see the message when I save files and I see that symbol instead, and using a minimal configuration I noticed that it's Noice that causes this behaviour.
But well, I'm going to check the standard behaviour again to try to rule out that it's a Noice problem.
Thanks anyway.

@Fausto-Korpsvart check 'shortmess and t option.

@Fausto-Korpsvart check 'shortmess and t option.

You are right, @folke, I set these values to shortmess = 'fFIlqx' and that solves the problem, but why does Noice cause the output to be truncated on long strings? Because I didn't have shortmess configured before and Noice didn't have that problem, anyway, thanks.
Oh, and thanks for lazy.nvim, Lazy and Noice completely changes the game in the use of Neovim, it gives me that feeling at least, great job you have done.

ref: https://github.com/neovim/neovim/issues/21653

Is the referenced issue neovim/neovim#21653 relevant to the original issue? neovim/neovim#21653 looks to be included in Neovim v0.9.0, and the duplicate "written..." messages issue remains.
It seems, @Fausto-Korpsvart was having an unrelated issue.
What can I do to help diagnose or resolve the original issue?

If you like me, where a regular message along with an error like an image when written. In my case, it happened in WichKey. Where the code :w<CR> I changed to function() vim.cmd('w) end.


[apache + php] container => add composer

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer

https://github.com/EpicMorg/docker-scripts/commit/c4be0091ddea6615782bf034b324d85e0e192e81


fix : Images not updated if registry or repository is different with same version

Given this config:
imageList: foo=gcr.io/bar:>=1.0.0
foo.kustomize.image-name=bar

If my application is running bar:1.0.0 I'd expect an update to gcr.io/bar:1.0.0, however that was not happening because only tag was considered in the difference. To fix that, I had to add an extra "KustomizeImage" to also be considered for matching purposes, and add registry and name to the update check if this kustomize image is present.
I've added an additional test to show that once updated there should be no more updates (no endless loop of updates, etc.)
This is builds off of #192

could you maybe elaborate a little on the use case?

Sure. The issue is having a existing deployment like this:
spec:
  template:
   spec:
    containers:
      - image: bar:latest

If I wasn't using image updater, I would add a kustomization like this:
kind: Kustomization
images:
- name: bar
  newName: gcr.io/bar
  newTag: 0.1.0

That would update the image to gcr.io/bar:0.1.0.
But .argocd-source.yaml will override anything I put in images with this:
images:
- bar:0.1.0

When what I wanted was:
images:
- bar=gcr.io/bar:0.1.0

So I am forced to tell image updater about the re-mapping via kustomize-name.
Why does this happen? Because when looking at a deployed app, image updater will check applicationImages.ContainsImage(applicationImage, false). There is no match because gcr.io/bar isn't bar.
So we need a different ContainerImage to check.  What if we just look for bar instead, since that is what kustomize-name says to do?

If the application doesn't have an override yet, we will find bar and override it with gcr.io/bar as long as the tag is different. If they are the same tag, nothing happens.
If the image is overriden then looking for bar won't work because now the application contains only gcr.io/bar!

The problem is that the current state of application images can't tell you anything about what was overriden, and if we do fix the match, but have the same tags, no update happens. So we need two fixes:

Match either kustomize-name or the override name to handle both the case where the image has not been update and the one where it has.
If a kustomize-name is present, check if the desired registry is correct.


URA-872 - upload functions

add functions to handle aws authentication and parallel file uploading to a given bucket
add unit tests for upload funtions
add args for running in single upload mode

This change is

Hello @jethror1! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file s3_upload/utils/upload.py:

Line 135:80: E501 line too long (98 > 79 characters)


how to set username and password

How to set memcached server username and password ?
exception:  pymemcache.exceptions.MemcacheUnknownError: b'AUTH INVALID'

pymemcache does not support a username/password for memcache.


Ruleset configuration not working

This was working fine in RC7-3. It only seems to have stopped working since we updated to RC9.
Expected Behavior
Ruleset custom configuration should be used.
Current Behavior
I doesn't appear to be used - we're getting issues for rulesets we've configured as active: false
Steps to Reproduce (for bugs)
This is our gradle detekt configuration closure:
detekt {
    input = files("$projectDir")
    config = files("$rootDir/static-analysis/detekt-config.yml")
    filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
    reports {
        xml {
            enabled = true
            destination = file("build/reports/detekt.xml")
        }
        html {
            enabled = true
            destination = file("build/reports/detekt.html")
        }
    }
}

This is $rootDir/static-analysis/detekt-config.yml:
autoCorrect: true
failFast: false

test-pattern: # Configure exclusions for test sources
  active: true
  patterns: # Test file regexes
    - '.*/test/.*'
    - '.*Test.kt'
    - '.*Spec.kt'
  exclude-rule-sets:
    - 'comments'
  exclude-rules:
    - 'NamingRules'
    - 'WildcardImport'
    - 'MagicNumber'
    - 'MaxLineLength'
    - 'LateinitUsage'
    - 'StringLiteralDuplication'
    - 'SpreadOperator'
    - 'TooManyFunctions'
    - 'ForEachOnRange'

build:
  maxIssues: 10
  weights:
    # complexity: 2
    # LongParameterList: 1
    # style: 1
    # comments: 1

processors:
  active: true
  exclude:
  # - 'FunctionCountProcessor'
  # - 'PropertyCountProcessor'
  # - 'ClassCountProcessor'
  # - 'PackageCountProcessor'
  # - 'KtFileCountProcessor'

console-reports:
  active: true
  exclude:
  #  - 'ProjectStatisticsReport'
  #  - 'ComplexityReport'
  #  - 'NotificationReport'
  #  - 'FindingsReport'
  #  - 'BuildFailureReport'

comments:
  active: true
  CommentOverPrivateFunction:
    active: false
  CommentOverPrivateProperty:
    active: false
  EndOfSentenceFormat:
    active: false
    endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!]$)
  UndocumentedPublicClass:
    active: false
    searchInNestedClass: true
    searchInInnerClass: true
    searchInInnerObject: true
    searchInInnerInterface: true
  UndocumentedPublicFunction:
    active: false

complexity:
  active: true
  ComplexCondition:
    active: true
    threshold: 4
  ComplexInterface:
    active: false
    threshold: 10
    includeStaticDeclarations: false
  ComplexMethod:
    active: true
    threshold: 10
    ignoreSingleWhenExpression: false
  LabeledExpression:
    active: false
  LargeClass:
    active: true
    threshold: 150
  LongMethod:
    active: true
    threshold: 20
  LongParameterList:
    active: true
    threshold: 6
    ignoreDefaultParameters: false
  MethodOverloading:
    active: false
    threshold: 6
  NestedBlockDepth:
    active: true
    threshold: 4
  StringLiteralDuplication:
    active: false
    threshold: 3
    ignoreAnnotation: true
    excludeStringsWithLessThan5Characters: true
    ignoreStringsRegex: '$^'
  TooManyFunctions:
    active: false
    thresholdInFiles: 11
    thresholdInClasses: 11
    thresholdInInterfaces: 11
    thresholdInObjects: 11
    thresholdInEnums: 11
    ignoreDeprecated: false
    ignorePrivate: false

empty-blocks:
  active: true
  EmptyCatchBlock:
    active: true
    allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
  EmptyClassBlock:
    active: true
  EmptyDefaultConstructor:
    active: true
  EmptyDoWhileBlock:
    active: true
  EmptyElseBlock:
    active: true
  EmptyFinallyBlock:
    active: true
  EmptyForBlock:
    active: true
  EmptyFunctionBlock:
    active: true
    ignoreOverriddenFunctions: false
  EmptyIfBlock:
    active: true
  EmptyInitBlock:
    active: true
  EmptyKtFile:
    active: true
  EmptySecondaryConstructor:
    active: true
  EmptyWhenBlock:
    active: true
  EmptyWhileBlock:
    active: true

exceptions:
  active: true
  ExceptionRaisedInUnexpectedLocation:
    active: false
    methodNames: 'toString,hashCode,equals,finalize'
  InstanceOfCheckForException:
    active: false
  NotImplementedDeclaration:
    active: false
  PrintStackTrace:
    active: false
  RethrowCaughtException:
    active: false
  ReturnFromFinally:
    active: false
  SwallowedException:
    active: false
  ThrowingExceptionFromFinally:
    active: false
  ThrowingExceptionInMain:
    active: false
  ThrowingExceptionsWithoutMessageOrCause:
    active: false
    exceptions: 'IllegalArgumentException,IllegalStateException,IOException'
  ThrowingNewInstanceOfSameException:
    active: false
  TooGenericExceptionCaught:
    active: true
    exceptionNames:
     - ArrayIndexOutOfBoundsException
     - Error
     - Exception
     - IllegalMonitorStateException
     - NullPointerException
     - IndexOutOfBoundsException
     - RuntimeException
     - Throwable
    allowedExceptionNameRegex: "^(_|(ignore|expected).*)"

Your Environment

Version used: 1.0.0.RC9
Operating System and version: Mac OSX Android Studio project

Looking at your config it seems like all RuleSets are actually set to active: true.
Which issues does detekt report that you're not expecting?

TooManyFunctions is an example :
TooManyFunctions:
    active: false

Variable naming ones too:
  VariableMaxLength:
    active: false
    maximumVariableNameLength: 64
  VariableMinLength:
    active: false

Thanks for reporting this and thanks for clarifying. I can reproduce this locally.
Did the following:

Introduced a variable that's not confirming to VariableNaming
Run detekt with java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml,./reports/failfast.yml

--> New variable gets reported

Disable VariableNaming in default-detekt-config.yml
Run detekt with java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml,./reports/failfast.yml

--> New variable still gets reported

Disable VariableNaming in failfast.yml
Run detekt with java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml,./reports/failfast.yml

--> New variable still gets reported

Run detekt with java -jar ./detekt-cli/build/libs/detekt-cli-*-all.jar -i . --baseline ./reports/baseline.xml -f ".*/resources/.*, .*/build/.*" -c ./detekt-cli/src/main/resources/default-detekt-config.yml (without the failfast config)

--> New variable no longer gets reported (but some other findings appear)

No problem, reporting is the easy bit. Thanks for all your hardwork on this very useful utility!

Looking at this again this seems to be the correct/intended behavior, though. Having a config with failfast: true will lead to all rules being enabled.
However it seems like failfast will not just enable all rules but it adds every single rule with the default configuration to the config. That could lead to some configurations being overwritten depending on how the Config is later read from.
We should look at our failfast implementation and instead of simply adding every rule with active: true and the default config options to the config we should improve this behavior:

Check if Rule exists in provided config

Does not exist: Add default rule to config with `active:

Flip the active value to true

That way the resulting config would be smaller and we would not duplicate rules in the config which can be confusing. I'll look a bit further into if this can actually cause this bug.

I ran ./gradlew detekt --info from the command line and found that it was called without the --config option. Here's how it is being called:
io.gitlab.arturbosch.detekt.cli.Main --input /Users/michael/Repos/Bonobolabs/ActionsAndroid/app/src/main/java --report xml:/Users/michael/Repos/Bonobolabs/ActionsAndroid/app/build/reports/detekt/detekt.xml --report html:/Users/michael/Repos/Bonobolabs/ActionsAndroid/app/build/reports/detekt/detekt.html

Indeed, it seems to be related to #1171, I'm getting a similar output (not only not showing that --config was passed on, but also that the reports that I disabled are enabled):
io.gitlab.arturbosch.detekt.cli.Main --input /myproject/src/main/java --report xml:/myproject/build/reports/detekt/detekt.xml --report html:/myproject/build/reports/detekt/detekt.html

Fixed now #1194 merged?

Closed with 30712f0


bindings: default set of bindings for emacs users

With the default module and the +bindings flag enabled, non-evil users will have a default set of bindings suitable for Doom emacs.

Wooooo!

Hi,
Emacs have very very few keybindings that work the same as in other (non-evil :p) editors,
So I think those are precious keybindings that shouldn't be overwritten (by default).
It only creates more inconsistency specially for new user imo.
Spacemacs which apparently this is inspired from have MANY custom keybinding but those "GENERAL" keybindings are not touched.
So that's why I suggest that you either disable this by default OR, remove certain keybindings cause, even on browsers and no non-editors programs have shortcut like Ctrl+left , Ctrl+right, Ctrl+shift+left/right used for the same purpose. even on Spacemacs.
I really don't understand how this can be consistent tbh

Hi @4goodapp,
Doom emacs is described as a stubborn and opinionated emacs configuration. These key bindings fall into the category of "opinionated": The standard behavior of many emac's key bindings are not always doing what's more useful or intuitive. We therefore take the liberty of changing "standard" bindings to obtain a more desirable behavior from the start. Take the C-a command as an example, it is remapped to #'doom/backward-to-bol-or-indent. This modified behavior, although different from the original, is generally more useful.
Experienced emacs users that want to return to the standard behavior are free to disable the "defaults" module or remap the functions they don't like. An experienced user will easily know how to make these changes. The story is different for new and unexperienced users. They are better off having the "nicer" and more powerful functionality from the start.


Recommendation for viewing the data

Hi all, thanks for open sourcing this project, it looks neat.
I have things up and running and data being collected, but I am kinda stumped on a good way to visualize it (grafana?). Does anyone have any recommendations? I am new to Kafka, but have used Graphite/Grafana before.
Any open source projects that would be easy to integrate with vflow? Or any ideas from the maintainers on how they visualize the data would be greatly appreciated.
Thanks!

If you need something that works out of the box, https://github.com/robcowart/elastiflow (rather than vflow) would probably be your best bet.
vflow is more of a building piece for a custom data aggregation/processing pipeline.

Thanks very much @leoluk! If you dont mind letting me leave the issue open for a couple of days to see if anyone else has other scenarios to share I would appreciate it. Either way tyvm!


Add tools based on config.features contents

The profile and time series figures are currently very IO heavy. We want to be able to configure forest to disable the profile and time series figures in the production deployment while we improve the performance.
Check list

[ ] Bump version number to reflect change, edit forest/__init__.py
(Use semantic version x.y.z where x is major, y is feature, z is patch)

@twsearle I'll bump the version in a separate PR after the dust settles


Definitions Update

Add gh token
Add defintions automatic release pipeline
Add documentation
Pipeline work example:
https://travis-ci.com/github/alertlogic/alertlogic-sdk-definitions/builds/
#15 -  #18

changes were already merged, PR was for discussion.


First Android app: Android Basics with Compose

URL of codelab
Update the text
@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
GreetingCardTheme {
Greeting("Meghan")
}
} by changing the name here it is not changing.. the value of name parameter need to be changed in the onCreate method of the main function
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version: Android Studio Koala | 2024.1.1 Nightly 2024-05-08
Build #AI-241.15989.150.2412.11814831, built on May 8, 2024
API version of the emulator: 31-ext11
Additional information
Correct code
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
Application0Theme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Greeting(
name = "urban",
modifier = Modifier.padding(innerPadding)
)
}
}
}
}
}
@Composable
fun Greeting(name: String, modifier: Modifier = Modifier) {
Surface(color = Color.White) {
Text(
text = "Hi, my name is $name!",
modifier = modifier.padding(48.dp)
)
}
}
@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
Application0Theme {
Greeting("Android")
}
}

Hi @LEARNERAPURBA
Thank you for writing in.
Changing the name in the GreetingPreview composable will just change the name shown in the preview in Android Studio. This will not change the name when run on the emulator.
To change the name shown in the emulator, you need to change the name in the onCreate function as you noted.
Hope you are enjoying the course!
Regards.


Bug Report: On Press is not working for android device or emulator

On Press is not working for android device or emulator
Hi,
On Press is not working for android device or emulator. I using it in modal but also tried in plain view or scrollview both. I have been looking for solution last couple of days. I went through some other devs also mentioned the similar problem. They purposed the solution might be enabling billing configurations, some said remove it from scrollview. I tried both, none worked for me.
In IOS emulator it's working fine, onPress is also working. In android, search works but when pressing on item from search result, nothing happens and list disappears.
Any help will be appreciated. Thank You. :)
Reproduction

GPlace Component
<GooglePlacesAutocomplete
  placeholder="Search"
  query={{
    key: GOOGLE_PLACES_API_KEY,
    language: "en", // language of the results
  }}
  onPress={(data, details = null) => {
    console.log(data, details);

    setFieldValue(name, data.description);
    setModalVisible(false);
  }}
  onFail={(error) => console.error(error)}
  requestUrl={{
    url: "https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api",
    useOnPlatform: "web",
  }} // this in only required for use on the web. See https://git.io/JflFv more for details.
/>

Modal Component
<Modal visible={modalVisible} animationType="slide">
  <ScreenWithoutScroll
    style={{
      flex: 1,
      padding: 10,
      backgroundColor: defaultStyles.colors.light,
    }}
    >
  <Button title="Close" onPress={() => setModalVisible(false)} />

  <GPlace name={name} setModalVisible={setModalVisible} />
  </ScreenWithoutScroll>
</Modal>

Additional context

Library Version: 2.4.1

React Native Version: 0.64.3

[x] iOS

[x] Android

[ ] Web

[x] I am using expo

Any update?.

Same here - its not even working on my iOS Phone

I am also facing the exact same issue as @zubairniaxi. Working fine in ios simulator but not in android

I cannot reproduce this using Expo on an Android device.
If someone provides a link to a snack or provide a more complete example I can try and take a look.

Hi @bell-steven
My apologies for late reply. Actually I got it working without scrollview.
Let me explain:
I have a form in ScrollView component. In the form, I have a field that opens Modal which is not ScrollView. When I removed ScrollView from form component then it's working on android too. I guess it has some issue with ScrollView component.
I have a huge form component that will not fit into screen so I have to add ScrollView component. I'm sharing expo link so you can get the idea.
Link: https://expo.dev/@zubairniazi/ScheduleApp
Thanks a lot

estou enfrentando esse mesmo problema

Can confirm, it was working for me on the iOS simulator but not on the device. Fixed by removing the ScrollView

Adding keyboardShouldPersistTaps={"always"} worked for me

I had this issue when using the component in a scrollview - adding keyboardShouldPersistTaps={"always"} to the scrollview fixed it for me.

It resolved the issue. Thanks a lot @buneme


Fix PlugRouter to handle request not resolved by Plug.Router

Change description
handles request without conn.private.plug_route info

sets path tag as Unknown for those cases
allows ignoring a request by comparing the :ignore_routes option values against the request conn.request_path when no conn.private.plug_route is present

What problem does this solve?
Issue number: #95
Example usage
Plugin usage continues to be the same
Checklist

[ ] I have added unit tests to cover my changes.
[ ] I have added documentation to cover my changes.
[ ] My changes have passed unit tests and have been tested E2E in an example project.

Pull Request Test Coverage Report for Build bae31d644371e05f7aa9f862c98efc4656dea757-PR-96

5 of 9 (55.56%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 82.304%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/prom_ex/plugins/plug_router.ex
5
9
55.56%

Totals

Change from base Build b412af5644bdd67ba525e0aa8959f6457380f6a5:
-0.3%

Covered Lines:
693

Relevant Lines:
842

💛  - Coveralls


Use Time.utc instead of deprecated Time.now

The code in README.md contains the deprecated Time.now method, which causes compiler warnings.

Good catch, thanks!


Minimum learning rate

The minimum learning rate is the same as the "max". Is this intentional or a mistake? If yes, why (you can skip explanation if it is too bothersome)?

This is a mistake made by us and thanks a million for spotting that out!
Fortunately, we are still at the very early stage of training and there is still room to correct it. I have corrected this mistake, and the TinyLlama's lr curve will look like below:


tint schedule cells based on period changes

the background of cancelled subjects is usually green, while periods with room changes have a red background

c8b0756


fixed sidebar #99 ( Improve Sidebar Appearance to Match Website Theme )

Description:
Resolved the issue with the sidebar appearance not aligning with the website theme. Implemented changes to ensure consistency and visual harmony with the overall design.
Changes Made:
Adjusted background color, font color, and sidebar icon to match the website's theme. Tested and confirmed the improvements on various devices and screen sizes.
Now , After the changes :

please review this pull request , and close this Issue no: #99

Looks great can be more enhanced by not hiding the back data  just by making it bit short and making it like shadcn sidebar .
LGTM


⚠ Hartman Foundation has degraded performance

In fbb65ce, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 3349 ms

Resolved: Hartman Foundation performance has improved in 383068e.


Add a way to prevent the users from spamming the appeals

A banned user can create several appeals and flood the channel, which is something I rather not see

That's something I've also thought of when initially designing this, unfortunately it might bring this into the paid realm (I really want to keep this hostable 100% free). The closest is Netlify Identity to create an Identity for the user (1k identities per site max, $99/month when exceeded), or moving to AWS so that I can use DynamoDB (which is pay for what you use, so cheaper for most use cases, but vastly more complex for the average user to setup).
Another alternative is reading back the channel's content: it doesn't prevent all instances of duplicate ban appeals, but should prevent basic flooding (as long as the attacker isn't using more than 50 banned accounts, eg as part of a raid).

I see...

Had a few ideas here...
Maybe add support for the Netlify CMS to be able to maintain a blacklist of ids stored in a json file of the forked repo. Then each time someone auths themselves on the appeal front end it checks their user id against that file.

There should be blacklist for appeals, that you can specify user ids separated by , in .env that wont be able to submit appeal

There should be blacklist for appeals, that you can specify user ids separated by , in .env that wont be able to submit appeal

This could also work with the current infrastructure stack. I may open a PR for this feature later today

I'm a bit low on time recently so that would be very much appreciated 😊

I have better idea:
Add link to reject appeal to embed, when staff clicks on it, ID of appeal submitter should be written to json file.
When this user is trying to submit new appeal and their ID is in json file, error message should be displayed that user's appeal was rejected.

Hmmm... I personally like to give the users several opportunities, rejecting an appeal shouldn't prevent the user from appealing in the future.

I personally like to give the users several opportunities, rejecting an appeal shouldn't prevent the user from appealing in the future.

Adding a reject option that DMS the user saying their appeal was rejected may be a good idea

Hmmm... I personally like to give the users several opportunities, rejecting an appeal shouldn't prevent the user from appealing in the future.

So the feature should be called block user from sending new appeals

Adding a reject option that DMS the user saying their appeal was rejected may be a good idea

Dming user when the user does not have shared guilds with bot is not possible

And the idea I suggested is to block the user from sending appeals.
And maybe there should be added to create webhook using oauth in server and channel that the user can choose. This would be for replying to user's appeal, when staff clicks on approve link, message should be sent to the webhook to let the user know that the appeal was approved. Message should be sent to webhook also when staff clicks on reject appeal and block the user

Guess this is solved then, as there is now a way to block users ( #30 ).
Ideally, I would've liked an autoblock feature that prevents new appeals from a user until their appeal is reviewed, but this will do.


[Fix2] TDB-2391: Cleaning up unused MNM events

@henri-tremblay @anthonydahanne @ljacomet : this is all the stuff that I think we do not need anymore since we can just stick with the raw voltron events to do the same thing.
IMPORTANT: We need to check in other projects first before merging that! I've just created this PR to show the work that has to be done

@mathieucarbou One important point: if we merge this in the 3.4.x line, does it break when mixed with 3.4.0 either on the client or the server?

test this please

@ljacomet @anthonydahanne @henri-tremblay : build pass. Can we merged and release so that we can integrate onto downstream projects ?
thanks!

@anthonydahanne @ljacomet @henri-tremblay : FYI please do not merge, I am still testing downstream projects and even if IT tests pass, when I test manually, things are not working in the UI...

UPDATE: forget it, issues was caused by firefox. It is working.

test this please
unreliable test:
Test Result (1 failure  / +1)
org.ehcache.clustered.replication.BasicClusteredCacheOpsReplicationMultiThreadedTest.testClear[consistency=STRONG]

@ljacomet @chrisdennis @anthonydahanne @henri-tremblay : as seen with @chrisdennis , I will reopen this PR to be based on @henri-tremblay 's commit (https://github.com/ehcache/ehcache3/pull/2102/commits) and merge on master to to the proprer daggy fix


Datadog cluster agent timedout while getting external metrics

We have an hpa configured with datadog metrics. It was working fine for a while and then hpa started failing due to:
unable to fetch metrics from external metrics API: external metrics invalid

Captured following errors in cluster agent logs:
~$ stern datadog-cluster-agent --context=pod12-readonly | grep ERROR
+ datadog-cluster-agent-846db5687-zldfg › datadog-cluster-agent
+ datadog-cluster-agent-846db5687-k2rr8 › datadog-cluster-agent
datadog-cluster-agent-846db5687-zldfg datadog-cluster-agent 2019-08-07 22:04:10 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-zldfg datadog-cluster-agent 2019-08-07 22:04:40 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-zldfg datadog-cluster-agent 2019-08-07 22:05:10 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: context deadline exceeded
datadog-cluster-agent-846db5687-zldfg datadog-cluster-agent 2019-08-07 22:05:10 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:126 in externalMetricsSetter) | Timeout while processing the collection of external metrics
+ datadog-cluster-agent-846db5687-lt2pm › datadog-cluster-agent
datadog-cluster-agent-846db5687-k2rr8 datadog-cluster-agent 2019-08-07 22:04:03 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: context deadline exceeded
datadog-cluster-agent-846db5687-k2rr8 datadog-cluster-agent 2019-08-07 22:04:33 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: context deadline exceeded
datadog-cluster-agent-846db5687-k2rr8 datadog-cluster-agent 2019-08-07 22:05:03 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: context deadline exceeded
datadog-cluster-agent-846db5687-k2rr8 datadog-cluster-agent 2019-08-07 22:05:03 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:126 in externalMetricsSetter) | Timeout while processing the collection of external metrics
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:03:44 UTC | CLUSTER | ERROR | (pkg/util/kubernetes/apiserver/hpa_controller.go:171 in updateExternalMetrics) | Error while retrieving external metrics from the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: dial tcp <IP_ADDRESS>:443: connect: connection refused
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:03:44 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: dial tcp <IP_ADDRESS>:443: connect: connection refused
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:03:45 UTC | CLUSTER | ERROR | (pkg/collector/runner/runner.go:294 in work) | Error running check kubernetes_apiserver: Failed to watch events: Get https://<IP_ADDRESS>:443/api/v1/events?resourceVersion=245985654&timeout=10s&watch=true: dial tcp <IP_ADDRESS>:443: connect: connection refused
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:04:20 UTC | CLUSTER | ERROR | (pkg/collector/runner/runner.go:294 in work) | Error running check kubernetes_apiserver: Failed to watch events: Get https://<IP_ADDRESS>:443/api/v1/events?resourceVersion=245985654&timeout=10s&watch=true: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:04:24 UTC | CLUSTER | ERROR | (pkg/util/kubernetes/apiserver/hpa_controller.go:171 in updateExternalMetrics) | Error while retrieving external metrics from the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:04:24 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:04:54 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:92 in externalMetricsSetter) | Could not list the external metrics in the store: Get https://<IP_ADDRESS>:443/api/v1/namespaces/default/configmaps/datadog-custom-metrics?timeout=10s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
datadog-cluster-agent-846db5687-lt2pm datadog-cluster-agent 2019-08-07 22:04:54 UTC | CLUSTER | ERROR | (pkg/clusteragent/custommetrics/provider.go:126 in externalMetricsSetter) | Timeout while processing the collection of external metrics

agent status was all green. Tried to collect flare but it seems to not work.
Asking the Cluster Agent to build the flare archive.
/tmp/datadog-agent-2019-08-08-00-53-44.zip is going to be uploaded to Datadog
Are you sure you want to upload a flare? [Y/N]
Y
An unknown error has occurred - Please contact support by email.
Error: unexpected end of JSON input
Usage:
  datadog-cluster-agent flare [caseID] [flags]

Flags:
  -e, --email string   Your email
  -h, --help           help for flare
  -s, --send           Automatically send flare (don't prompt for confirmation)

Global Flags:
  -c, --cfgpath string   path to directory containing datadog.yaml
  -n, --no-color         disable color output

Error: unexpected end of JSON input

I had to restart datadog-cluster-agent to recover from this issue.

Hi Ankit,
Thanks for reaching out!
The issue is happening when trying to get the configMap the cluster agent creates to keep track of the different HPAs deployed. We try to retrieve this configMap from the APIServer and the APIServer is basically timing out because it is under pressure.
This PR will enhance the retry mechanism when these timeouts happen: https://github.com/DataDog/datadog-agent/pull/3727
This should unblock the HPA when the connection can be made to the APIServer even though it failed before. For now, we stop trying after several retries so if the APIServer accept connections again, the HPA won't work as we won't retry (if retries are expired).
This will be shipped in the DCA v1.4.
Let me know if you need more details,
Regards,
Simon


[FHIR] Support for non-default server certificates

The ibmcom/ibm-fhir-server docker image ships with a default self-signed certificate.
This is handy because our fhir-client ships with a default truststore that is configured to trust the server.
However, for real usage, this certificate should be replaced as needed for the target env.
As an example, the bitnami postgres chart has the following settings:

tls.enabled
Enable TLS traffic support
false

tls.autoGenerated
Generate automatically self-signed TLS certificates
false

tls.preferServerCiphers
Whether to use the server's TLS cipher preferences rather than the client's
true

tls.certificatesSecret
Name of an existing secret that contains the certificates
""

tls.certFilename
Certificate filename
""

tls.certKeyFilename
Certificate key filename
""

tls.certCAFilename
CA Certificate filename
""

tls.crlFilename
File containing a Certificate Revocation List
""

Liberty can auto-generate a TLS cert, so maybe it would be good to expose that?

We will enable the user to pass in their own keystore and truststore files via Secrets. The following values will be added to the values.yaml file to specify the Secret names:

keyStoreSecret
trustStoreSecret

These secrets will be expected to contain the content of the keystore or truststore file, the filename, and the password. The expected Secret keys are documented in the README file. If a secret is not specified, the corresponding existing default keystore or truststore will be used.

Small design update:
We will enable the user to pass in their own keystore and truststore files via Secrets. The following values will be added to the values.yaml file to specify the Secret names and file formats:

keyStoreSecret
keyStoreFormat
trustStoreSecret
trustStoreFormat

For the keystore Secret, it will be expected to contain the content of the keystore file and the password. The expected Secret keys are as follows:

Key
Value

fhirKeyStore
The contents of the keystore file

fhirKeyStorePassword
The keystore password

If a keystore secret is not specified, the default keystore will be used.


Use separate temporary directory for each project deliverable

WIP until #3895 is merged
Description
Use separate temporary directory for each project deliverable.
Temporary directories with different argument combinations

arguments
temporary directory

dita -i root.ditamap
${java.io.tmpdir}/temp${timestamp}

dita -p project.xml
${java.io.tmpdir}/temp${deliverable.id}${timestamp}

dita -i root.ditamap -t /tmp
/tmp

dita -p project.xml -t /tmp
/tmp/${deliverable.id}

Temporary directory for deliverables uses deliverable @id or a random UUID if not @id is set.
Motivation and Context
Fixes #3757
How Has This Been Tested?
Existing test pass.
Type of Changes

New feature (non-breaking change which adds functionality)

Documentation and Compatibility
This change is pretty deep in processing details and visible users only if they have strong expectations for temporary directory name. So in that sense this probably doesn't require long description in release notes. Docs currently don't have anything about the old temporary directory generation with project files.

@raducoravu @robander do you think the temporary directory names are ok like this? Should we generate a subdirectory for each deliverable instead of parallel temporary directories with deliverable ID in the directory name? So instead of
${java.io.tmpdir}/temp${deliverable.id}${timestamp}
use subdirectory for deliverables
${java.io.tmpdir}/temp${timestamp}/${deliverable.id}

@jelovirt - if an entire project file is published, would the timestamp string be identical for every deliverable in the set? I'm trying to understand the scenario in your nested-directory suggestion in which a timestamp directory could have multiple deliverable directories.)

@jelovirt I think both approaches are fine by me, probably the "subdirectory for deliverables" would be a little bit more structured and it would be easier to delete everything manually by deleting the entire "${java.io.tmpdir}/temp${timestamp}" folder.

@jelovirt one thing I forgot, let's say I'm publishing with clean.temp=yes, and a folder like this gets created "temp/deliverable-1", at the end of the publishing the "deliverable-1" subfolder is deleted by the DITA OT but the parent "temp" folder is probably not?


Obsolete embryonic garland cell

FBbt:00005704 embryonic garland cell is redundant.
FBbt:00005462 garland cell primordium is part_of late extended germ band embryo and dorsal closure embryo, and had develops_from relationship with FBbt:00001693 embryonic/larval garland cell
embryonic garland cell is not in that developmental hierarchy, nor does it have an is_a relationship with FBbt:00005059 garland cell
I suspect it would best be merged with embryonic/larval garland cell.

I have put embryonic garland cell in its right place in the hierarchy, and added the develops_from relationship that was missing.
I don't think it needs obsoleting, just needed classifying.


feat: Array extension - An extension to the existing ArrayTrait

Feature Request
Describe the Feature Request
An extension to the existing ArrayTrait trait
Related Code
It should comply to the interface:
trait ArrayTrait<T> {
   fn append_all(ref self: Array::<T>, ref source: Array::<T>);
   fn reverse(ref self: Array::<T>) -> Array::<T>;
   fn replace(ref self: Array::<T>, old: T, new: T) -> Array::<T>;
   fn remove_first_occurences_of(ref self: Array::<T>, item: T) -> Array::<T>;
   fn remove_last_occurences_of(ref self: Array::<T>, item: T) -> Array::<T>;
   fn remove_all_occurences_of(ref self: Array::<T>, item: T) -> Array::<T>;

   // Searching
   fn contains(self: @Array::<T>, item: <T>) -> bool;
   fn index_of(self: @Array::<T>, item: <T>) -> usize;
   fn min(self: @Array::<T>) -> T;
   fn index_of_min(self: @Array::<T>) -> usize;
   fn max(self: @Array::<T>, item: <T>) -> T;
   fn index_of_max(self: @Array::<T>) -> usize;
   fn min(self: @Array::<T>) -> T;
   fn occurrences_of(self: @Array::<T>, item: T) -> felt;
}

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

[x] Yes
[ ] No

Ongoing

Need:
https://github.com/starkware-libs/cairo/issues/2151

We should not implement methods for array mutability.
Instead of manipulating mutations of existing arrays, which involve many copy operations, we should create a dict-based Vec data structure to handle mutation.
However, I agree that append-only and search-related functions will be helpful for the Array (which is actually a Queue?) data-structure

We should probably not implement methods for array mutability. Instead of manipulating mutations of existing arrays, which involve many copy operations, we should create a dict-based Vec data structure to handle mutation.
However, I agree that append-only and search-related functions will be helpful for the Array (which is actually a Queue?) data-structure

It is indeed a queue:
https://github.com/starkware-libs/cairo/pull/2167

We should probably not implement methods for array mutability. Instead of manipulating mutations of existing arrays, which involve many copy operations, we should create a dict-based Vec data structure to handle mutation.
However, I agree that append-only and search-related functions will be helpful for the Array (which is actually a Queue?) data-structure

So you are proposing that I create a dict-based implementation of an array or should I wait SW to make something like this?


Add get method

fix #348

Job gh:amihaiemil/docker-java-api#349 is not assigned, can't get performer

Pull request #349 was not merged, no payment for ARC, see §28


Fix get raw core and document the finer details

Closes #1171
I tried to keep the new from_repr code but I couldn't get it to look nice, this is what I came up with:
#[allow(unused_mut)]
let mut raw = get_raw_core();

#[cfg(xtensa)]
{
    raw = (raw & 0x2000 != 0) as usize;
}

Cpu::from_repr(raw).unwrap()

I wasn't happy with it, so I reverted to the old match style.
In general we need to be a bit more careful around this module, as it is really easy to break and has some pretty dire consequences if we do. I think PRs around this area should get at least 2 reviews before being merged.

If there is an assumption on some value a function returns it should be written at the function site as well.


absolute Paths in RELEASES-File

The File rel/$relname/releases/RELEASES currently contains absolute paths to the original release-directory. If I copy the release to another destination and keep the orignal generated directory, the apps from the original /rel/$relname/releases/lib directory are used instead of the libs contained in the release folder. Is this behaviour desired or is this a bug?
If this is a bug, I would be glad to offer my fix for it. If not, I'll just have to stick to my own fork.

Hi, this issue was closed in an attempt to do quick basic filtering. All tickets prior to March 2017 were closed and will be reopened on a per-request basis, please give rebar3 a try and feel free to reopen if it's a pressing issue that is still unresolved.


RoundedCorners have problem on lower divice

devices: sony L36H android 4.2.2
GlideApp.with(this)
 .load(imageUrl)
 .placeholder(LoadingColorManager.getHotItemDrawable())
  .transform(new RoundedCorners(20))
 .into(imageView);

image become wired

Isn't RoundedCorners(int radius) from Glide instead of wasabeef's lib?
You should be using RoundedCornersTransformation(int radius, int margin) instead.
e.g.
GlideApp.with(this)
  .load(imageUrl)
  .placeholder(LoadingColorManager.getHotItemDrawable())
  .transform(new RoundedCornersTransformation(20, 0))
  .into(imageView);

I place the issue on wrong place
I use glide 4.2.0, and RoundedCornersTransformation isn't suitable for Glide 4.2.0


Rename interface name to something more specific to hydra

Enhancement Proposal
Maybe it would be wise to rename the interface name to something more specific to hydra since the introduction of similar interfaces in the bundle. My proposal would be hydra_endpoints

Thanks for opening this enhancement proposal @bencekov.
This generic relation name was given when we planned to implement the other relation interfaces differently. I agree it's a good idea to rename it - I think hydra-endpoint-info would follow the usual relations naming convention @gruyaume?
If we decide to rename it, it needs to be changed in kratos-operator (the requirer) as well.

I think that this is fixed by https://github.com/canonical/hydra-operator/commit/2953db263f8ac843f64281d01f413d7a71285220.
Can we close it @bencekov?


packet processing error (copied from pull request as issue, as it looks like parsing error related to handling of escape sequences)

hi. my pull request was added because of these issues in real environment:

"MESSAGE\nmessage-id:ID\test\c12408\c1\c1\c2\nbreadcrumbId:ID\test\c8\c8877250\c1\c1\ndestination:/topic/test\ntimestamp:1478021275091\nexpires:0\nsubscription:58\npersistent:true\npriority:4\nCamelJmsDeliveryMode:2\n\n\n\0MESS"
this case i have fixed by remain -> {:error, remain}
"MESSAGE\noriginal-destination:/topic/test\nmessage-id:ID\test\c23\c1"
and this one by considering get_headers("", _, _) as :partial

in any case thanks for your attention. and if you think that my issues actually make place and you know how to process them better way, you are welcome!

fixed with help from PR by yndi-halda


World of Tanks - "Improved" graphics not working, unfinished/unloaded textures in the game

Software information
World of Tanks
System information

GPU: GTX 1660 Ti
Driver: 515.57
Wine version: 7.17
DXVK version: 1.10.3

Apitrace file(s)
Trying to use apitrace didn't work, if anyone else can do it, it would be great.
Log files
The game/wine didn't create any logs.
I've downloaded the HD client but when in game, the "Improved" graphics which is supposed to use the HD textures is disabled, thus it can't be used. IDK if the unfinished (unloaded?) textures are the result of the standard graphics or of DXVK, so I'm uploading both of the screenshots.
I have played the game at maximum graphics (Improved) on Windows, so the reason for the not working improved graphics is NOT my hardware.

I know for a fact that this has worked on my system in the past.
Can you please post DXVK logs?

The logs should appear either next to the exe or in the games root folder. If they don't it's either because you've set DXVK_LOG_LEVEL=none or the game isn't using dxvk.
You can launch with DXVK_HUD=1 to verify it is using dxvk

I think I have set dxvk log level to none for another game but it was a long time ago and I can't be sure.
Which of these levels should I set dxvk to: DXVK_LOG_LEVEL=error|warn|info|debug ?

DXVK_LOG_LEVEL=info is good enough.

These are the only logs that contain something, the rest were just empty files.
DXVK_logs.zip

looks like the wine log of the actually relevant application gets eaten by the wargaming game center garbage, so that doesn't contain anything interesting...
Guess I'm not getting around reinstalling the game, but not expecting it to be very useful given that it was working just here fine last time about a year ago.

Yeah, still works fine here. This is with the Lutris thing for Wargaming Game Center, using current dxvk master (but tested with 1.10.3 as well, same result). Enabling the option works fine and textures also load fine.

I will see if i can reproduce on any of ny setups here later

I found a way to run the game without the game center and I think this problem is a game bug which I'll have to report to WG. Until now every attempt to run the game without the game center by running /World_of_Tanks_EU/WorldOfTanks.exe has failed and the game says it needs to be run through the game center. But it turned out that this is the wrong exe. In order to run it the old fashioned way, one needs to run /World_of_Tanks_EU/win64/WorldOfTanks.exe. When ran with that exe, "Improved graphics" works just fine. I haven't tried to run the 32-bit exe but I suspect that this is the exe the game center has been set to run and that's why the improved graphics doesn't work.

Weird, but makes sense if it's actually launching the 32-bit exe. Closing as not our bug.

@doitsujin can you try your game on the map Fjords? IDK if it will work in a training battle, bu you could try. I just had a battle there and the frames were 25 the whole time. I reduced almost every setting to low or off but that didn't change anything.

If you can then post a screenshot with a full hud when it happens. DXVK_HUD=full

I have never tried to install dxvk from the aur but i'm pretty sure you still have to run the install script to install it into your wine prefix if you want to do it properly.
See comment here https://aur.archlinux.org/packages/dxvk-bin#comment-639617
Looks like they symlink the install script directly to the bin folder so you can call it from the terminal like a regular program.
The putting the dll's next to exe method is generally not the recommended way to do it on linux as the results can be iffy. Also some games want to load the files directly from wines windows system folder.


Unity installation proposal

Hello! I have investigated Unity installation on CI (https://github.com/KonH/UnityCiPipeline) and found a nice tool for it - https://github.com/DragonBox/u3d. It provides the ability to install all available Unity versions without manual link and checksum management.
I think it can improve your project usability in some way.
In my approach required version of Unity (detected by ProjectVersion.txt) is installed on every build, because I don't want to have several versions of my docker container. But I don't think that it is a good idea in common (build time noticeable increased), so you can implement it into your CI generator to support more versions.
I hope this information will be useful to you.

Oh sweet, thanks for sharing this 👍 I'll definitely need to give this a try. There's even a fastlane plugin in there, sounds great!
I'm closing this issue here, but I'll see what can be done in the following weeks for this.


(Azure CXP Team) resolves MicrosoftDocs/azure-docs#61639

@Karishma-Tiwari-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Adding Disjoint-Set-Union

Disjoint-Set-Union -
Adding C++ implementation of DSU data-structure -
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Self Check

Ask for an issue assignment and wait to get assigned to it before making Pull Request.
Clean Code for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Happy Coding,

Can I work on this?

Merged #13