Improve error message during logo plotting

In reference to #30. Added a small check if the provided data for the logo plotting function is empty to give a better error message.
New error message is:
ValueError: Provided data container is empty. Nothing to plot.

Closes #30

Codecov Report

Merging #31 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   79.51%   79.52%   +<.01%
==========================================
  Files          40       40
  Lines        3447     3448       +1
==========================================
+ Hits         2741     2742       +1
  Misses        706      706

Impacted Files
Coverage Δ

rstoolbox/plot/sequence.py
68.89% <100%> (+0.1%)
:arrow_up:

Continue to review full report at Codecov.

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

Pull Request Test Coverage Report for Build 73

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.006%) to 79.524%

Files with Coverage Reduction
New Missed Lines
%

.tox/py36/lib/python3.6/site-packages/rstoolbox/plot/sequence.py
4
68.9%

Totals

Change from base Build 69:
0.006%

Covered Lines:
2742

Relevant Lines:
3448

💛  - Coveralls


Editing the Music Volume from the settings does not affects the main screen music

Editing the Music Volume from the settings and exiting it  does not affects the main screen music (defined using monogatari.settings({'MainScreenMusic': '[...]'});) on monogatari beta 10 build (tested in Firefox 79, Windows 10)

This has been fixed in f1d03693c91faf8e6929bec519d7f78253da6de7


Pagination breaks after search.

After searching is finished, the pagination buttons for previous would be disabled and next would also be disable if you are on the last page.

Fixed!!!


add is_within_distance

adds a snippet to tell if provided points are within a given distance from each other.

Sorry for the spam then 😅
I have been using it quite a bit for a personal project. Given there are similar snippets in other repos (like here in 30-seconds-of-js), it felt ok to contribute it here. I will agree on the fact that me needing it doesn't mean everybody does though.


Use Xenial's libsodium package

This is much better...
Upstream PR: https://github.com/stellar/stellar-core/pull/2118

Do we wait for upstream to merge or we go ahead with it? Also what if they reject the PR sometime?

I don't think it makes sense, nor is scalable, to wait on them.


Ability to provide custom mapper for properties with "writeOnly": True or other 'confidential'/'private' property tags

This feature would enable users to specify a standard rule for fields that are of a specific classification level. For instance, the user could add a rule to hash, nullify, or mask all fields with writeOnly flag, or with data classification of 'pii'.
Related to, and pairs with:

https://github.com/meltano/sdk/issues/1538

Still relevant


:tada: Add email page view

Visual only for email page in profile
Closes: #...
Checklist

[ ] I have written tests
[ ] I have provided documentation

Changelog

Add UI for email page in user profile

How to test
Start locally and go to http://localhost:3000/profile/email

This looks super nice, but we decided to change the layout a bit and have the email part on the first profile page instead.. But we can probably use some code from here when implementing the new design.


Pass args

The purpose of this change
When we launch the executable in the debuger, it uses the args parameter. But when we launch it without the debuger
it doesn't.
This change provides the same behaviour and allow to pass args when we launch without debug the executable/

Thank you for addressing the launch args problem in this PR. This was previously attempted with https://github.com/microsoft/vscode-cmake-tools/pull/1201 and we still need to figure out how this would work in more complicated terminal and quoting scenarios. We will revisit this after the holidays to make a decision.

https://github.com/microsoft/vscode-cmake-tools/pull/1598 are also ralted, launch program also need specify proper environment variables.


