Add {stat-headline} markdown and styles for HTML publications

https://trello.com/c/z4YmHWDp/127-html-pubs-add-markdown-to-allow-users-to-add-large-font-and-graphs-medium

Departments are about to create and publish their Single Departmental Plans. These will be published to GOV.UK as HTML publications. Departments need to be able to pull out important figures periodically throughout the HTML publication in large font.

Add guidance for the {stat-headline} markdown when adding and editing HTML publications
Style the markup generated by these headlines on HTML publications only
Add styles so the in-form preview shows an approximation of the final content
Switches all HTML pubs to have the same text colour as GOV.UK

{stat-headline}*13.8bn* years since the big bang{/stat-headline}

Guidance

How to use it and preview

Final HTML publication

cc @alextea

:+1: from a codings POV

:+1:

:+1: from me

I have two thumbs :+1: :+1:


chart/sftpgo: Feature/add pv support for sqlite default db

My attempt at adding a PVC to the chart that addresses adding persistent storage for sqlite db used by default in /var/lib/sftpgo. Am open to feedback and testing from the community!
Addresses #3 #121

Thank you for the review! Comments and changes have been added. 🙏

@mccrackend thanks! Can you please regenerate the readme?


Yard docs contain deleted class?

I was browsing the Yard docs and stumbled upon a class that shows up in the docs but no longer exists in the codebase: Rubocop::SourceParser. (It was deleted in 1315aac.)
The page says at the bottom:

Generated on Mon May 8 22:59:22 2017 by yard 0.9.8 (ruby-2.3.1).

Any idea why that class is still getting included?

If you check the Version class, it says the version constant is '0.20.1', so despite being generated today, it probably generates from an old release. 🤔

Any idea how this works (or doesn't work?) @bbatsov

I don't know why it works this way, but if you search rubocop after selecting "github" in the rubydoc homepage then you get two results:

There is an entry for RuboCop and an entry for rubocop (uppercase vs. lowercase).
The uppercase one is up to date.
Most people should be using the gems version anyways: http://www.rubydoc.info/gems/rubocop

No idea. Don't recall anything doing something with respect to RubyDoc.

I've opened an issue asking to remove the outdated duplicate. I think that's as much as we can do about this right now. 🙂

Thanks! Guess we can close this issue then.


The list of counters is incorrect for Asp.Net Core

[Enter feedback here]
The current default counters that are configured to be collected for ASP.NET/ASP.NET Core web applications are: -- this statement is incorrect. Its correct for Asp.Net. Asp.Net Core collects only a subset of these. Need to add the correct list for Asp.Net Core.

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

ID: 7325660c-6ba7-5955-cadb-e98084e7a624
Version Independent ID: 9ea16a97-de92-6c54-93d5-d18593af5010
Content: Performance counters in Application Insights - Azure Monitor
Content Source: articles/azure-monitor/app/performance-counters.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@cijothomas Thanks for the feedback. I have assigned the issue to the content author to evaluate and update as appropriate.

+1, +1 on behalf of two other customers who reported this.

One more +1 from another customer.

@cijothomas Thanks for the feedback, the update should go live later today.
#please-close


tetMeshBox via Comodo.jl

Dear Kevin,
Thanks for great packages Gibbon and Comodo
Does Comodo have built-in function for generation of a box with tet?
I have found this:
E, V, CE, Fb, Cb = tetgenmesh(Fb, Vb)
r = 4.0
n = 2
stringOpt = "pq1.2a0.05"  # Controls quality and maximum element volume
stringOpt =  "paAqYQ"
Fb, Vb = platonicsolid(n, r)
E, V, CE, Fb, Cb = tetgenmesh(Fb, Vb;stringOpt);
Is this like  [meshStruct]=tetMeshBox(boxDim,pointSpacing); in Gibbon ?
I did something like this
using Comodo
using GeometryBasics
using Statistics
using GLMakie
using FileIO
using Ferrite
using LinearAlgebra
Parameters for the box
length = 2.0  # Length in x-direction
width = 2.0   # Width in y-direction
height = 2.0  # Height in z-direction
Vb = [
Point3(0.0, 0.0, 0.0),                      # Vertex 1
Point3(length, 0.0, 0.0),                   # Vertex 2
Point3(length, width, 0.0),                 # Vertex 3
Point3(0.0, width, 0.0),                    # Vertex 4
Point3(0.0, 0.0, height),                   # Vertex 5
Point3(length, 0.0, height),                # Vertex 6
Point3(length, width, height),              # Vertex 7
Point3(0.0, width, height)                  # Vertex 8
]
Fb = [
QuadFace(1, 2, 3, 4),  # Bottom face
QuadFace(5, 6, 7, 8),  # Top face
QuadFace(1, 2, 6, 5),  # Front face
QuadFace(2, 3, 7, 6),  # Right face
QuadFace(3, 4, 8, 7),  # Back face
QuadFace(4, 1, 5, 8)   # Left face
]
stringOpt = "pq1.2a0.05"
E, V, CE, Fb, Cb = tetgenmesh(Fb, Vb; stringOpt);
this works but I want to know if package has built in.
Also how can we find the faces using something like
Create face sets to define node sets later
Fb_top = Fb[CFb_type.==1]
Fb_bottom = Fb[CFb_type.==2]
Fb_s1 = Fb[CFb_type.==6]
Fb_s2 = Fb[CFb_type.==3]
Best regards ,
Amin

@Aminofa70 thanks again for testing/using Comodo.
I had not added a tetrahedral box meshing function yet. I have just added quadbox, tribox, and tetbox in response to this issue. The latter should do what you want. Have a look at the related demos e.g. demo_tetbox in the examples folder.
Let me know if you have any more questions.


Use inference/casting for compression

Changes:

added a with_type_inference attribute to the Compress object
compress_func optionally compresses with type inference or detection
leverages internal visions functions to prevent performing graph traversal twice (cast & get dtype)
updated example notebook to work with_type_inference

LGTM


ActionForm and ActionButton actions should unsubscribe on mount

Before this commit, there was an issue where ActionForm and ActionButton callbacks would still fire if the related components unmounted. This resulted in an error where setState would call on an unmounted component for most of the use cases for these callbacks.
Basically:
const testAction = function() {
  return Promise.resolve(true)
}

class Test extends React.Component {
  state = {
    status: 'inactive'
  }

  onNext = ({ status }) => {
    this.setState({ status })
  }

  render() {
    return <ActionForm action={testAction} onNext={this.onNext} />
  }
}

let form = ReactDOM.render(<Test />, el)

form.submit()

ReactDOM.unmountComponentAtNode(el)

// Action callbacks are still firing. onNext will raise a setState error in React when the action completes.

This commit does a couple of things:

Adds Action::execute: Moves coroutine behavior to the Action prototype
Adds action._origin. Actions know what repo they were created with. This is necessary for execute, but could be used for other future work.
ActionQueue: A helper class for entities that must dispatch and track multiple actions.

The result of this work is that ActionForm and ActionButton now "empty" their queue of actions when they unmount, unsubscribing any callbacks they set on those actions.

https://github.com/vigetlabs/microcosm/issues/425

Codecov Report

Merging #432 into master will decrease coverage by 0.6%.
The diff coverage is 40%.

@@            Coverage Diff             @@
##           master     #432      +/-   ##
==========================================
- Coverage   84.59%   83.98%   -0.61%
==========================================
  Files          44       45       +1
  Lines        1318     1349      +31
  Branches      242      246       +4
==========================================
+ Hits         1115     1133      +18
- Misses        172      180       +8
- Partials       31       36       +5

Impacted Files
Coverage Δ

packages/microcosm/src/addons/action-queue.js
0% <0%> (ø)

packages/microcosm/src/addons/action-button.js
0% <0%> (-100%)
:arrow_down:

packages/microcosm/src/addons/action-form.js
97.61% <100%> (+97.61%)
:arrow_up:

packages/microcosm/src/action.js
100% <100%> (ø)
:arrow_up:

packages/microcosm/src/history.js
100% <100%> (ø)
:arrow_up:

packages/microcosm/src/microcosm.js
100% <100%> (ø)
:arrow_up:

packages/microcosm/src/addons/jest-matchers.js
100% <100%> (ø)
:arrow_up:

packages/microcosm-preact/src/action-button.js
100% <100%> (ø)
:arrow_up:

packages/microcosm-preact/src/action-form.js
100% <100%> (ø)
:arrow_up:

... and 2 more

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 7369bb5...2c0f6ac. Read the comment docs.


refactor:  re-write the cluster installation of quick-start

What's Changed in this PR
Re-write the cluster installation in quick-start:

Use Docker Compose to deploy the greptimedb cluster instead of using gtctl(We always prefer to use container instead of pre-built binary);
Use helm chart to deploy cluster in Kubernetes;

Checklist

[ ] Please confirm that all corresponding versions of the documents have been revised.
[ ] Please ensure that the content in summary.yml matches the current document structure when you changed the document structure.
[ ] This change requires follow-up update in localized docs.

The PR is dependent on https://github.com/GreptimeTeam/greptimedb/pull/4484.

Note: I remove the the content of deployment on Kubernetes by using the link to the user-guide/operations/deploy-on-kubernetes/overview.md.


Patch to fix builds with custom targets on iOS simulator.

Fixes #16787

@xster @Hixie what do we do next? does someone post a LGTM?

Thanks for the update. LGTM. Merging

This also fixed https://github.com/flutter/flutter/issues/17120 - thanks!


Status page

It would be great if Monero had a status page for all Monero related services, so users can keep track of incident reports/downtimes.

status page sounds like it would need to be updated dynamically on the fly. please see commit history/frequency of site deployments as to why this is not feasible.

Yes, also Mainnet, Testnet and Stagenet. But might not be feasible rn tho which hopefully not going to be forever.

Yes, also Mainnet, Testnet and Stagenet. But might not be feasible rn tho which hopefully not going to be forever.

Lol.

this how Monero not works, nodes ran by the community not the site maintainers. if you're looking for status of nodes you can use https://monero.fail or https://nodes.monero.com

not planned and adds more maintenance overhead


Remove RankedTensorType verification check for TriangularSolveOp

closes #2139

Thanks for the context! I ran into it by chance while working with this op in another context, so I decided I'd fix it on a whim.


Preserve deep links to other documents

Expected Behavior
When one library document links to another using the docs.google.com url, the resulting rendered version of that link should preserve deep links such as those to headings in the  document: .../edit#heading=h.h1dswxgykb74.
Actual Behavior
The rendered link drops the hash from the original link. This is probably because the original link is used only to get the document ID, and the canonical URL for that document (without any deep links) is used directly:
https://github.com/nytimes/library/blob/5c08c23add3964aada2b1a48e49952cd3d5f84df/server/formatter.js#L85
Possible Solution
The hash component of document urls could also be parsed out, and appended to the canonical url.

Closed via #25.


Extend RegexpCleaner to discard all matches instead only the first

When running RegexpCleaner in discard mode, it only discards first match. If you for example wish to remove all occurrences of a certain character , you will need to re-run the RegexpCleaner several times.
string: "I123Dont454Like450Di3gits"
regex: "(\d+)"
result now: "IDont454Like450Di3gits"
should be possible to get: "IDontLikeDigits"
It is suggested that RegexpCleaner is extended with a new flag so that all occurrences on a match can be discarded.

qtips implemented this himself, and the pull request has been merged.


Option to generate entirely offline site

I really like the way that Hugo allows me to create a static version of a page, while still keeping easy editing of content using Markdown and Toml. I'm currently trying to migrate away from a similar setup, which allowed me to generate content from lots of XML.
My last setup allowed to have a completely self-contained version of the page:

only local stylesheets
only local fonts
only local images

Currently all the stylesheets are fetched from Cloudflare and fonts from Google.
Would it be possible to make a completely self-contained variant?

What's your use case for requiring an entirely offline website?

Privacy. I don't want to force visitors of my website to let Google and Cloudflare know they're visiting my website.
The other reason is to combat fragility. I want to be sure that my website works even when cloudflare decides to move files to a different place.

On 15 Mar 2018, at 19:41, gcushen<EMAIL_ADDRESS>wrote:
What's your use case for requiring an entirely offline website?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I appreciate your privacy concerns.
Academic will only contact Google servers if it's configured to. You can edit the themes as described in the documentation to use fonts other than Google fonts.
Around 10% of all internet traffic goes via Cloudflare. Hence, it's generally quite likely that visitors to an Academic powered website will already have many if not all of the necessary Cloudflare CDNJS assets cached in their browser. Hence, their browser may not even need to make any new requests to Cloudflare CDNJS. We have favoured this significantly improved user experience (in terms of asset/page loading) over the slower self-hosting of third party CSS/JS libraries.
Academic and CDNJS are both open source, so in the unlikely event that Cloudflare did go down and your visitors' browsers had no existing relevant cache, it would be relatively simple to remedy it.

I am also interested in a version that does not pull any files from other resources.
I will try to modify the theme by overriding the required files, but an upstream solution would be awesome.

Could the all required assets from Google/Cloudfare/Fontawesome be automatically downloaded during  HTML generation, so that accessing the generated page do not require querying these third-party servers?

@ebousse Hugo does not have this feature. However, we are working on a separate tool to perform this action and will post in this thread when it's released.

Closing as this feature is now implemented in the Academic Admin tool, see https://github.com/sourcethemes/academic-admin

@gcushen i'm finding this feature very needed for all the people working on offline laptos (say in grain, airplanes, whatever.. the free time you have to write in your site and optimize everything)
i was thinking about an environmnet param.. that if set to LOCAL would use all local resources (for bootstrap and JS/CSS), otherwise it goes normal
i don't think the academin-admin is a solution for this use.. what do you think?


Channel adjacency improvements

Proposed documentation enhancement
The docstring of the picks argument in read_ch_adjacency is wrong as there is no info provided to this function.
Also, find_ch_adjacency could benefit from an extra argument similar to pick in read_ch_adjacency to select channels to include in the adjacency matrix. I see 2 options forward:

(1) Keep ch_type and add exclude=() which can be set to exclude="bads"
(2) Deprecate ch_type in favor of the traditional picks argument, with an adapted docstring mentioning that the channel selection provided must yield a single channel type (+ check and appropriate error message)

I'm in favor of (2) as it offers more flexibility to find_ch_adjacency.
Correspond to this forum post: https://mne.discourse.group/t/find-ch-adjacency-not-accounting-for-bad-channels/7968/

Given ch_type is in second position and we easily can do something like:
def find_ch_adjacency(info, picks, *, ch_type=None):
    if ch_type is not None:
        warn(...)
        picks = ch_type

that will avoid breaking code for some folks, I'm in favor of (2)


find a way to show notifications in exact rectange

when I do mass abort for example I receive 20 notifications and should wait until all of them disappear.
So if we find a way to show them:
a) higher the bubble button - it would be greate
b) [optional] below filters fields etc...

