Ability to disable image lazy loading listeners

Clear and concise description of the problem
I am running a multi row (swiper) image gallery which is actionable and I am lazy loading the images with my custom logic. Because I need the performance I didn't want to relay on the swiper but unfortunately it attaches listeners anyway. Which makes it 100% unusable for my usecase. Currently I am patching the swiper to stop that behavior.
Suggested solution
diff --git a/shared/swiper-core.mjs b/shared/swiper-core.mjs
index 619c42a4ee03ac543db7869eb80aa7e782bccab2..06880c6f982f6d2d62dad27700a3ea13a5652a20 100644
--- a/shared/swiper-core.mjs
+++ b/shared/swiper-core.mjs
@@ -2860,9 +2860,9 @@ const events = (swiper, method) => {
   }

   // Images loader
-  el[domMethod]('load', swiper.onLoad, {
-    capture: true
-  });
+  // el[domMethod]('load', swiper.onLoad, {
+  //   capture: true
+  // });
 };
 function attachEvents() {
   const swiper = this;
@@ -3614,11 +3614,11 @@ class Swiper {
     if (params.breakpoints) {
       swiper.setBreakpoint();
     }
-    [...swiper.el.querySelectorAll('[loading="lazy"]')].forEach(imageEl => {
-      if (imageEl.complete) {
-        processLazyPreloader(swiper, imageEl);
-      }
-    });
+    // [...swiper.el.querySelectorAll('[loading="lazy"]')].forEach(imageEl => {
+    //   if (imageEl.complete) {
+    //     processLazyPreloader(swiper, imageEl);
+    //   }
+    // });
     swiper.updateSize();
     swiper.updateSlides();
     swiper.updateProgress();
@@ -3786,19 +3786,19 @@ class Swiper {

     // Attach events
     swiper.attachEvents();
-    const lazyElements = [...swiper.el.querySelectorAll('[loading="lazy"]')];
-    if (swiper.isElement) {
-      lazyElements.push(...swiper.hostEl.querySelectorAll('[loading="lazy"]'));
-    }
-    lazyElements.forEach(imageEl => {
-      if (imageEl.complete) {
-        processLazyPreloader(swiper, imageEl);
-      } else {
-        imageEl.addEventListener('load', e => {
-          processLazyPreloader(swiper, e.target);
-        });
-      }
-    });
+    // const lazyElements = [...swiper.el.querySelectorAll('[loading="lazy"]')];
+    // if (swiper.isElement) {
+    //   lazyElements.push(...swiper.hostEl.querySelectorAll('[loading="lazy"]'));
+    // }
+    // lazyElements.forEach(imageEl => {
+    //   if (imageEl.complete) {
+    //     processLazyPreloader(swiper, imageEl);
+    //   } else {
+    //     imageEl.addEventListener('load', e => {
+    //       processLazyPreloader(swiper, e.target);
+    //     });
+    //   }
+    // });
     preload(swiper);

     // Init Flag

We can add if( preloadEnabled ) props around this behavior
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

[ ] I'm willing to open a PR

t0ggles-create swiper

I can confirm this patch for my use case as well. When having multiple instances of swiper on a page, will lead to blocking of the main thread, which is a major issue.
This should be prioritized , if possible, as swiper is useless in list rendering scenario (50 instances in my case).

Hm, after more testing Im not sure this fix alone helps with these performance issues.

@PerpetualWar if you are using tailwind removing the classes from swiper component helps a lot. Its an undocumended behavior that swiper emits all the classes prefixed with swiper.

@Xenossolitarius I do not use tailwind or having classes on swiper component.
I have actually dealt with this by avoiding rendering those swipers if they are not visible in viewport. Works great for me , cause I have 3-4 swipers visible in the list at any given time, and perf increase is massive.

@PerpetualWar made this, hope it gets approved
https://github.com/nolimits4web/swiper/pull/7638

Any examples with the issue?

I should probably make a stackblitz but overall I am not interested into coupling my lazy loading logic which adheres to counting elements on the screen and registering them to actually pull images when business rules apply to the case. When i want to show 100 slides and 5 rows of swipers and virtual slides are out of option bcs i want to use slidesPerPage auto bcs of layout it just produces a 1 sec swiper recalculation lag


Continuous Integration

Ref https://github.com/vivedu/CodeSnippets/issues/88.

CI Integration Docker
1. Install Docker
Install Docker on ci.in.vivedu.com, see Install docker on ubuntu.
2. Build  Docker Images
see Working with Docker Images.
3. The Pipeline Agent points to Docker

CMake Error: GLFW variables notfound
I use Ubuntu 16.04 (Kernel: 4.4.0-130) and install according to the instruction of librealsense.
When I run cmake ../ -DBUILD_EXAMPLES=true, errors occur as following:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLFW_INCLUDE_DIR

Ref https://github.com/IntelRealSense/librealsense/issues/874#issuecomment-350425395 .
So the problem is that it is not finding the GLFW library, run sudo apt-get install libglfw3-dev.
And running cmake ../ -DBUILD_EXAMPLES=true again, errors occur as following:

Ref https://github.com/IntelRealSense/librealsense/issues/445#issuecomment-286994324.
So not have a USB 3.0 host controller we cannot use any librealsense-supported cameras fundamentally. The issue is close.


Drop webpack

Coverage decreased (-0.2%) to 84.676% when pulling eed9177d93f7de112569752b9e5e04dc389ff40e on drop_webpack into d7295e352d5f2d763ad26eb3afd4a21b04266bab on master.


Add PNG export

Add PNG export.
Possible without external library?
https://codepen.io/arcaelas-the-looper/pen/wvrqzvm
https://stackoverflow.com/questions/11567668/svg-to-canvas-with-d3-js/23667012#23667012

SVG Support:

[ ] Avatar (full)
[ ] Identicon (full)

PNG support:

[ ] Avatar (full)
[ ] Identicon (no rounding)
[ ] Identicon (full)


Adding some translate features, and adjusting pt-br translation

I added some translation features on Helpy, making Helpy more international-like.
More translations key are added on Helpy, but all keys have a default text in English.
Shortcuts now has total translation support.

Thanks @Rynaro!

Can you submit a new PR and add the new i18n strings to the other files, but commented out (except for en.yml)?  See https://github.com/helpyio/helpy/blob/master/config/locales/translating.md#maintaining-or-bringing-and-existing-locale-up-to-date

Sure, I'll provide this PR soon as possible. :smiley:


add link back to core device portal APIs (per user feedback)

I own the topic that is linked to. We have a number of device portal topics (but for HoloLens APIs, we link back to this page), and it would be good to bridge the gap between these two similar sets of content.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/device-portal-api-reference.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks @PatrickFarley!


run-dev-server is not working

Not sure if it's my local issue.
I followed the instructions and did
tools/install-build-deps --ui
ui/build
ui/run-dev-server

No obvious error happens.
However, when I open localhost:10000, I got {"info":"Invalid request!"}

Sorry that was my fault. A process that I'm not aware of is occupying the port.


mybatis-plus是不是不能用ServiceImpl这部分功能?

Is there any example or test for using ServiceImpl ?

In JVM mode, I think it could work but it might not  work in native mode.

@zhfeng
ServiceImpl 功能这部分，麻烦关注一下写操作的事务，mp一直用的应该是spring-tx的实现；
Quarkus使用ServiceImpl 实现一些增删改查的写操作会报找不到spring-tx相关的实现类(JVM模式下运行)

OK, I think we can leverage narayan-jta extension in  Quarkus to do some transactional operations. But it might have to make some changes in ServiceImpl. Does it provide something like SPI to replace the default implementation method of spring-tx ?

@shibinkai I justs cheked the ServiceImpl and it seems to use @Transacional in spring-tx to do some persist operations such as SaveBatch, SaveOrUpdate. So I think it could be hard to support ServiceImpl right now since Quarkus does not support spring-tx. Anyway if mybatis-plus could provide some SPI to abstarct the TransactionManager implementation in the futre, we will come back to see if we can support in quarkus extension.
It could be better to add this limitation in mybatis-plus extension docs with #130 .


Postgres acclerator test over db-benchmark join-datagen 50G

db-benchmark is no longer part of beta acceleration criteria


rename repo -> geth-ipc-reverse-proxy-with-whitelist

Proposing a rename that signals this is a reverse proxy that implements a JSONRPC method whitelist for geth's JSONRPC IPC API, as opposed to some generic JSONRPC API middleware.
Definitely open to suggestions on the name.

Fine with me, I would suggest keeping the IPC out, as I am thinking to add support for WS transfer as well. Also, @diega was thinking to use the same on besu.
Suggested name: clients-reverse-proxy-with-whitelist

I don't have a strong opinion on this. I could say that jsonrpc-gateway could work too. jsonrpc is the protocol and gateway is what we are opening with whatever policy we want

jsonrpc-gatekeeper I think I liked this one

Yeah, me too

Repo name done. I will update README and package.json tomorrow

Done with https://github.com/ETCCooperative/jsonrpc-gatekeeper/commit/9f669966bfde4f4c876a9a42b851f0e21399cb8d


fix: display and resize plots when not in a lumino context

Did you mean to open PR against the 0.12.x of your own fork and not the one upstream?

Yes. I don't want to make a second PR on upstream. According to @maartenbreddels, the PR on master will be backported to 0.12.x after merging.

Any plan to revisit this?


glove path error

Hi,
I tried to use word2vec code with glove embeddings glove.6B.300d.txt but I got this error
ValueError: invalid literal for int() with base 10: 'the'
Could someone help plz
thank u

From gensim you can load GloVe pretrained weights  of different sizes:

glove6B 50d, 100d, 200d, & 300d vectors
glove42B300d vectors
glove840B300d vectors

GloVe Official Page
This is how you would want to implement it within sent2vec
from sent2vec.vectorizer import Vectorizer
from sent2vec.splitter import Splitter

from gensim.test.utils import get_tmpfile
from gensim.scripts.glove2word2vec import glove2word2vec

sentences = [
    "Alice is in the Wonderland.",
    "Alice is not in the Wonderland.",
]

glove_file = 'glove.6B.300d.txt'
word2vec_glove_file = get_tmpfile("glove.6B.300d.word2vec.txt")
glove2word2vec(glove_file, word2vec_glove_file)

splitter = Splitter()
splitter.sent2words(sentences=sentences, remove_stop_words=['not'], add_stop_words=[])
vectorizer = Vectorizer()
vectorizer.word2vec(splitter.words, pretrained_vectors_path= word2vec_glove_file)
vectors = vectorizer.vectors

You can substitute the file name in glove_file with the size vectors that you prefer.
I hope it helps.


concurrency in invoker proxy

When an app behind the invoker proxy makes an API request to another app behind the invoker proxy, it times out. My guess is that it's because the invoker proxy balancer only supports one concurrent background connection. Is that correct?
If so, invoker should support multiple concurrent connections for its proxy balancer.

My guess is that http-parser-lite is not EM-friendly, and is causing EM event handlers to block on long requests (i.e. requests that reach out to other APIs).

Nevermind... this is working.


No Fallback for when Javascript fails to load ?

Is a fallback part of the task list? for when Javascript fails to load.

Duplicate of #13


enh(powershell) Add PowerShell 5.1 default aliases as "built_in"s

This PR adds a list of default aliases pulled from two versions of PowerShell:

Windows PowerShell 5.1, using the following expression:(gal | ? Name -notin '?','%' | % name | % {"'$_'"}) -join ', '

PowerShell Core, based on the list defined within [System.Management.Automation.Runspaces.InitialSessionState]::BuiltInAliases in the PowerShell Core source.

Resolves #1338.

Nice!  Thanks for the contribution!  But is there some reason these couldn't simply be added to keywords?  If so that'd be better.

is there some reason these couldn't simply be added directly to keywords? If so that'd be better.

@yyyc514 Within the language, aliases are analogous/interchangeable with cmdlet calls. There's a few spots where the control statements defined under KEYWORDS can't be used (the exact cases escape me, but nested parenthetical expressions might be one of them), but cmdlets/aliases can.
I could convert the list to a regex and add it as a variant of CMDLETS if you'd prefer that instead.

Keywords are already scoped to the mode, they aren't global.  And CMDLETS is already part of GENTLEMANS whatever at the top level, so is PS_ALIAS as you tried in the original patch.
Adding them to keywords would be equivalent to your original approach and also equivalent to what you just suggested unless I'm missing something.  When keywords can be used instead of a rule its preferred as its' much simple to work with.

There's a few spots where the control statements defined under KEYWORDS can't be used, but cmdlets/aliases can.

Even if we wanted to handle this I don't see why it couldn't be done with keywords.

Any chances you could you add a markup test with some examples of using aliases?
Also a changelog entry, please?

I might have to dig into the auto-detect conflicts unless you want to.  The problem is that now powershell looks too much like shell and the shell example is being mis-detected.

Any chances you could you add a markup test with some examples of using aliases?

I can certainly try to do so - I don't have a full dev env set up for this project so running test cases might be a bit difficult.

Also a changelog entry, please?

Sure!

I might have to dig into the auto-detect conflicts unless you want to.

I'm assuming this is because echo is now a built_in. I haven't really seen this one used that often in most scripts, and I feel like most PowerShell snippets that did in fact use it would be caught with everything else. I can try setting its relevance to 0 if that's the preferred path.

I can try setting its relevance to 0 if that's the preferred path.

That would likely make the tests green and would be the simplest way forward - I'd suggest adding a comment to explain why.  Auto-detect tests are a mess when dealing with VERY similar languages/grammars.

I don't have a full dev env set up

If you have node and npm it should be pretty trivial.

That would likely make the tests green and would be the simplest way forward - I'd suggest adding a comment to explain why.

Done. I've also added a changelog entry as requested.

I'm looking at the latest Travis output and the test-case failure makes sense (I think) but I'm not sure what the appropriate method would be for fixing it. I might have to take another swing later.

You may need to add a word boundary on lexemes: /-?[A-z\.\-]+/,

@hmmwhatsthisdo Thanks so much for getting this done!


Return type is missing

I get a Return type is missing for https://github.com/widoz/unprefix/blob/refactor-php7/src/Template/Model/HeaderBackground.php#L47 and many other methods/functions even thought I explictly set the return type hint.
Installed Packages:
automattic/phpcs-neutron-standard            v1.5.0
object-calisthenics/phpcs-calisthenics-rules v3.2.1
squizlabs/php_codesniffer                    3.3.0
wp-coding-standards/wpcs                     0.14.1

The issue seems become from neutron standard because removing it by https://github.com/widoz/unprefix/blob/refactor-php7/ruleset.xml#L61 and also trying to explicitly set the standard when run phpcs command.

🤔 I believe you, but I am having trouble replicating the issue. I downloaded the file you linked, and ran NeutronStandard on it, and this is what I get:
$ phpcs -s --standard=NeutronStandard HeaderBackground.php

FILE: /Users/payton/Test/HeaderBackground.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AFFECTING 14 LINES
-------------------------------------------------------------------------------------------------------------------------------
  2 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
  2 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 49 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 49 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 53 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 56 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 56 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 56 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 56 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 60 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 60 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 61 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 61 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 61 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 61 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 64 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 65 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 65 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 65 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 65 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 66 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 67 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 75 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 75 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 75 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 75 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 76 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 76 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 90 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 90 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 98 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)
 98 | ERROR | [x] Parenthesis content must be padded by a space (NeutronStandard.Whitespace.RequireParenthesisSpacing.Missing)

I wonder if there's some way it could be interacting with the other standards...
Can you try the same command (or something similar, but the -s is important so you can see the sniff names) on your machine and send me the results?

Ah, this might be because of #62

@widoz I think the v1.5.1 release should fix your issue. It was an upstream change in phpcs that broke these sniffs which is why I didn't notice it until now.
Let me know if it still doesn't work!


[otp] Add ot_image_header Bazel target rule

This commit adds a new otp target rule to generate C header files from  OTP image overlays created using the otp_json rule. The header files  emitted by the ot_image_header targets will be used to implement manufacturing programs that require loading the OTP partition using the frontend interface.

The first commit is part of https://github.com/lowRISC/opentitan/pull/18103


A little fault in README and the python doc string: some unnecessary and extra
 may occur.

Here are the codes in your instrcution:
{% for comment in comment_list|fill_tree|annotate_tree %}
    {% ifchanged comment.parent_id %}{% else %}
{% endifchanged %}
    {% if not comment.open and not comment.close %}
{% endif %}
    {% if comment.open %}
{% endif %}

        ...
    {% for close in comment.close %}

{% endfor %}
{% endfor %}

The 2nd line may have some faults.
If the comment.parent_id remains None, the ifchanged condition is False,
and it will output an
.
But if the comment is the root comment, that is, the comment is not a reply to an existing comment,
its parent_id is None.
Hence, there may be unnecessary
 between the root comments.
As the browser is smart enough, it will removed the unmatched
,
so we may not be aware of this kind of bug.
However, if we use

 instead of

,
then the unnecessary
 will mismatch other
.
So, I think the solution is to double check the comment.parent_id:
{% ifchanged comment.parent_id %}
{% else %}
    {% if comment.parent_id %}

    {% endif %}
{% endifchanged %}

It is a bit like the issue #53
However it's not fixed completely by issue #54
Maybe we call the Case 3:
Case 3
Follow these steps:

Post a comment.
Post the 2nd comment. NOT a reply to the first comment.
Post the 3rd comment. NOT a reply to the first comment.

Here is the tree:

Comment 1
Comment 2
Comment 3

Here is the HTML output (cleaned up):

        Comment 1

        Comment 2

        Comment 3

Because when processing the comment 3 in the forloop,
its parent_id is same as comment 2 (None),
and it will emit a


Scenario description sometime unavailable

It says only "storyline:"

this is because what i get from the api is already formatted. Currently I only show an excerpt which worked quite well so far but apparently breaks here.
If i print everything it looks like this, which is ridiculous…

So I think this needs to be changed either on the database side or we show everything but collapse the table cells that only the top two lines or so are visible at first… let me know what you tjhink

also, for which scenarios and models should we provide metadata? For normal runs and reference, but not for funnels?


Api Error(102); Check your .wakatime.log file for more details.

Expected behavior (what should have happened):

it should update the status of my coding... but as you can see in below pictures, it cannot do that.
Actual behavior (what went wrong):
Api error / cannot update anything to the server:

Environment:

OS: Arch Linux
Platform: amd64 / x86_64

Logs:

Any suggestions?

It could happen when wakatime-cli can't reach the API. Are you behind a proxy or corporate firewall? Did it work before?

The last line says dial tcp: lookup api.wakatime.com timeout which I think means it timed out when connecting to your DNS server to lookup the ip associated with the api.wakatime.com domain.

It could happen when wakatime-cli can't reach the API. Are you behind a proxy or corporate firewall? Did it work before?

Ah, I'm using a OpenVPN Connection. May it cause of the problem?
by the way, it doesn't work with my original IP address too...

i turned vpn off, but still doesn't work.

I am having this issue but I'm able to ping api.wakatime.com
Also on Arch Linux, visual-studio-code-bin package, 1.65.2
wakatime- vscode plugin 18.0.7
wakatime-cli v1.38.0

@0xj0hn has it worked previously or was always broken?

I'm having simillar problem with vim package. I've installed it properly, but do not see it on my 'plugins status page'. I've tried to use "WakaTimeToday" commend, but nothing happend and in the logs I can see this info:
{"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: today fetch failed: api error: failed fetching today from api: failed to make request to \"https://api.wakatime.com/api/v1/users/curren t/statusbar/today\": Get \"https://api.wakatime.com/api/v1/users/current/statusbar/today\": dial tcp: lookup api.wakatime.com on [::1]:53: read udp [::1]:41052->[::1]:53: read: connection refused","now":"2022-06-09T22:42:22Z","versi on":"v1.48.1"} {"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-06-09T22:42:22Z","version":"v1.48.1"} {"caller":"cmd/run.go:282","func":"cmd.runCmd","level":"warning","message":"failed to send diagnostics: failed to send diagnostics to the API: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https ://api.wakatime.com/api/v1/plugins/errors\": dial tcp: lookup api.wakatime.com on [::1]:53: read udp [::1]:41102->[::1]:53: read: connection refused","now":"2022-06-09T22:42:22Z","version":"v1.48.1"}

@FutureInventor those logs say the plugin couldn't connect to the API. Are you able to try it from a different internet connection?

I've connected to different internet connection and still could not connect to API (I am still able to ping api.wakatime.com though).
Logs after  use of "WakaTimeToday" command:
{"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-10T18:35:14Z","version":"v1.48.1"} {"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-10T18:35:21Z","version":"v1.48.1"} {"caller":"cmd/run.go:99","func":"cmd.Run","level":"debug","message":"command: today","now":"2022-06-10T18:35:30Z","version":"v1.48.1"} {"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: today fetch failed: api error: failed fetching today from api: failed to make request to \"https://api.wakatime.com/api/v1/users/curren t/statusbar/today\": Get \"https://api.wakatime.com/api/v1/users/current/statusbar/today\": dial tcp: lookup api.wakatime.com on [::1]:53: read udp [::1]:43076->[::1]:53: read: connection refused","now":"2022-06-10T18:35:30Z","versi on":"v1.48.1"} {"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://api.wakatime.com/api/v1/plugins/errors","now":"2022-06-10T18:35:30Z","version":"v1.48.1"} {"caller":"cmd/run.go:282","func":"cmd.runCmd","level":"warning","message":"failed to send diagnostics: failed to send diagnostics to the API: failed making request to \"https://api.wakatime.com/api/v1/plugins/errors\": Post \"https ://api.wakatime.com/api/v1/plugins/errors\": dial tcp: lookup api.wakatime.com on [::1]:53: read udp [::1]:33393->[::1]:53: read: connection refused","now":"2022-06-10T18:35:30Z","version":"v1.48.1"}

Can you run:
curl https://api.wakatime.com/api/v1/meta from your browser

Message I've got after run 'curl https://api.wakatime.com/api/v1/meta':
{"data":{"ip_descriptions":{"api":"Public IPs used by api.wakatime.com api servers. These IPs are used for receiving coding activity from developer plugins, and should be whitelisted for outgoing HTTPS (port 443) connections. These IPs do not make requests to external servers, and therefore do not need to be whitelisted in any incoming firewall rules.","website":"Public IPs used by wakatime.com website servers. These IPs will only make requests to external servers from user generated actions, such as when setting up a self-hosted GitLab integration, and therefore should be whitelisted in your firewall rules for incoming connections anytime you configure your GitLab integration. These IPs also receive webhooks from your self-hosted GitLab servers if the GitLab integration is enabled, and should be whitelisted for outgoing HTTPS (port 443) connections on an ongoing basis.","worker":"Public IPs used by background processing tasks. These IPs make external requests, such as when syncing commits for a self-hosted GitLab integration, and should be whitelisted in your firewall rules for incoming connections on an ongoing basis. These IPs never receive webhook requests, and therefore do not need to be whitelisted for outgoing connections."},"ips":{"api":["<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>"],"website":["<IP_ADDRESS>","<IP_ADDRESS>"],"worker":["<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>","<IP_ADDRESS>"]},"last_modified_at":"2022-05-19T14:31:17Z"}}

That means you're not behind any proxy and wakatime-cli should also be able to connect. Maybe it's being blocked by some firewall or antivirus on your machine?

Did it work before and stop working recently? If so, could you try downloading an old version and see if running that with --today works when the current version doesn't?

From what I know, I do not have any firewall or antivirus on my device. If that helps, I try to use this vim plugin, on Android 12 in Termux terminal and neo-vim text editor. I've installed that plugin two days ago, so I do not know how older versions works, but I might give it a shot and try to download it.

I've installed that plugin two days ago

In that case, it probably also won't work with older versions. You're also using Linux same as the others in this thread? What flavor of linux?

Looking closer, that error message is a DNS error meaning it's not able to resolve the IP address for api.wakatime.com:
dial tcp: lookup api.wakatime.com on [::1]:53: read udp [::1]:41052->[::1]:53: read: connection refused
Does it work if you add these 2 lines to your ~/.wakatime.cfg file:
api_url = https://<IP_ADDRESS>/api/v1
no_ssl_verify = true

Changing config file brought some progress I guess. Now I've managed to fetch "WakaTimeToday" request, although it's empty for some reason. I still can not see vim-plug in my Plugin Status page as well. Logs:
{"caller":"pkg/offline/offline.go:64","func":"offline.WithQueue","level":"debug","message":"pushing 1 heartbeat(s) to queue due to error","now":"2022-06-11T19:36:55Z","version":"v1.48.1"} {"caller":"cmd/run.go:276","func":"cmd.runCmd","level":"error","message":"failed to run command: sending heartbeat(s) later due to api error: won't send heartbeat due to backoff","now":"2022-06-11T19:36:55Z","version":"v1.48.1"} {"caller":"pkg/api/diagnostic.go:28","func":"api.(*Client)","level":"debug","message":"sending diagnostic data to api at https://<IP_ADDRESS>/api/v1/plugins/errors","now":"2022-06-11T19:36:55Z","version":"v1.48.1"} {"caller":"cmd/run.go:319","func":"cmd.sendDiagnostics","level":"debug","message":"successfully sent diagnostics","now":"2022-06-11T19:36:56Z","version":"v1.48.1"} {"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-11T19:37:00Z","version":"v1.48.1"} {"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-11T19:37:04Z","version":"v1.48.1"} {"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-11T19:37:25Z","version":"v1.48.1"} {"caller":"cmd/run.go:81","func":"cmd.Run","level":"debug","message":"command: version","now":"2022-06-11T19:37:28Z","version":"v1.48.1"} {"caller":"cmd/run.go:99","func":"cmd.Run","level":"debug","message":"command: today","now":"2022-06-11T19:37:36Z","version":"v1.48.1"} {"caller":"cmd/today/today.go:51","func":"today.Run","level":"debug","message":"successfully fetched today for status bar","now":"2022-06-11T19:37:37Z","version":"v1.48.1"}

The reason you don't see Vim yet is won't send heartbeat due to backoff. You can delete this file to reset that backoff rate limiting:
~/.wakatime-internal.cfg
This proves it's a DNS problem, since using the IP address of api.wakatime.com directly works. Still need to figure out if it's a bug in wakatime-cli or something misconfigured on your ISP. Can you check the output of these 3 commands:

dig api.wakatime.com
grep "nameserver" /etc/resolv.conf
ip route show

Output of following commands:
dig api.wakatime.com:
; <<>> DiG 9.16.27 <<>> api.wakatime.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33837
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;api.wakatime.com.              IN      A
;; ANSWER SECTION:
api.wakatime.com.       3360    IN      A       <IP_ADDRESS>
;; Query time: 56 msec
;; SERVER: <IP_ADDRESS>#53(<IP_ADDRESS>)
;; WHEN: Sun Jun 12 16:45:27 CEST 2022
;; MSG SIZE  rcvd: 61
grep "nameserver" /etc/resolv.conf:
grep: /etc/resolv.conf: No such file or directory
ip route show:
<IP_ADDRESS>/24 dev wlan0 proto kernel scope link src <IP_ADDRESS>

I've also deleted ~/.wakatime-internal.cfg and somehow the plugin start to run properly (I do believe so at least).

Since dig api.wakatime.com resolves the correct IP that means it's a bug in Go's DNS client or our usage of it.

Let me know if I can help you further with my logs in any way.

Was there a short-term solution to this? Should I delete ~/.wakatime-internal.cfg from my machine?

@TurnrDev the short-term solution is adding these lines to your ~/.wakatime.cfg file:
api_url = https://<IP_ADDRESS>/api/v1
no_ssl_verify = true

Deleting your ~/.wakatime-internal.cfg file isn't necessary, it will just reset your client-side rate limit sooner if the rate limit backoff is currently enabled due to past DNS failures.

Perfect! I had to manually run the cli to sync offline activity but I think I got it all in, thanks! Been not working for months so I ran it with 10k heartbeats a few times

@FutureInventor and @TurnrDev if you remove the api_url setting, then add <IP_ADDRESS> to your /etc/resolv.conf file does it start working?

@0xj0hn has it worked previously or was always broken?

It's working now. fixed. I've changed my DNS and it started working

Changing your dns is the same as modifying your /etc/resolv.conf file. We should detect DNS failures and retry the https request using a custom DNS resolver with <IP_ADDRESS>, <IP_ADDRESS>, and their ipv6 equivalents:
https://stackoverflow.com/a/59889883/1290627

Let's leave this open until it works without manual modifications.

@TurnrDev after removing the api_url line and upgrading wakatime-cli (should happen automatically when you restart your editor) does it now work?


Refactor cite.js

Currently cite.js is based on citation-js but converted to ESM. There are 3 issues:

The build works fine in a standalone test but there seems to be some issue integrating with the vite e2e test. Should try removing the side effects and examining the possible issue.

Because @citation-js is cjs, it also hard to use the lib-mjs functions directly since references to other @citation-js plugin is assumed to be cjs...

The default cite.js plugin also adds quite a few possibly redundant locales and styles. Using a custom entry point could help further reduce bundle size.

Currently, the rehype plugin mainly uses the conversion function provided by @citation-js plugins. Maybe bypassing Cite completely might be another solution.

Fix in v0.2.1 and v0.2.2 by inlining lib-mjs of citation-js and refactoring out locales and styles.
Minified bundle size has gone down from 1.1MB to 817kB and integration with vite now works without issue.


Allow the developer to append to another window

Currently, the appendTo option works within the context of the current document / window. This change allows the developer to specify an element within another window

Hi @AkeemMcLennon Can't you do this by simply using $("...").jGrowl() and setting up the container before hand?  Or does this accomplish a different end result in your opinion.  Thanks for your contribution!

@stanlemon To be honest, I wasn't aware that was an option. However, the default $.jGrowl("Hello world!"); syntax only seems to support the current window.
I'm currently involved in a project that uses $.jGrowl() in many places.

@AkeemMcLennon Understood, so just to give you some background...  A number of years ago I moved to the $.fn.jGrowl() method precisely to support this, as well as multiple containers on the page.  The idea is you could setup your container...

And then simply do
$('#message-container-one').jGrowl("My notification...");

And by doing so add support for as many potential containers in as many potential places as you can come up with.
I am inclined to try and keep the $.jGrowl() method simple for this reason. I feel like the functionality you're looking for already exists.


META-LIST.json file that contains all available modules

Is there a url one can access to request all the META6.json files contents for all available modules? Something like a json array that contains all meta files? (the contents not the url of the META6.josn files)

https://ecosystem-api.p6c.org/projects.json
https://ecosystem-api.p6c.org/projects1.json
?

IIRC you need both of these:

https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan.json
https://ecosystem-api.p6c.org/projects.json

Right I'm aware of these two files, but does it make sense to have them hosted somewhere in modules.perl6.org (separate files or combined in one file) rather than a github link?

Right I'm aware of these two files, but does it make sense to have them hosted somewhere in modules.perl6.org (separate files or combined in one file) rather than a github link?

Well, they are hosted on our infrastructure server. Though the practice has shown having a github backup is helpful too.

Well, they are hosted on our infrastructure server. Though the practice has shown having a github backup is helpful too.

May be I'm missing something, the github link doesn't have equivalence hosted on the infrastructure, so it's not a backup. it contains modules that are not existing in any of the other links above. for example Path::Through.

Yep, they are different files, and I don't know of a self-hosted alternative for that github link.

Ping @rba


Update dispatch by path example

fixes #5214

Thanks, this was a good way to fix the docs. However, it looks like this whole section can be removed since it just recreates manually what DispatcherMiddleware already does.


match problem

not sure what the options of the 84000 analyzer are, but searching Maitreyapraṇidhana doesn't find Maitreyapraṇidhanarāja. It should be fairly easy to create a (failing) unit test for that specific case, @sten1ee do you think you could do that?

Yes, @eroux, I'll get right on it.

Ahem.
My test results are somehow discrepant with the ones we got through eXist.
The only part of the config that (I see) differs is the scorer - eXist supplies a custom one:
Searching for phrase 'Maitreyapraṇidhana', parsed query looks like: '(matin treya dana)'
  scored 0.89 on doc[4] 'Maitreyapraṇidhana'
  scored 0.89 on doc[5] 'Maitreyapraṇidhana'
  scored 0.89 on doc[6] 'Maitreyapraṇidhanarāja'
  scored 0.89 on doc[8] 'Maitreyapraṇidhanarāja'
  scored 0.89 on doc[9] 'Maitreyaṇidhana'
  scored 0.78 on doc[7] 'maitreyapra[mukhas]ṇidhana'
  scored 0.30 on doc[1] 'maitreyapraṇid'
  scored 0.30 on doc[2] 'Maitreyapraṇid'
  scored 0.30 on doc[3] 'MaitreyaPraṇid'

master branch is ok yes. I don't really know the eXist scorer, it seems a bit odd that this gives a very different result though... there's something a bit fishy about (matin treya dana), what's the configuration of the analyzer that you're using? (on both exist and your test)

The eXist config is as follows:
            <analyzer id="sa-ltn:index" class="io.bdrc.lucene.sa.SanskritAnalyzer">
                <param name="mode" type="java.lang.String" value="syl"/>
                <param name="inputEncoding" type="java.lang.String" value="roman"/>
                <param name="mergePrepositions" type="boolean" value="false"/>
                <param name="filterGeminates" type="boolean" value="true"/>
                <param name="lenient" type="java.lang.String" value="index"/>
            </analyzer>

            <analyzer id="sa-ltn:query" class="io.bdrc.lucene.sa.SanskritAnalyzer">
                <param name="mode" type="java.lang.String" value="syl"/>
                <param name="inputEncoding" type="java.lang.String" value="roman"/>
                <param name="mergePrepositions" type="boolean" value="false"/>
                <param name="filterGeminates" type="boolean" value="false"/>
                <param name="lenient" type="java.lang.String" value="query"/>
            </analyzer>

And the the test case's analyzers are configured by this set of constants:
    static class AnalyzerArgs {
        final Version version = LuceneVersion;
        final String  mode = "word";
        final String  inputEncoding = "roman";
        final Boolean mergePrepositions = false;
        final Boolean indexFilterGeminates = true;
        final Boolean queryFilterGeminates = false;
        final String  indexLenient = "index";
        final String  queryLenient = "query";
    }

Ouch!
I saw it as I pasted it -- mode = "word"

Ok, now this is more like it:
Searching for phrase 'Maitreyapraṇidhana', parsed query looks like: '(mai tre ya da na)'
  scored 1.07 on doc[4] 'Maitreyapraṇidhana'
  scored 1.07 on doc[5] 'Maitreyapraṇidhana'
  scored 1.07 on doc[9] 'Maitreyaṇidhana'
  scored 0.91 on doc[6] 'Maitreyapraṇidhanarāja'
  scored 0.76 on doc[7] 'maitreyapra[mukhas]ṇidhana'
  scored 0.49 on doc[8] 'Maitreyapraṇidhanarāja'
  scored 0.30 on doc[1] 'maitreyapraṇid'
  scored 0.30 on doc[2] 'Maitreyapraṇid'
  scored 0.30 on doc[3] 'MaitreyaPraṇid'

ok, that's more what I would expect... so the first surprise is that praṇi disappeared from the query (mai tre ya da na), is there a list of stop words? (I think it should be one of the arguments)

No explicit list of stop words, so I my guess is the default one is used, and yes, it is:
[main] INFO io.bdrc.lucene.sa.CommonHelpers - found resource /skrt-stopwords.txt through regular classloader

ok, can you remove the stop words? (I can't remember how to do that exactly)

with empty skrt-stopwords.txt file:
Searching for phrase 'Maitreyapraṇidhana', parsed query looks like: '(mai tre ya pra ni da na)'
  scored 1.09 on doc[4] 'Maitreyapraṇidhana'
  scored 1.09 on doc[5] 'Maitreyapraṇidhana'
  scored 0.91 on doc[6] 'Maitreyapraṇidhanarāja'
  scored 0.91 on doc[7] 'maitreyapra[mukhas]ṇidhana'
  scored 0.83 on doc[9] 'Maitreyaṇidhana'
  scored 0.60 on doc[8] 'Maitreyapraṇidhanarāja'
  scored 0.29 on doc[1] 'maitreyapraṇid'
  scored 0.29 on doc[2] 'Maitreyapraṇid'
  scored 0.29 on doc[3] 'MaitreyaPraṇid'

ok, that looks good to me... if it looks good to you too, can you configure the analyzer in exide so that it doesn't use a stopword list?

Yes,
although there's no way to do it changing the eXist Analyzer(s) config only.
I either have to build the jar with an empty stopwords file (the easier way)
or
tweak/add a chain of c-tors that provide option for no stopwords (at present there's no such option).
I think I'd go for the former option, if you don't mind.
Oh, cr*p - but then I won't be able to use this config for the test case ...
So, it seems the only sensible option to achieve it is: in addition to
SanskritAnalyzer(org.apache.lucene.util.Version version, String mode, String inputEncoding, Boolean mergePrepositions, Boolean filterGeminates, String lenient) throws IOException

have also a
SanskritAnalyzer(org.apache.lucene.util.Version version, String mode, String inputEncoding, Boolean mergePrepositions, Boolean filterGeminates, String lenient, String stopwordsFileName) throws IOException

where passing a null file name switches off the stopwords filtering.
How do you like it (despite the fact that such a monstrous constructor looks ugly, for sure)

I thought there was an option already sorry, yes please add an option... another idea is to just force the stopwords to be null in the case of a syllable analyzer, it's probably easier but also less flexible. Can you implement the additional argument in master?

Yes, I almost did that in a slightly different manner; Will create a PR for you to review shortly.
Meanwhile, I realised that there is a TC that fails (in master) (when running the tests within IntelliJ)
It is in FullLuceneShowcase.java, line 110, method testWordLenientSearch(): "Expected :0  Actual   :1"
What's bothering me is that the code in the failing test initialises it Analyzers like this:
        // indexing in words, from iast, with stopwords
        Analyzer indexingAnalyzer = new SanskritAnalyzer("word", "roman", true, false, "index");
        // querying in words, from SLP, with stopwords
        Analyzer queryingAnalyzer = new SanskritAnalyzer("space", "roman", false, false, "query");

while the README.md states that lenient word mode it should be initialised like this
Indexing: SanskritAnalyzer("word", "roman", false, true, "index")
Querying: SanskritAnalyzer("space", "roman", false, false, "query")

I've noticed that the next TC - testSylLenientSearch() - although passing, also violates the initialisation form of lenient syl mode of the Index analyzer by supplying 'false, false' instead of 'true, false'
Why that discrepancy between doc and tests?

I honestly cannot remember... maybe it was to test some edge cases... but in any case, the tests should probably be fixed

I will 'fix' them, just wanted you to review the situation and say whether the initialisation in the tests should follow the doc.
i.e. documentation on lenient search is correct and should be followed in this TCs?

right, the doc seems correct in that case, thanks for spotting!

the issue still exists but in another form


crowdin link on README

@corpish
can you please provide crowdin link

Done.
https://github.com/corphish/NightLight/commit/e53a41e3bc78820a381116de3ed6e64a9eb29814


False positive bitcanna.io

BitCanna is now marked in your list. BitCanna is not a company involved in spam, but focusses on solving issues in the cannabis industries using blockchain technology. Please remove our domain from your list (https://raw.githubusercontent.com/mtxadmin/ublock/master/hosts.txt). Thanks!

It seems, your domain was involved in some browser-mining activity about a year ago. I see, almost all my colleagues were removed the domain from their lists. Ok, I removed it too.

Good day
Thanks!
With kind regards
The BitCanna team
From: mtxadmin @.>
Sent: donderdag 5 mei 2022 00:26
To: mtxadmin/ublock @.>
Cc: Info | Bitcanna @.>; Author @.>
Subject: Re: [mtxadmin/ublock] False positive bitcanna.io (Issue #48)
It seems, your domain was involved in some browser-mining activity about a year ago. I see, almost all my colleagues were removed the domain from their lists. Ok, I removed it too.
—
Reply to this email directly, view it on GitHubhttps://github.com/mtxadmin/ublock/issues/48#issuecomment-1117990871, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJN75CLAPGWQJ7MSIIB4MW3VIL2P3ANCNFSM5VB4DNHQ.
You are receiving this because you authored the thread.Message ID: @.***>


New API Function FindSrvCmdLimit

As suggested by you, @robinrodricks, this API function will issue  up to maxTrys=2000 commands command="PWD" with an inter-command delay of delay=50 to help the user find out the recommended setting of SslSessionLength fot this server connection.
Usage:
	ftpClient.Connect();

	Console.WriteLine("Set SslSessionLength to less than: " + ftpClient.FindSrvCmdLimit());

Feel free to rename everything except C# reserved keywords.

Oh wow!

How about :

AutoSslSessionLength
DiscoverSslSessionLength
CalcSslSessionLength

Is this ok? DiscoverSslSessionLength

@robinrodricks  Yeah, "Discover" is much better. Thx.

Closing and Re-Pull... looks cleaner


Add \underline support

Fixes #209.

Having trouble getting Docker to work but it looks okay in my browser…

@spicyj cool.  Can you update the screenshot test to include \overline nested within \underline and vice versa?  I'll try running docker on your branch.

Sure, I put it in the \blue{} to also prove that \underline preserves color.

LGTM, once the tests pass!

yay!


Need to build each time I change my code

My issue is that I need to re-build each time I add some code to my project.
I followed the course from start until Code Coverage and Quality.
everything has gone well without any problems but this one :(
I know you mention in your course that
"volumes" tag makes it possible. I am not sure what is causing this problem.
What should I check? or try to fix the problem? many thanks.
here is my yml file;
version: '3.8'

services:
    web:
        build: ./project
        command: uvicorn app.main:app --reload --workers 1 --host <IP_ADDRESS> --port 8000
        volumes:
            - ./project:/usr/src/app
        ports:
            - 8004:8000
        environment:
            - ENVIRONMENT=dev
            - TESTING=0
            - DATABASE_URL=postgres://postgres:postgres@web-db:5432/web_dev
            - DATABASE_TEST_URL=postgres://postgres:postgres@web-db:5432/web_test
        depends_on:
            - web-db

    web-db:
        build:
            context: ./project/db
            dockerfile: Dockerfile
        expose:
            - 5432
        environment:
            - POSTGRES_USER=postgres
            - POSTGRES_PASSWORD=postgres

I dont the see test coverage HTML /htmlcov  under ./project
when I connect web image through cli
I can see that there is an /htmlcov folder.
But not at my local project folder.
So I am not able to access/open the coverage html file.
I believe it is because of the above issue.
how should I try to fix the issue? appreciate some guidance thank you.

Yes, it sounds like an issue with the volumes. Can you email me. michael at testdriven dot io.


configuration error from source code

While configuring from source in a ubuntu20-based docker environment, i obtained:

pkg-config is missing as dependency in documentation
even thought 'apt install check
Reading package lists... Done
Building dependency tree
Reading state information... Done
check is already the newest version (0.10.0-3build2).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.'

i obtained from configure:

checking for CHECK... no
configure: error: Check not found

it is good idea to migrate to cmake...

under  debian:bullseye
configuration goes i bit further:
checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables...  checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking for gcc option to accept ISO Standard C... (cached) none needed checking for flex... flex checking lex output file root... lex.yy checking lex library... -lfl checking whether yytext is a pointer... yes checking for bison... bison -y checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for check >= 0.11.0... yes checking for library containing cfg_init... -lconfuse checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for inttypes.h... (cached) yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking for int16_t... yes checking for int32_t... yes checking for int8_t... yes checking for size_t... (cached) yes checking for uint16_t... yes checking for uint32_t... yes checking for uint8_t... yes checking for memset... yes checking for strdup... yes checking for help2man... no ./configure: line 5590: syntax error near unexpected token drd,'
./configure: line 5590: AX_VALGRIND_DFLT(drd, off)'
seems the same as in
https://github.com/tpm2-software/tpm2-abrmd/issues/404

The Ubuntu error is because the distro is shipping an older version of check.  You can add the --without-check flag to ./configure and it will skip the dependency and you won't be able to run unit tests.
The second issue looks like a missing autoconf-archive dependency.  See the "installing from git" section in the README.


French translation

Partial translation.
I missed a git command, so now i cant squash xD

So i pull request 3 commits instead one. :whale:

File corrupt, i'll make a new PR later.


[$250] Spell check correction removes all text from the compose box

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number:
Reproducible in staging?: needs reproduction (My mac does not autocorrect the spelling error)
Reproducible in production?: needs reproduction
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @Christinadobrzyn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1712188205792639
Action Performed:

Sign into NewExpensify
Create a chat or find an existing chat
start writing a sentence and misspell a word
When spellcheck corrects the spelling it removes all other words in the chat

Expected Result:
the incorrectly spelled word is automatically corrected and the sentence still exists
Actual Result:
the incorrectly spelled word is automatically corrected but the other words disappear
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/38435837/b6becfad-b902-48b0-8ba8-cad6223ae633

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0191b752b72807ee27
Upwork Job ID:<PHONE_NUMBER>254098944
Last Price Increase: 2024-04-05

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

cc @BartoszGrajdek @Skalakid in case you have seen this one

Hey Jack are you going to work on this one directly or should I leave it external?

I found this external GH: Accepting spellcheck suggestion deletes containing span which might help with debugging our issue in case someone is able to reproduce it - given that we might have a similar root cause breakdown as mentioned here.

I believe SWM will be looking into this - I self-assigned for tracking

Okay got it - removing help wanted is good. I'll leave it for now then while SWM investigates 👍

https://github.com/Expensify/App/issues/39676#issuecomment-2043716143 still most accurate

Hi, I'm Bartosz from SWM, and I'll be working on this issue! 👀

I cannot reproduce the problem - autocorrect is working fine for me

Video
https://github.com/Expensify/App/assets/41169160/4ff462c8-d77c-4256-93f5-f3dd17fe33d8

Nice, this was probably resolved in one of the version bumps


Use scan for running tests

Current coverage is 50.27%

Merging #5 into master will not affect coverage as of 2a1bced

@@            master      #5   diff @@
======================================
  Files            9       9
  Stmts          179     179
  Branches         0       0
  Methods
======================================
  Hit             90      90
  Partial          0       0
  Missed          89      89

Review entire Coverage Diff as of 2a1bced

Powered by Codecov. Updated on successful CI builds.


Bug: Appointment command allows ending an appointment with invalid From and To

From can be later than To.

Resolved


Need an API documentation to load USD at runtime on Windows

Hello,
Can someone please point me to a API for C# documentation to load usd assets at runtime on Editor/Windows

Hi @jajanps0015, thank you for your question. We've had to remove official runtime support for this package as it was broken and missing a lot of feature compatibility. We will log your request for this feature in our roadmap, but I'm afraid I can't give you an estimate. If you head over to the Roadmap you can add more detail about your use case (on the 'USD Import ticket') for this feature to help us prioritize as we hope to be able to work on this in the future :)

Just want to know if it support importing and exporting usd at the runtime? I used to with the old experimental usd unity sdk.

Hi @tufeixp, runtime import and export is not currently supported in the new Importer package. We don't currently have any plans to work on this as USD feature development has been deprioritised.


relax coin amount in fast-forward logic

Update the fast-forward feature to allow the coin amount to change when "rebasing" a spend onto a later version of the same singleton.

I see two remaining tasks with this patch:

We need to account for (and cover with tests) the fact that not only the latest version's amount can change, but its parent's amount can change too.
We need to relax (and cover with tests) the check for output coins as it still requires the same amount.


Flutter Error JAVA HOME and sure java work

i have flutter project that work well. but suddenly when i try to run it got error like below :
Running Gradle task 'assembleDebug'...
ERROR: JAVA_HOME is set to an invalid directory:
Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Finished with error: Gradle task assembleDebug failed with exit code 1
i try to running other project and it run properly. only that one project error. i sure the java running well since a try another project and new project can be run.
please your advice.
Steps to Reproduce
  Run your application with `flutter run --verbose` and attach all the
  log output below between the lines with the backticks. If there is an
  exception, please see if the error message includes enough information
  to explain how to solve the issue.

-->
C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc>flutter run --verbose
[  +32 ms] executing: [C:\flutter] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +67 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 0b8abb4724aa590dd0f429683339b1e045a1594d
[        ] executing: [C:\flutter] git describe --match v*.. --first-parent --long --tags
[  +39 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[        ] v1.12.13+hotfix.8-0-g0b8abb472
[   +8 ms] executing: [C:\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[  +40 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter] git ls-remote --get-url origin
[  +36 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +85 ms] executing: [C:\flutter] git rev-parse --abbrev-ref HEAD
[  +37 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +118 ms] executing: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +26 ms] Exit code 0 from: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[        ] List of devices attached
28889d220404           device product:mido model:Redmi_Note_4 device:mido transport_id:2
[  +18 ms] C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 28889d220404 shell getprop
[  +95 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +62 ms] Found plugin flutter_bluetooth_basic at C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_basic-0.1.5
[  +24 ms] Found plugin image_picker_saver at C:\flutter.pub-cache\hosted\pub.dartlang.org\image_picker_saver-0.3.0
[  +16 ms] Found plugin path_provider at C:\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.7
[   +2 ms] Found plugin path_provider_macos at C:\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+1
[  +16 ms] Found plugin shared_preferences at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.7
[   +2 ms] Found plugin shared_preferences_macos at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+7
[   +4 ms] Found plugin shared_preferences_web at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+4
[  +62 ms] Found plugin flutter_bluetooth_basic at C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_bluetooth_basic-0.1.5
[  +12 ms] Found plugin image_picker_saver at C:\flutter.pub-cache\hosted\pub.dartlang.org\image_picker_saver-0.3.0
[   +7 ms] Found plugin path_provider at C:\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.7
[   +1 ms] Found plugin path_provider_macos at C:\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+1
[   +7 ms] Found plugin shared_preferences at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.7
[   +1 ms] Found plugin shared_preferences_macos at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+7
[   +2 ms] Found plugin shared_preferences_web at C:\flutter.pub-cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+4
[  +53 ms] Generating C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +35 ms] ro.hardware = qcom
[  +61 ms] Launching lib\main.dart on Redmi Note 4 in debug mode...
[  +15 ms] executing: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 28889d220404 shell -x logcat -v time -t 1
[  +98 ms] Exit code 0 from: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 28889d220404 shell -x logcat -v time -t 1
[        ] --------- beginning of main
06-02 17:46:28.116 I/MSM-irqbalance(  859): Decided to move IRQ3 from CPU0 [P:0] to CPU4 [P:1] (banned)
[   +7 ms] executing: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe version
[   +1 ms] executing: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe -s 28889d220404 logcat -v time -T 06-02 17:46:28.116
[  +32 ms] Android Debug Bridge version 1.0.41
Version 29.0.6-6198805
Installed as C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +3 ms] executing: C:\Users\kartz\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +24 ms] Building APK
[  +11 ms] [!] Your app isn't using AndroidX.
[        ]     To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
[   +9 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] gradle.properties already sets android.enableR8
[   +6 ms] Using gradle from C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc\android\gradlew.bat.
[  +10 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +122 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[   +3 ms] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +5 ms] executing: [C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc\android] C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc\android\gradlew.bat -Pverbose=true -Ptarget=C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug
[  +87 ms] ERROR: JAVA_HOME is set to an invalid directory:
[   +2 ms] Please set the JAVA_HOME variable in your environment to match the
[        ] location of your Java installation.
[  +12 ms] Running Gradle task 'assembleDebug'... (completed in 0.2s)
[   +6 ms] "flutter run" took 1,160ms.
Gradle task assembleDebug failed with exit code 1
#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      buildGradleApp (package:flutter_tools/src/android/gradle.dart:387:7)
#2      _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:73:64)
#3      _rootRunUnary (dart:async/zone.dart:1134:38)
#4      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#5      _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#7      Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#8      Future._completeWithValue (dart:async/future_impl.dart:524:5)
#9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
#10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
#11     _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart)
#12     _asyncThenWrapperHelper. (dart:async-patch/async_patch.dart:73:64)
#13     _rootRunUnary (dart:async/zone.dart:1134:38)
#14     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#15     _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
#16     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
#17     Future._propagateToListeners (dart:async/future_impl.dart:709:32)
#18     Future._addListener. (dart:async/future_impl.dart:389:9)
#19     _rootRun (dart:async/zone.dart:1126:13)
#20     _CustomZone.run (dart:async/zone.dart:1023:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#22     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:175:5)
C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc>

C:\Users\kartz\OneDrive\Flutter Project\pos_project_bloc>flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.836], locale en-US)
• Flutter version 1.12.13+hotfix.8 at C:\flutter
• Framework revision 0b8abb4724 (4 months ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\kartz\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.40.0)
• VS Code at C:\Users\kartz\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.8.1
[√] Connected device (1 available)
• Redmi Note 4 • 28889d220404 • android-arm64 • Android 7.0 (API 24)
• No issues found!

Hello. I've noticed you closed the issue, please how did you solve it ? I have the same problem

please mention how u solve it i am facing the same

All Possible Working Solution Added Here [Solved] ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your flutter PATH. in flutter


Added alternatives for chat commands

Implements the feature requested in #5294

This and https://github.com/runelite/runelite/pull/5801
look like blatant copy and paste for hacktoberfest, they are even split out into 2 prs.

Where exactly did I copy this from?

Both this PR, and #5801, when combined together, implement the same changeset that #5303 attempts to introduce.
Your modifications of ChatCommandsPlugin are incredibly close to the modifications #5303 makes, but you use sets rather than regex, which could be pure coincidence.
However in #5801 it is painfully obvious that BossAbbreviations.java is a direct copy and paste from #5303 which draws further attention to the similarities that this PR has to how it was performed there.

I know you guys wont believe me for whatever reason but I actually just looked at #5294 and the replies, where Unmoon suggested to do the boss names like the SkillAbbreviations (I just compared mine and the one I 'copied' and I actually changed a subtle spelling mistake which I definitely wouldn't have noticed if I just copy pasted).
I split the PRs into two separate ones because I though that would be the proper way to do it, as this is my first time contributing to an OSS.
Just found it a bit rude to imply ill intent, if I just wanted PRs I could've just opened my own public repo.
So should I combine the two PRs? And any actual comments :D?

Per comments on #5294, we're not looking to add this feature anymore in order to maintain consistent cross-client command names.


[Discussion] Performance when using the grid with large data

In my example I used the grid with 150k rows x 15 columns= ~2.2 million cells. I think that's both memory and CPU intensive, the app froze for ~6-12 seconds for both creating the PlutoCell and PlutoRow  and initializeRows  inside the grid. these tests are made on web platform as debug, (same tests on desktop/android platform is much faster, you can feel the lag but i think it is negligible).
The main two places for these hangs are:

initializeRows at  pluto_grid_state_manager.dart#L94 is doing alot of heavy work on the main thread.
there is a large collection of PlutoCell and PlutoRow made by the consumer outside the grid

What if we changed the way the grid works? from giving all the data beforehand to using the builder. We can delegate the builder we're using inside ListView.builder, and column filters to some methods and functions provided by the consumer.
I think it needs some testing before fully applying it , because it may increase the small scroll lag that already exists now when scrolling vertically in large distances and it may be hard to fix selection, scrolling, and related problems.
What do you think?

@MajedDH
PlutoGrid 4.0.0 has been deployed.
Rendering speed is improved over the previous version.
It is faster in Profile mode, and seems to be slower than before in Debug mode. This is confirmed to be due to the code for the Provider's profile.
In the previous version, when there are more than 30 columns, the frame dropped when moving cells with the keyboard.
Also, UI freezes when setting a large number of rows when creating a grid. This is also an updated solution.
Below is an example link. Take a look and let me know if you have any comments.
https://weblaze.dev/pluto_grid/build/web/#feature/add-rows-asynchronously
Note that,
Some Providers are used for state management.
Some of the problems in the link below have been improved, but still I have confirmed with DebugProfiler that frames are dropping due to removeListener .
https://github.com/flutter/flutter/issues/71900
And, in the previous version, if there are many columns, the number of columns increases as Cells are built, which slows down the speed.
I tried to use ListView.builder etc to solve this, but I thought it would be difficult with the structure now.
After much deliberation, I checked whether the column is currently visible with the VisibilityDetector package and decided whether to build the Cell.
I've noticed a lot of performance improvements in Flutter's profile mode. However, there is one more thing I would like to address.
VisibilityDetector package can check the visible ratio based on the current screen area.
I would like to expand the screen area so that the adjacent columns in advance are included in the visible area. I've looked at the source code, but I'm still not sure.
Still, there are more codes that lower frames.
There was a long way to go.
Still, you improved the speed of the Resize column and it helped me a lot. Thank you again.


Allow challenges to examine console output for tests

When creating a challenge I would like the ability to capture output.  This would allow challenges to be created so we can tell if a loop was used.
'''Csharp
public void LoopWhile (double material)
{
while(material > 0)
{
Console.WriteLine(material);
material -= 1;
}
}
'''

create new challenge to list numbers 1-10 all on new lines


add revision counter to avoid client-id clashes

Codecov Report

Merging #32 (268a2b4) into main (56a982e) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@             Coverage Diff             @@
##              main      #32      +/-   ##
===========================================
- Coverage   100.00%   99.84%   -0.16%
===========================================
  Files           32       31       -1
  Lines          651      645       -6
===========================================
- Hits           651      644       -7
- Misses           0        1       +1

Files
Coverage Δ

client.go
100.00% <ø> (ø)

client_resolver.go
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Guide to the OpenWrt source tree

When viewing for the first time, the OpenWrt source tree can be intimidating and confusing. A guide should describe where various pieces of the OpenWrt are in the source tree and how those pieces correspond to the final OpenWrt output tree.

I'm here. I'll take this. :D
https://forum.openwrt.org/viewtopic.php?pid=275741#p275741

Sounds great @jessemonroy650! Anything I can do to help?

@jessemonroy650 how are things going? How is the guide to the source tree going?

No really, except to poke me. I've been distracted getting Phonegap and Arduino Examples and Docs up. I'll poke at it today and post something.

Sounds good @jessemonroy650 :+1:


ui: fix create user with saml

Description
Fixes #5478

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@blueorangutan ui

@blueorangutan ui

@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5481 (SL-JID-673)

@shwstppr couple of issues, not sure if they are due to the qa.cloudstack.cloud backend of 4.15.1: (the qa.cloudstack.cloud is SAMl enabled and can be used for testing)

Check if the normal user/role type should be shown this form, it fails:

On creating user as normal user type, that fails too (in its own account):

As domain admin, the IDP list was somehow not shown in the create user form:

As root admin, I created a new user 'rick' and while creating the user ticked authorise saml sso and selected the IDP however the newly-created user is not SAML2 type:

For an already authorised saml user, when clicking edit saml authorisation button the IDP is pre-selected as 0 (something wrong in option/value key?)

Note: this form also seems to pass invalid entityid in the API, so the user isn't really SAML enabled.

@rhtyd Verified mentioned issues with PR build:

Normal User role cannot create new users in their own account. Old UI doesn't provide the option and option wasn't there in this PR build as well.
Same as 1
Fixed this case
Fixed with this PR
Didn't see this behaviour with this PR build.

Addressed #5477 and #5478
@blueorangutan ui

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan ui

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5481 (SL-JID-674)

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5481 (SL-JID-675)

@blueorangutan ui

@blueorangutan ui

@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5481 (SL-JID-676)

@shwstppr outstanding/new issues:

Minor - does not refresh user detail page on edit/saving the authorise saml sso form
As domain admin, the entity ID is not updating - still 0? And on saving the form still passes 0 as entityid
Create user form doesn't work for domain user the #/user path (as domainid is not passed)

@shwstppr is this ready for final test/merge, or you addressing minor issues too?
@blueorangutan ui

@rhtyd a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5481 (SL-JID-678)

@rhtyd let's move ahead with one for #2

As domain admin, the entity ID is not updating - still 0? And on saving the form still passes 0 as entityid

I'll fix #1 and #3 in another PR #5487


Superset and Hive connectivity with http thrift transport

Guys,
Badly need your help here.. We are using Superset 1.0.1 version and trying to connect to hive over http Thrift transport with authentication as LDAP. But ending with  below error. we are using Docker compose and pyhive is already there. For normal hive server (binary mode) with authentication =NOSASL we were able to connect without any issues where as for HTTP hive we were not able to connect.
The SQLAlchemy URI is hive://Username:Password@hostname:8443/default?auth=LDAP
Database.get_sqla_engine(). Masked URL: hive://username:XXXXXXXXXX@hostname:8443/default?auth=LDAP
[stats_logger] (incr) DatabaseRestApi.test_connection.error
[stats_logger] (timing) DatabaseRestApi.test_connection.time | 9.271875023841858
<IP_ADDRESS> - - [21/Mar/2021 18:18:50] "POST /api/v1/database/test_connection HTTP/1.1" 422 -
Any help is highly appreciate here...

A quick update from superset 0.38 version we were able to connect to hive without issues where as in 1.0.1 we are having issues

I encountered the same problem. Did you solve it? i have no auth

Hi, if there is no authentication then try to use NOSASL it should work
If authentication is there then
hive://username:password@host:port/default?auth=CUSTOM. Before doing this you need to follow.
https://github.com/apache/superset/pull/13608


Any ports for redux undo redo?

Hello has anybody had the need to port any of the libs for redux undo redo to redux-zero?  This one looks pretty nice- Redux Undo.

For Redux it's easier because it does not modify the state directaly, but create a new one, which makes waaaay easier to time-travel, for example.
We're thinking in some ways to do the same with Redux Zero, but right now it's for the future.


feat: insert only time (#4)

Hello,
I have merged your code. I will update the plugin to recognise time formats, display a picker button for them, show a popup when only time is selected, and adhere to the user's 24-hour time format setting before creating a release.
Thank you for the feature request and the code contribution.


Displaying SVG NFTs

I'm using <opensea_dart> to fetch metadata from Opensea.
It works fine (thanks to @copypasteearth )
Now I wanna display it on the scene, but the problem is the image can be any type of formats (including SVG)
In dart, the Image component does not support SVG format yet.
We do have SVG-targeted component, but the thing is we're not sure whether the image is SVG or not.
Can anyone tell me how I can determine the type of image from Metadata?
or any other approaches for this?

I guess the solution is not to determine whether it's SVG or not.
I found that Image component is not fully compatible with all SVGs (especially with some filters).
I hope this will be fixed soon by maintainers.


fix: Move blur blocks without data loss

Closes #286

Hi @mogavin ,
Can you please add some tests? Thanks


[Feature] i18n support for the editor & plugins

Is your feature request related to a problem? Please describe.
It’s a feature request, for language localization.

All plugin's text can be configured to any language. What's the issue you have?

After a few days of usage, I realized that this is not a feature request, but a question of adding more examples. #288

Close as figured out.


Is project abandoned?

In favor of the new Rust based winsafe?

Not abandoned, just feature complete.
WinSafe, in the other hand, is being actively developed because it has a much wider scope – it's not just a GUI wrapper, it's a safe wrapper over the whole Win32 API. Very ambitious project, and likely to never be finished, due to the sheer size of the Win32 API... but at some point in the future it will be large enough to be useful to most projects (I hope).


Fix typo in doc

@mkubala Thanks a lot for your contribution (the first external one :) )
The file you edited is generated out of source files. To make the process smoother I took a liberty and propagated your change in https://github.com/note/xml-lens/pull/37

Cool 👍


[WFLY-17931] Eliminating deprecated javax.api module usages

https://issues.redhat.com/browse/WFLY-17931

@ropalka needs a rebase

@ropalka looks like this needs another rebase ;-(  Also FYI once rebased you should be able to remove rebase-this label yourself - it is this kind of label that stops people coming back to review.

Done @darranl


Internal: Move base testing classes to testing package

This essentially reverts the change in https://github.com/hydephp/develop/pull/1607, as it for some reason breaks framework tests on macOS. Instead, these base classes are now autoloaded using the testing package.

Initial Ubuntu test failed, likely due to race condition as it was triggered before the monorepo package was split and propagated to the testing package.


Slug of product

What I'm trying to achieve
Why Product model doesn't have a slug attribute? Product model creates it dynamically in get_absolute_url method:
def get_absolute_url(self):
        return reverse(
            'product:details',
            kwargs={'slug': self.get_slug(), 'product_id': self.id})

def get_slug(self):
        return slugify(smart_text(unidecode(self.name)))

Describe a proposed solution
Add a slug attribute to Product model as other models have it. After that it would be possible to translate slugs for example in ProductTranslation model.
Screenshots or mockups

Hi! This is because the slug is for SEO. If the slug is no longer valid, it will be still handled by through the passed primary key of the product.
But you raise a good point for translation. I notice get_slug doesn't handle localization. It would be straight forward to do, including making sure the prefetches are properly done in the views.
@maarcingebala how should we handle this issue as we are planning on moving out of the django views in the next release?

Hi! Thank you for your answer.
Now there are questions from your answer:

In which cases can the slug be no valid? In my mind it's hard linked to a Product model where from we get the slug.
So if it's about SEO why a Category model has the slug? It is doesn't created dynamically and taked from a model attribute then used in urlpattern.

url(
        r"^category/(?P<slug>[a-z0-9-_]+?)-(?P<category_id>[0-9]+)/$",
        views.category_index,
        name="category",
    ),

class Category(MPTTModel, ModelWithMetadata, SeoModel):
    name = models.CharField(max_length=128)
    slug = models.SlugField(max_length=128)
    ...

Slug added was added to the Product model.


[Mobile] Cannot use in Flutter latest stable version (2.2.0)

My issue is about [Mobile].
Reproduce step:

upgrade to latest stable version (2.2.0)
flutter pub get
flutter run

../lib/widgets/raw_editor.dart:97:7: Error: The non-abstract class 'RawEditorState' is missing implementations for these members:
 - TextSelectionDelegate.userUpdateTextEditingValue
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class RawEditorState extends EditorState
      ^^^^^^^^^^^^^^
/usr/local/bin/flutter/packages/flutter/lib/src/services/text_input.dart:822:8: Context: 'TextSelectionDelegate.userUpdateTextEditingValue' is defined here.
  void userUpdateTextEditingValue(TextEditingValue value, SelectionChangedCause cause);
       ^^^^^^^^^^^^^^^^^^^^^^^^^^
../lib/widgets/raw_editor.dart:1053:8: Error: The method 'RawEditorState.hideToolbar' has fewer positional arguments than those of overridden method 'TextSelectionDelegate.hideToolbar'.
  void hideToolbar() {
       ^
/usr/local/bin/flutter/packages/flutter/lib/src/services/text_input.dart:829:8: Context: This is the overridden method ('hideToolbar').
  void hideToolbar([bool hideHandles = true]);
       ^

FAILURE: Build failed with an exception.

* Where:
Script '/usr/local/bin/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/usr/local/bin/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1

I have the same issue after upgrading to flutter 2.2

Seems like @kevinDespoulains (thank you btw ☺) is already working on a pull request.
In the meantime you can edit your local copy in the pub cache by applying the following changes manually: https://github.com/singerdmx/flutter-quill/pull/226/commits/f01e161a3f7f307378db547c22c16762d57b12fd

The PR #226 is merged, now we have to wait for a new release from @singerdmx.

When I use the above @friebetill , it compiles just fine for simulator, but any production build for iOS fails with
    "../../third_party/dart/runtime/vm/compiler/aot/precompiler.cc: 3186: error: unreachable code
        Dart snapshot generator failed with exit code -6"

ie. flutter build ios fails.

Thanks for the information, I am working on solving the problem.
The editor runs without problems for me on iOS in debug mode. However, the build for iOS is currently failing for me because of this issue. So I can't reproduce the build problem yet.
I saw that there was already a similar PR and there was this extra line, maybe someone can add this line and see if it fixes the problem.
    updateEditingValue(value);

I did try find this @friebetill - but I couldn't find a way to reproduce that approach to debugging the issue.  I wondered if this was not a problem with the Flutter/Dart compilation system, and whether a bug should be filed with them?

gen_snapshot with --trace-compiler sounds interesting, I haven't heard of it yet. I'll read about it and maybe I can find something out.
I also noticed that my demotivation to create an issue is mainly because creating a minimum reproducible example is a boring task and I've done exactly that for the last two weeks for this issue.

I created this issue in the Flutter repo.

@friebetill
Thanks, that is work for me! great

Closed by https://github.com/singerdmx/flutter-quill/pull/239.


Remove Null

There is too much inconsistency between usage of null and undefined.
Originally this was a stand-in for the None type from python, however the handling has never been consistent, where in some places we explicitly set something to Null, and in others we simply do not set it at all (after checking some data).

Null behavior might be better than undefined, keep for now to avoid breaking changes.


Update Trading Outpost

About the PR

Tested it, works. It was really old and i looked back at my old mistakes so decided to fix them.
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

HOL UP i need to fix 1 thing one very quick second dont merg

ok u can merg now


Completing the merge action still shows notification that there are pending conflicts in scm view

Testing #5648
In the screenshot below you can see there are no pending conflicts in the scm view but the notification indicates there is.

@deepak1556 did you commit the merge?

Yes I did, the line Merge branch 'main' into robo/test is from the merge commit.

Did you commit via the command line?

Nope, I did it from the SCM view

I assume then that you resolved the merge without using the merge editor.


Add support for hidpi displays

Addresses #2

Unfortunately this still looks tiny. I am using GNOME 3.38 on Wayland with Fedora 33. I don't know how Skia determines the scale factor or how I can set that. I can't find any documentation about that.

The relevant library here is actually sdl2, not skia. Sdl2 is responsible for creating the window at the desired (logical) size (800x600 by default) and reporting back the correct size in screen pixels (to the window.size() call) and in logical pixels (window.drable_size()). In  From your screenshot, it looks like sdl is not able to determine that the display is scaled (my guess is that here: https://github.com/mwylde/loopers/pull/3/commits/57ef600c3818ad2802b80245a780a25843911a8b#diff-29373c8db8084fd64846b91d61b7aae833ca30a7f251a8d8988e216775c26609L101 where we compute the scale factor, we would get 1 for your display).
Acorrding to this article sdl added support in 2.0.10 for hidpi on wayland. Can you check your libsdl2 version?

I am using SDL2-2.0.12-4.fc33.x86_64

Qt has an environment variable that users can set to scale applications. Is there anything comparable for SDL? I can't find any documentation.

Yeah, I also can't find any more information. This PR renders hidpi correctly on MacOS, so I think from the usage side things are correct. At this point this looks like a sdl problem and not a loopers bug, so I'm going to close. If you figure anything else out about getting this to work on wayland please report back!


Wrong input_number visualization

hello,
I'm trying to visualize an input number in a chart, but chart is not correctly displayed (both area and column type
apex-cahrt

input_numner value

many thanks

You'll have to use curve: stepline to display it the way you want.

you are right!
many thanks!!!!


Code highlighting issues

import not highlighted:

Column types not highlighted:

Strings not highlighted:

@AlecStrong 1) and 2) will probably require updating the Lexer to recognize those tokens


...Worker.Extensions.EventHubs - 409 The specified container already exists & 404 The specified blob does not exist.

Getting these errors when running version 5.1.0 of the event hubs extension in Azure and locally:
Error response [04313f6e-96eb-455b-893e-3d6d183ce15c] 409 The specified container already exists. (00.0s)
Server:Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0
x-ms-request-id:9d8dc2f3-e01e-000b-3cf0-b0fdf7000000
x-ms-client-request-id:04313f6e-96eb-455b-893e-3d6d183ce15c
x-ms-version:2020-08-04
x-ms-error-code:ContainerAlreadyExists
Date:Mon, 15 Aug 2022 21:45:19 GMT
Content-Length:230
Content-Type:application/xml

Error response [ad403324-c5e3-4f4e-be4a-193f0c078afe] 404 The specified blob does not exist. (00.0s)
Server:Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0
x-ms-request-id:6cdebe6b-101e-00d9-70f0-b043af000000
x-ms-client-request-id:ad403324-c5e3-4f4e-be4a-193f0c078afe
x-ms-version:2020-10-02
x-ms-error-code:BlobNotFound
Date:Mon, 15 Aug 2022 21:45:10 GMT
Content-Length:215
Content-Type:application/xml

It always ends with this error:
Failed to start a new language worker for runtime: dotnet-isolated.
Func version ~4
.NET 6
Using managed identity to connect to event hubs.

I just realized that I was not awaiting the host.RunAsync() command in Program.cs and that's why this was failing for me.
The errors I posted above were not actually the cause of failure.


Question about ethnicity

Trying to be universal seems impossible cfr here.
For UK perspective source from the ONS

Do we want to include the ethnicity only in the RSE 2017 or do we want to have it to Canada too?

Added


Spring jdbc

Metric
Value

alert_status
b:white_check_mark: OK/b

bugs
0

code_smells
12

reliability_rating
A (0 Bugs)br/Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)br/Note: A being best, E being worst

vulnerabilities
0


Commit Diff

Diffing from arbitrary commits, tag, refs
see: https://github.com/Byron/gitoxide/discussions/613
Diffing from branch
This should be simple on git side. Needs to take a look at git delta implementation for the parsing and highlighting part (they also use syntect)

Current implementation has several problems :

The diff is not 100% accurate.
Diff lines ordering does not match standard git-diff output.
Server side rendering of the html diff produce very large payloads (about  1.5M for about a thousand line of addition)

Alternative

imara-diff to produce the diff output
Client side rendering diff2html

Current status:

[x] imara-diff + git-oxide diff

server side rendering still returns big payload. Might want to explore wasm + syntect later.
Closing for now, we might want to open another issue regarding performance later


InfluxDB1.8.x, create Users or Tokens via API

Proposal:
Since probably InfluxDB2 may not support some features present in InfluxDB1.x, like remote_write for Prometheus, preventing the adoption of this versions for some specific scenarios, like of us, InfluxDB1.8.x API could support some features present InfluxDB2.0, like create/manage users via API.
Current behavior:
Today, the only alternative to manage users is using influxdb CLI tool.
Desired behavior:
Use manage users via API (like in InfluxDB2).
Alternatives considered:
Describe other solutions or features you considered.
Use case:
We need to improve the security in remote_write feature in order to avoid expose the same usernames and passwords to all hosts that we are monitoring.

We will not be backporting user management to 1.x - our focus is on moving forward and improving the 2.x experience, and user management is well outside what might come as a maintenance release for 1.8.
remote_write is available as a telegraf plugin and can be used with 2.x - see https://github.com/influxdata/influxdb/issues/17958 and this blog post


This will test the application's functionality.

User Story:

AS AN employee with access to sensitive data
I WANT to randomly generate a password that meets certain criteria
SO THAT I can create a strong password that provides greater security

Acceptance Criteria:
GIVEN I need a new, secure password

WHEN Irun and test the application
THEN I see that everything is working perfectly as expected.

The Application has been tested and every part of the code is functioning perfectly as expected.