[CHERRY-PICK] [#8366] Move FileSystemUtils into FileSystem (#8369)

Move FileSystemUtils into FileSystem

Tests were integrated into FileSystemIntegrationTest.

Leave primitive methods in FileSystem client

Compound operations have been moved or left inside of FileSystemUtils

Update perist command to add timeout

During testing RunOperation can't seem to create files any more unless
we default the CreatePOptions recursive value to true. So this has been
set for CreateFile.
Related shell utilities and tests have been updated

Add persistence options to client API

ScheduleAsyncPersistencePOptions already existed. It needs to be
exposed on the client so that users can pass options to it in the future
if desired

Remove unused options sWriteBoth

Fix confusing argument in createUnpersistedFiles

Address minor typos in PersistCommand output

move checkConsistency to respective command class

checkConsistency isn't used anywhere except inside the command. It doesn't make sense to leave it inside FileSystemUtils because of it's requirement for a FileSystemContext. It doesn't belong in the client either.

Rename waitPersisted to persistAndWait

Test both option forms

Added test for getIntArg as well as PersistCommand

style issues

fix javadoc nits

Improvements to persist exception handling and logging

These changes make the persist mirror more closely how the other client functions handle errors. Some variables were also renamed in order to make the function more similar to others. A debug logging statement was added as well.

rename variables

client moved to masterClient in BaseFileSystem
uri changed to path in FileSystem

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2039/
Test PASSed.


How to add www to a custom domain

The way it used to work: if your certificate was SAN, and specified www in the cert details, Azure would offer to add that to a custom binding. It doesn't appear to do that any more. If I now have to create a new custom domain for www I hope this article would instruct me on that.

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

ID: b2906753-7656-ef4d-0de9-7e238181e3e1
Version Independent ID: 66dcb903-38dd-858b-dfb4-8a8dafaa0930
Content: Secure a custom DNS with a TLS/SSL binding - Azure App Service
Content Source: articles/app-service/configure-ssl-bindings.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@Amondale
Thanks for your feedback! We will investigate and update as appropriate.

Amondale, apologies for the delay.  Yes, the doc section does highlight this - "Before continuing, go to your DNS configuration UI for your custom domain and follow the instructions at https://aka.ms/appservicecustomdns to configure a CNAME record for the
hostname "www" and point it your web app's default domain name."
To map a subdomain like www , it is recommended to add a CNAME record, that is  - You can map a subdomain (www) to the app's IP address directly with an A record, but it's possible for the IP address to change. The CNAME maps to the app's default hostname instead, which is less susceptible to change.
Checkout this Tutorial: Map an existing custom DNS name to Azure App Service  -which outlines steps for mapping subdomain, rootdomain, and wildcard domains.

Amondale,  Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and we will gladly continue the discussion.

@AjayKumar-MSFT my point was that it used to be part of a custom domain instantiation in Azure Portal, now it appears to be a needed 'second step' and I believe the documentation should point that more clearly than the section you so kindly forwarded.

@AjayKumar-MSFT the article doesn't clarify the distinction between SAN and wildcard cert. The portal now treats them as equivalent, and this is a confusion that wasn't previously there.

Amondale, Thanks for the follow-up. Your feedback has been shared with the content owner (@cephalin) for further review and make changes as appropriate to add more clarity in the next iteration.


Any update

Hello , is there any updated version ?

Hi,
Unfortunately it seems not but there is a fork here: https://github.com/MauriceConrad/Photon

Close, see #142


A crash occurs when you start and cancel a download a couple times behind each other

Steps to reproduce
Enable the source sankaku complex and some other sources like gelbooru and konachan for example
Now search nekopara and click on get all
Now first click on 'Download selected' by sankaku complex
After that click directly on 'Cancel' and now repeat it with just the other sources
For me it mosty takes a couple sources before grabber crashes
(I think this could be split up in 2 bugs: the first one is the crash which is probably caused by a memory leak or something different and the second one is that the other sources need to load pages after sankaku while it otherwise wouldn't need to do so)
(Found this while trying to find the other crash and it is maybe related to the comment I posted in the previous topic)
System information
Windows 10 with the latest nightly version

Why was the milestone v6.0.5 removed from this crash report?

Because I can't guarantee fixing this bug before releasing 6.0.5, as the source of this crash is quite complex and might need some work to properly fix 😞
Given I planned to release 6.0.5 today (but haven't because of unforeseen circumstances, so it'll be next week), I don't think this fix can be shipped with it. It'll be in 6.0.6.
But aren't you using nightly anyway? 😅

Yeah ofc:) But I didn't want that the found crashes would be pushed aside

As long as they're reproducible, they won't be 😉


Builds do not show up

On my desktop, I run league of legends and championify as administrator, however my the builds do not show up at all. I downloaded championify for my laptop and ran the program and the builds did show up. I've tried reinstalling championify, but it didn't work. I've looked through my League of Legends directory in the folder where are the builds are stored and it seems that the builds are download, seeing that they have the "CGG" format, but for whatever reason when I play I only receive the recommended builds from riot. I love the app and was wondering if I could get help to get it working on my desktop.

Open up a CGG file in Notepad, is there data?
If there is, try clicking on the menu where it says recommended builds once it's game, and see if they pop up in the list.

@TheBanjo34 Did it fix the issue?


Staticpages

Pull Request for changes in Static Pages.

Please do not send pull requests. You must commit to your own fork only.


Set pip version 9.x.x

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

@daxianji007, can you explain what functional differences are requiring such an old version of pip? My understanding of this tool is that it should virtually always be safe to roll-forward.

Closing this as installing with azdev seems to have resolved the issue.


[NEW ALGORITHM] 2D Binary Index Tree

Issue will be closed if:

You mention more than one algorithm. You can create a separate issue for each algorithm once the current one is completed.
You propose an algorithm that is already present or has been mentioned in a previous issue.
You create a new issue without completing your previous issue.

Note: These actions will be taken seriously. Failure to follow the guidelines may result in the immediate closure of your issue.

Name:
[2D Binary Index Tree]
About:
Prerequisite – Fenwick Tree
We know that to answer range sum queries on a 1-D array efficiently, binary indexed tree (or Fenwick Tree) is the best choice (even better than segment tree due to less memory requirements and a little faster than segment tree).
Can we answer sub-matrix sum queries efficiently using Binary Indexed Tree ?
The answer is yes. This is possible using a 2D BIT which is nothing but an array of 1D BIT.
Algorithm:
We consider the below example. Suppose we have to find the sum of all numbers inside the highlighted area:

We assume the origin of the matrix at the bottom – O.Then a 2D BIT exploits the fact that-
Sum under the marked area = Sum(OB) - Sum(OD) - Sum(OA) + Sum(OC)
Labels:
new algorithm, gssoc-ext, hacktoberfest, level3

Assignees:

[x] Contributor in GSSoC-ext
[x] Want to work on it

Please assign me


Difference between final_split_non_voc_instances_train2017.json and your log file

I follow the step 2 to generate final_split_non_voc_instances_train2017.json. The result dataset is slightly different to you training log. I am wondering whether I missed something? Thanks.
|   category    | #instances   |   category   | #instances   |   category    | #instances   | |:-------------:|:-------------|:------------:|:-------------|:-------------:|:-------------| |    person     | 0            |   bicycle    | 0            |      car      | 0            | |  motorcycle   | 0            |   airplane   | 0            |      bus      | 0            | |     train     | 0            |    truck     | 4483         |     boat      | 0            | | traffic light | 1545         | fire hydrant | 1172         |   stop sign   | 1130         | | parking meter | 511          |    bench     | 3977         |     bird      | 0            | |      cat      | 0            |     dog      | 0            |     horse     | 0            | |     sheep     | 0            |     cow      | 0            |   elephant    | 4007         | |     bear      | 1241         |    zebra     | 4090         |    giraffe    | 4481         | |   backpack    | 2632         |   umbrella   | 3634         |    handbag    | 3029         | |      tie      | 2666         |   suitcase   | 3102         |    frisbee    | 1343         | |     skis      | 2570         |  snowboard   | 1296         |  sports ball  | 848          | |     kite      | 1327         | baseball bat | 996          | baseball gl.. | 749          | |  skateboard   | 2922         |  surfboard   | 3377         | tennis racket | 1693         | |    bottle     | 0            |  wine glass  | 2069         |      cup      | 6270         | |     fork      | 2498         |    knife     | 2743         |     spoon     | 2037         | |     bowl      | 5207         |    banana    | 3753         |     apple     | 2231         | |   sandwich    | 2972         |    orange    | 2765         |   broccoli    | 4347         | |    carrot     | 2964         |   hot dog    | 1829         |     pizza     | 3846         | |     donut     | 4160         |     cake     | 3422         |     chair     | 0            | |     couch     | 0            | potted plant | 0            |      bed      | 3005         | | dining table  | 0            |    toilet    | 3464         |      tv       | 0            | |    laptop     | 2289         |    mouse     | 918          |    remote     | 1480         | |   keyboard    | 1351         |  cell phone  | 2602         |   microwave   | 670          | |     oven      | 1346         |   toaster    | 73           |     sink      | 2858         | | refrigerator  | 1271         |     book     | 3823         |     clock     | 2682         | |     vase      | 2982         |   scissors   | 968          |  teddy bear   | 3386         | |  hair drier   | 119          |  toothbrush  | 783          |               |              | |     total     | 148004       |              |              |               |              |

I fixed a small bug in the step 2 script which will not affect the performance.

Thanks


UseCollectionInterfaces breaks Jenkinsfile

What version of OpenRewrite are you using?

I am using

OpenRewrite v8.9.9
Maven/Gradle plugin v5.14.1
rewrite-spring v5.1.4

How are you running OpenRewrite?

I am using the Maven plugin from the commandline, and my project is a single module project.
mvn org.openrewrite.maven:rewrite-maven-plugin:5.14.1:run -Drewrite.activeRecipes={redacted} -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:5.1.4 -Drewrite.exclusions=**api**.yaml

What is the smallest, simplest way to reproduce the problem?

library('other-library')

def myMap = [
    myEntry: [[ key: value ]]
]

runPipeline(myMap: myMap)

What did you expect to see?

import java.util.Map
library('other-library')

Map myMap = [
    myEntry: [[ key: value ]]
]

runPipeline(myMap: myMap)

I think the import can be omitted, it is implicitly there
What did you see instead?

import java.util.Maplibrary('other-library')

Map myMap = [
    myEntry: [[ key: value ]]
]

runPipeline(myMap: myMap)

What is the full stack trace of any errors you encountered?

None
Are you interested in contributing a fix to OpenRewrite?

I would, but it might also be a good first issue for someone else? ;)