fixed in new version


Buggy documentation.

Correcting bug in the documentation about the saving/creating/updating events, according to the changes asked in #922.

Perfect. Thanks!


Required changes for Angular 6/7

I am using this library for one of my projects and its on Angular 7.
Please incorporate the below commit for Angular 7.
fix: patch for include and exclude parameters #172 (#274)
Thanks in advance!!

upgrade to angular 8


Cloudcraft resources & critical features

[x] ASG, EC2, ELB, RDS
[x] VPC
[x] SG
[x] execute it all together

It works!


Handle return statements in yielding generator functions

Returning from generators is a bit of an anti-pattern, but it is
nonetheless supported in Python >=3.3.
We've already seen users return in yielding functions, so it's likely
more people will do that (even if we document that it's not allowed).

What do you think about adding a note to the progressive output docs to clarify what will/won't happen when returning in a generator function, and what we recommend?

I wonder if it would be confusing if we started talking about returning vs yielding in the docs, since it's a very esoteric feature of Python. The examples in the docs are easy to both read and copy/paste. I doubt anyone will return in a generator unless by mistake, and this PR gracefully catches that mistake.

I wonder if there could be problems if in a hypothetical future we wanted predictors to be used by something else? E.g. using a predictor right now is as simple as:

You could say that currently the expected behavior of return within a generator is undefined, with the actual behavior being that we silently ignore the returned value. After this change we can still have the behavior be undefined (i.e. not documented), but we handle the returned value gracefully.
What if we just log a warning when we handle the return, something like
WARNING: The behavior of return is undefined when used inside a generator.
Please replace the return statement with yield


refactor: added index files for every component

Current coverage is 46.63% (diff: 53.77%)

Merging #25 into master will increase coverage by 0.90%

@@             master        #25   diff @@
==========================================
  Files            32         38     +6
  Lines           457        461     +4
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            209        215     +6
+ Misses          248        246     -2
  Partials          0          0

Powered by Codecov. Last update f26e2f7...e3e69f6


Is it possible ignore a specific "tag"?

I am using Handlebars to create AWS CloudFormation (CFN) templates and am having a problem with its Dynamic References.  Dynamic References use double brackets {{}} to specify special abilities in CFN and my templates are getting all confused.
For a number of reasons I am processing my templates multiple times; sometimes once sometimes twice.  I tried escaping the value but that didn't work.  I also tried using a raw handler [below] but that only works for a single use case and it gets pretty ugly and unwieldy.
"MasterUserPassword": "{{{{raw}}}}{{{{raw}}}}{{resolve:ssm-secure:MyPassword:5}}{{{{/raw}}}}{{{{/raw}}}}"

My question is, can I set something in Handlebars so that it will completely ignore an element that begins with resolve:?  I was thinking that I might be able to create a partial to handle this but the element name would always be different.  One time it would be {{{resolve:ssm-secure:MyPassword}}} and another it might be {{{resolve:ssm:SomeString}}}.  I looked through the compile() options but didn't see anything that might be useful.

Have you tried escaping the curlies? https://handlebarsjs.com/expressions.html#escaping

Yes, I tried escaping the curlies and that works in a limited fashion, but it still fails if you process the template multiple times.  I was thinking it might be handy to have a general purpose way to ignore non-handlebars tags, or even specific tags (ie. ones that start with a certain string).
NOTE: I solved my original problem by not processing my templates multiple times.


Confused about the code

https://github.com/610265158/Peppa_Pig_Face_Engine/blob/b2a39f9f5db13d833c263a6d2aafd4c2e4b41502/lib/core/api/facer.py#L65
Comments on this line of code said ‘calculate the head pose for the whole image‘，but It seems not right when I watch it. This function is for update landmark, do I understand right?

hi，
Sorry about that, it is a mistake. It is correct that this function is for update landmark.
I will correct it.

Thanks for your reply, I learned a lot in your project.


Isolate gcc specific code

Folks,
This is the second half of our attempt to enable Jerryscript for compilers other than GCC -- in this case, the TI compilers.
Copied from the commit message:
These changes are designed to enable the TI compilers to compile
Jerryscript.  The changes include:

CMakeLists.txt: we added conditionals around GCC-specific flags, added
support for TI flags, and removed the always-on debugging flag (-g)

/toolchain_mcu_tim4f.cmake: new toolchain file uses TI-specific parameters

jerry-api.h: the sys/types.h file was #include'd but never used, so we
removed it

jrt-types.h: ditto

jerry-port-default-date.c: the TI toolchain doesn't include
sys/time.h, so we guarded uses of the package

...thanks for reviewing these changes!
Tim

Thank you for doing this patch, I think this patch is a step in the right direction to build JerryScript with other compilers, like TI compilers.

Please rebase this patch to master.

Robert,
In re ENABLE_STATIC_LINK -- so I played with a number of error messages, and I never got one I liked: they either fell in unexpected places (so the user isn't looking for them), or they interrupted other output (they just got in the way).

I've squashed all of the commits, so if everything looks good, this is ready for pulling.

The #1483 should be landed first since this PR depends on that.

@t-harvey : Yes, this message form is perfect, thanks.
I would not set the USING_GCC_OR_CLANG variable. Could you use "USING_GCC OR USING_CLANG" in the affected condition instead of "USING_GCC_OR_CLANG"?  LGTM (informally) after these changes.

@t-harvey, please rebase to the current master.

The #1483 should be landed first since this PR depends on that.
Just to not forget about it.

@t-harvey Thanks for the update, this PR is now ready to be merged (can be merged once #1483 has landed).

@t-harvey, #1483 is merged. Please rebase, so we can merge this PR too.


Add a bunch of functions on redox and hope for the best

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit 24cf502 has been approved by alexcrichton

:hourglass: Testing commit 24cf502f59527322a919dbf54aa4834e0bac8db2 with merge ad4d49261dcd4c50345922dff33a1c09c587528b...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing ad4d49261dcd4c50345922dff33a1c09c587528b to master...


Fix async demo and adding some warnings on dependents

@edgesoft okay looks its better start from scratch here :)

Should I close the pull request and create another one?


maxComplexity of methodContext is not supported by plugin

According to https://confluence.atlassian.com/display/CLOVER/methodContext
method context has 6 attributes,
but gradle plugin supports only name and regexp.
Please fix the line # 96 in https://github.com/bmuschko/gradle-clover-plugin/blob/master/src/main/groovy/org/gradle/api/plugins/clover/InstrumentCodeAction.groovy and method context convention

A new pull request is coming this week, code is done and verified in tests.  Just need to polish up the integration tests a bit, looking for a decent set of assertions to make.

The new pull request never came. I reviewed the original pull request and feel strongly that the feature is worth adding. If I can manage to make a new implementation for the upcoming 2.1 release I will pull this change in.

Implemented feature


How do you reduce the watch duration?

How do you reduce the watch duration?

https://github.com/MShawon/YouTube-Viewer/issues/32


Researching the UP gap analysis

User Story
As a ReportStream teammate, I want to understand via gap analysis which documents, Murals, etc. need to be updated to reflect UP processes, so I know where I can 'fill in the gap' and help complete the migration to UP.
Background and context
Engagement team is going to be supporting WebEx and Platform as an "all hands on deck" pivot so that ReportStream is prepared to onboard new users or migrate current users to UP.
Open questions

How should we use Brandon's UP Playbook doc as our centralized source of truth for where these gaps exist?
What would be considered "done" for this ticket? @brandonnava
Which materials are a priority, and need to be updated first?
How should we best flag materials that design is capable of updating, versus materials that need to be handled by engineers?

Working links
Engagement design/prod sync
Acceptance criteria; Proposed

[ ] >95% of all materials have been properly updated for UP
[ ] Journey is mapped out for onboarding new users and existing users to UP
[ ] New and existing users can be successfully onboarded with minor bugs

Not in scope

Self-service STLT configuration features
Self-service new sender authorization features
Setting design as the primary 'updaters' of materials

@lizzieamanning ticket made! I'd love your help / input on any labels that would be appropriate here and/or epics I should tie this to?
Also, I updated the Open Questions, based on your feedback in Slack. Let me know if they make sense! :)

@dylansmith-Nava great! After reviewing again, I wonder if it makes the most sense to scope this ticket for what design can support with. That way, we can have a clear owner and clear bounds. For example, the current ACs are broad and have a lot of dependencies that wouldn't allow us to move this ticket forward sprint by sprint (in my opinion). I think this could be part of a larger epic. @brandonnava does a larger epic exist yet? Other thoughts?

Very true - just thinking aloud @lizzieamanning, but perhaps this ticket could be an epic? And then each document or document folder that needs to be updated could be a ticket.

I will leave that to you if you think that works best. To help decide, do you have a sense of how many artifacts that is? @dylansmith-Nava

@lizzieamanning tbh I think that's part of this ticket - figuring out which artifact(s) and what content can/needs to be updated by Design. I think next steps for me would be to meet up/ping @brandonnava re: Playbook to start somewhere.

@brandonnava I chatted with Lizzie and this ticket seems to be well-summarized by the UP Playbook document you have going!
We were discussing that this ticket feels too broad and may need to be archived from a design perspective. Before I do that, is there any language / content here that you'd like to use? I want to make sure it's useful for you before I close it out!


Cached download should be ignored if URL changes

Describe the bug
If the URL has changed but the destination path hasn't then the existing destination file should be ignored for the purposes of onlyIfModified. Otherwise, if the timestamp of the new URL is older than the existing download, it will be skipped and you'll continue using the wrong download.
Sample build script
plugins {
    id 'de.undercouch.download' version '5.5.0'
}

def welcomeScreenVersion = '6.46.0'

tasks.register('downloadWelcomeScreen', Download) {
    src "https://github.com/endlessm/kolibri-explore-plugin/releases/download/v${welcomeScreenVersion}/welcome-screen.zip"
    dest layout.buildDirectory.file('welcome-screen.zip')
    onlyIfModified true
}

tasks.register('clean', Delete) {
    delete buildDir
}

If I run the task and then change welcomeScreenVersion to 6.44.0, the task is skipped:
$ ls -l build/welcome-screen.zip
-rw-rw-r-- 1 dan dan 5336916 Sep 12 16:32 build/welcome-screen.zip
$ ./gradlew -i downloadWelcomeScreen
...
> Task :downloadWelcomeScreen UP-TO-DATE
Caching disabled for task ':downloadWelcomeScreen' because:
  Build cache is disabled
Task ':downloadWelcomeScreen' is not up-to-date because:
  Task.upToDateWhen is false.
Watching 3 directories to track changes
Download https://github.com/endlessm/kolibri-explore-plugin/releases/download/v6.44.0/welcome-screen.zip
Not modified. Skipping 'https://github.com/endlessm/kolibri-explore-plugin/releases/download/v6.44.0/welcome-screen.zip'
Watching 4 directories to track changes

BUILD SUCCESSFUL in 1s
1 actionable task: 1 up-to-date
$ ls -l build/welcome-screen.zip
-rw-rw-r-- 1 dan dan 5336916 Sep 12 16:32 build/welcome-screen.zip

While I think it's nice to use the timestamp of the destination file as the source for the If-Modified-Since header, it loses the URL. It would be better to keep a map of URL to timestamp like is done with ETags. That way if the URL changes, the timestamp won't be found and no If-Modified-Since header will be added.

An extension of this problem is that if you set useETag, then it won't be used because the URL isn't in the cached JSON and then it's operating entirely on Last-Modified. So, even though the ETag of the new URL doesn't match the previous download, it's essentially being ignored.

Thanks for reporting this. I can see that this behaviour seems odd but everything works as it's supposed to.
I understand that saving the URL in a map like it's done with the ETag would solve your particular example, but I'm not sure if it would address the root of the problem. It is true that the plugin uses the file's timestamp as a fallback if it cannot find an ETag for a given URL. However, if it can find one, it also skips downloading.
Try this: Enable useETag and then download welcomeScreenVersion 6.44.0 first.  Change the version to 6.46.0 and download this too. The plugin will now know both ETags. If you change the version back to 6.44.0, you will see the exact same behaviour you're seeing in your example: the task will be skipped.
The problem is even worse here, by the way. If you do it the other way around, the plugin will not be able to know which of the two ETags is newer and will not overwrite version 6.46.0 with 6.44.0 like it would do if useETag was disabled and it only compared the timestamps.
The only way to really solve the root cause would be to know if the task's inputs have changed since the last call, and if they had, skip any up-to-date checks and redownload the file. This might become possible in the future when Gradle's configuration cache becomes enabled by default, but it is certainly not possible now.
From my point of view, if the user changes the URL of the file to download, they should manually remove the destination file or call the clean task. Another (more preferable) possibility would be to include the version number in the destination file name. If you need the filename in a subsequent task, you can always get it through downloadWelcomeScreen.dest or downloadWelcomeScreen.outputs.
Let me know if this helps. I'm open to feedback and ideas!
P.S.: I'm currently out of office with limited Internet access. It might take me a some days to reply.

I understand that saving the URL in a map like it's done with the ETag would solve your particular example, but I'm not sure if it would address the root of the problem. It is true that the plugin uses the file's timestamp as a fallback if it cannot find an ETag for a given URL. However, if it can find one, it also skips downloading.

This just seems like a bug in the cache implementation. It's only storing the URL but what matters is the ETag of the saved file. That's why you use the timestamp of the saved file for the Last-Modified handling, right? Without the saved file path, you can't make an accurate decision about when to invalidate the cache entries since you don't have enough information. You have the previous ETag of a URL, but you don't know if the file your using it to make decisions about was created from one of those URLs or not. Knowing the ETag of a URL at some point in time doesn't actually give you any useful information if it's not associated to a file you have locally.
I think the ETag cache should be keyed by the saved path:
{
  "path/to/downloaded/file": {
    "URL": "https://someurl",
    "ETag": "\"someetag\""
  }
}

This has 2 effects:

A strong connection is maintained between the saved file and the parameters used to form it.
The previous cache entry is automatically deleted when you overwrite that paths entry it after a new download. You can no longer accidentally get invalid cache data for the file at that path.

From my point of view, if the user changes the URL of the file to download, they should manually remove the destination file or call the clean task. Another (more preferable) possibility would be to include the version number in the destination file name. If you need the filename in a subsequent task, you can always get it through downloadWelcomeScreen.dest or downloadWelcomeScreen.outputs.

That's fine if the person making the changes and doing the builds is always the same person, but it breaks down otherwise. What if my CI system has the download cached? What if another user in my team has the download cached and they didn't see that the URL changed? The only reliable way to handle that is to not cache at all or to always clean, which are effectively the same thing.
I'll change my tasks so they include the version number in the saved filename. I was trying to avoid it before so that when the code references the asset it can always use the generic name, but I don't actually need to reference it from the code right now.
To circle back to one thing I said in the issue description - I think there should be an option to ignore Last-Modified if you're using an ETag and the server supplies one. That would put it in line with the HTTP behavior for If-Modified-Since:

When used in combination with If-None-Match, it is ignored, unless the server doesn't support If-None-Match.

Which makes sense. If I say "I have a file that has this identifier, tell me if the one you have matches", then I don't care if it's older or newer. I only care whether the content is the same. It's like what a file archiver would do with checksums.


UMD Build: redux is undefined

When using it from a CDN, redux is undefined because the redux global variable is capitalized.
"Redux" not "redux".

Ack! Good catch.

Released as 2.0.1 :)