Thanks! I've moved the issue as I think the fix will be here. I see at least two possible fixes for Groovy:

[ ] Don't add imports for Map if those can be implied
[ ] Do ensure there's a newline between the import and any other content, such as library here

Adding this testcase somewhere in rewrite-groovy:
    @Issue("https://github.com/openrewrite/rewrite/issues/3777")
    @Test
    void variableDef() {
        rewriteRun(
          // language=groovy
          groovy(
            """
              library('other-library')

              def myMap = [
                  myEntry: [[ key: value ]]
              ]

              runPipeline(myMap: myMap)
              """));
    }

it succeeds.
Changing def to Map (even with import java.util.Map) this testcase will fail.
Subsequently adding this testcase to rewrite-static-analysis:
    @Issue("https://github.com/openrewrite/rewrite/issues/3777")
    @Test
    void variableDef() {
    rewriteRun(
        // language=groovy
        groovy(
            """
              library('other-library')

              def myMap = [
                  myEntry: [[ key: value ]]
              ]

              runPipeline(myMap: myMap)
              """,
            """
              library('other-library')

              Map myMap = [
                  myEntry: [[ key: value ]]
              ]

              runPipeline(myMap: myMap)
              """));
    }

Would be the specific test to see if it works
I don't have a lot of free time right now to dive into this more but hope this helps to pinpoint the issue


Feat: Allow generating base64 image string

It would be great to have the ability to generate base64 string which can be used in the image src directly.
Eg data:image/webp;base64,UklGRlIAAABXRUJQVlA4IEYAAACwAQCdASoEAAQAAUAmJQBOgCHfFPUAAP76o/ZQ5cVKv//aDeITqchzAx/i1Kcg6X9b/orzvs6JRg6h/yOfhkNTG+tTwAAA

Hmmm, I've never really considered this, probably because:

for rollup, there are plugins that can inline image URLs into base64 output.
for post-processing, one can just encode the blurhash output into a Buffer then output it as base64
I'm not sure what other things there is to give this a reasonable implementation

I am not sure those plugins will generate a blurred version of image.

one can just encode the blurhash output into a Buffer then output it as base64

If you can explain bit more on how to achieve I would like to send a PR

We will get a buffer here, if I am not wrong
const imageData = await blurhash.decode(hash, width, height, punch);

I am not sure if we just encode and add the data:image/webp;base64, it will work

I am not sure those plugins will generate a blurred version of image.

one can just encode the blurhash output into a Buffer then output it as base64

If you can explain bit more on how to achieve I would like to send a PR

uhh, the rollup plugin of blurhash-as already generates the blurhash placeholder as an image (jpeg/png), it also has other info. You do know this, right? All of the demos are using that plugin.
There's no PR necessary.
For image processing using decode, you can use the sharp image processing library and pass the decoded result to sharp.
Here's an example:
async function decode(request: Decode): Promise<sharp.Sharp> {
  const aspectRatio = getAspectRatio(request.query);
  const correctRatio = getNearestAspectRatio(aspectRatio);
  const decodedBytes = await blurhash.decode(
    request.query.hash,
    correctRatio.width * SCALE,
    correctRatio.height * SCALE,
  );
  return sharp(Buffer.from(decodedBytes), {
    raw: {
      width: correctRatio.width * SCALE,
      height: correctRatio.height * SCALE,
      channels: 4,
    },
  });
}

sharp provides ways to convert into different formats, you can then encode it into a Buffer and then convert that Buffer into base64 (Buffer already has a built-in way to do this).

Oh I see. The rolup plugin should work with .astro files as well.
So if I am importing any local images with ?blurhash=jpg It will give me blurred version of the image?
But in the docs it says it only supports jpg and png but I have my images in webp, can we add webp support as well?