Nice. I confirm that is working now.


feat: Add the notebook tutorial for Vertex Image Segmentation

Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Follow the CONTRIBUTING Guide.
[x] You are listed as the author in your notebook or README file.

[ ] Your account is listed in CODEOWNERS for the file(s).

[x] Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
[x] Ensure the tests and linter pass (Run nox -s format from the repository root to format).
[x] Appropriate docs were updated (if necessary)

My £0.02: it might actually be good to include the image outputs from the cell executions. It would go a long way to make it easier for everyone to understand what's happening throughout the notebook, without running it

I understand that, however it makes the notebook much larger and it caused processing errors on GitHub so it couldn't be viewed, same with VS Code

My £0.02: it might actually be good to include the image outputs from the cell executions. It would go a long way to make it easier for everyone to understand what's happening throughout the notebook, without running it

I understand that, however it makes the notebook much larger and it caused processing errors on GitHub so it couldn't be viewed, same with VS Code

For this initial change it's fine to go without the outputs. However, Polong is right that we want users to quickly be able to see what they can do with these features without having to actually try it out directly.
I will switch the interactive segmentation section/mask drawing to use Gradio UI instead, that should resolve the processing errors and keep the length down. Along with that followup change I can add output images - or at least continue the discussion about this there.


how-to added

What type of PR is this?
/kind documentation

What this PR does / why we need it:
Enhances documentation
Which issue(s) this PR fixes:
Fixes #109
Special notes for your reviewer:
Should we include additional information about contributing, such as coding style and instructions for setting up locally, on the same page as this one or on a different page?
@RainbowMango

Hi @rgrupesh merge commit is not allowed, please rebase.
Use git rebase to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.

Please help squash commits, then will be all set, thanks.

/hold
@rgrupesh do you need help?

/hold @rgrupesh do you need help?

@RainbowMango I squashed my first commit to this branch with the previous commit of the main branch, and left newer commit how-to removed and markdown synatx link added as it is.

/hold @rgrupesh do you need help?

@RainbowMango I squashed my first commit to this branch with the previous commit of the main branch, and left newer commit how-to removed and markdown synatx link added as it is.

@RainbowMango

I don't think this PR should contain other guys' commit. Please rebase your branch and push again.


Feature names are not properly assigned to features when using R or Julia

The problem can be detected by looking at the output for the basic example (see below). I'm not sure if the issue is general or somehow specific to this example.
Using xgboost on command line, the model retrieved has "odor=pungent" as the first variable. The result for the Python API is identical. In Julia and R the same model is obtained as far as the numbers are concerned, but it is not properly labeled: the names seem to be off by one and the first variable selected is "odor=none".
>>> cd ~/xgboost/demo/binary_classification
### set max_depth=2 in mushroom.conf
>>> sh runexp.sh
[.........]
>>> cat dump.nice.txt
booster[0]:
0:[odor=pungent] yes=2,no=1
	1:[stalk-root=cup] yes=4,no=3
		3:leaf=1.71218
		4:leaf=-1.70044
	2:[spore-print-color=orange] yes=6,no=5
		5:leaf=-1.94071
		6:leaf=1.85965
booster[1]:
0:[stalk-root=missing] yes=2,no=1
	1:[odor=pungent] yes=4,no=3
		3:leaf=0.784718
		4:leaf=-0.96853
	2:leaf=-6.23624

>>> cd ~/xgboost/demo/guide-python
>>> python basic_walkthrough.py
[.........]
>>> cat dump.nice.txt
booster[0]:
0:[odor=pungent] yes=2,no=1
	1:[stalk-root=cup] yes=4,no=3
		3:leaf=1.71218
		4:leaf=-1.70044
	2:[spore-print-color=orange] yes=6,no=5
		5:leaf=-1.94071
		6:leaf=1.85965
booster[1]:
0:[stalk-root=missing] yes=2,no=1
	1:[odor=pungent] yes=4,no=3
		3:leaf=0.784718
		4:leaf=-0.96853
	2:leaf=-6.23624

>>> cd ~/xgboost/R-package/demo
>>> R -f basic_walkthrough.R
[.........]
> print(imp_matrix)
                   Feature       Gain     Cover Frequency
1:               odor=none 0.67615484 0.4978746       0.4
2:         stalk-root=club 0.17135352 0.1920543       0.2
3:       stalk-root=rooted 0.12317241 0.1638750       0.2
4: spore-print-color=green 0.02931922 0.1461960       0.2
[.........]
>>> cat dump.raw.txt
booster[0]
0:[f28<-9.53674e-07] yes=1,no=2,missing=1,gain=4000.53,cover=1628.25
	1:[f55<-9.53674e-07] yes=3,no=4,missing=3,gain=1158.21,cover=924.5
		3:leaf=1.71218,cover=812
		4:leaf=-1.70044,cover=112.5
	2:[f108<-9.53674e-07] yes=5,no=6,missing=5,gain=198.174,cover=703.75
		5:leaf=-1.94071,cover=690.5
		6:leaf=1.85965,cover=13.25
booster[1]
0:[f59<-9.53674e-07] yes=1,no=2,missing=1,gain=832.545,cover=788.852
	1:[f28<-9.53674e-07] yes=3,no=4,missing=3,gain=569.725,cover=768.39
		3:leaf=0.784718,cover=458.937
		4:leaf=-0.96853,cover=309.453
	2:leaf=-6.23624,cover=20.4624

>>> cd ~/.julia/v0.4/XGBoost/demo
>>> julia --load basic_walkthrough.jl
[.........]
>>> cat dump.nice.txt
booster[1]:
0:[odor=none] yes=2,no=1
	1:[stalk-root=club] yes=4,no=3
		3:leaf=1.71218
		4:leaf=-1.70044
	2:[spore-print-color=green] yes=6,no=5
		5:leaf=-1.94071
		6:leaf=1.85965
booster[2]:
0:[stalk-root=rooted] yes=2,no=1
	1:[odor=none] yes=4,no=3
		3:leaf=0.784718
		4:leaf=-0.96853
	2:leaf=-6.23624

If you use the same data in R
dtrain2 = xgb.DMatrix('demo/data/agaricus.txt.train')
bst <- xgb.train(data=dtrain2, max.depth=2, eta=1, nround=2,
                 nthread = 2, objective = "binary:logistic")
cat(xgb.dump(bst, fmap = 'demo/data/featmap.txt'), sep='\n')

the result is the same:
booster[0]
0:[odor=pungent] yes=2,no=1
1:[stalk-root=cup] yes=4,no=3
3:leaf=1.71218
4:leaf=-1.70044
2:[spore-print-color=orange] yes=6,no=5
5:leaf=-1.94071
6:leaf=1.85965
booster[1]
0:[stalk-root=missing] yes=2,no=1
1:[odor=pungent] yes=4,no=3
3:leaf=0.784718
4:leaf=-0.96853
2:leaf=-6.23624


Encoding arabic character issue

I got issue with arabic encoding. Its fine using native server side by datatable, but read as strange character when using your repo. please help.
ÙˆÙ‚Ø§Ù„Øª Ø²ÙŠÙ†Ø¨Ù : Ø£Ù†Ø§ .... ÙˆØ£Ù†Ø§ Ù‚ÙŽØ§Ø¯ÙÙ…ÙŽØ©ÙŒ Ù…Ù† Ù…ÙŽØ§Ù„ÙÙŠÙ’Ø²ÙÙŠÙŽØ§

hey,
try the solution below.    thanks for using the library,

This gave me error

when I use "encode" it is not error, or just return the original data.

well, this solved by removing charset setting in the src > Mysql DB setup

please tell me is this a permanent solution for me or could you provide better solution?

It is, for now.
I can add an option for charsets later.

Thanks..
And I want to ask about

how to use dt features like modify column, putting in index number instead of id from db, etc?

I havent used the dt features before.   you can try these:
$dt->add('DT_RowID', function ($data){
    return 'rowid_'.$data['id'];
});

$dt->add('DT_RowClass', function ($data){
    return 'rowclass_'.$data['id'];
});

$dt->add('DT_RowData', function ($data){
    return 'rowdata_'.$data['id'];
});

$dt->add('DT_RowAttr', function ($data){
    return 'rowattr_'.$data['id'];
});


Fix InlineUiContainer measure/arrange with padding

What does the pull request do?

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes: #9208

You can test this PR using the following package version. 11.0.999-cibuild0024853-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0024860-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0024862-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


Image is getting blank on downloading as pdf, but when i render the jsx, the image is shown

JSX

OUTPUT PDF

Did any one solve this issue ??

same here for me. Images are not being printed in the pdf


SM-287 / SM-290

Proposed Changes
Impacted Routes

Caveats

overall quite good, specially with tests. I made some tweaks to better handle certain edge cases, and added another couple tests.


Feature Request: Provide a useNotification() abstraction that works outside of script-setup

Problem / TLDR
useNotification() cannot be used outside of script setup. Using createDiscreteApi as the proposed alternate has multiple downsides (configuration, bundle-size).
It would be useful to have a better useNotification() abstraction that also works outside of script setup, e.g., inside (Nuxt 3) plugins.
Description
We have a Nuxt 3 app with a tanstack/query-plugin. We want to trigger notifications from there when queries fail (as is recommended by them: https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#defining-on-demand-messages).
We cannot use useNotification() inside the plugin as naive-ui does not allow usage of useNotification() outside of script-setup. For this they recommend to use createDiscreteApi (see https://www.naiveui.com/en-US/os-theme/components/discrete). As far as I can tell useNotification() does not work outside of script-setup as it uses the vue-inject pattern.
Based on this our solution so far is to use useNotification() inside our script-setup and createDiscreteApi inside the plugin. This approach has multiple problems:

bundle size: using createDiscreteApi inlines message, notification, dialog and modal into the entry-point-bundle (see screenshot 1 below)
configuration is not shared between useNotification and createDiscreteApi
naive-ui has an ominous warning inside their docs about not using both in the same app
to work createDiscreteApi created a new, separate vue-app (see their code on this), which cannot be good

(2) can be resolved by sharing config between the n-notification-provider and createDiscreteApi, e.g., via app.config.ts. The other points cannot be improved upon as far as we could tell.
I see two possible solutions:

the "real" solution would be to find a way to be able to use useNotification() inside a plugin

should be possible, other composable can also be used inside plugins (see plugin docs)

worse but better than status quo would be a tree-shakable createDiscreteApi

Would it be possible for this module to provide a better useNotification() abstraction that works both in script setup and outside of it?
And if this is not possible: Would it be possible to at least tree-shake createDiscreteApi?
Assets
screenshot 1: naive-ui entrypoint bundle

In my opinion, the first solution is not feasible as useNotification should be called from inside n-notification-provider in order to inject the api. Regarding the second solution, there is a single export (createDiscreteApp) so I see that tree-shaking is not an option.
The solution I see is to create a child of n-notification-provider  and trigger the notification on a custom event.
<!-- app.vue -->

<template>
  <client-only>
    <n-notification-provider>
      <Notification/>
    </n-notification-provider>
   </client-only>
</template>

<!-- Notification -->

<script setup>
const notification = useNotification();

window.addEventListener("naive:notification", ({ detail }) =>
  notification.create(detail)
);
</script>

// plugin.client.ts

import { defineNuxtPlugin } from "#imports";
import type { NotificationOptions } from "naive-ui";

export default defineNuxtPlugin(() => {
 //
  window.dispatchEvent(
    new CustomEvent<NotificationOptions>("naive:notification", {
      detail: {
        type: "error",
        title: "notification",
        content: "hello",
      },
    })
  );
//
});

Aha, I didn't get your example but now I do, thanks!
I tested this out on our app now and it works like a charm. What was a bit misleading to me about your example above was that you have a client-only tag around your whole app.vue.
I structure it like this now to make this nicely usable around our app in places that cannot use useNotification() directly. I'm documenting it here so that it may help other people & maybe you can point out some other ideas of improving this (or come up with a useful, module-fitting abstraction you want to add).
So without further ado, here's the step-by-step manual to make this work (nicely):

Create a dispatch.ts utility to (a) reduce boilerplate of window.dispatchEvent(...)  and (b) have a single place that specifies the custom eventName to be used// file: ~/components/TheEventBasedNotification/dispatch.ts
import type { NotificationOptions } from 'naive-ui'

export const eventName = 'naiveui:notification'
export default (detail: NotificationOptions) => window.dispatchEvent(new CustomEvent<NotificationOptions>(eventName, {
 detail,
}))

Create the listener client-only component Listener.client.vue (notice the .client.vue) that listens for eventName// file: ~/components/TheEventBasedNotification/Listener.client.vue
<script setup lang="ts">
/**
 * This is a workaround for a naive-ui limitation: `useNotification` only works within `script setup` of the app. So we cannot
 * use it inside nuxt-plugins, such as our [vue-query](~/plugins/vue-query.ts) plugin.
 *
 * This workaround works by:
 * 1. registering an event listener here
 * 2. dispatching events using the `./dispatch.ts` method in places that cannot use `useNotification()` directly
 * 3. if this component already mounted it will catch the event and create a notification based on it
 *
 * This workaround was proposed & discussed with the maintainer of `nuxt-naiveui` here: https://github.com/becem-gharbi/nuxt-naiveui/issues/36#issuecomment-1846970417
 */
import type { NotificationOptions } from 'naive-ui'
import { eventName } from './dispatch'

const notification = useNotification()

// @ts-expect-error This is a custom handler that does not match any default event-handler-types
window.addEventListener(
  eventName,
  ({ detail }: { detail: NotificationOptions }) => notification.create(detail)
)
</script>

Add the Listener.client.vue inside your app.vue, as a child to the n-notification-provider// file: ~/app.vue
<template>
    <NNotificationProvider v-bind="notificationConfig">
      <!-- Add the event based listener as a child of the naive-ui notification provider here: -->
      <TheEventBasedNotificationListener />
      <NuxtPage />
    </NNotificationProvider>
</template>

Use the dispatch utility in places you cannot use the regular useNotification() of naive-ui:import dispatchNotification from '../components/TheEventBasedNotification/dispatch'

export default defineNuxtPlugin(() => {
    // this works now 🎊
    dispatchNotification({
      type: 'error',
      title: "notification",
      content: "hello",
    })
  }
})


[Not Listening] on v.10.0.19041.84

Hi,
Running an install on a new PC termserv v.10.0.19041.84 and ran standard install.bat, followed by autoupdate.bat using the latest version from asmtron which completes with the below results:
Automatic RDP Wrapper installer and updater

[+] TermService running.
[+] Found listener session: AllowTSConnection (ID: 1).
[+] Found windows registry entry for "rdpwrap.dll".
[+] Found file: "C:\Program Files\RDP Wrapper\rdpwrap.ini".
[+] Installed "termsrv.dll" version: 10.0.19041.84.
[] Read last "termsrv.dll" version from the windows registry...
[+] Current "termsrv.dll v.10.0.19041.84" same as last "termsrv.dll v.10.0.19041.84".
[] Start searching [10.0.19041.84] version entry in file "C:\Program Files\RDP Wrapper\rdpwrap.ini"...
[+] Found "termsrv.dll" version entry [10.0.19041.84] in file "C:\Program Files\RDP Wrapper\rdpwrap.ini".
[*] RDP Wrapper seems to be up-to-date and working...
however, when running rdpconf.exe I receive "Listener State: not listening".
Any clues?
Thanks in advance.

Sure, the best clues are, make an exception with Windows Defender or whatever "AV / Security" product you choose to use; my view though is that you shouldn't be using ANY third party tool for AV / Security as those tend to provide both a false sense of security as well as more potential security holes.  Run as a standard user (not admin) for normal things, that alone will save you from most problems and for sure practice safe computing!
Oh, and you must have a trusted 3rd party INI file, the stock project one doesn't cover many if any versions of Windows in use today (or it shouldn't).
Please don't turn off Windows updates either, delay feature updates as long as you can, but you need security updates enabled as Microsoft is so bad that there is regularly many critical security fixes every month!