I do see webp support though
      if (/\.(png|jpg|webp)\?blurhash=webp/.test(id)) {

https://github.com/lxsmnsyc/blurhash-as/blob/main/packages/rollup-plugin-blurhash-as/src/index.ts#L135

I just can't get the plugin to work I keep getting
SyntaxError: Cannot use import statement outside a module
    at compileFunction (<anonymous>)

Config
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import preact from "@astrojs/preact";
import * as blurhash from "rollup-plugin-blurhash-as";
import image from "@astrojs/image";

// https://astro.build/config
export default defineConfig({
  site: "https://introvert-test.com",
  integrations: [tailwind(), sitemap(), preact(), image()],
  vite: {
    plugins: [
      {
        ...blurhash(),
        enforce: "pre",
      },
    ],
  },
});

Already tried the cjs version

the format refers to the blurhash output, not the actual source file. For source images you can use either webp, png or jpeg.

the format refers to the blurhash output, not the actual source file. For source images you can use either webp, png or jpeg.
I am using webp only thank!

It would be great to have the plugin fixed for mjs files as well.

@lxsmnsyc any updates on this?

Since I have been caught in more important work, I haven't had a time to work on this yet, but I can probably release the update this week.

sure no problem even if I get this lib as API it would be great


EXSWHTEC-288 - Implement tests for special-purpose device math function

Depends on: #233

Accuracy tests for single-precision and double-precision erf/erfc/erfinv/erfcinv/normcdf/ilogb
Limited accuracy tests for single-precision and double-precision tgamma/lgamma/cyl_bessel_i0/cyl_bessel_i1/y0/y1/yn/j0/j1/jn
Sanity tests for single-precision and double-precision normcdfinv and erfcx
Negative tests for single-precision and double-precision special-purpose math functions

Please see my last comment in EXSWHTEC-284.

PR has been merged into develop branch via commit ce167afa87300d94ce7d67807cee3d3793081365.


Remove checked-in bower_components

Assume dependencies are in sibling project folders
Remove checked-in bower_components
Ignore bower_components	780f448
Abstract raw demo to a separate HTML file.
Use sibling path for emojilib.
Add emojilib dependency to Polygit url.

Closing this since it's a very crufty change and we discussed better alternatives.


Some contributions, awesome list!

Hey, thanks for you contributions, I saw you added some really nice stuff. I'm sorry for the late merge.


Swin Transformer is added to HuggingFace Transformers

Hi Swin Transformer team,
We've recently added Swin Transformer to HuggingFace Transformers: https://huggingface.co/docs/transformers/master/en/model_doc/swin.
All checkpoints are on the hub: https://huggingface.co/models?other=swin. The cool thing about the hub is that it's entirely git-based: each model has its own Git repository, to which you can git add, git commit and git push. The model card is just a README that can be added, similar to how you would add a README to a Github repo. You can check the files (and git history) of a particular checkpoint here for instance.
We've added the models as part of the Microsoft organization (to which other models, like DeBERTav2/v3, LayoutLM, WavLM, TrOCR etc. also belong). We were wondering if you're interested in becoming part of the Microsoft organization on the hub. This allows you to have write access to all model repos of Microsoft, which means you can easily upload new checkpoints, write model cards, etc.
Let me know what you think!
Kind regards,
Niels & HuggingFace team

Hi Niels and Hugging,
We are happy to be part of it. Please let us know if you need our assistance in the future maintenance. Thank you!
Best,
Han & Swin Transformer Team

Awesome!
So the first step would be to create an account on the hub: https://huggingface.co/join
If you provide me your usernames, I can add you to the Microsoft organization on the hub.


Build Process Cleanup

Simplified the build process by separating the lib's csproj for 0.5.x & 0.6.x into their own folder, where the later, include every .cs file from the former.
Fixed many warnings by disabling nullable globally & only enabling it where necessary,
Fixed a warning when building in 0.6.x, a return statement was unreachable (it was intended to be used inside the .NET 5 conditional).
I had a netstandard refactor branch ongoing, but it's probably going to go down the drain as this PR uses the much simpler fix of just working around the Nuget multi-targeting issue by using a separate project folder for restore.
It would had probably been better to continue with that branch as a lot of the backend was made simpler through abstraction, however, such abstraction came at a cost, being a large overhead, especially when constantly converting version specific objects to a common one (E.g: Touch Reports, Touch Points, ...)
This could potentially be fixed by using a stub report that doesn't get re-instantiated every reports, but it will still come at a cost as for the extra iterations required to copy each points.

Final pass will be done tomorrow.


[AB3: Adding Command] Image Not Displaying in Markdown

Description:
The embedded image is not displaying as expected. The issue appears to be caused by the $ symbol in the file path, which Markdown misinterprets as a math expression. Additionally, the .. in the file path is incorrect and should be removed.
Current File Path:
![$remark shows up in each entry](../images/add-remark/$Remark.png)

Current Behavior:

Proposed Solutions:

Escape the $ Symbol::
![$remark shows up in each entry](images/add-remark/\$Remark.png)

Rename the File:
![$remark shows up in each entry](images/add-remark/\Remark.png)

Use HTML Syntax::
<img src="images/add-remark/$Remark.png" alt="$remark shows up in each entry">

@mfjkri Thanks for reporting this. Will you be submitting a PR?

Yup I can!


How to design the structure of clicking the message to jump to the next page?

@ekazaev  hi,
How to design the structure of clicking the message to jump to the next page?
For example:
Click on the profile picture to jump to the Profile page. I don't know how to design it without breaking the architecture.

@std-s Hi,
Thank you for the question. I dont know your architecture. If we assume that you copied and modified the code from the example project - I would add a tap gesture recognizer to the avatar view and create a delegate in that view.  You can assign this delegate in the colelction view's data source to some object that knows how to present a profile view.

@std-s Ill close the issue. Fill free to reopen the issue if you have further questions.


Fix: disappearing star on mobile

Added invisible character to fix issue on mobile Slack iOS
On mobile:

On desktop:

Thank you for fixing this! Love the screenshot in the description :-)


Yatin: Watch superbthemes.com

Yatin requests the watch of the watch_keyword superbthemes\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

superbthemes\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


Notebooks restructuring, additional assert checks and kornia freeze

Thanks @alvinwan and @ivanzvonkov for raising issues with the package!


The landscape there is something wrong with the logic

please add landscape model.

Landscape is not currently supported. I'm working at version 2.0 that will be based on size classes and will support landscape and portrait.

Hi @ariok, can you suggest a way to disable landscape orientation for the walkthrough?


Vim only supports "syntax" highlighting when not in Terminal mode

I am using the plugin jalvesaq/Nvim-R on windows 10 I have no color("syntax" highlighting) in terminal insert mode

Describe the solution you'd like
To have color in terminal insert mode same as terminal normal mode. Neovim supports this feature

VIM:

Would this require a lot of changes in the code?

It requires a new mechanism, since syntax highlighting works on buffer text, and the contents of a terminal is not a buffer.  Also, the terminal can have it's own highlighting, thus the two conflict, we would need to define rules about how those conflicts are resolved.

the terminal can have it's own highlighting, thus the two conflict,

What do you mean by this, are you talking about a mechanism in vim to add highlighting in the terminal mode, or are you talking about terminal color codes?
Regarding rules to  resolve the highlighting conflicts, I am not knowledgeable enough to have an educated opinion.
However, Neovim already supports highlighting in terminal mode.
Do you think Neovim's rules to resolve those highlighting conflicts make sense?

the terminal can have it's own highlighting, thus the two conflict,

What do you mean by this, are you talking about a mechanism in vim to
add highlighting in the terminal mode, or are you talking about
terminal color codes?
Regarding rules to  resolve the highlighting conflicts, I am not
knowledgeable enough to have an educated opinion.
However, Neovim already supports highlighting in terminal mode.
Do you think Neovim's rules to resolve those highlighting conflicts
make sense?

Try running Vim in a terminal, then it highlights the text as Vim would.
Any program running in the terminal, including the shell, can highlight
text.  If Vim would also define some form of highlighting, does that
mean all existing highlighting disappears?  Or are they combined
somehow?
I don't know how Neovim does this, is there documentation?
--
hundred-and-one symptoms of being an internet addict:
123. You ask the car dealer to install an extra cigarette lighter
on your new car to power your notebook.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

@brammool , thanks a lot for your response.
Here is a section of Neovim :h terminal:

TERMINAL COLORS ~
The {g,b}:terminal_color_x variables control the terminal color palette,
where x is the color index between 0 and 255 inclusive.  The variables are
read during |TermOpen|. The value must be a color name or hexadecimal string.
Example: >
let g:terminal_color_4 = '#ff0000'
let g:terminal_color_5 = 'green'
Only works for RGB UIs (see 'termguicolors'); for 256-color terminals the
color index is just forwarded.
Editor highlighting (|syntax-highlighting|, |highlight-groups|, etc.) has
higher precedence: it is applied after terminal colors are resolved.