Same issue here - I got it working by replacing the rdpwrap.ini file with this one:
https://github.com/affinityv/INI-RDPWRAP/blob/master/rdpwrap.ini

my issue was that it would want the remote user to kick off the local user.
I tried the INI suggest above but once implemented. the remote user (seperate account on the PC) logs in and the current local users screen changes to the remote user desktop and they cannot move or anything. They can watch what the remote user is doing but they cannot move until the remote user disconnects then they see their user desktop again

Applicable to https://github.com/stascorp/rdpwrap/issues/1004


Support num_train_epochs

Closes https://github.com/huggingface/trl/issues/1740

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Yeah I think it's the numpy issue. Merging main and trying again.

Alright CI finally passed. The failing one was because hf.co timeout. Everything looks good. Merging now.


Update Heatmap legend after style changes

Related to: https://github.com/CartoDB/cartodb/issues/13763 and https://github.com/CartoDB/onpremises/issues/518

[x] Dev
[x] Frontend CR
[x] Deployment to staging
[x] Acceptance
[ ] Deployment to production

Acceptance

Create a New map from a dataset with points
Go to the layer and then go to the Style view.
Change the Aggregation to Heatmap
Go to the Legend view.
Add a Custom Chloropleth Legend
Go back to the Style view and change the color ramp.
Colorbar at Legend must be updated with new color properties

Acceptance passed!

Shipped and test at production


Get posts by tag

Hi,
Thanks for this package, it's great. Quick question is it possible to get a list of posts by tags? I don't know which collection or page the tag might be in, but I just want to return 5 posts by a certain tag.
Thanks

Hey @joshhornby! This isn't possible (yet) unfortunately, we had a PR to add Taxonomy support recently but had to revert due to breaking changes. I'll be sure to update you in this issue when this gets resolved, but can't promise a timeline atm.

@joshhornby PR #36 should add the functionality you ask for.


Bring configuration improvements from 2.4

No actual code changes or new features are made or added. Instead, the scripts have been modernized only with the configuration bug fixes ported over.
The generated scripts are functionally the same, just cleaned up and refactored.

Understand, we do not make major changes to the configure script or build system in a patch release. These changes are fine for CUPS 2.4, but not for CUPS 2.3.x.


Improve MCMC handling

MCMC in GPflow has a couple of snags that could be much improved:

you no longer get an acceptance rate, you can get a proxy by calculating len(set(logprobs))/len(logprobs), but this only works in hindsight, and makes it difficult to tune parameters like epsilon & to watch what's going on (e.g. whether acceptance rate is going up or down)

it would be great to have some way of callbacks for MCMC, too

--> maybe have an outer (python) loop around inner calls to the tensorflowed HMC for, say, sets of 100 iterations (and then output acceptance rate etc.)?

model.assign() is a) slow and b) becomes slower, which makes it really impractical to actually evaluate anything as a function of your samples!

When assigning a row of the returned DataFrame to the model, you have to remember to drop('logprobs', axis=1)... might be good to add that to the documentation/notebook example.
Also, related to training ... it would be so helpful to have a way to interrupt an optimizer by pressing Ctrl+C and getting the latest state back ...

And when manually iterating over calls to HMC().sample() (e.g. to print out acceptance rate in between), the graph gets bigger & calls become slower and slower.

Also see #555

Absolutely agree with all these points. One thing that would be nice is to have a callback like gpflow_monitor where you can evaluate what you're interested in (e.g. the posterior at a few test points) without having to go back and loop over samples. With big models I've found that storing all the samples gets tricky (e.g. trying to take 1e4 posterior draws from a model with 1e5 params is problematic). Perhaps there should be a forget_samples option for these situations.

This is all moot now that we're based on top of tensorflow 2 and piggyback on tensorflow_probability's MCMC routines.


fix(Checkbox): handle change on root element

Fixes #3502.

Codecov Report

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

@@            Coverage Diff             @@
##           master    #3693      +/-   ##
==========================================
+ Coverage   99.83%   99.83%   +<.01%
==========================================
  Files         175      175
  Lines        3116     3120       +4
==========================================
+ Hits         3111     3115       +4
  Misses          5        5

Impacted Files
Coverage Δ

src/modules/Checkbox/Checkbox.js
100% <100%> (ø)
: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 905917a...62b4471. Read the comment docs.

I'm not sure that the solution is good, I think that what can be fixed using css is better, but it is your decision.
Thanx for the fix!

I think that what can be fixed using css is better, but it is your decision.

I can agree with it, but we should match SUI behavior 😺


Tooltips when using deck.gl in a Routes framework

Hello,
I'm using deck.gl react together with the routes library (similar to what's done here).
I have a line like this in my Routes.js file:
<AppliedRoute path="/my_map_src/" exact component={MyMap} props={childProps} />
And in my MyMap.js file I have this (irrelevant sections removed for brevity):
import DeckGL, {GeoJsonLayer} from 'deck.gl';
...
export default class MyMapApp extends Component {
  constructor(props) {
    super(props);

    this.state = {
      hoveredObject: null
    };
    this._onHover = this._onHover.bind(this);
    this._renderTooltip = this._renderTooltip.bind(this);
  }

  _onHover({x, y, object}) {
    this.setState({x, y, object: object});
  }
...
  _renderLayers() {
     return [
        new GeoJsonLayer({
            id: 'getjson_data',
            data: my_data,
            pointRadiusMinPixels: 3,
            pointRadiusMaxPixels: 15,
            getFillColor: [255, 0, 255],
            opacity: 0.95,
            getRadius: 30,
            pickable: true,
            polygonOffset: 5000,
            onHover: this._onHover
        })]
     }
 _renderTooltip()
  {
    const {x, y, object} = this.state;
    console.log("Tooltip:",object);
    if (object)
    {
            return (
            object && (

Interesting thing

Seen at: {object.properties.seen_at}Z

Type: {object.properties.type}

            )
            );
        }
    }

  render() {
    const {mapStyle = my_style} = this.props;

    return (

        <DeckGL layers={this._renderLayers()} controller={true}>
            <StaticMap
                reuseMaps
                mapStyle={mapStyle}
                preventStyleDiffing={true}
                mapboxApiAccessToken={config.mapbox.TOKEN}
            />

            {this._renderTooltip}
        </DeckGL>

    );
  }
}

I previously had my Deck.gl map displaying as a single page app, and that worked fine. But now the tooltips don't show up. The _rendertooltip() function is being called (I can see the console log output is correct) but the tooltip just isn't displayed.
What have I done wrong here? Does the Deck.GL tooltip need to be called or set up differently when using Routes? If so, what's the best way to do this?
Thanks!

I don't see any problem in your code. Maybe it's a CSS issue? Can you find the dom element rendered by _renderTooltip using react dev tools?

In the end I came up with a custom solution using a separately-defined
 element and playing with the .style.display = "block" and  .style.display = "none" props.
Not sure why my code above didn't work.


fix: Move docker command under utils/scripts directory

Fix #589
Signed-off-by: Cherry Wang<EMAIL_ADDRESS>

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[ ] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[ ] I am not introducing a new dependency (add notes below if you are)
[ ] I have added unit tests for the new feature or bug fix (if not, why?)
[ ] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

Hi @siggiskulason, would you please have a look if this change effect the snap script? If yes, you may need to update the snap script after the PR merged.


Poor performance after upgrading to 31.2.6

Before upgrading to 31.2.6 it was running with great performance on my M1 Max MBP with 64GB ram. It has some issues with saving state etc but performance was great. After Upgrading to 31.2.6 performance is terrible. It launches about 2 minutes and UI responses so badly, that it is almost not usable.

The same issue with me.  And my machine is M1 MAX MBP with 64GB ram.

I found "solution". I removed emulator folder from ~/Library/Android/sdk/emulator. Ran Android Studio and install Android Emulator again. Now good performance is back.

Ok, Today, I have updated the EMULATOR to 31.2.7 and then addressed.


Add apply/cancel functionality when editing a record in databrowser

 Issue by kbrandwijk
Sunday Jun 11, 2017 at 17:32 GMT
Originally opened as https://github.com/graphcool/ui-feedback/issues/49

Now, all changes are applied immediately, which is error sensitive.

This feedback has been incorporated into the editing workflow of Prisma console.


Upgrade Home Assistant to 0.112.1

Upgrade Home Assistant from 0.112.0 to 0.112.1
Release notes available via .
This issue was generated by my Home Assistant DevOps automations.

Fix bug with top margin in templates I shared.
https://twitter.com/jamescallaghan/status/1278822260208480256


Describe Data

Definition of done:

the quantity of data (for example, the number of records and fields in each table)
or when worked on for 4 hours


Get repository info from TFVC Provider

We need to have repository information to find a suitable build configuration.

tfvcProvider._model.IncludedGroup.resources[i].PendingChange.localItem contains a local location of changed files;
tfvcProvider._model.IncludedGroup.resources[i].PendingChange.serverItem contains a server URL of changed resource

Implemented at 62d153feb492554ca6604b34c02434e725c0b861


Add alternate regex for TerraformFailedToDeleteResources

Per OSD-22828, sometimes an install can fail if Terraform can't properly cleanup after itself (e.g., because the user attached the bootstrap node's security group to an unrelated network interface). While TerraformFailedToDeleteResources already covered this scenario, it seems that Terraform gives a slightly different error message in some cases, tripping up the existing regex. This PR adds an additional regex to TerraformFailedToDeleteResources that should recognize the alternative error message.
/label tide/merge-method-squash

/label tide/merge-method-squash
/retest

/lgtm

This is going to prod right now via https://gitlab.cee.redhat.com/service/app-interface/-/merge_requests/105713


LaTeX in documentation on hover

The majority of the code I write is mathematics-rich. I would like to see mathematical notations in the documentation on hover. Is it possible to accomplish?

It’s up to the client to render the markup we send, we don’t do any processing of the docs ourselves

Closing as i don't think it is actionable on our side.


Use correct flag for assertions with errcheck

errcheck uses the -asserts flag for enabling checking of assertions, but the linter passed -assert (without 's').

Thanks! I'll merge this over the weekend.


Small fixes for "Center to Selection" doesnt work properly and BVH location

First of all, I'm not a programmer, so code might be silly. I just wanted to fix bvh location which is offsetted from parent composite object and also "Center to Selection" button was not working properly, even if you uncheck it, composite was always being created in center of selected object/s. Also tried to use bounding box center of selected objects instead of location their position average. If this whole description is confusing then I can record a video demonstration about the issues and fixes.

"Center to Selection" button was not working properly, even if you uncheck it, composite was always being created in center of selected object/s

Not sure what you mean by this, seems to be working fine on the latest commit?
https://github.com/user-attachments/assets/c51a0960-bddf-4fd0-acf2-b36e61072a16
And sorry the reviews are taking a bit too long.


Support React Native

Description
One of the big advantages of React is that it allows rendering on multiple platforms (browser, node, ...). We should also see if we can already render Piral on React Native and - if not - what we'll need to do in order to get it working.
Background
React Native may be a super interesting option to easily build a cross-platform experience. Imagine pilets written with proper abstractions, where an app shell running in the web places components from the web component library and an app shell running in React Native (i.e., on a mobile device) places native components. As a result not only is the development distributed and the user experience tailored, the system is truly cross-platform, too.
Only drawback will be the update process. Most likely the app shell in React Native needs to be coming with all pilets being fused in already. Otherwise, I guess that the different market places (e.g., App Store) will refuse to accept this app (usually, dynamic loading of code is prohibited).
Discussion
Anything to add here? Would welcome any discussion.
I've some experience with React Native, but the last time I've used it is like 2 years ago.

Playing around. Started with React Native for Windows. With exception of the tooling this is working remarkably well...
Current progress:

Everything works except a small compatibility issue with useMedia (apparently window is defined, but matchMedia is not) - this will be an improvement in general
Biggest issue so far is the use of codegen file for the shared dependencies - need to add this to the metro bundler's capabilities ...
Since the tooling is quite important the Piral CLI cannot be used directly; also some standard things need to be properly overriden (e.g., to not use <div> or write text directly) - idea is to have piral-native as a counterpart to piral, which essentially builds on top of piral-core (like piral), however, makes the right overrides

Not yet sure how much time we want to invest here. In general this is working really well, especially when used with the react-router-native package. Loading parts of the application from the feed feels magical ...

Current status:
For building an app shell using Piral everything seems to work pretty much out-of-the-box.
The next step is to identify how to build a pilet using this. The key point is that "standard" emulator is not available. Potentially, this is another way where a different bundler makes sense (something like piral-cli-metro). However, it would go far beyond the given issue / spike.
We will therefore try to find an easy way to make this possible with the standard tools of React Native even though it would be more inconvenient than a standard approach using the Piral CLI.


fix errors with notebooks

This PR fixes errors that were found as part of PR #100, mainly changes to web addresses and a couple of odds and ends. This will still fail on upperair_500_obs_contours.ipynb as it needs a function from MetPy 1.0 to work properly, but otherwise, this gets everything up to date.
The only major updates were to two notebooks that used GINI satellite data that was no longer available on the UCAR THREDDS. I changed them to use GOES-16/17.
Closes #101

Just to check, is the occasional removal of .metpy.parse_cf() related to https://github.com/Unidata/MetPy/issues/1354#issuecomment-617302870, or some other issue?

No, I think those were just not needed as that parsing happens under the hood in the declarative syntax.


TFS Build Fails at Get Sources Step. Workspace Delete!

My Build Failing and when I see Get Sources, The Workspace Source folder is being deleted(line 144). My Code is in TFVC. It it not pulling the code.
Can you please check the log-
1_Build.txt
I have checked for permissions and it looks good. Please let me know. I am using TFS OnPrem 2017.1 Thanks

Hi @vinaysandela closing this one here since it's not related to tfx-cli.


Puppeteer are now restricted on certain websites?

Hello. From past a half year we used Puppeteer to automate screenshots of hateful and discriminating messages and posts from certain people on several Social Media sites, like Twitter. But now this is what we have when we try to make a screenshot

I am not talking about any actions that require signin or any kind of Bot behavior - just a screenshot of the link!
The question is - is this some kind of sophisticated Puppeteer detection from Twitter side, or this is baked-in Puppeteer rule from now on? (I see some weird things in DevTools and it looks like it's Puppeteer limitation).

Can this be the same issue with some https connections? https://github.com/GoogleChrome/puppeteer/issues/3880

@vsemozhetbyt looks like it! I can reproduce your issue also.

@bdrtsk can you please come up with any simple script that reproduces the problem? It'll help tremendously

@aslushnikov sure! Code is basic
(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://twitter.com/kvlly/status/1091730024175161344');
  await page.screenshot({path: 'twitter-post.png'});
  await browser.close();
})();

My result of screenshot is:

As you can see, there's somethings going on here...

You can just run this, open console and see many failed connections for images and CSS:
'use strict';

const puppeteer = require('puppeteer');

(async function main() {
  try {
    const browser = await puppeteer.launch({ headless: false });
    const [page] = await browser.pages();

    await page.goto('https://twitter.com/kvlly/status/1091730024175161344');
  } catch (err) {
    console.error(err);
  }
})();

I am not sure if this is connected, but I've reported some similar issue just before the involved version and it was fixed just in the involved version: https://bugs.chromium.org/p/chromium/issues/detail?id=923685
Could it be that the fix somehow not to be included yet?

Found the culprit: https://chromium.googlesource.com/chromium/src/+/cee722a155e623809cc241d27bdb35fe278135f4
Looks like we picked a bad Chromium revision.

Nice found! Hope this will be resolved.

Nice, Thank you Joel!


user setup unable to auto-update in multi-user environment

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.70.1 (user setup)
OS Version: Windows Server 2022 Datacenter

Steps to Reproduce:

multiple user login with RDP
other user open Visual Studio Code for their own project.
CodeSetup auto-update, trying to close other user's ongoing Code.exe process, failed to auto-update

I think the third bullet point at https://code.visualstudio.com/docs/supporting/requirements#_not-supported applies to your scenario.

@gjsjohnmurray thanks for point that out, I never thought a user setup would be an issue in this case, guess this will never get fixed.


proposal: support ETS (Erlang Term Storage) module

Since we have otp and erlang packages now, I think we should support ets feature.
But the thing I'm not sure is that, should it be part of this package, or we should create one more repository for ets ?

I did a search for "ETS" and found this package, does it meet your needs? https://packages.gleam.run/?search=ETS

Ah, yes, thanks
Out of curious, ETS is part of Erlang, should we make it be part of Gleam officially ?
What I mean is, usually people would use built-in / stdlib / maintained by official team members packages,
if they don't provide (or those packages aren't convenient) then people would search 3rd-party libs for alternative,
So what I'm thinking is, ETS is a basically feature in the Erlang, should this package wrap all of Erlang features
and provide basic implementation for Gleam users ?
Like #15, we have a plan to add file module into this package, but before we finished that, maybe we can find some packages for alternative, then should we just let #15 go ?

#15 has been completed, see this excellent library https://github.com/bcpeinhardt/simplifile
There's no advantage to having something be maintained by core. We already have many large projects to maintain, so anything else that gets maintained by us will likely have much less time spent on it than if it is done by community members that don't have as high a workload.
There's also no particular goal to wrap all Erlang APIs. There's a great quantity of them, many are not useful, and some are not typable. Instead this package aims to provide some of the most widely used parts, to avoid many packages having to reimplement them.

@lpil Thanks for your reply, I understood. I'll close this issue

Thank you 💜


Fix flaky tests (maybe?)

Almost every time the test suite runs on GitHub Actions, one of the tests in StoreImportTest fails. Usually, retrying failed jobs fixes it. 🫠
It would be nice to fix the flaky tests once and for all though.

Really? A sleep(1) fixes this? 😅


Wiki: Jarvis