That confirms my experience with highlighting in Neovim's terminal: editor highlighting always as precedence.
As far as I'm concerned, I really like this behavior.

+1.  I think this behavior should be the default


Restructure sidebar

Summary
Restructure sidebar
Changes

Checklist

[ ] Scope: The referenced issue is addressed, there are no unrelated changes.
[ ] Run Locally: Verified that the docs build using make server
[ ] New Features Marked: Documentation for new features is marked using the new-in-version shortcode, according to the guidelines in CONTRIBUTING.
[ ] Style Guidelines: Documentation obeys style guidelines in CONTRIBUTING.
[ ] Commits: Commit messages follow guidelines in CONTRIBUTING, there are no fixup commits left.

https://github.com/TheThingsIndustries/lorawan-stack-docs/pull/116#pullrequestreview-558035207
To me its fine to have a sub-folder or not on the left bar, but two things need to be modified:
the sidebar should be scrollable and position fixed
use a smaller font for sub-content in the sidebar
(I hope its clear enough otherwise let me know)
Talking about this left sidebar, is it possible to reduce its width and make white space between this bar and the main content?

Replaced by https://github.com/TheThingsIndustries/lorawan-stack-docs/pull/223


#852 - table elements must now use .table class to receive styling

I've cherry-picked @oknoway 's commit, and then changed a few things:

added CHANGELOG entry
changed the text of the documentation to reflect the new markup/class
updated acetate to use the table class in markdown tables
changed the variable name from $prefix-tables to $namespace-tables
removed the change to dist folder (we'll update that on release)
documented $easing-function

⚡


The 3PID presences are not supported

The IOS / web clients support them properly.

fixed in https://github.com/vector-im/vector-android/commit/27181bbeab47717a1bcaabd6f5b0f3dd84d17d83
1 - The 3PID -> matrix Id retriever was triggered
2 - A contact email used to override a member description so with no 3PID -> MXID retriever, it was impossible to get a valid presence.


Image url

I added a call to display an image from a url.
I use this to display cover art from the music playing on my HomePod.

I added some more error handling.

@kmplngj I just created a new branch with a different implementation: download_endpoints
You may want to have a look at it. Should work for you as well.

Nice.
I would not split download image and download gif if it could be solved in one function. Perhaps you use an URL to download something that is just referenced per id parameters and you do not not the image before download.

The requested feature is now part of the current master-branch.
@kmplngj, thanks for your help/feedback! :bow:


Non-host players cannot pickup any pals following a server restart

As I outlined in #18 I was able to migrate non-host players from a gamepass co-op save to a steam dedicated server using the newest guild fix + alternate GUID replacement script. All was going well and the other players simply had to do the drop -> pickup fix for the pal glitch to interact with their pals again. However, following a server crash/restart, none of those migrated players can pick up base pals any longer. I (the host) can still interact properly as I did the original guild fix (leaving before/rejoining after migration) for myself.
The behaviors are as follows for all non-host clients I ran the guid migration script on since the server restarted:

base pals cannot be picked up
dropping/picking up the pals does not fix the issue
base pals still perform tasks normally in the base (unlike the previous guild bug where they wouldn't perform actions)
pals cannot be assigned to stations or breeding as a result of not being able to be picked up

Since these players have full access to their guild assets/base placements, and the pals are behaving normally and performing tasks, I am quite lost now as to how its possible they cannot be picked up. Everything was working fine prior to a server restart. We have tried the following:

restarting server
removing/replacing palbox
catching new pals which should have fresh save data (problem persists for these too)
the drop/pickup fix
applying the game update today

We plan to try joining/leaving guilds of new/fresh players to see if that has any affect.

You should try applying the fix in https://github.com/xNul/palworld-host-save-fix/issues/69. It seems they've figured it out. I'll be doing some work on the script in the next few days to apply all of these changes and maybe incorporate https://github.com/cheahjs/palworld-save-tools into the fix to make modification of bytes easier.


Custom cache key on af_setImage

We have an image URL that's unique generated every time we call an end point, the URL is short living and expires in about 10 mins. When I use the af_setImage function, the default identifier is generated base on the request.absoluteURL, which does not work well in this case. I'm looking at KIngfisher library where they have option to set the custom cache key like
 let resource = ImageResource(downloadURL:imageURL, cacheKey: customKey)
 imageView.kf.setImage(with: resource ....
I would think AlamofireImage can do something similar by replacing the urlRequest parameter with a resource object that wraps around download url and cache key?

Workaround:
Instead of doing a GET request to fetch the image, do a POST request.
Remove the short-lived params from the query string and pass them as POST params.
Use af_setImage(withURLRequest: ..) instead of af_setImage(withURL: ..).
Your URL with not change and the cache will work.

@cnoon, we support this at the cache level (appending an additional identifier), seems like we could just plumb it through to the UIImageView extension? However, that API is getting rather out of hand. Perhaps something of a refactor would be advised?

Yep, agreed @jshier. We could certainly append the key for now and then rethink these APIs in the next major release. I'll see what I can put together here.

I just spoke with @jshier about the complexity here and it's a bit too involved to do properly in the AFI 3.x APIs. We've put together a fairly detailed card into our Trello backlog to pick this up when we start on the AFI4 changes. I'm going to close this issue out for now and link it to that milestone. We'll re-open once we get closer to starting that work.
Cheers. 🍻


need output file or model_final.pth, plz

Would anyone like to provide the output file corresponding to task1-4？ I have not enough time to train the model, thank you!

findit, thanks!
https://drive.google.com/drive/folders/1S5L-YmIiFMAKTs6nHMorB0Osz5iWI31k


Correct ClusterBuilder metadata retrieval keychain

We need to create a Keychain and start to use it as a multi keychain
and read from the provider that we implemented. We might be able to get away with it as it is a corner case that shows up when the registry your images are in is the same GCP account as the cluster.
Also ggcr is forking the providers and we should update our version of
ggcr when they finish this work so we do not have to depend on k8s.net/kubernetes
package
Remove function NewRemoteWithDefaultKeychain that is no longer needed

What problem specifically is this solving? It seems to just preventing the ClusterBuilder from falling back to the default service account when fetching metadata in a BuildPod. Did you run into an issue where this was causing problems?

What problem specifically is this solving? It seems to just prevent the ClusterBuilder from falling back to the default service account when fetching metadata for a BuildPod. Did you run into an issue where this was causing problems?

We want to use credential providers to fetch the private images that are in the same registry as the cluster. We ran into problem where it would look from credentials in the service which would cause this to fail. Additionally, we wanted to be more clear about the intent of not using serviceAccount credentials for an image that definitely was not namespaced.


requireDollarBeforeJqueryAssignment: fix Only valiates the first key

Added a loop to check each property on an object and stuffed the logic
that checks whether a varName should start with a dollar sign into a
helper function as we may be needing it more than once per
file.iterateNodesByType cycle.
Fixes #1688

Lgtm. Great work @bjdixon!
I know the body of that function was an extraction of the same code, but the comments (if possible) would help readability of the rule. It's hard to visualize programs that satisfy parts of the code.

Thanks for the review @mrjoelkemp! I've updated the PR to comply with most of your comments. However, I'm struggling in coming up with the conditions for the last test mentioned. Happy to update the PR again if you or anyone else can point me in the right direction.

:+1: lgtm
On Sun, Oct 11, 2015 at 1:29 PM, Brian Dixon<EMAIL_ADDRESS>wrote:

Thanks for the review @mrjoelkemp https://github.com/mrjoelkemp! I've
updated the PR to comply with most of your comments. However, I'm
struggling in coming up with the conditions for the last test mentioned.
Happy to update the PR again if you or anyone else can point me in the
right direction.
—
Reply to this email directly or view it on GitHub
https://github.com/jscs-dev/node-jscs/pull/1856#issuecomment-147223319.

Awesome work again @bjdixon!


[Feature Request] Load Balancing Pods within a Custom VPC and Accessing from External Networks

Kube-OVN Version
v1.12.19
Kubernetes Version
Client Version: v1.30.2+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.2+k3s1
Description
Dear Community,
I would like to request a feature to enable load balancing of Pods within a custom VPC using OVN and allowing external access to them.
https://kubeovn.github.io/docs/stable/en/advance/ovn-eip-fip-snat/
When creating a Deployment resource within a custom VPC and setting multiple replicas, I understand that the Pod that can be specified via EIP or DNAT is just one of the replicated Pods.
I attempted to use SwitchLBRule and expose its VIP with ofip, but this approach failed.
Such as the following Issue #3130
Additionally, I have not tested the SVC LB because the documentation mentions that it does not support custom VPCs.
https://kubeovn.github.io/docs/stable/en/guide/loadbalancer-service/

Currently, it only supports configuration in the default VPC. Support for LoadBalancers in custom VPCs can be referred to in the VPC configuration.

As it stands, is it correct that load balancing Pods within a custom VPC and accessing them externally is not possible?
Are there any plans to implement this functionality?
Thank you.
Who will benefit from this feature?
No response
Anything else?
No response

In OVN design: I think OVN router LB Rule is the best choice, which is used to provide ovn dnat.
and, kube-ovn also have a loadbalancer service feature, which is provided in the same way like vpc nat gw pod. I think you can try.
 SwitchLBRule and expose its VIP with ofip is too complicated, using OVN router LB just like ovn dnat is much more simple.

@bobz965
Thank you for your reply.
If I understand correctly, by using OVN-DNAT, it's possible to expose Pods within the VPC to the outside while performing load balancing.
I tried the following, but it only routed to one Pod, and I couldn't connect to the other Pod.
I accessed from multiple devices, browsers, and IPs, but  podinfo-6f48b78c46-4vfzz is always displayed.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: podinfo
  namespace: vpc1
  labels:
    app: podinfo
spec:
  replicas: 2
  selector:
    matchLabels:
      app: podinfo
  template:
    metadata:
      labels:
        app: podinfo
    spec:
      containers:
      - name: podinfo
        image: ghcr.io/stefanprodan/podinfo:6.1.5
        ports:
        - containerPort: 9898
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace

kind: OvnEip
apiVersion: kubeovn.io/v1
metadata:
  name: eip-dnat
spec:
  externalSubnet: external
  type: nat
---
kind: OvnDnatRule
apiVersion: kubeovn.io/v1
metadata:
  name: eip-dnat1
spec:
  ovnEip: eip-dnat
  ipName: podinfo-6f48b78c46-4vfzz.vpc1
  protocol: tcp
  internalPort: "9898"
  externalPort: "9898"
---
kind: OvnDnatRule
apiVersion: kubeovn.io/v1
metadata:
  name: eip-dnat2
spec:
  ovnEip: eip-dnat
  ipName: podinfo-6f48b78c46-57qvn.vpc1
  protocol: tcp
  internalPort: "9898"
  externalPort: "9898"

mniadmin@master01:~/test-lb$ kubectl get odnat
NAME        VPC    EIP        PROTOCOL   V4EIP             V4IP        INTERNALPORT   EXTERNALPORT   IPNAME                          READY
eip-dnat1   vpc1   eip-dnat   tcp        <IP_ADDRESS>   <IP_ADDRESS>   9898           9898           podinfo-6f48b78c46-4vfzz.vpc1   true
eip-dnat2   vpc1   eip-dnat   tcp        <IP_ADDRESS>   <IP_ADDRESS>   9898           9898           podinfo-6f48b78c46-57qvn.vpc1   true

If I'm doing something wrong, I would appreciate it if you could let me know.

ovn dnat is not designed for loadbalancer at first. it only support for dnat: one front endpoint only maps one backend endpoint.
you can list all the vpc lb by 'kubectl ko nbctl lb-xxx'

and, you can refer ovn tests case to learn how to add a loadbalancer:

@bobz965
Thank you for kindly explaining. I would like to try out this feature.

@bobz965
I was able to successfully create the LB with the following command and confirmed that different Pods were connected between terminals.
Thank you very much for your assistance.
mniadmin@master01:~/test-lb$ kubectl ko nbctl lb-add test-lb <IP_ADDRESS>:9898 <IP_ADDRESS>:9898,<IP_ADDRESS>:9898 tcp

mniadmin@master01:~/test-lb$ kubectl ko nbctl lb-list
UUID                                    LB                  PROTO      VIP                     IPs
487ace10-d33d-4f2c-ae04-dc992f15c504    cluster-tcp-load    tcp        <IP_ADDRESS>:7000     <IP_ADDRESS>:7000
                                                            tcp        <IP_ADDRESS>:8080     <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:9500     <IP_ADDRESS>:9500,<IP_ADDRESS>:9500
                                                            tcp        <IP_ADDRESS>:443      <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:80       <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8081     <IP_ADDRESS>:8081
                                                            tcp        <IP_ADDRESS>:8084     <IP_ADDRESS>:8084
                                                            tcp        <IP_ADDRESS>:6643      <IP_ADDRESS>:6643
                                                            tcp        <IP_ADDRESS>:443      <IP_ADDRESS>:8443,<IP_ADDRESS>:8443
                                                            tcp        <IP_ADDRESS>:443       <IP_ADDRESS>:10250
                                                            tcp        <IP_ADDRESS>:10665    <IP_ADDRESS>:10665,<IP_ADDRESS>:10665
                                                            tcp        <IP_ADDRESS>:3000      <IP_ADDRESS>:3000
                                                            tcp        <IP_ADDRESS>:80        <IP_ADDRESS>:8000,<IP_ADDRESS>:8000
                                                            tcp        <IP_ADDRESS>:443        <IP_ADDRESS>:8444,<IP_ADDRESS>:8444
                                                            tcp        <IP_ADDRESS>:8080      <IP_ADDRESS>:8080,<IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8080     <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8081      <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:80       <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:9501     <IP_ADDRESS>:9501,<IP_ADDRESS>:9501
                                                            tcp        <IP_ADDRESS>:80       <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:80         <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8083     <IP_ADDRESS>:8083
                                                            tcp        <IP_ADDRESS>:443      <IP_ADDRESS>:8443
                                                            tcp        <IP_ADDRESS>:9502     <IP_ADDRESS>:9502,<IP_ADDRESS>:9502
                                                            tcp        <IP_ADDRESS>:6641      <IP_ADDRESS>:6641
                                                            tcp        <IP_ADDRESS>:8082      <IP_ADDRESS>:8082
                                                            tcp        <IP_ADDRESS>:6642     <IP_ADDRESS>:6642
                                                            tcp        <IP_ADDRESS>:8083       <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:53           <IP_ADDRESS>:53
                                                            tcp        <IP_ADDRESS>:9153         <IP_ADDRESS>:9153
                                                            tcp        <IP_ADDRESS>:443           <IP_ADDRESS>:6443
                                                            tcp        <IP_ADDRESS>:80         <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8082      <IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:8080      <IP_ADDRESS>:8080,<IP_ADDRESS>:8080
                                                            tcp        <IP_ADDRESS>:9001       <IP_ADDRESS>:9001
                                                            tcp        <IP_ADDRESS>:10661       <IP_ADDRESS>:10661
                                                            tcp        <IP_ADDRESS>:9503      <IP_ADDRESS>:9503,<IP_ADDRESS>:9503
                                                            tcp        <IP_ADDRESS>:5556      <IP_ADDRESS>:5556
                                                            tcp        <IP_ADDRESS>:5557      <IP_ADDRESS>:5557
                                                            tcp        <IP_ADDRESS>:5558      <IP_ADDRESS>:5558
                                                            tcp        <IP_ADDRESS>:10660     <IP_ADDRESS>:10660
                                                            tcp        <IP_ADDRESS>:34571      <IP_ADDRESS>:8443
                                                            tcp        <IP_ADDRESS>:9220       <IP_ADDRESS>:8001
                                                            tcp        <IP_ADDRESS>:443        <IP_ADDRESS>:8443
                                                            tcp        <IP_ADDRESS>:6379        <IP_ADDRESS>:6379
83947151-10c3-4fea-9e64-9259c862a9c0    cluster-udp-load    udp        <IP_ADDRESS>:53           <IP_ADDRESS>:53
f98735d7-48db-4bad-bd45-25b0be450e29    eip-dnat1           tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898
1d63b711-c65a-4a7c-9349-a911b6275090    eip-dnat2           tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898
43fd680b-b70c-435f-ab1e-e8165cf1b4dd    test-lb             tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898,<IP_ADDRESS>:9898

mniadmin@master01:~/test-lb$ kubectl ko nbctl lr-lb-add vpc1 test-lb
mniadmin@master01:~/test-lb$
mniadmin@master01:~/test-lb$ kubectl ko nbctl lr-lb-list fd592a7d-73d0-4cf7-acbc-14ff46e3e040
UUID                                    LB                  PROTO      VIP                     IPs
f98735d7-48db-4bad-bd45-25b0be450e29    eip-dnat1           tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898
1d63b711-c65a-4a7c-9349-a911b6275090    eip-dnat2           tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898
43fd680b-b70c-435f-ab1e-e8165cf1b4dd    test-lb             tcp        <IP_ADDRESS>:9898    <IP_ADDRESS>:9898,<IP_ADDRESS>:9898

Same IP, but different Pod
In PC:

In Phone:


Business days

Sorry,
this is not exactly one issue, I don't know how to find this information:

can this calendar disable non-business days as weekends ??
it is possible to set slot duration to 15min or less ??

sorry for my poor english and sorry for this non-issue comment.
Thanks,
Carlos.

There is no way of disabling weekend days from displaying. You can set the day view to be 10 minute intervals like so: https://mattlewis92.github.io/angular-bootstrap-calendar/#?example=day-view-split


Find a way to isolate the GRPC JS file in the UI folder

Now, all the GRPC JS live in the server's app folder:
Given:
When:
Then:

Done under #17


Where to ask questions?

My apologies for cross posting to an issues register. I am looking for the correct forum in which to ask questions. In particular I what seems should be a simple misunderstanding. I'd appreciate someone in the know giving this a read: http://stackoverflow.com/questions/33459506/ivory-how-to-use-the-ivory-hw-package

I posted a response on Stack Overflow.
(Stack Overflow seems like a reasonable place to ask questions, but I don't think the Ivory team has really been monitoring it particularly well. We've considered making a mailing list.)

@leepike, thank you so much for taking the time to go over to SO, create an account, and answer my question. I appreciate it.
If you have someone on your team with the necessary SO cred/privileges they can create a new tag for ivory like "haskell-ivory". Two of the main reasons why I like SO in general: 1) it is frequented by knowledgeable people who are eager to answer questions well, 2) it is usually easy to quickly find answers to same/similar questions that have been asked in the past - the site creates a body of knowledge that is easily searched - and when a user writes a new question, similar questions are proposed as answers before the new question is posted.
Of course, if you want a tool for other purposes as well - such as making announcements - then a mailing list might be a better idea.

Ok, I'll look for a SO power user to add a tag. :) Thanks.

Done

Awesome. Thanks @TomMD

I'd second a mailing list, but still, it's good to now have a haskell-ivory tag at SO.

@Hodapp87. I'm not a SO evangelist, but I do want to mention that you can set up your account on SO to email you new questions in a tag such as haskell-ivory.
Using the web client from the SO home page select Favourite Tags - Edit (right hand side bar), then advanced tag subscriptions to take you to a dialog where you can set it up.

Thank you, I will look into that :)