If I type wiki jarvis, I should be getting wiki data from the Jarvis' page. But it doesn't.
PS: There exists a wiki page for Jarvis.
Screenshot:

still not working:

wiki jarvis now triggers the Wikipedia module but searching for Jarvis on wikipedia results in a Disambiguation Error. That'd have to be handled separately!

https://en.wikipedia.org/wiki/Jarvis

oh okay

Is there something that can be done such that the user gets to choose from the list in case of such errors?

Do you mean something like the results that are shown in songs by linkin park? (Cards)
Or, in one message only?

The cards would be good for detailed information, but then it would open the browser/ Wikipedia app. In that case, inside the message would be better.

I think the problem is that the input has the word "jarvis" in it. This is a bug for any of the searches including 'book jarvis', 'movie jarvis' etc. This is a separate issue from the wiki feature and should be closed.

Fixed in a3bd4e7af02bb879b6b6b62f1a2de65f79728b33.
User can now choose from search results in case of ambiguity!


Add semantical highlighting for method arguments

Metadata Head

Related issues:  #172

Description
The current support for semantic highlighting in Nord doesn't highlight method arguments.
Compare e.g. formatting of the argument entries in Nord theme and Mayukai Theme:
Nord:

Mayukai Semantic Mirage:

I tested only Python and do not know, if this is relevant for other languages as well.
Benefits
I find this particular highlighting to be very useful and would love to see it implemented in Nord, too.
Possible Drawbacks
As semantic hightlighting can be also disabled in VS Code gloally, I do not se a drawback
Thanks! :-)

Hi @dynobo :wave:, thanks for your contribution :+1:
Syntax elements like variables/constants are colored by nord4 which is by design. That also applies when used as function/method parameter. This style was already used before #172 was merged.
If you'd like to change VS Code allows to locally override specific theme keys without the need to change any of the theme  code. Please see the Nord VS Code customization documentation as well as the official VS Code docs about how to customize a theme extension.

Thanks for the info!


Adding tvos support for 'Swift' subspec

Ah! Isn't it inherited from the parent specification?
If so we'll probably need to re-specify it for watchOS too then.

Could you add the watchOS platform to the Swift subspec too, and add a ## Master entry in the CHANGELOG for that change? Thanks

Hi, thanks for merging. Will definitely add watchOS platform when have a minute.

Don't bother: I finally did it myself along with the CHANGELOG :wink:

4.5.1 released to CocoaPods! Thx again for the PR

That's fast! Thank you! Time to update my Podfile ;)


zenodo delivery fails

Since approximately three months, Deltares requires SAML authentication for zenodo. Therefore all deliveries failed. Probably the current webhooks have to be removed and turned off and on by the github Deltares support group. I will let you know when I have confirmed this is indeed a working strategy.

Zenodo webhooks of all deltares github repositories using them were re-created by the github Deltares support group. It should work again for the next xugrid release


Showing dialog box everytime untill user dont update app.

I want to show dialog box everytime whenever user opens the app untill he updated the app.

By default, AppUpdater shows a dialog everytime a new update is available: https://github.com/javiersantos/AppUpdater#setting-the-frequency-to-show-updates


Problem while installing asp.net

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
dotnet new console -o myApp (after installing when I write this in cmd.

Hi @divyajyotisingh01 have you read the note in the bottom of the tutorial? You need to run the tutorial steps from the directory you have access to. Example solution is go to your user profile before running any steps of the tutorial:
cd %USERPROFILE%

Seemed access denied from the error, try to execute the command in another folder with permission or try to execute  with admin permission


Inconsistent status for non-edited window

Hi, I've noticed strange thing. With solarized theme, normally status line of non-edited window looks like this

But from time to time (usually after I do ":new file") the status line becomes like this

This appears to be random. At least I can't reproduce it at will. This line shows up only for files that have modifications and disappears after I save file. It is cosmetic, but makes things inconvenient since there's no clear separation between top and bottom windows.
There's nothing special in my .vimrc. Just in case I've placed it at http://andal.linuxx.org/vimrc the .gvimrc can be found at http://andal.linuxx.org/gvimrc

+1

Does this still happen?

Yes. I've seen it show up few times recently. Though I got used to it and
don't pay much attention.
On Wed, Jan 27, 2016 at 11:59 PM, Christian Brabandt <
<EMAIL_ADDRESS>wrote:

Does this still happen?
—
Reply to this email directly or view it on GitHub
https://github.com/vim-airline/vim-airline/issues/746#issuecomment-175902789
.

when this happens again, can you show me the output of :hi airline_b and :hi airline_c

OK I'll do. Do you take into account, that this is status for inactive window?
Sent from Mail.Ru app for Android Thursday, 28 January 2016, 01:41PM +01:00 from Christian Brabandt <<EMAIL_ADDRESS>:

when this happens again, can you show me the output of :hi airline_b and :hi airline_c
—
Reply to this email directly or  view it on GitHub .

oh no, i didn't.

On Thu, Jan 28, 2016 at 04:41:15AM -0800, Christian Brabandt wrote:

when this happens again, can you show me the output of :hi airline_b and :hi airline_c

Ok. Just in case:
:hi airline_b
airline_b      xxx ctermfg=254 ctermbg=241 guifg=#eee8d5 guibg=#657b83
:hi airline_c
airline_c      xxx ctermfg=240 ctermbg=235 guifg=#586e75 guibg=#073642

Actually, the lines are no different from situation when everything is OK. I'll try to experiment and see maybe at some point I'll capture different ones.

I've managed to capture airline_b and airline_c both in affected window and in "normal" window. It appears that I can return to affected window and leave it and this does not cure the status.
So, here are the values for "normal" window (the one where status line behaves normally)
airline_b      xxx ctermfg=254 ctermbg=241 guifg=#eee8d5 guibg=#657b83
airline_c      xxx ctermfg=240 ctermbg=235 guifg=#586e75 guibg=#073642
And here are the values for window that has strange status when it is inactive
airline_b      xxx ctermfg=254 ctermbg=241 guifg=#eee8d5 guibg=#657b83
airline_c      xxx ctermfg=245 ctermbg=235 guifg=#93a1a1 guibg=#073642
Notice different value for guifg in airline_c.
Anything else I can check?

wait a minute.

And here are the values for window that has strange status when it is inactive
airline_b xxx ctermfg=254 ctermbg=241 guifg=#eee8d5 guibg=#657b83
airline_c xxx ctermfg=245 ctermbg=235 guifg=#93a1a1 guibg=#073642

This is, where no background color is displayed for the filename, correct? Hm, what is your normal background color? :hi Normal
Is this terminal or gui version? If terminal, what version?

Oh and can you please also show :hi airline_c1_inactive for the inactive window?

I'm using gui version (gvim). Here's my normal background color.
Normal         xxx guifg=#839496 guibg=#002b36 font=Fixed 12
Here's the other requested value.
airline_c1_inactive xxx ctermfg=235 ctermbg=241 guifg=#073642 guibg=#657b83
The value is obtained in the window with "normal" status. Unfortunately I've already closed the window with corrupted status, so the value for that window I'll capture when it shows up again. I still can't understand, what causes this "broken" status, so can't reproduce it at will.

ok thanks. When this happens again, try resetting the NORMAL background color:
hi Normal guifg=#839496 guibg=black
That should at least make the statusline visible again.
One thing to note. Does perhaps happen, when you switch colorschemes or set the background color?

No I don't touch colorscheme or background color. This strange status appears in the course of normal editing. I may have up to 6 windows in gvim and I jump between them often, plus some windows are closed, some opened. No other operations. It looks like some race-condition, so sporadic it is.

Here is the value for airline_c1_inactive:
airline_c1_inactive xxx ctermfg=235 ctermbg=241 guifg=#073642 guibg=#657b83
It is no different from normal situation.
I've also tried to reset the "hi Normal". It didn't help at all, the status line was still corrupted. Though it showed that status line is using background color of "Normal". The command you gave changed that color to black, so the status line also became black while normal status lines didn't change color.

hm, I am missing something, I guess the highlight group is correct. I am not sure, what to check more. If you can reproduce this somehow, please tell me


Feature Request: Add amount of vessels to be inserted into stations.

Would be nice if I could set the amount. In the early game, I may only want 1 or 2 of the Intersteller ships, and maybe only 5 or 10 of the Planetary drones. Thank you.

That's a good idea and super easy to implement. Version 1.2.0 should be available now

Thank you.


parse error with typescript code

my code
const hljs =  require('highlight.js') // version is 9.16.2

const lang = 'typescript';
const code = `import React, { useState, useEffect } from 'react';
export const MyComponent: React.FC<{}> = () => {
    const [value, setValue] = useState(0);
    const [anotherValue, setAnotherValue] = useState(0);
    useEffect(() => {
        window.setTimeout(() => {
            console.log('setAnotherValue', value)
            setAnotherValue(value);
        }, 1000);
        setValue(100);
    }, []);
    return (Value is {value}, AnotherValue is {anotherValue});
}`;

const value = hljs.highlight(lang, code).value;

console.log(value);

No highlight
I debug the lib, find that the rule blow is illegal with the code.
hljs.REGEXP_MODE = {
    className: 'regexp',
    begin: /\//, end: /\/[gimuy]*/,
    illegal: /\n/,
    contains: [
      hljs.BACKSLASH_ESCAPE,
      {
        begin: /\[/, end: /\]/,
        relevance: 0,
        contains: [hljs.BACKSLASH_ESCAPE]
      }
    ]
  };

How to do with this?

  return (Value is {value}, AnotherValue is {anotherValue});

Pretty, sure this is JSX (or whatever the equivalent is called in Typescript land), right?  It's already know that our grammar doesn't current support JSX:
https://github.com/highlightjs/highlight.js/issues/1155
Closing this as a duplicate.


AMD Linux Step2b "rvmpe_gpu" doesn't generate 2a_f0 and 2b_f0nsf folders

Is that normal behaviour?
Regular "rvmpe" (on CPU) and model training (on GPU) works alright thought.

Same issue on Apple Silicon M3 Max Macbook Pro
& set([name.split(".")[0] for name in os.listdir(f0_dir)])

FileNotFoundError: [Errno 2] No such file or directory: '/Users/user/Desktop/RVC/RVC-2/logs/test-model/2a_f0'


TextExtractor non riconosce la differenza tra "II" (II) e "Il" (The) - Italian language

Microsoft PowerToys version
0.67.1
Utility with translation issue
TextExtractor
🌐 Language affected
Italian
❌ Actual phrase(s)
Image from which I extracted the text:

Phrase taken from the image:
II Direttorio intensificò la politica di espansione francese in Europa nella convinzione che la sicurezza della Francia potesse essere
✔ Expected phrase(s)
The correct sentence that should theoretically be extracted from the TextExtractor is:
Il Direttorio intensificò la politica di espansione francese in Europa nella convinzione che la sicurezza della Francia potesse essere
The error lies in the fact that IN ANY CASE (ALWAYS) the TextExtractor DOES NOT RECOGNIZE THE DIFFERENCE BETWEEN "Il" and "II".
Error encountered using the ITALIAN language.
ℹ Why is the current translation wrong
IN OGNI CASO (SEMPRE) il TextExtractor NON RICONOSCE LA DIFFERENZA TRA "Il" e "II" PERCHÈ i caratteri "I" e l" sono molto simili.

https://microsoft.visualstudio.com/OS/_workitems/edit/44356107 /loc

actually, sorry looks like i was on auto. this isn't a translation issue, this is an OCR model issue.  We leverage the built in OCR and language packs.  Our goal with Text extractor was never to be perfect but good enough.
this ultimately is outside our control


weird error

Describe your bug here.
i tried compiling and got this error

please help
Command Prompt/Terminal logs (if existing)
C:/haxelib/flixel-addons/3,1,1/flixel/addons/text/FlxTypeText.hx:8: characters 8-29 : Type not found : flixel.sound.FlxSound
C:/haxelib/flixel-addons/3,1,1/flixel/addons/text/FlxTypeText.hx:78: characters 26-34 : Type not found : FlxSound
source/CoolUtil.hx:19: lines 19-154 : ... Defined in this class
C:/haxelib/flixel-addons/3,1,1/flixel/addons/effects/chainable/FlxEffectSprite.hx:137: characters 49-58 : flixel.animation.FlxAnimationController has no field numFrames
source/DialogueBox.hx:144: characters 16-22 : flixel.addons.text.FlxTypeText has no field sounds
source/DialogueBox.hx:244: characters 16-25 : flixel.addons.text.FlxTypeText has no field resetText
source/DialogueBox.hx:245: characters 16-21 : flixel.addons.text.FlxTypeText has no field start
source/DialogueBox.hx:246: characters 16-32 : flixel.addons.text.FlxTypeText has no field completeCallback
source/DialogueBox.hx:223: characters 18-22 : flixel.addons.text.FlxTypeText has no field skip
C:/haxelib/flixel-addons/3,1,1/flixel/addons/transition/FlxTransitionableState.hx:81: characters 20-30 : Field startOutro is declared 'override' but doesn't override any field

Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No

fixed it again


Bugfix for: File picker is not working for virtual UNC directories + improvements

Hi!
It is very helpful package but file picker is unfortunately not working for UNC virtual directories. When you try to expand any folder then error occurs that specified path can't be found. It is caused by replacing double backslash with slash in wrong order.
I think that there is another bug which disallows to expand folder which contains only directories when any filter is applied.
I need package like this so I decided not to duplicate this package but to improve this one so I prepared special pull request with bug fixes and overal package improvements.
Unfortunately in my opinion the logic and code had poor quality. It is very simple package but it was very difficult to understand the logic due to lack of variables naming consistency. The same problem was with path and virtual path deriving methods. There was a lot duplicated operations for folder and file tree nodes.
I hope you will anjoy my pull request and merge it.
Best!

Hi, As you can see from the dates, I haven't worked on this repo for a looong time. I'm currently not active in the Umbraco community and don't have time to work on this. I invited you to become a contributor on this project. This way you can merge the changes yourself and perhaps re-publish the package

Hi,
Thanks a lot for your answer! So I need to make decision now but please tell me if I can create a new package based on this package because I did a lot of modifications which have large influence on it. What about licence should I mention about primary owner? I want to set new package name and maybe transfer this to Umbraco 8 in the future.

As far as I'm concerned, you decide! If you attribute me as original source/inspiration, that would be nice.

As far as I'm concerned, you decide! If you attribute me as original source/inspiration, that would be nice.

Thanks! If I find more time I create new package and mention you and your package as inspiration. Otherwhise I merge this changes.


L5 not supported

Graham, on your website you state that this package has L5 support, but when I try to pull it in it 'crashes' on the 4.2 packages :)

Sorry, my website is quite badly outdated again. I won't be maintaining a Laravel 5 version of this package. I've actually moved this stuff directly into my credentials package as part of Bootstrap CMS.
https://github.com/BootstrapCMS/Credentials/tree/master/src/Models
https://github.com/BootstrapCMS/Credentials/tree/master/src/Repositories


"an account" instead of "a account"

A small correction to make it consistent with the rest of the document.

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

The change looks good; thanks @sebaleoperez.
Publishing in this repository is suspended until Tuesday, May 25. Merging will resume Tuesday, and we'll merge this approved pull request at that time. Thanks.


How to plot multiple charts wit different colors using TradingView lightweight library?

I am trying to plot two different charts(with different lenghth) using following code, but don't know how to specify colors for my charts? Also not sure will following code plot two charts in same TradingView window or not?
this.apiService.predictor(this.selectedStock ,this.startDay,this.endDay).subscribe((results) => {
  const lineSeries = this.chart.addLineSeries()

    for(let result of results[0]['prediction_value']) {
      console.log("the result1 is" , result);
      lineSeries.update({time : result.time , value : result.price})
    }
  const lineSeries2 = this.chart.addLineSeries()

    for(let result of results[0]['real_value']) {
      console.log("the result2 is" , result);

      lineSeries.update({time : result.time , value : result.price})
    }

The result arrays are something like below:
the result1 is {price: 18, time: "2019-09-28"}
the result1 is {price: 68, time: "2019-10-01"}
the result1 is {price: 5, time: "2019-10-04"}
the result1 is {price: 11, time: "2019-10-07"}
the result1 is {price: 8, time: "2019-10-11"}
the result1 is {price: 14, time: "2019-10-14"}

See https://github.com/tradingview/lightweight-charts/blob/master/docs/line-series.md#customization

See https://github.com/tradingview/lightweight-charts/blob/master/docs/line-series.md#customization

What about multiple lines in one chart?

Did you try to create several series? See https://jsfiddle.net/TradingView/srwoh679/


ClassCastException with BigDecimal

I have a column with a numeric type in a table in postgres db, When trying to fetch the data from the table with the corresponding dao.findAll() method, if the numeric value in the table is not null, I get a java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number.
What I have found so far is that in the corresponding generated Interface, in the fromJson method, the numeric value in the incomming JsonObject comes as a string, and the fromJson method tries to get it as json.getDouble() and convert it to BigDecimal, and fails.
Why is this happening and how could be fixed?

The problem was in the conversion of decimal in json. Json converts automatically decimal numbers into strings, but it was expecting a decimal number, which provoked somehow the exception
I didn't know, there was an additional CustomVertxGenerator.java class which extends ClassicAsyncVertxGenerator for vert.x-jooq with a method to handle additional types from/into a String during JSON-conversion. And this was new to me.
When the conversion for numeric types from the postgresql db was fixed in the method of the class, the problem was resolved.


Can't install on MacOS 2019 Community Edition

I can't seem to install this on my mac.

This extension is only for Visual Studio for Windows.


scaled background not working

shouldScaleBackground={true} isn't working for me and it looks like it's not for you either: in the demo in the readme, the background scaled the second time but not the first time. Was this intentional and can you reproduce it? If not, I'll try to make a minimal repro

It works fine on https://vaul.emilkowal.ski/, please provide a reproduction.

@bent101 It requires an element with [vaul-drawer-wrapper] data attribute. Make sure to add this attribute.

it worked thanks .-. shoulda read the docs


Update config.lua

The previous police coordinates were below the ground

Thats not an issue, my police coords are based on the interior i am using (Gabz Police Department)


Automate VS PR Creation from pipelines

[x] Automate Symbol Publishing (Windows Symbols)
[x] Automate VSDrop Creation
[ ] Automate PR Creation

Currently running into issues using the supported build task to actually create the VS PR. Will follow up with the MicroBuild team on Monday.


Conflicts if ffmpeg-kit already installed

I have ffmpeg-kit installed as part of my app prior to adding this package. Due to differences in the codecs included and version, I get conflicts on both iOS and Android when trying to build:
iOS:
"The 'Pods-superfeelapp' target has frameworks with conflicting names: ffmpegkit.xcframework, libavcodec.xcframework, libavdevice.xcframework, libavfilter.xcframework, libavformat.xcframework, libavutil.xcframework, libswresample.xcframework, and libswscale.xcframework."

Android:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeLocalDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
   > 2 files found with path 'lib/arm64-v8a/libavcodec.so' from inputs:
      - /Users/james/Github/superfeel/pkg/app/node_modules/react-native-audio-analyzer/android/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libavcodec.so
      - /Users/james/.gradle/caches/8.8/transforms/1b0d5a573c6122cffc98fd1f08636516/transformed/ffmpeg-kit-full-6.0-2/jni/arm64-v8a/libavcodec.so
     If you are using jniLibs and CMake IMPORTED targets, see
     https://developer.android.com/r/tools/jniLibs-vs-imported-targets

I suppose my request is twofold:

Can you update the library to use ffmpeg 6.0? I was able to get things working by patching the package on iOS to use the version I already have installed and I can confirm that it works
Add ffmpegkit as a peer dependency instead of installing hard coded versions downloaded at build time

As an aside, are you able to recommend a temporary patch I could apply on Android? On iOS it was as simple as editing the podspec but the install process is more involved on Android

Hi! Thanks for the Issue.
The sources are using ffmpeg 6.0 as it is.
How will using ffmpeg-kit-react-native as peerDependency solve the problem?


Having trouble installing

Hello!
This package have been suggested to me by my advisor, so far it seems it has everything I need!
Issue is that I am having the following problem:
Install-Package : Could not install package 'DotSpatial.Data 4.0.656'. You are trying to install this package into a project that targets
'.NETFramework,Version=v3.0', but the package does not contain any assembly references or content files that are compatible with that
framework. For more information, contact the package author.
At line:1 char:1

Install-Package DotSpatial.Data

  + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
  + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

I tried installing .Controls first as suggested in the YouTube tutorial, it had the same issue.
I have the latest .Net version of 4.7, and VS2019, so .NET 6.0 will not be an option at this time, I am trying to add this functionality into an existing project. I am happy to provide any other details I have not added here if needed.
Thank you very much!

Your error says you're working with a .Net 3 project.
If you can't work with .Net 6 you'll have to take version 3 or 3.0.1 of DS and use it with a .Net 4.7.2 project.


Add LSP support to Kotlin

lsp-mode has built in support for Kotlin. This makes it automatically used if you use the +lsp flag.

Oh, also, please add the following to lang/kotlin/doctor.el:
(assert! (or (not (featurep! +lsp))
             (featurep! :tools lsp))
         "This module requires (:tools lsp)")

Nice work. Thanks for the help and quick response!

Thanks for your quick response too!