For the Tact code in 03 - Contract Message, here is my suggestion:

Target:

the original code didn't properly set with target as TargetValue(since it is Int)
the second contract with message Reach will need parse the counter contract address. To better understanding and implement / test on test-net. here is my update:

import "@stdlib/deploy";

message CounterValue {
    value: Int as uint32;
}

////////////////////////////////////////////////////////////////////////////
// this is our famous Counter contract, we've seen it before
// this contract is very annoying, it only allows to increment +1 at a time!

contract Counter with Deployable {

    val: Int as uint32;

    init() {
        self.val = 0;
    }

    // step 6: this contract allows anyone to ask it to increment by 1 (ie. the other contract)
    receive("increment") {
        self.val = self.val + 1;
        reply(CounterValue{value: self.val}.toCell());
    }

    // step 3: this contract replies with its current value to anyone asking (ie. the other contract)
    receive("query") {
        reply(CounterValue{value: self.val}.toCell());
    }

    get fun value(): Int {
        return self.val;
    }
}

message Reach {
    target_value: Int as uint32;
}

////////////////////////////////////////////////////////////////////////////
// let's write a second helper contract to make our lives a little easier
// it will keep incrementing the previous contract as many times as we need!

contract BulkAdder with Deployable {

    target_value: Int as uint32;

    init() {
        self.target_value = 10;
    }

    // step 1: users will send this message to tell us what target value we need to reach
    receive(msg: Reach) {
        self.target_value = msg.target_value;
        let CounterAddressInit: StateInit = initOf Counter();

        // step 2: this contract will query the current counter value from the other contract
        send(SendParameters{
            to: contractAddress(CounterAddressInit),
            value: 0, /// TODO: https://github.com/tact-lang/tact/issues/31
            mode: SendRemainingValue + SendIgnoreErrors, /// TODO: issues/31
            body: "query".asComment(),
            data: CounterAddressInit.data,
            code: CounterAddressInit.code
        });
    }

    // step 4: the other contract will tell us what is its current value by sending us this message
    receive(msg: CounterValue) {
        if (msg.value < self.target_value) {
            // step 5: if its value is too low, send it another message to increment it by +1 more
            send(SendParameters{
                to: sender(),
                value: 0, /// TODO: same issue 31
                mode: SendRemainingValue + SendIgnoreErrors, /// TODO: https://github.com/tact-lang/tact/issues/31
                body: "increment".asComment()
            });
        }
    }
}

Basically, we deployed the Counter contract initially, and send the query and successfully reply a series of reply until the value of counter contract is higher the target_value


crash when I fight with monsters

Describe the bug
crash when I fight with monsters which use range attack
To Reproduce
Steps to reproduce the behavior:

summon monsters
I hurt by them
crash

Expected behavior
fight with monsters
Error logs
[ Native Crash ]
Last packet from IP: <IP_ADDRESS>
[ Native Stack ]
JsErrorCode 0x006d7363
at KERNELBASE.dll!RaiseException
at VCRUNTIME140.dll!CxxThrowException
at bedrock_server.exe!std::_Throw_bad_optional_access
at bedrock_server.exe!OwnerStorageEntity::_getStackRef
at bedrock_server.exe!LevelChunk::getEntities
at bedrock_server.exe!BlockSource::fetchEntities
at bedrock_server.exe!BlockSource::fetchEntities
at bedrock_server.exe!Mob::pushActors
at bedrock_server.exe!Mob::_aiStep
at bedrock_server.exe!Mob::aiStep
at bedrock_server.exe!Mob::normalTick
at bedrock_server.exe!Monster::normalTick
at bedrock_server.exe!Skeleton::normalTick
at bedrock_server.exe!Actor::tick
at bedrock_server.exe!LevelChunk::tick
at bedrock_server.exe!Player::tickWorld
at bedrock_server.exe!ServerPlayer::tickWorld
at bedrock_server.exe!std::_Func_impl_no_alloc<<lambda_1a87f34f2fcfe4729fe29d6237921e6e>,bool,Player &>::_Do_call
at bedrock_server.exe!Level::forEachPlayer
at bedrock_server.exe!Level::tick
at bedrock_server.exe!ServerLevel::tick
at bedrock_server.exe!Minecraft::update
at bedrock_server.exe!ServerInstance::_update
at bedrock_server.exe!<lambda_8914ed82e3ef519cb2a85824fbe333d8>::operator()
at  gameThreadEntry
at chakra.dll!AsyncTask::open'::5'::<lambda_1>::operator() (bdsx-core\nodegate.cpp:198)
at chakra.dll!uv_process_reqs (node\uv\src\win\req-inl.h:195)
at chakra.dll!uv_run (node\uv\src\win\core.c:519)
at chakra.dll!node::Start (node\node.cc:2172)
at chakra.dll!node::Start (node\node.cc:2425)
at chakra.dll!nodeStart (bdsx-core\main.cpp:70)
at bedrock_server.exe!__scrt_common_main_seh
at KERNEL32.DLL!BaseThreadInitThunk
at ntdll.dll!RtlUserThreadStart
[ JS Stack ]
RuntimeError: INVALID ERROR CODE
Desktop (please complete the following information):

OS: window10
Version

It's not reproducible.
it seems it's not the bdsx issue.

oh.. okay thanks


broken links

apache spark have moved their docs, e.g.
The old link: https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.sql.DataFrame.persist.html
The new link: https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.persist.html
Need to change all links in the book to reflect this change.

Closing this as has now been dealt with.


Fix npm postinstall script on Windows

Just thought I'd let you guys know that the || operator apparently doesn't work on Windows. I copied your postinstall script, so I just thought I'd let you know ;)
Cheers!

I'm not sure || is the problem, as it is definitely supported on Windows. We also have AppVeyor builds that check every commit on Windows. From the logs, it is running just fine:
><EMAIL_ADDRESS>postinstall C:\projects\radium
> node -e "require('fs').stat('lib', function(e,s){process.exit(e || !s.isDirectory() ? 1 : 0)})" || npm run lib

><EMAIL_ADDRESS>lib C:\projects\radium
> npm run babel && rimraf lib/__tests__ lib/__mocks__

><EMAIL_ADDRESS>babel C:\projects\radium
> rimraf lib && babel modules/ -d lib/


Enable language server tests

Description:
#16504 introduce some new default param semantics, and that'll break some language server tests. Those were disabled in https://github.com/ballerina-platform/ballerina-lang/pull/16504/commits/211f01e253095ce3c5a11c397bf7f83a5a4f40be. Please fix lang server according to above change and re-enable those tests.

Enabled all the tests mentioned here that are disabled in formatting tests.


add hardware breakpoint support

So we can test performance impact.

Was ca. 30% on the Apple M3 system, doesn't matter at those speeds. On the rp2040 we might fall below 4 MHz. Good that such features can be disabled ;-)

That's pretty good.