Enabled Popovers break anchor links on the same page

Describe the bug
 Links to the anchor on the same page [[#Heading 5]] are not working when Popovers are enabled.
To Reproduce
Steps to reproduce the behavior:

Make sure that enablePopovers config is true.
Create a file with text couple screens long (so it can be scrolled) and multiple headings, like # Heading 1 (2, 3, ...).
Anywhere in this file create a wikilink to any heading, like [[#Heading 5]].
On hover popover shows the correct content for this heading.
When link is clicked url in browser is changed to http://localhost:8080/#heading-5, but autoscroll to that heading is not performed.
If enablePopovers config is false anchor links work as expected.

Expected behavior
When anchor link is clicked autoscroll is performed to that anchor.
Desktop (please complete the following information):

Quartz Version: v4.2.2
node Version: v20.11.0
npm version: 10.2.4
OS: MacOS
Browser: chrome

Additional context
Add any other context about the problem here.

I don't think this is supported in quartz yet. You can do this by providing the name to the heading.
i.e: [[page#heading 5]] should work for now.

it is already supported if enablePopovers is false)
this variant [[page#heading 5]] also not working when popovers are enabled

Not sure what you mean here, but enablePopover is set to true, and the link I set is to the header.
https://github.com/jackyzha0/quartz/assets/29749331/623e0563-9874-4a53-a1a5-6ab2b1397572
P/s: take a look at the URL, it resolve the correct link here.

https://github.com/jackyzha0/quartz/assets/23178940/b808f0f3-3f81-4960-a146-e19e100e1ca3
this is working as intended, sometimes it won't appear to scroll because the header is already in view or there is no more page left to scroll

ok, I'll record a video and reopen a bug)
you guys are awesome, but you missed two main points:

wikilink should be to the anchor on the same page where this wikilink is used
there should be enough text between wikilink and anchor, so the scroll should be performed

Did you watch the video carefully? The link is to the same page and clicking on the link scrolls to the header

See also https://quartz.jzhao.xyz/features/explorer which has a lot of anchors to it's own headers

of course I watched both videos, but a header already in view in the second one)
but in general it seems to work in your case, that is strange
I'll record a video later and I'll read about explorer (but I reproduce this with default configuration)
sorry, have to go now
thank you very much for your time)

https://github.com/jackyzha0/quartz/assets/69584771/6be40aea-cff2-4391-8c03-73460d861737
This is with enabled preview, is it enough to reproduce a bug or should I provide more info?

https://github.com/jackyzha0/quartz/assets/69584771/bc51fe62-b883-4306-9954-9aa4b3c076da
And this is how it works with disabled popovers (as expected i think)

can you also show the markdown code you wrote for this?

[[#Heading 5]]

[[#Heading 9]]

# Heading 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus egestas non quam vitae dapibus. Proin pulvinar dolor sit amet sagittis consectetur. Integer luctus aliquam rhoncus. Quisque ut est malesuada, hendrerit metus a, maximus odio.  Praesent faucibus imperdiet vehicula. Mauris feugiat felis ut ex sollicitudin, quis fermentum odio dictum. Proin eu magna quam.

# Heading 2
Praesent nec ipsum facilisis, porta sapien quis, luctus nunc. Aliquam quam est, tempor sed est vel, porttitor ullamcorper lorem. Nam commodo vitae quam nec eleifend. Suspendisse ultricies ullamcorper posuere. Sed vel eros id augue efficitur tristique. Ut lacinia ex non eros vulputate, vel gravida dui porttitor. Nunc sapien lectus, consectetur non ex sed, tristique convallis magna. In quis facilisis augue. Vivamus sit amet nulla sem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Ut semper metus ac scelerisque congue. Nulla blandit aliquam lectus eget mollis.

# Heading 3
Donec sagittis sapien sit amet felis vulputate gravida. Phasellus facilisis eleifend velit, in luctus eros ullamcorper nec. Morbi venenatis elementum scelerisque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec malesuada suscipit ipsum, nec mollis felis euismod ut. Donec cursus leo eros, eu accumsan purus pharetra a. In eleifend ex sit amet velit dictum faucibus. Cras urna odio, porta id pulvinar eu, pulvinar sit amet turpis.

# Heading 4
Nulla pulvinar tellus nec egestas interdum. Sed sit amet dolor nisi. Morbi purus lectus, viverra id ornare vel, porta quis erat. Vivamus a odio convallis, rhoncus elit sed, pretium mauris. Vivamus urna odio, fringilla et mollis non, laoreet ut ante. Cras sit amet dapibus justo, at lacinia odio. Aliquam sed lobortis elit. Duis nec felis leo. Nam nec quam egestas, placerat arcu sit amet, scelerisque magna. In diam tellus, condimentum ut rutrum sed, gravida fringilla purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas malesuada orci eu mollis laoreet. Pellentesque a semper lacus. Nunc in interdum est, ac hendrerit ligula. Nunc et arcu sed ipsum sollicitudin fermentum sed at ligula.

# Heading 5
Aliquam erat volutpat. Curabitur faucibus eleifend velit vitae aliquet. Sed eu euismod lacus. Nunc eros purus, volutpat id bibendum et, malesuada iaculis dui. Suspendisse rhoncus dolor at augue pulvinar egestas. Suspendisse potenti. Aenean lacinia libero in velit facilisis molestie. Etiam eu justo sed dui gravida condimentum. Sed placerat elit in lectus congue faucibus. Maecenas porta blandit erat non accumsan. Cras convallis, erat vel pharetra vehicula, urna est consequat urna, ac convallis purus nisl at elit. In hac habitasse platea dictumst.

# Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus egestas non quam vitae dapibus. Proin pulvinar dolor sit amet sagittis consectetur. Integer luctus aliquam rhoncus. Quisque ut est malesuada, hendrerit metus a, maximus odio. Praesent faucibus imperdiet vehicula. Mauris feugiat felis ut ex sollicitudin, quis fermentum odio dictum. Proin eu magna quam.

# Heading 7
Praesent nec ipsum facilisis, porta sapien quis, luctus nunc. Aliquam quam est, tempor sed est vel, porttitor ullamcorper lorem. Nam commodo vitae quam nec eleifend. Suspendisse ultricies ullamcorper posuere. Sed vel eros id augue efficitur tristique. Ut lacinia ex non eros vulputate, vel gravida dui porttitor. Nunc sapien lectus, consectetur non ex sed, tristique convallis magna. In quis facilisis augue. Vivamus sit amet nulla sem. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Ut semper metus ac scelerisque congue. Nulla blandit aliquam lectus eget mollis.

# Heading 8
Donec sagittis sapien sit amet felis vulputate gravida. Phasellus facilisis eleifend velit, in luctus eros ullamcorper nec. Morbi venenatis elementum scelerisque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Donec malesuada suscipit ipsum, nec mollis felis euismod ut. Donec cursus leo eros, eu accumsan purus pharetra a. In eleifend ex sit amet velit dictum faucibus. Cras urna odio, porta id pulvinar eu, pulvinar sit amet turpis.

# Heading 9
Nulla pulvinar tellus nec egestas interdum. Sed sit amet dolor nisi. Morbi purus lectus, viverra id ornare vel, porta quis erat. Vivamus a odio convallis, rhoncus elit sed, pretium mauris. Vivamus urna odio, fringilla et mollis non, laoreet ut ante. Cras sit amet dapibus justo, at lacinia odio. Aliquam sed lobortis elit. Duis nec felis leo. Nam nec quam egestas, placerat arcu sit amet, scelerisque magna. In diam tellus, condimentum ut rutrum sed, gravida fringilla purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas malesuada orci eu mollis laoreet. Pellentesque a semper lacus. Nunc in interdum est, ac hendrerit ligula. Nunc et arcu sed ipsum sollicitudin fermentum sed at ligula.

# Heading 10
Aliquam erat volutpat. Curabitur faucibus eleifend velit vitae aliquet. Sed eu euismod lacus. Nunc eros purus, volutpat id bibendum et, malesuada iaculis dui. Suspendisse rhoncus dolor at augue pulvinar egestas. Suspendisse potenti. Aenean lacinia libero in velit facilisis molestie. Etiam eu justo sed dui gravida condimentum. Sed placerat elit in lectus congue faucibus. Maecenas porta blandit erat non accumsan. Cras convallis, erat vel pharetra vehicula, urna est consequat urna, ac convallis purus nisl at elit. In hac habitasse platea dictumst.

[[#Heading 5]]

[[#Heading 9]]

Ugh cannot reproduce. The same thing you give me
https://github.com/jackyzha0/quartz/assets/29749331/b623f28a-2b96-42f4-a05a-d077d1d43126

something wrong with the video, it is not playing

very strange bug)
by the way anchor links between pages work correctly, but across one page you've seen in the video)
I'll try to debug what's wrong with my PC/browser/code/hands)
where should I start from?

you won't believe me, but I can't reproduce the bug right now. the code is the same, the browser is the same, there are no extensions, very strange things) I will try to collect more information if I catch this bug again
thank you very much for your patience and time spent trying to reproduce the bug

Debug updates:

if line 83 link.appendChild(popoverElement) of file quartz/components/scripts/popover.inline.ts is commented out, links start working

Are you sure you don't have any plugins that interfere with this?

Are you sure you don't have any plugins that interfere with this?

Absolutely sure. Bug is reproduced in different browsers and devices (including android).
While debugging I noticed, that scroll is performed to the anchor link that is displayed in the popover (so it scrolls about 50-100px)

Did you manage to reproduce the bug? I think it's not so easy to fix.
As quick fix how can I disable popovers only for specific pages(they are full of wikilinks across one page)? Is there any frontmatter or js config option to disable popover for page?

You need to be much more specific about describing the problem. I can reproduce it but it only happens for anchor links that link to something further down in the page (link going back up the doc are fine)

You need to be much more specific about describing the problem. I can reproduce it but it only happens for anchor links that link to something further down in the page (link going back up the doc are fine)

I suspect that if you hover over a heading link that points to a header on the same page (for example, #Heading9), that the position of said header is overridden by the position of the popover:

Hi,
I have the same issue as described by @makondratev and confirmed  later also by @jackyzha0.
@sabezero1 mentioned the anchor links inside the popover become the "new" link targets, which could come from this line in code: https://github.com/jackyzha0/quartz/blob/v4/quartz/components/scripts/popover.inline.ts#L87
      elts.forEach((elt) => popoverInner.appendChild(elt))

It adds the content of the current file again with the same IDs for the headers at the current position (the place you hover over the link).
So you would have the same header IDs mulitple times in the current page, but the extra IDs from the popover will be placed before the original ones. Which could explain why the IDs of the popover headers will be used instead of the original IDs.

So, I guess the solution would be to remove/rewrite the header IDs in the popover. I can try it locally, but my typescript knowledge is bad.
@makondratev, I found a work-around to disable the popover for specific links - but that would mean you will use pure html. The data-no-popover="true" disables that feature:
So instead of [[#header1]] you could write: header1.

Hi,
I have the same issue as described by @makondratev and confirmed later also by @jackyzha0. @sabezero1 mentioned the anchor links inside the popover become the "new" link targets, which could come from this line in code: https://github.com/jackyzha0/quartz/blob/v4/quartz/components/scripts/popover.inline.ts#L87
      elts.forEach((elt) => popoverInner.appendChild(elt))

It adds the content of the current file again with the same IDs for the headers at the current position (the place you hover over the link).
So you would have the same header IDs mulitple times in the current page, but the extra IDs from the popover will be placed before the original ones. Which could explain why the IDs of the popover headers will be used instead of the original IDs.

So, I guess the solution would be to remove/rewrite the header IDs in the popover. I can try it locally, but my typescript knowledge is bad.
@makondratev, I found a work-around to disable the popover for specific links - but that would mean you will use pure html. The data-no-popover="true" disables that feature:
So instead of [[#header1]] you could write: header1.

Thanks for looking into this. I'll look into into a potential fix. Based on what you wrote, I can think of a few ways that might be viable fixes.
As a side note, is it even desirable to have popover to heading on the current page? I would assume popovers serve to give a quick peek into another page's content.

Hi @saberzero1,

Based on what you wrote, I can think of a few ways that might be viable fixes.

Cool 👍.
I was able to remove the id attributes in the popovers with the result, that the popovers didn't show anymore the right content.

As a side note, is it even desirable to have popover to heading on the current page?

For long pages it would make sense to have such a feature. For example, you have at the beginning of a page a list of keywords with a short description and a link to the place inside the same page with more details.
But yeah, I could restructure such page and split the content into multiple pages.
I can only speak for myself, but I would be okay with not having popovers for the same page.
It would be I guess also the easiest solution as a simple removal of the id attributes didn't help.

Hi,
I had the same issue. For anyone looking for a quick fix, here's a solution. If it seems appropriate, I can try to make it a pull request, but I'm a complete beginner with github, so I'm still trying to understand how to do it ^^'
Replacing "elts.forEach((elt) => popoverInner.appendChild(elt))" with the following code fixes the links :
      // We generate a unique prefix for each popover.
      uniquePrefix = `popover-${Math.random().toString(36).substr(2, 9)}-`

      elts.forEach((elt) => {
        const clonedElt = elt.cloneNode(true) as Element

        // We then update all IDs within the cloned elements (including nested elements) by prepending this unique prefix.
        clonedElt.querySelectorAll('[id]').forEach((el) => {
          el.id = uniquePrefix + el.id
        })

        if (clonedElt.id) {
          clonedElt.id = uniquePrefix + clonedElt.id
        }

        popoverInner.appendChild(clonedElt)
      })

The popovers still have the issue that they don't display the correct element of the page, but it can be fixed by updating the "  if (hash !== "") " part like that :
  if (hash !== "") {
    const originalId = hash.substring(1)  // Remove the '#' from the hash to get the original ID
    const newId = uniquePrefix + originalId // Reconstructs the new ID by adding the uniquePrefix defined earlier
    const heading = popoverInner.querySelector(`#${newId}`) as HTMLElement | null
    if (heading) {
      // leave ~12px of buffer when scrolling to a heading
      popoverInner.scroll({ top: heading.offsetTop - 12, behavior: "instant" })
    }

As a disclaimer, I don't have any experience in TypeScript. I just described the problem to Claude, gave it your conclusions and the problematic file, and it fixed it on the first try. Tested it and everything seems to work perfectly. I feel I didn't do much myself but if it can help other people than me, all the better !

Hi,
I had the same issue. For anyone looking for a quick fix, here's a solution. If it seems appropriate, I can try to make it a pull request, but I'm a complete beginner with github, so I'm still trying to understand how to do it ^^'
Replacing "elts.forEach((elt) => popoverInner.appendChild(elt))" with the following code fixes the links :
      // We generate a unique prefix for each popover.
      uniquePrefix = `popover-${Math.random().toString(36).substr(2, 9)}-`

      elts.forEach((elt) => {
        const clonedElt = elt.cloneNode(true) as Element

        // We then update all IDs within the cloned elements (including nested elements) by prepending this unique prefix.
        clonedElt.querySelectorAll('[id]').forEach((el) => {
          el.id = uniquePrefix + el.id
        })

        if (clonedElt.id) {
          clonedElt.id = uniquePrefix + clonedElt.id
        }

        popoverInner.appendChild(clonedElt)
      })

The popovers still have the issue that they don't display the correct element of the page, but it can be fixed by updating the " if (hash !== "") " part like that :
  if (hash !== "") {
    const originalId = hash.substring(1)  // Remove the '#' from the hash to get the original ID
    const newId = uniquePrefix + originalId // Reconstructs the new ID by adding the uniquePrefix defined earlier
    const heading = popoverInner.querySelector(`#${newId}`) as HTMLElement | null
    if (heading) {
      // leave ~12px of buffer when scrolling to a heading
      popoverInner.scroll({ top: heading.offsetTop - 12, behavior: "instant" })
    }

As a disclaimer, I don't have any experience in TypeScript. I just described the problem to Claude, gave it your conclusions and the problematic file, and it fixed it on the first try. Tested it and everything seems to work perfectly. I feel I didn't do much myself but if it can help other people than me, all the better !

I'll look into it later today.


Handle BOSH-imposed password limits

the admin and hm users need to be safe gen'd with smaller password lengths, because BOSH can't handle super-long passwords.

Fixed in 756c535bda8afd6fb52bebd2fe9af28f01b9e159


make tests working for IM

implementing #58

@qeesung webhooks seem broken - no travis nor codacy :dizzy_face:
Is this a local issue, or is anything working on your screen?

@MatthiasKainer Good job!  everything is work on my screen. Is it not work in my repo or in your forked repo ?

Sry, there's a lot going on under the water atm and didn't found much time to look into it
Works now, seemingly was a problem with my browser. Maybe one of greasemonkeyscripts ran amok ^^
Is this mr good enough for now, and we'll add a task for the other tests, or should we implement them all in one mr?

Maybe we can implement the rest of tests in this pr. I can too busy to work on this project rencently :cry:

np. we already came a long way in a very fast pace - there's plenty of time to catch our breath :)

I seems that I can not make contribute to you im-tests branch, I will merge this mr, and reopen a new branch to implement the rest test case


Add Minder resource parsing using protojson and use it for data sources

Summary
This adds a new helper utility to parse YAML using the protojson
library. This allows us to parse more complex protobuf structures such
as one-of.
Moreover, this adds the ability to parse data source YAML files.
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[x] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[x] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 54.765%. remained the same
when pulling 515d647186b84d199715e196198c6ac5ea276260 on JAORMX:datasource-parse
into f117ed11ba5bc671d8bb2e31d718aa8f9054ae3b on mindersec:main.


Fix docstring MDTopology to MDTrajTopology

A student asked my help initializing the OpenMMEngine and I could not find the openpathsampling.engines.openmm.MDTopology. Looking at openpathsampling/engines/openmm/topology.py this is actually called: MDTrajTopology
This PR all the docstrings that mention MDTopology.
it also fixes some of the trivial pep8 complaints in openmm/engine.py

The -0.19% coverage in openmm/engine.py is the removal of the unneeded import of copy (while the number of not-coverd lines stays the same, so a lower percentage is covered)


Question: Which ProductRow for what purpose?

Script and Web both project contains ProductRow. Which ProductRow for what purpose?

Script objects are generated from rows in web project. For intellisense, compilation time checking etc. purposes.

Ooo. Thanks


Fix first day of week for l10n.fr

Hi,
I've switched first day of week to 1 for the FR l10n since it's what's most common, in France at least.

Merci!


Update _config.yml

Resolves #ISSUE_NUMBER

Before the change?

After the change?

Pull request checklist

[X] Tests for the changes have been added (for bug fixes/features)
[X] Docs have been reviewed and added/updated if needed (for bug fixes/features)

Does this introduce a breaking change?

[ ] Yes
[X] No

Summary by Sourcery
Build:

Change the Jekyll theme from 'dinky' to 'cayman' in the _config.yml file.

Summary by CodeRabbit

New Features

Updated the website theme to a new design for an improved visual experience.

@gstraccini create labels


⚠ Bofrost.at has degraded performance

In a6a7e91, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1922 ms

Resolved: Bofrost.at performance has improved in 178e7ec after 6 minutes.


QAT + OPENSSL 1.1.0f  ASYNC  performance

Hi !
I have a question about QAT + OPENSSL 1.1.0f async performance.
Once you've implemented QAT + OPENSSL 1.1.0f async, I've found that it's faster.
ex. ) ./openssl speed -engine qat -elapsed -async_jobs 72 rsa2048 (4 to 5 times better)
However, when testing the instrument(avalanche), it is confirmed that some sessions can not be processed if some CPS value or more (about 10000 CPS) goes on.
There are no problems with the setup.
ulimit -n
100000
cat /proc/sys/kernel/threads-max
257139
Do you have a history of instrument testing(avalanche) with QAT + openssl 1.1.0f async?
ps.
( QAT + openssl 1.1.0f sync mode  = Normal processing)
thank you !

Hi @stevelinsell
In relation to the above, there is something I want to know one more thing.
openssl1.0.1m async + qat and When openssl 1.1.x async + qat is compared to per top,
used openssl 1.1.x more CPU resources.
result.
openssl 1.1.x async
14.46%  libcrypto.so.1.1           [.] sha256_block_data_order
5.80%  libc-2.23.so                 [.] _int_malloc
5.53%  libcrypto.so.1.1           [.] AES_encrypt
4.48%  libc-2.23.so                 [.] _int_free
3.95%  libc-2.23.so                 [.] malloc
2.44%  libc-2.23.so                 [.] __memset_sse2
1.77%  ssl_proxy                     [.] ai_ip_cmp
1.56%  libcrypto.so.1.1           [.] AES_decrypt
openssl 1.0.1m  async
1.04%  [kernel]                      [k] _raw_spin_lock
1.00%  [kernel]                      [k] pdriver_packet_mirroring
0.95%  [kernel]                      [k] update_cfs_shares
0.93%  [unknown]                  [.] 0x00007f58e78415e9
0.91%  [kernel]                      [k] _raw_spin_lock_irqsave
0.90%  [unknown]                  [.] 0x00000000004e8e61
0.85%  [kernel]                      [k] ixgbe_xmit_frame_ring
Do you know any of the above results?
Kind Regards,

Hi @duadbsgh
The Openssl 1.0.1m QAT Engine supports additional offloads of:
Individual Hash operations such as sha1 and sha256.
Individual Cipher operations such as aes128, aes256.
In the OpenSSL 1.1.x QAT Engine these individual operations will remain performed in Software. This was mostly done because most of the individual hashes that need to be performed in the TLS stack are quite small and did not benefit from offloading. The individual ciphers also did not give as much benefit compared to the ciphers that include performing both the encryption and hashing functionality together in one offload.
Looking at your numbers above they seem quite large for those operations even considering the above. Can you confirm in the 1.1.x QAT Engine are you offloading PRF and Ciphers? If PRF is not being offloaded then it will result in a large amount of sha256 hashes being performed in Software.
Kind Regards,
Steve.


Error While Installing OpenCV Library

We were facing issues while installing libraries. we are using CMD command "PIP INSTALL OPENCV" but every time it giving error

Searhed on internet about the error,
Then we used "PIP INSTALL OPENCV-PYTHON" and it works.


[Improvement]: Properly distinguish between type descriptor and type in runtime

Description
In current implementation both type descriptor as well as type is represented by BTypes/Types.  However as far the spec is concerned these are separate concepts.
Describe your problem(s)
Combining type descritptor with type introduce several performance problems. For instance consider the fallowing where T is any ballerina type,
function foo() {
       T val = intiValue();
}

For each invocation of foo we must resolve  type descriptor  of T separately since things like default values could change from invocation to invocation. However type of T does not.  But by combining type descritptor and type of T together we anyway initialise "both" type and type descriptor for each invocation.
This limits the potential to reuse type check results from previous invocations and add extra overhead in having to resolve the type for each invocation.
Describe your solution(s)
With 40511  we can treat the semtype part as the "type" and "BType" part as the type descriptor. Each type descriptor will have a semtype (which may be shared between instances, and lazily initialised). Initially we can handle this enitirely at runtime (which will add runtime overhead of canonicalization of types). Later we can do the canonicalization at compile time
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

Recheck this after https://github.com/ballerina-platform/ballerina-lang/issues/38844 is resolved

Most of the offending new typedesc creations should be fixed with https://github.com/ballerina-platform/ballerina-lang/issues/38844. Will reopen this if issue persists.


memo

I need memo to withdraw my Eos from Linkkoin to my new Fairy wallet.Where can I get memo?

Did you get the memo id? I need it too.


Remove duplicated code to close the WS connection

There are many duplicated code conn.Close() in the method handleWS() of app/app.go. It is better to move this into defer after the connection opened.

Thanks for the comment. This will be fixed in the next release.

Now fixed in the master branch.


Any way to accurately define the displayed area?

Hello,
first, thanks for this library, it helped me alot.
Now, my question.
Im trying to synchronize a graph in front of the mapview, to better display information. So that means that any point in latlong on my graph, should be the same on the mapView. Right now, im using "setExtend()" to display the correct part of the map that fits the displayed area on my graph. Sadly this way will always give me a map section that is slightly bigger than what i want.
Is there a way to define an exact rectangle of what should be displayed with two latlongs (for example bottom left and top right), that doesnt try to "fit" the coordinates and make the displayed section bigger?
Thanks alot!

Just been playing around with the mapjfx-demo app and the test app from the mapjfx project itself. When I set an extent there, this works.
Of course you may have areas outside of your defined extent that are displayed, when the aspect ratio of the extent the the window don't match. Let's say, your extent is a square, having an AR of 1:1, but the window is a rectangle with AR 2:1 (width = 2*height). Then when setting the extent you will end up with the whole square of the extent fitting the window, but on the left and right there are additional areas visible. setExtent(Extent) fits the map so that the whole extent is visible.
If you want to restrict your map in this case, so the the left and right borders of the extent fit the left and right borders of the window, then you should use constrainExtent(Extent). But this leads to areas of the extent at the top/bottom not being visible (and you could not move/pan outside of the constrained area.
When you set an extent and see a bigger area, is this on all 4 sides or just either on top/bottom or left/right?

Thanks for the answer. Yes the part that is bigger is always left and right.
After some tests with forcing a visible square on the map i realized why the map will always be wider than high. Depending on how close the visible area is to the poles, the distance between latitudes will shrink. So displaying a visible square in the middle of europe will result in a (sort of) rectangle of latitude/longitude area.
The library is working correctly, my understanding of the displayed area was wrong.
Im now using this factor to correct my displayed longitude areas.:
Math.cos(latitude * Math.PI/180.0) / 1.11120), with latitude beeing the latitude of the center of the displayed area.
Sadly even with this, the displayed area is still a bit off of what i want to display, because the displayed area isnt really a rectangle, but more curved trapezoid.
Is there a way to get the new range of displayed latitude/longitude after a map change? Like a dataset of latitude/longitude ranges that are currently visible? Calculating all of that in my graph and displaying that range through a two coordinates extent will always be slightly off. It would be much easier to get the new displayed area from the webview and fit my graph accordingly.
Thanks for testing out the displayed area, even if the problem wasnt really with your library, but more with my misunderstanding how maps work.

you can register for the MAP_BOUNDING_EXTENT event, this should come in, when the map has changed, see the demo app https://github.com/sothawo/mapjfx-demo/blob/main/src/main/java/com/sothawo/mapjfxdemo/Controller.java#L505-L509

With this i was able to fix my view. For testing purposes i tried displaying a point, and it tracks the map perfectly. Thanks for that.


JSONDecodError

I'm getting the following error when trying to listversions.
Tried python 2.7 and 3.7, getting the same issue.
Traceback (most recent call last):
File "sumo_mgmt.py", line 710, in
collectors = get_collectors('collectors', {'collectorType': 'Installable'})
File "sumo_mgmt.py", line 240, in get_collectors
log('[ERROR] %s' % r.json()['message'].lower()[:-1])
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I figured out the problem. The URL I had to use was https://api.us2.sumologic.com/api/v1/.
For details on which API url to use, check: https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-and-Firewall-Security


spanish translation on footer

spanish translation on footer links

@rehrar @lh1008 could you guys review this?

Hello @lazarovicedo, we would like to invite you to help us get together the spanish terminology for the monero community. We have been working in it with the community and would really like you to join us. Here is the link taiga spanish user story. There are already some words we have been working on, you might take a look for further translations. Thanks! :)


BMP280 with Microchip XC16 Compiler and dspic33EP512

Hi,
first of all thanx for the source code!
We apply this patch to help others.
We integrated this sensor in a dspic33EP512 hardware.
But the calculation ends up in a mess..
The compiler does not set
STDC_VERSION == 199901L ...
during compile the s32 is only 16 bit long.
Also we added a check in the bmp_init to do a sizeof check.
hopefully you can apply them to the trunc.
--------------------------------patch----------------------------------------------

Index: bmp280.c
===================================================================
--- bmp280.c	(revision 670)
+++ bmp280.c	(working copy)
@@ -86,6 +86,11 @@
 	BMP280_RETURN_FUNCTION_TYPE com_rslt = ERROR;
 	u8 v_data_u8 = BMP280_INIT_VALUE;

+   /* check size of 23 bit vars! */
+	if (sizeof(s32) != 4)  {
+		return E_BMP280_SIZE_PTR;
+	}
+
 	p_bmp280 = bmp280;/* assign BMP280 ptr */
 	/* read chip id */
 	com_rslt = p_bmp280->BMP280_BUS_READ_FUNC(p_bmp280->dev_addr,
Index: bmp280.h
===================================================================
--- bmp280.h	(revision 670)
+++ bmp280.h	(working copy)
@@ -118,9 +118,14 @@
 #define BMP280_64BITSUPPORT_PRESENT
 /************************************************
  * compiler is C99 C standard
+ * XC16: needed for used with a Microchip XC16 compiler
+ * e.g. for use with dspic33EP512 CPU.
+ * they have stdint support but not defined
+ * STDC_VERSION<EMAIL_ADDRESS>+ * If not with __XC16__ s32 is only mapped as 16bit!
 ************************************************/

-#elif (__STDC_VERSION__ == 199901L)
+#elif (__STDC_VERSION__ == 199901L) | (__XC16__)

 /* stdint.h is a C99 supported c library.
 which is used to fixed the integer size*/
@@ -144,7 +149,7 @@
  * compiler is C89 or other C standard
 ************************************************/

-#else /*  !defined(__STDC_VERSION__) */
+#else /*  !defined(__STDC_VERSION__) */
 /*!
 * @brief By default it is defined as 32 bit machine configuration
 *	define your data types based on your
@@ -473,6 +478,7 @@
 /************************************************/
 #define	SUCCESS					  ((u8)0)
 #define E_BMP280_NULL_PTR         ((s8)-127)
+#define E_BMP280_SIZE_PTR         ((s8)-126)
 #define E_BMP280_COMM_RES         ((s8)-1)
 #define E_BMP280_OUT_OF_RANGE     ((s8)-2)
 #define ERROR                     ((s8)-1)

Hi,
First of all thanks for your suggestion.

If it is 16 bit compiler, can you try below
#else /*  !defined(STDC_VERSION) /
/!

@brief By default it is defined as 32 bit machine configuration
define your data types based on your
machine/compiler/controller configuration
*/
#define  MACHINE_32_BIT

In the above line,  instead of MACHINE_32_BIT you can define MACHINE_16_BIT
Thanks.


Added Nighthawk

Preview:

{
    "name": "Nighthawk",
    "colors": ["#2980b9", "#2c3e50"]
}

:+1:


Add note about managing Enterprise users in Chronograf

Closes influxdata/DAR#217

[x] Tests pass (no build errors)
[x] Rebased/mergeable

Holding off and will revamp this addition on my next support rotation (unless somebody else on support rotation wants to pick it up).

Closing this in favor of ongoing work on Enterprise auth docs. See for instance: https://github.com/influxdata/docs-v2/issues/2803


no empty space

Codecov Report

Merging #322 (13b4239) into master (c0277d3) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #322   +/-   ##
=========================================
  Coverage     75.93%   75.93%
  Complexity      683      683
=========================================
  Files            94       94
  Lines          1999     1999
  Branches        224      224
=========================================
  Hits           1518     1518
  Misses          414      414
  Partials         67       67

Impacted Files
Coverage Δ

...rc/main/java/seedu/address/logic/LogicManager.java
66.66% <ø> (ø)

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 c0277d3...13b4239. Read the comment docs.


build fails - snd_htimestamp_t - asoundlib

Hi,
a git trunk build fails on the current arch-linux with the following error:
  CC [M]  build-x86_64/modules/alsa/alsa.o
In file included from /usr/include/alsa/asoundlib.h:56:0,
                 from modules/alsa/alsa.c:11:
/usr/include/alsa/timer.h:108:19: error: field 'tstamp' has incomplete type
  snd_htimestamp_t tstamp; /**< Time stamp of each event */
                   ^~~~~~
make: *** [mk/mod.mk:44: build-x86_64/modules/alsa/alsa.o] Error 1

any ideas?
Thanks,
Tobias

I can confirm this error. Just updated from Ubuntu 16.04 to 16.10, getting the same message at compile time.
Tried to get to the root of it, but had no luck so far. Either it is related to libasound2 update (1.1.0 -> 1.1.2), or eventually to the kernel update (4.4.0 -> 4.8.0).
There are some similar errors around the web, and they all suggest to include timer.h or types.h but none of these fixes worked, and types.h is included anyways at alsa.c/alsa_play.c/alsa_src.c.

Attached is a quick fix for alsa. What still fails is v4l2_codec with the following error message:
  CC [M]  build-x86_64/modules/v4l2_codec/v4l2_codec.o
In file included from modules/v4l2_codec/v4l2_codec.c:21:0:
/usr/include/linux/videodev2.h:2107:18: error: field ‘timestamp’ has incomplete type
  struct timespec   timestamp;
                  ^~~~~~~~~
mk/mod.mk:42: recipe for target 'build-x86_64/modules/v4l2_codec/v4l2_codec.o' failed
make: *** [build-x86_64/modules/v4l2_codec/v4l2_codec.o] Error 1

alsa_quick_fix-patch.txt

same problem on Debian Testing (amd64).
ii  libc6:amd64                           2.24-3                               amd64        GNU C Library: Shared libraries
ii  libasound2:amd64                      1.1.2-1                              amd64        shared library for ALSA applications

can you try to add this before #include:
#define _DEFAULT_SOURCE 1

#define _DEFAULT_SOURCE 1 fixes the build on Ubuntu 16.10 here for all effected module files:
alsa.c
alsa_src.c
alsa_play.c
v4l2_codec.c
Thanks!

thank you for reporting the issue and helping out with a solution :)
could you please also test baresip HEAD with other versions of Ubuntu and check
that it is still building ?

HEAD Builds fine on Ubuntu 16.04.

I am trying to compile baresip on redhat CentOS release 5.5 (Final) version.
Linux DVRTPG010 2.6.18-194.el5xen #1 SMP Fri Apr 2 16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
inside baresip dir when excuted "make" seeing below issue
CC [M]  build-i386/modules/v4l2_codec/v4l2_codec.o
In file included from modules/v4l2_codec/v4l2_codec.c:21:
/usr/include/linux/videodev2.h:352: error: field ?timestamp? has incomplete type
/usr/include/linux/videodev2.h:461: error: expected ?=?, ?,?, ?;?, ?asm? or ?attribute? before ?v4l2_std_id?
/usr/include/linux/videodev2.h:544: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:561: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:599: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:622: error: expected specifier-qualifier-list before ?__s64?
make: *** [build-i386/modules/v4l2_codec/v4l2_codec.o] Error 1

#define _DEFAULT_SOURCE 1
line is added before #include in v4l2_codec.c file
but still compilation issue is oberved


When using code-server's subdomain proxy with authentication, the login screen registers code-server's service worker for the subdomain

OS/Web Information

Web Browser: Chrome / Safari
Local OS: macOS
Remote OS: Arch Linux
Remote Architecture: amd64
code-server --version: 3.10.0 6610bff3216c48fdd0884191338b1092765dbb5a

Steps to Reproduce

Access a proxied port and log in (EG 3000.domain.com)
You can see in dev tools that code-server's service worker has been registered

Expected
Service worker shouldn't be registered by the login page when accessing a proxied port
Actual
Service worker is registered
Screenshot
EG, Vite not liking the service worker being registered when accessing a svelte app on 3000.mydomain.tld:

Notes
This issue can be reproduced in VS Code: N/A

Maybe we have to add the full URL to the scope? We only put the path so maybe it gets registered for all sub-domains as well.


get list of document in function*

How to reproduce these conditions
Sample name or URL where you found the bug
Failing Function code used (including require/import commands at the top)
Steps to set up and reproduce

Sample data pasted or attached as JSON (not an image)

Security rules used

Debug output
Errors in the console logs
Screenshots
Expected behavior

Actual behavior

First, you cannot define a const more than once:
const location = [];  //  location is []

location = doc.data().location // TypeError: invalid assignment to const 'location'

To fix this, change const location to var location as variables defined with var can be redefined.
You can read more about declarations here.
Second, you are accessing location before the promise resolves with the date from firestore.
(Also, you should probably move the declaration of  location to a more appropriate scope):
// Old placement:
// var location = [];

admin.firestore().collection('driver')
  .get()
  .then(snapshot => {

    // New placement:
    var location = [];  // Code within this callback will still be able to access this
    snapshot.forEach(doc => {
      location = doc.data().location;
    });

    // Use `location` here

  });

Third, if you are retrieving more than one document, it looks like you are iterating over the documents wrong; For each document, you are overriding the location you just stored:
// First loop:
 location = doc.data().location; // location = "location1"

// Second loop:
 location = doc.data().location; // location = "location2"

At the end of the loop, location is only equal to the last value. If you want to store an array of locations, you can do the following:
snapshot.forEach(doc => {
  location.push(doc.data().location);
});

You can read about .push() here.
Now location will be an array of locations. Of course, if you only want location to be the location field of the last document in the snapshot, you can disregard this point.
Finally, if you implement point two, you will have to move your return statements:
exports.notifyNewMessage = functions.firestore
  .document('container/{container_id}').onWrite((change, context) => {
    const newValue = change.after.data();
    const previousValue = change.before.data();
    var location - [];

    return /* <= notice this new return statement */ admin.firestore().collection('driver')
      .get()
      .then(snapshot => {
        snapshot.forEach(doc => {
          location = doc.data().location;
        })
        // Use location here
      })
  });

You can read more about: asynchronous javascript in general here, using javascript promises here, and the different ways to termenate cloud functions here (recommended).
I hope this was helpful.


[openssl/unix] Launch 'make' with '-j N' to build in parallel

Is your feature request related to a problem? Please describe.
The 'openssl/unix' port launches make to build OpenSSL, but it doesn't pass -j [N] on the command-line. As a result, make doesn't run jobs in parallel. The 'openssl/windows' port uses -j $ENV{NUMBER_OF_PROCESSORS} on the make command-line, and the 'openssl/uwp' port uses -j ${VCPKG_CONCURRENCY} on the make command-line, so there's precedent for parallel execution.
Proposed solution
Two small changes would be needed:

In ports/openssl/unix/portfile.cmake, pass VCPKG_CONCURRENCY as an option to vcpkg_configure_cmake.
Within ports/openssl/unix/CMakeLists.txt use the passed VCPKG_CONCURRENCY in the make command-line.

Locally, building openssl:arm-android goes from ~12 minutes, to ~2 minutes. In our cloud build, the build goes from ~18 minutes to ~4 minutes. Since the 'openssl/unix' port is used for Android, Linux, Darwin, iOS, all of these platforms would benefit.

And MinGW...


Slack WebSocket "error":"a request for an unknown workspace detected"

I've been trying to connect to Slack API through WebSocket but I encountered an issue. To be precise Slack seems to connect with my app and it is sending reactions to events but I am getting an error:
INFO 11624 --- [essor-worker-35] c.s.a.b.m.b.MultiTeamsAuthorization      : auth.test result: null, io error: null, api error: null
WARN 11624 --- [essor-worker-35] c.s.api.bolt.socket_mode.SocketModeApp   : Unsuccessful Bolt app execution (status: 401, body: {"error":"a request for an unknown workspace detected"})
I've been stuck with this error for a few days, here is my code:
@Service
@Configurable
public class SlackApp {

    @Autowired
    private SlackConfig slackConfig;

    @Bean
    public App initSlackApp(){
        //here goes the code
        String botToken = "xoxb-token";
        String appToken = "xapp-token";

        App app = new App(AppConfig.builder().singleTeamBotToken(botToken)
                .clientSecret("secret").clientId("clientId").build());

        SocketModeApp socketModeApp;
        try{
            socketModeApp = new SocketModeApp(appToken, app);
            socketModeApp.startAsync();
        }catch(Exception e){
            e.printStackTrace();
        }

        app.event(ReactionAddedEvent.class, (event, ctx) -> {
            System.out.println("it works");
            ctx.say("May I help you?");
            return ctx.ack();
        });

        app.command("/hello", (req, ctx) -> {
            ctx.say("What's up?");
           return ctx.ack();
        });
        return app;
    }
}

Reproducible in:
mvn dependency:tree | grep com.slack.api
gradle dependencies | grep com.slack.api
java -version
sw_vers && uname -v # or `ver`

The Slack SDK version

Java Runtime version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
OS info
Microsoft Windows [Version 10.0.19043.1288]
Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., pom.xml/build.gradle))

Expected result:
Print "it works" after adding reaction to slack message and not getting error 401
Actual result:
After adding reaction to message I am getting error:
INFO 11624 --- [essor-worker-35] c.s.a.b.m.b.MultiTeamsAuthorization      : auth.test result: null, io error: null, api error: null
WARN 11624 --- [essor-worker-35] c.s.api.bolt.socket_mode.SocketModeApp   : Unsuccessful Bolt app execution (status: 401, body: {"error":"a request for an unknown workspace detected"})

Requirements
Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to the those rules.

Hi @adiz50, thanks for writing in!
According to the logs that you've shared, MultiTeamsAuthorization (perhaps, with the default file system based installation service) is used for resolving a token for an incoming request because you passed OAuth related settings for your App initialization. You can remove the part clientSecret("secret").clientId("clientId") in the code.
I hope this was helpful to you!


scrollbar can not be clicked by mouse.

scollbar in Scene can not be clicked nor dragged up and down when text on screen is overflowed.
How can I make scrollbar being controlled by mouse ?
(Is scrollbar is html component in WebView so there is no way to control ?)

Hi, can you please send a demo to reproduce it ? Is it happening on editor or preview side?

Can you share some steps to reproduce it ?

Thanks for replying :)
`
import com.kodedu.terminalfx.TerminalBuilder;
import com.kodedu.terminalfx.TerminalTab;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TabPane;
import javafx.stage.Stage;
public class TfxTest extends Application {
@Override
public void start( Stage stage ) throws Exception {

    stage.setTitle( "TerminalFx test" );

    TerminalBuilder builder = new TerminalBuilder();
    TerminalTab terminalTab = builder.newTerminal();

    TabPane tabPane = new TabPane();
    tabPane.getTabs().add(terminalTab);

    stage.setScene( new Scene( tabPane, 900, 800 ) );
    stage.show();

    terminalTab.onTerminalFxReady( () -> {
        terminalTab.getTerminal().command( "cmd /c c: && cd \"c:\\Windows\" && dir\r" );
    });
}

}
`
It runs like below and scrolls well by mouse wheel action only. but not clicked by mouse at all.
( My os is windos10 and Javafx is 12. I'll test it on 11 later and let you know it woks well on jfx 11.)

I suspect hterm library. But newest 1.84 packed as single, it doesn't work on your hterm.html.

As far as I remember it was never clickable, and controllable by mouse.

Thank you. It's sad but very helpful. 👍

I am running into the same issue. It would be great to have a fix to support the ability to hold the scroll handle and move up and down when the history gets large. Thank you very much for this really helpful library!


Added translation fields in new static category template

Some fields in the now static category page were not translatable. I added a trans  tag to them.

Thanks for the contribution @julienfabre! Since there are two commits that were later reverted, could you remove them and keep only the last one? You should be able to do this with git rebase -i. We're just updating translations and could use your PR.

Codecov Report

Merging #1180 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1180      +/-   ##
==========================================
+ Coverage    69.2%   69.22%   +0.01%
==========================================
  Files         114      114
  Lines        6212     6212
  Branches      754      754
==========================================
+ Hits         4299     4300       +1
  Misses       1744     1744
+ Partials      169      168       -1

Impacted Files
Coverage Δ

saleor/core/utils/random_data.py
81.95% <0%> (+0.37%)
:arrow_up:

Continue to review full report at Codecov.

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

My bad, commit history should be clean now

Would you mind re-building the corresponding .po files so that translation can be done on Transifex?

@koradon Already did it in PR #1181, including your changes.


Unable to unset constraint

I'm having the following scenario.
In one case i need to layout an element to the left of the view, in another case the same view needs to be rendered to the right of the view. The two constraints are conflicting obviosuly.
def action_style
    diameter = rmq.device.width*0.06
    constraints do
      width.is diameter
      height.is diameter
      center_y :image
    end
    reapply do
      constraints do
        offset = rmq.device.width*0.08
        if self.even
          left.is 20
        else
          right.is -offset
        end
      end
    end
  end

Left and Right are conflicting and i am not getting desired results. Is there any way to disable for example only the left constraint or disable/unset all constraints?

You'll need to keep a reference to the left/right blocks, and remove it
before creating a new constraint in the reapply block
On Tue, Jan 27, 2015 at 8:19 AM, Fabian Oudhaarlem<EMAIL_ADDRESS>
wrote:

I'm having the following scenario.
In one case i need to layout an element to the left of the view, in
another case the same view needs to be rendered to the right of the view.
The two constraints are conflicting obviosuly.
def action_style
diameter = rmq.device.width0.06
constraints do
width.is diameter
height.is diameter
center_y :image
end
reapply do
constraints do
offset = rmq.device.width0.08
if self.even
left.is 20
else
right.is -offset
end
end
end
end
Left and Right are conflicting and i am not getting desired results. Is
there any way to disable for example only the left constraint or
disable/unset all constraints?
—
Reply to this email directly or view it on GitHub
https://github.com/motion-kit/motion-kit/issues/100.

What method would i call on the referenced constraint? Setting it to nil does not work.
On Tue, Jan 27, 2015 at 5:20 PM, Colin T.A. Gray<EMAIL_ADDRESS>wrote:

You'll need to keep a reference to the left/right blocks, and remove it
before creating a new constraint in the reapply block
On Tue, Jan 27, 2015 at 8:19 AM, Fabian Oudhaarlem<EMAIL_ADDRESS>
wrote:
I'm having the following scenario.
In one case i need to layout an element to the left of the view, in
another case the same view needs to be rendered to the right of the view.
The two constraints are conflicting obviosuly.
def action_style
diameter = rmq.device.width0.06
constraints do
width.is diameter
height.is diameter
center_y :image
end
reapply do
constraints do
offset = rmq.device.width0.08
if self.even
left.is 20
else
right.is -offset
end
end
end
end
Left and Right are conflicting and i am not getting desired results. Is
there any way to disable for example only the left constraint or
disable/unset all constraints?
—
Reply to this email directly or view it on GitHub
https://github.com/motion-kit/motion-kit/issues/100.

Reply to this email directly or view it on GitHub:
https://github.com/motion-kit/motion-kit/issues/100#issuecomment-71674366

Sorry for bringing back this issue; has anyone been able to find a solution for this? How can you unset a constraint?

I did not succeed in unsetting a constraint.
My workaround was using the left constraint for both versions with some math to calculate the correct position.
On Mon, Aug 17, 2015 at 7:09 PM, Dexter Miguel<EMAIL_ADDRESS>wrote:

Sorry for bringing back this issue; has anyone been able to find a solution for this? How can you unset a constraint?
Reply to this email directly or view it on GitHub:
https://github.com/motion-kit/motion-kit/issues/100#issuecomment-131892196

Recently Mark Villacampa added Constraint#deactivate, which should remove the constraint.  It’s a new feature.

On Aug 17, 2015, at 12:07 PM, Fabian Oudhaarlem<EMAIL_ADDRESS>wrote:
I did not succeed in unsetting a constraint.
My workaround was using the left constraint for both versions with some math to calculate the correct position.
On Mon, Aug 17, 2015 at 7:09 PM, Dexter Miguel<EMAIL_ADDRESS>wrote:

Sorry for bringing back this issue; has anyone been able to find a solution for this? How can you unset a constraint?
Reply to this email directly or view it on GitHub:
https://github.com/motion-kit/motion-kit/issues/100#issuecomment-131892196
—
Reply to this email directly or view it on GitHub https://github.com/motion-kit/motion-kit/issues/100#issuecomment-131911947.

I actually had to give up on this.
In my case, I had a complicated UITableViewCell that I needed to reuse by calling dequeueReusableCellWithIdentifier but its constraints needed to be updated depending on parameters sent to the MotionKit::Layout class.
So, deactivating a constraint would be great because I'd be able to update one constraint rather than rebuilding the entire cell, which is what I ended up doing.


test_csprng.py fails without scipy install

Currently, with just the pip install -r requirements-dev.txt, I get this failure:
    @pytest.mark.skipif("numpy" not in sys.modules, reason="requires the Numpy library")
    def test_np_rng():
        import numpy as np # type: ignore[import-not-found]
>       from scipy.stats import chisquare # type: ignore[import]
E       ModuleNotFoundError: No module named 'scipy'

It passes on CI because we explicitly pip install scikit-learn in the workflow.
Developer environments should work just following the directions on development-environment.rst. Some possible solutions:

add pip install scikit-learn to development-environment.rst and remove preexisting skipif("scipy") on test_pca?
remove CI install; add scikit-learn to requirements-dev.txt and remove preexisting skipif("scipy") on test_pca?
add skipif("scipy" not in sys.modules, ...) above this test?

and remove CI install?
or add test matrix to test with and w/o optional installs?

context:

#1045 closed #1037, but that might have been premature.

More context: The test has this guard:
@pytest.mark.skipif("numpy" not in sys.modules, reason="requires the Numpy library")

So the problem might really only come up if you have numpy but not scipy: If you have scipy but not numpy we intend to skip the test.
But: sys.modules doesn't tell us whether a module is installed, only whether it's imported, I think?
>>> import sys
>>> "numpy" in sys.modules
False
>>> import numpy
>>> "numpy" in sys.modules
True

For this test to work as intended, I think we need a try-import, and then if the import failed, the test will skip. Right now I think it always skips, regardless of installation.

The landscape has significantly changed here:

#1348 / #1347 handle most of this
#1433 will handle randomgen, which will require some refactoring first.

I think this can be closed as duplicate now.


NameError: name 'random' is not defined

Hello, I'm getting the following error on whenever execution
python 3.6, django 2.1+
  File "/home/marp/.virtualenvs/ztn_gateway/lib/python3.6/site-packages/factory_generator/fields_faker.py", line 244, in get_provider
    return random.choice(['ipv4', 'ipv6'])
NameError: name 'random' is not defined

It's a very nice idea this project, maybe later I can help you contributing with JSONField feature, thanks you!

Hi @marquicus you can set provisionally at top of the file called fields_faker.py:
import random
from django.conf import settings
from django.template.loader import render_to_string

. . .

That's how I got all my factories auto generated ! 🚀
Otherwise, I could make a Pull request later on.
Thanks for this incredible repository.


CmdStan Bernoulli Example Compiling but Not Running

Summary:
I can successfully compile the Stan model with cmdstan located in the examples/bernoulli directory, but the model is not running.
Description:
I found a similar issue here. But I want to use stan in my computer, can't solve with that. It worked before, which I installed following the steps from the CmdStanR. But it stopped working after I updated the cmdstan with CmdStanR to 2.29.2. I forgort the older version of the cmdstan, I installed it around Oct. So I think it should be version 2.80.0.
Reproducible Steps:
At the begaining, I have followed the steps in here. Everything went well, no error or warning was shown. After the compilation of the cmdstan, I restarted the R session. After that, I tried to run the example model from the CmdStanR, but it failed.
> library(cmdstanr)
This is cmdstanr version 0.5.0
- CmdStanR documentation and vignettes: mc-stan.org/cmdstanr
- CmdStan path: C:/Users/alimd/Documents/.cmdstan/cmdstan-2.29.2
- CmdStan version: 2.29.2
> fit <- cmdstanr_example(chains = 1)
Compiling Stan program...
Warning: Chain 1 finished unexpectedly!

Warning message:
No chains finished successfully. Unable to retrieve the fit.

I checked the steps here. Added the tbb to the environment path. I opened cmd session in the cmdstan directory, and executed the following:
mingw32-make examples/bernoulli/bernoulli.exe

This is successful, and there's a bernoulli.exe file under the examples/bernoulli folder. I followed the steps here try to run the sampler:
cd examples/bernoulli
bernoulli.exe sample data file=bernoulli.data.json

But nothing happened. I removed everything and followed steps here, compiled cmdstan from source. The problem is still there after trying cmdstan from 2.70.0 to 2.92.2.
I have added tbb path manually and also run mingw32-make install-tbb. But the mingw32-make install-tbb works if I add quotation marks around the path in the setx command:
setx Path "%~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%"

Current Output:
No output from the following command:
cd examples/bernoulli
bernoulli.exe sample data file=bernoulli.data.json

Error from R:
> fit <- cmdstanr_example(chains = 1)
Compiling Stan program...
Warning: Chain 1 finished unexpectedly!

Warning message:
No chains finished successfully. Unable to retrieve the fit.

Expected Output:
Based on the manual here, it should start working.
Additional Information:
I am using Windows 11, Rtools 4.0, R 4.1.0.
C:\Users\alimd>g++ --version
g++ (Built by Jeroen for the R-project) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\Users\alimd>mingw32-make --version
GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

My environment path is here, don't know if this has any impact.
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.11.3471.0_x64__8wekyb3d8bbwe;
C:\Users\alimd\AppData\Roaming\ActiveState\bin;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Windows\System32\OpenSSH\;
C:\Program Files\SASHome\SASFoundation\9.4\ets\sasexe;
C:\Program Files\SASHome\Secure\ccme4;
C:\Program Files\SASHome\SASFoundation\9.4\core\sasexe;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files\dotnet\;
C:\Program Files (x86)\PDFtk Server\bin\;
C:\Program Files\Git\cmd;
C:\Perl64\bin;
C:\Users\alimd\Documents\.cmdstan\cmdstan-2.29.2\stan\lib\stan_math\lib\tbb;
C:\rtools40\usr\bin;
C:\rtools40\mingw64\bin;
C:\Users\alimd\AppData\Local\Microsoft\WindowsApps;
C:\Program Files\R\R-4.1.0\bin;
C:\Users\alimd\AppData\Local\Programs\Python\Python39;
C:\Users\alimd\AppData\Local\Programs\Python\Python39\Scripts;
C:\Users\alimd\AppData\Local\Programs\Microsoft VS Code\bin;
C:\Users\alimd\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;
C:\gs;
C:\Users\alimd\AppData\Local\Pandoc\;

I believe this is hard to reproduce, but I don't know where is the problem. I have been struggling for days now. I don't want to reinstall my OS to solve this.
Current Version:
v2.29.2

These are the names of the files under C:\Users\alimd\Documents\.cmdstan\cmdstan-2.29.2\stan\lib\stan_math\lib\tbb.
arena.d                    condition_variable.o  pipeline.d            spin_mutex.o                tbb_misc_ex.o
arena.o                    critical_section.d    pipeline.o            spin_rw_mutex.d             tbb_statistics.d
backend.d                  critical_section.o    private_server.d      spin_rw_mutex.o             tbb_statistics.o
backend.o                  dynamic_link.d        private_server.o      spin_rw_mutex_v2.d          tbb_thread.d
backref.d                  dynamic_link.o        proxy.d               spin_rw_mutex_v2.o          tbb_thread.o
backref.o                  frontend.d            proxy.o               task.d                      tbbmalloc.d
cache_aligned_allocator.d  frontend.o            queuing_mutex.d       task.o                      tbbmalloc.def
cache_aligned_allocator.o  governor.d            queuing_mutex.o       task_group_context.d        tbbmalloc.dll
concurrent_hash_map.d      governor.o            queuing_rw_mutex.d    task_group_context.o        tbbmalloc.o
concurrent_hash_map.o      itt_notify.d          queuing_rw_mutex.o    task_v2.d                   tbbmalloc_proxy.dll
concurrent_monitor.d       itt_notify.o          reader_writer_lock.d  task_v2.o                   tbbvars.bat
concurrent_monitor.o       itt_notify_malloc.d   reader_writer_lock.o  tbb-make-check              tbbvars.csh
concurrent_queue.d         itt_notify_malloc.o   recursive_mutex.d     tbb.def                     tbbvars.sh
concurrent_queue.o         large_objects.d       recursive_mutex.o     tbb.dll                     version_string.ver
concurrent_queue_v2.d      large_objects.o       rml_tbb.d             tbb_function_replacement.d  version_tbb_2020.3
concurrent_queue_v2.o      market.d              rml_tbb.o             tbb_function_replacement.o  x86_rtm_rw_mutex.d
concurrent_vector.d        market.o              scheduler.d           tbb_main.d                  x86_rtm_rw_mutex.o
concurrent_vector.o        mutex.d               scheduler.o           tbb_main.o
concurrent_vector_v2.d     mutex.o               semaphore.d           tbb_misc.d
concurrent_vector_v2.o     observer_proxy.d      semaphore.o           tbb_misc.o
condition_variable.d       observer_proxy.o      spin_mutex.d          tbb_misc_ex.d

This is the output of Get-Command g++:
PS C:\Users\alimd> Get-Command g++

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     g++.exe                                            <IP_ADDRESS>    C:\rtools40\mingw64\bin\g++.exe

But the Get-Item Env:CXX throw me error:
PS C:\Users\alimd\Documents\.cmdstan\cmdstan-2.29.2> Get-Item Env:CXX
Get-Item : Cannot find path 'Env:\CXX' because it does not exist.
At line:1 char:1
+ Get-Item Env:CXX
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Env:\CXX:String) [Get-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Is this the cuase of the problem? I don't know how to fix this.
I guess I have to use WSL if I can't find any solution for this.

That error is probably because I'm not up to date on my Powershell, not due to an error, sorry.
What does mingw32-make print-compiler-flags output if you run it in the cmdstan folder?

No, nothing. It's wierd and hard to debug this problem I think.

Also, what is the output of where.exe tbb.dll?

It returns C:\Windows\System32\tbb.dll.

If you would like to test this before editing your path, you should be able to copy tbb.dll from the tbb folder to the examples/bernoulli folder and then run the commands

🎉🎉🎉It worked after I copied the tbb.dll file under the examples/bernoulli folder. I will try to find a way to remove system32 path within R and put my solution here. So others can see how to do deal with this. Thank you very much.

Thank you. I agree I shouldn't play with system32 folder, but I have renamed tbb.dll under the system32 folder. The date of the tbb.dll quite new and I think this was a leftover by some programs. After rebooting my computer, the system startup as expected. And the most exciting part is that the stan works. Thank you so much for the help.

fit <- cmdstanr_example(chains = 1)

the bernoulli model must be run with data.  (chains=1, data="bernoulli.data.json") or however you specify path in CmdStanR.

It works, this example is given by the cmdstanr vignette.
It might be good to add quotation to the setx Path in the install-tbb.bat file though or it will throw an error.
setx Path "%~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%"

is this a documentation problem? for CmdStan, CmdStanR, CmdStanPy?

I don't think it's a documentation problem. I just checked the source code of the cmdstanr_example function, it actually loads the  bernoulli.data.json data. This is just running the example provided by the cmdstanr package.


Problem when executing docker-build.sh

Hi, i'm getting this problem when I try to execute docker-build.sh:
Step 1/23 : FROM merlin:latest as builder
pull access denied for merlin, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
I'm logged into docker, so it seems that the image doesnt exists on DockerHub or something.

Please note that you should install the Merlin Compiler before using AutoDSE as mentioned here. We assume that Merlin is already installed in a docker on your system. If you installed it locally, you can run the commands in the Dockerfile directly on your server.


Move if transform scale

If parent div scale:
<VueDraggableResizable/>
 mouse moves faster than div. To fix, add the scale parameter from VueDraggableResizable and change vue-draggable-resizable.vue 401,402 line:
this.elmX += diffX / this.scale  this.elmY += diffY / this.scale

I also had this problem.Need I  copy source and fix it?

Yes. I made a fork and fixed it myself, but I did not do push

@mauricius  Thanks. About Issue #79,Have you thought about it?

Yep! CSS transforms are just a visible effect, but the underlying component behaves just as normal, because it is not aware that it is transformed. That's why resizing a rotated component feels so unnatural. With scale is easier because you just need to have the scaling factor as prop. With rotation I'm afraid that is entirely a different story, especially for costraining the component within its parent, because the coordinates of its edges are different than the ones calculated by the component.
TBH I don't think I'm ever going to find a solution for this, it is really an edge case.

However,thank very much.

You can also check this component https://github.com/kirillmurashov/vue-drag-resize which is similar and offers props for dealing with scale.

For anyone thinking about using the other component
Problem is, https://github.com/kirillmurashov/vue-drag-resize seems to be abandoned. I'm currently jumping back and forth between both: vue-draggable-resizable and vue-drag-resize.
I'm very interested in your beta version, but neither does it support parentScale nor is it released on npmjs.com. This is a problem, because I'm relying on parentScale for image elements that can be composed on a responsive canvas. It's important to keep their relative positioning and dimensions.
This is where the other component shines. However, there are at least three show stoppers with https://github.com/kirillmurashov/vue-drag-resize

It seems to be abandoned
https://github.com/kirillmurashov/vue-drag-resize/pull/40
It eats up click events on mobile devices and Chrome Touch Mode. You cannot add a "delete" button inside the draggable element, not even if it is displayed outside the element.

@mauricius I would love to use your component. But I really need the parent scale as it works in vue-drag-resize.
I would try to add the feature using one additional and optional prop 'parentScale'.
But first I want to make sure that there's a chance for it to be merged. Would you generally accept such a PR?

https://github.com/mauricius/vue-draggable-resizable/issues/133#issuecomment-446176024
@tpraxl can you share your solution?

@eyaylagul I'm actually doing other stuff. I apply a transform: scale.

Apply a fix width / height to the parent element (I need to keep aspect ratio of the "canvas")
Watch the grand parent element with a ResizeObserver  https://itnext.io/making-adaptive-vue-components-with-resizeobserver-123b5ebb20ae
scale the parent element (divide grand-parent-width by fix width) (:style="`transform: scale(${this.scaleFactor});`)

See https://github.com/mauricius/vue-draggable-resizable#scale. I forgot to add it do the documentation when I implemented it :sweat_smile:


Webpage building broken after updating to 23.0.4

Steps To Reproduce
Upgrade to the new version - https://github.com/Skrimmage/Data-Platform/tree/main/frontend
Environment

Node version (node -v): v18.17.1
npm version (npm -v): 9.6.7
OS: Mac 14.1.1 (23B81)
Browser: Chrome
Database: CSVs

Expected Behavior
Show page with datatables after hitting back on page. Also build the whole website.
Actual Behaviour
Viewing /sports/F1/races/  on local via npm run dev:

500:Invalid time value

RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at FuseIndex.getFn (/Users/dpage/Projects/Data-Platform/frontend/node_modules/@evidence-dev/core-components/dist/unsorted/viz/DataTable.svelte:145:23)
    at file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:399:53
    at Array.forEach (<anonymous>)
    at FuseIndex._addObject (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:398:15)
    at file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:350:14
    at Array.forEach (<anonymous>)
    at FuseIndex.create (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:349:17)
    at createIndex (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:462:11)
    at Fuse.setCollection (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/fuse.js/dist/fuse.mjs:1529:7)

Build error:
node:internal/event_target:1016
  process.nextTick(() => { throw err; });
                           ^
Error: 500 /sports/F1/races/ (linked from /sports/F1/races)
To suppress or handle this error, implement `handleHttpError` in https://kit.svelte.dev/docs/configuration#prerender
    at file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/@sveltejs/kit/src/core/config/options.js:212:13
    at file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:64:25
    at save (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:403:4)
    at visit (file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:236:3)
Emitted 'error' event on Worker instance at:
    at [kOnErrorMessage] (node:internal/worker:300:10)
    at [kOnMessage] (node:internal/worker:311:37)
    at MessagePort.<anonymous> (node:internal/worker:212:57)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:741:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

Node.js v18.17.1
libc++abi: terminating due to uncaught exception of type Napi::Error:
Build failed

file:///Users/dpage/Projects/Data-Platform/frontend/node_modules/@evidence-dev/evidence/cli.js:152
			throw `Build process exited with code ${code}`;
			^
Build process exited with code null
(Use `node --trace-uncaught ...` to show where the exception was thrown)

Workarounds
Downgraded my version for the time-being.

notes on getting the evidence project running
doesn't seem to need dagster as the duckdb is version controlled
cd frontend
npm i
npm run dev

@csjh this first error is complaining about fuse - could this be #1354

Note that removing the datatable appears to solve both the above issues, so I am guessing the issue is in there

Seems to have something to do with the null values in the results being set to \N instead of null - not sure why it's still being identified as a date column even though those non-date entries are there though

Hi @dannypage let us know if this is still an issue in v24+

Fixed with >24

Came back around to this, Upgraded to v27 and USQL, and it's working! Thanks all.


Clear Slobrok entries after shutdown

i think you should also set updates=0
@havardpe this is your code i guess, can you take a look?

according to the javadoc, 'updates' does not need to be reset, but maybe we should update the shutdown method doc, indicating that all entries will be discarded (Using the Mirror after shutdown will have worse side-effects now than before)

about the lookup method:
for (Entry specEntry : specs) {
Are we guaranteed that this loop construct will touch specs exactly once, even when it is a native array?

I'm thinking that's implicit in a 'shutdown' method? It's shut-down, so how can there be entries? If ppl MAY think entries should survive shutdown, I should probably not make this change.

I think it should be ok to discard the entries during shutdown, probably even better in some cases where the Mirror is used after shutdown.
However, I also think someone MAY expect them to still be there, hence the (github) comment about being explicit in the (javadoc) comment.

OK, javadoc updated.

👍


1.4.0 introduced empty bodies in Java

Bug present since #135. Tagging you @ShikaSD, but I don't expect you to do anything about it now. I'm gussing it's a Java interop issue. I'll investigate.

Problem is with by lazy in
cachedBytes: ByteArray by lazy { super.getInputStream().readBytes() }

It feels like the problem with getParameter method shouldn't be just because of the plain query params. If I remember correctly, Jetty could drain the input stream for form (or multipart) params. However, getParameter triggers parsing of all types of parameters, which can be a problem here.

Yes, getParameter draining the stream is what's causing the problem, and switching to just parsing the queryString should be done anyway, so this bug is not a big deal. What I don't understand is why #135 broke something, and why it only broke it for Java.

Fixed in 9cbad8a9bcd39be68b45468c0895282097ad0a2b

So Kotlin implementation wasn't affected?

Didn't look like it, I tested using https://github.com/tipsy/javalin-html-forms-example and putting a call to ctx.queryParam("drained") before reading form params.

Just tested, Kotlin version was affected as well.
The problem is that lazy ByteArray reads the stream only when we explicitly ask for the input stream (like in body method), whereas before it was done on wrapper creation. Therefore, the getParameters method was receiving already drained stream, which it couldn't use.
Now the getParameters is draining the stream before we read it, which is the problem. Anyway, I think current approach is better, as it allows to skip unnecessary bytea object creation, though any methods which are implicitly draining the stream in Jetty should be taken into account.

You're right, I must've ran the Java main again by mistake. If the behavior is the same in Java and Kotlin then everything makes sense.


Allow analyzer to work for variable

As mentioned in #3695, I change the detection so the analyzer can detect anonymous messages stored in a variable.

So, the only real problem with this PR is the fact that the unit tests file is modified. I would rather you add new unit tests to a separate file, leaving the original file unmodified. Otherwise, I have to inspect every single test to make sure you didn't break something. If you could make this change, and also if you could squash all the commits into a single commit (using rebase -i or whatever) and force push the PR branch so that it is a single commit that would be great.
Thanks!

I split the test as you requested.
I can't squash everything right know but github is suppoed to allow you to do it when you merge.

Rebased/merged.


README.md has a reference to a missing file

In README.md under Usage, there is a reference for ./lib/sdrplay-3.12.1/install_lib.sh
this file isn't available under that directory.
I think it was located in the top directory (as of last week), but has been removed? I was going to create a PR to move it to ./lib/sdrplay* .. but it has been taken out completely.
P.S. it would be great if you create a new tag for every release so we can track diffs

Good pickup! This file gets extracted when you run the previous line in the README:
./lib/sdrplay-3.12.1/SDRplay_RSP_API-Linux-3.12.1.run --tar -xvf -C ./lib/sdrplay-3.12.1
Since it gets extracted I removed it from the repo.
Will definitely start doing tags soon - still adding some core functionality and want to commit freely.


vm reload fails flakily on lib_2/async/stream_periodic4_test

On the bot
https://luci-milo.appspot.com/buildbot/client.dart/vm-linux-debug-x64-reload-be/
the test lib_2/async/stream_periodic4_test started failing flakily after the commits of
https://dart-review.googlesource.com/c/sdk/+/8732
https://dart-review.googlesource.com/c/sdk/+/8702
https://dart-review.googlesource.com/c/sdk/+/8164
An example failure log is at
https://luci-milo.appspot.com/buildbot/client.dart/vm-linux-debug-x64-reload-be/3056
This flaky status is now noted in status file
tests/lib_2/lib_2.status
FAILED: none-vm debug_x64 lib_2/async/stream_periodic4_test
Expected: Pass
Actual: RuntimeError
CommandOutput[vm]:
stdout:
00:00 +0: stream-periodic4
00:21 +0 -1: stream-periodic4 [E]
Expected:
Actual:
package:test/src/frontend/expect.dart 164:30                  fail
package:test/src/frontend/expect.dart 158:3                   _expect
package:test/src/frontend/expect.dart 68:3                    expect
tests/lib_2/async/stream_periodic4_test.dart 23:9             runTest.

Checked the current test results on this test and it appears to be green for tall the VM bots including the reload bots.
Closing the issue.


Files missing for kitspace.org

Hello, Gerbers and BOM are now missing for the kitspace.org page. I have locked it down to 0391e520c2f1e953f703b467ebe6b8022971771 for now. What's the plan for the kitspace.org page?

Please remove my page from kitspace.org, I am no longer interested in being listed. Thank you for your efforts!

I can do this as soon as I am back on my laptop. Can I ask why you no
longer want it to be listed? What would Kitspace need for you to put this
and future projects there?
On Tuesday, 10 July 2018, Roman Stepanov<EMAIL_ADDRESS>wrote:

Please remove my page from kitspace.org, I am no longer interested in
being listed. Thank you for your efforts!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/robotsrulz/SP_Adapter/issues/1#issuecomment-403926202,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMoBp8oVVwG8yUQIwYf1ZW7r279k02rks5uFPXqgaJpZM4VJzHs
.

I see no benefit from being listed but I have to maintain all the files in
actual state. It's like manually registering in a search engine that is not
widely used. And I don't feel like somebody needs details about the
project. People I'm usually talking with are only interested in complete
and working solution, not details under the hood.
вт, 10 июл. 2018 г. в 22:38, Kaspar Emanuel<EMAIL_ADDRESS>
I can do this as soon as I am back on my laptop. Can I ask why you no
longer want it to be listed? What would Kitspace need for you to put this
and future projects there?
On Tuesday, 10 July 2018, Roman Stepanov<EMAIL_ADDRESS>wrote:

Please remove my page from kitspace.org, I am no longer interested in
being listed. Thank you for your efforts!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/robotsrulz/SP_Adapter/issues/1#issuecomment-403926202>,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAMoBp8oVVwG8yUQIwYf1ZW7r279k02rks5uFPXqgaJpZM4VJzHs
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/robotsrulz/SP_Adapter/issues/1#issuecomment-403941275,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE_MlYHxNGIy_fZ3LWEXaMzDmguv_a6jks5uFQK0gaJpZM4VJzHs
.

That's a shame. Do you mind leaving up the old version as it is for now?
Maybe as I add features and if Kitspace manages to get more popular you
will see more benefit.
Part of the plan is to reduce the maintenance burden by extracting all the
info from the files you use yourself. Once that happens it should be easy
to bring up to date.
I have seen some people clicking through and ordering PCBs for this on the
analytics by the way. Maybe it would be nice to integrate click counts that
everyone can see on the links.
On Tuesday, 10 July 2018, Roman Stepanov<EMAIL_ADDRESS>wrote:

I see no benefit from being listed but I have to maintain all the files in
actual state. It's like manually registering in a search engine that is not
widely used. And I don't feel like somebody needs details about the
project. People I'm usually talking with are only interested in complete
and working solution, not details under the hood.
вт, 10 июл. 2018 г. в 22:38, Kaspar Emanuel<EMAIL_ADDRESS>
I can do this as soon as I am back on my laptop. Can I ask why you no
longer want it to be listed? What would Kitspace need for you to put this
and future projects there?
On Tuesday, 10 July 2018, Roman Stepanov<EMAIL_ADDRESS>wrote:

Please remove my page from kitspace.org, I am no longer interested in
being listed. Thank you for your efforts!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/robotsrulz/SP_Adapter/issues/1#issuecomment-403926202
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/
AAMoBp8oVVwG8yUQIwYf1ZW7r279k02rks5uFPXqgaJpZM4VJzHs
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/robotsrulz/SP_Adapter/issues/
1#issuecomment-403941275>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE_MlYHxNGIy_
fZ3LWEXaMzDmguv_a6jks5uFQK0gaJpZM4VJzHs>
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/robotsrulz/SP_Adapter/issues/1#issuecomment-403955950,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMoBuq-AqhqmSSep_G__G7t80KvXXD3ks5uFQ8ZgaJpZM4VJzHs
.

I don't mind if you leave the old version however it's up to you.
There is a page on SeeedStudio site offering me 10% from each PCB order and I never received any money from them so I don't care any more. However people ask me about complete boards so I will focus on this now.

Cool, I'll leave it up at that version for now. Let me know if you ever change your mind.
It makes sense that people prefer a finished product but I thought you would have heard of at least a few people DIYing it. Even if you do get some, I think making money through referrals to the PCB fabs is much more of a challenge. I know because that's how I am trying to make money for Kitspace development and it's not making very much.
Maybe the future for Kitspace could be in assisting people to get to the finished product and selling that through registering group buys. It could still serve people that want to DIY more niche projects but as you are experiencing, when you have a known working, popular design then most people will just want to have the full solution rather than having to make it themselves.
I am wondering how you are finding the process of doing these smaller runs and selling them. What are the hardest challenges and what are annoying little things that you feel like should be solved already?
I know finding buyers is always a challenge and I wish Kitspace was in more of a state to help there. Maybe one day.


ledger: 3.1.1 -> 3.1.2

Motivation for this change
upstream release
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Assured whether relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Thank you, @jabranham.


IRQ vector table: how to support different formats

Right now the only architecture actually using the IRQ vector table generation is ARM (and X86?). The whole mechanism of table generation is build around the assumption that the table has a format compatible with a generic ARM vector table: that is an array of function pointers saved as uintptr_t. For example:
#define ISR_WRAPPER ((uintptr_t)&_isr_wrapper)

uintptr_t __irq_vector_table _irq_vector_table[64] = {
   ISR_WRAPPER,
   ISR_WRAPPER,
   ...
};

Unfortunately this is not always the case. For RISCV, for example, the IRQ vector table contains not just the address of the destination function to jump to, but an actual assembly instruction. For example (in assembly):
SECTION_FUNC(vectors, _irq_vector_table)
   .option norvc
   j _isr_wrapper
   j _isr_wrapper
   ...

Now, the IRQ vector table as generated by Zephyr is always a C file containing the uintptr_t array, so it is not easy to adapt that to the format expected for RISCV.
How we should modify this mechanism to be as generic as possible?

Modify the arch/common/gen_isr_tables.py script to generate a different kind of table according to an external parameter.
Having a different gen_isr_tables.py script for each arch
Switch to something else entirely.
???

Tagging @stephanosio @npitre @dcpleung @carlescufi

Option 1 seems like a good idea since you only need a different output by adding a new output function. The code to extract interrupts from the binary image should be the same for all architectures..... unless this is not the case here.

Unless I'm mistaken, the RISC-V table is meant to allow different entry
points for different exception causes. This is not the same as having
different IRQ vectors.

mcause is not related to IRQ numbers. It is about "Instruction address
misaligned", "Instruction Access fault", "Illegal instruction", "Load
access fault", etc.

mcause is not related to IRQ numbers. It is about "Instruction address
misaligned", "Instruction Access fault", "Illegal instruction", "Load
access fault", etc.

AFAICT mcause is also about interrupts. In the spec we have The Interrupt bit in the mcause register is set if the trap was caused by an interrupt. The Exception Code field contains a code identifying the last exception or interrupt. So when in vectored mode, you are going to set PC to mtvec.base + (mcause.code * 4).
Now, for CLINT / HLINT you can read the interrupt number directly from mcause (for example Exception Code 7 == Machine timer interrupt), for PLIC all the IRQs are going to trigger the Exception Code 11 and then you can actually retrieve the IRQ number from the PLIC.

AFAICT mcause is also about interrupts. In the spec we have `The
Interrupt bit in the mcause register is set if the trap was caused
by an interrupt.

Agreed. Although not all implementations support that bit, apparently.

The Exception Code field contains a code identifying the last exception
or interrupt. So when in vectored mode, you are going to set PC to  mtvec.base + (mcause.code * 4)`.

Well OK.
You still have to do all the register context save, the stack switch, etc.
for each IRQ vector.
Right now there is nothing duplicating that code for each of them.

Agreed. Although not all implementations support that bit, apparently.

Interesting. I need to look into this.

You still have to do all the register context save, the stack switch, etc. for each IRQ vector.
Right now there is nothing duplicating that code for each of them.

The IRQ vector table as proposed in #46980 works this way: when you don't have a direct ISR installed (that is a special kind of ISR) by default all the table entries are redirected to the old _isr_wrapper, so you have all the old code as usual and everything should be exactly as before.
When you install a direct ISR you don't jump to _isr_wrapper but you jump to a special (very quick) ISR. This ISR is marked as __((interrupt))__ so the compiler should take care of the context saving for you and in general the things you can do from inside a direct ISR are very limited.


Typo in nixos/modules/tasks/filesystems/nfs.nix

This is fixed by #10384. Can this be merged to release-15.09 as well?
As it stands, services.nfs.statdPort cannot be used.

Pushed as 71e29b4.


Arguments not being recognised

Describe the bug
Using Windows and powershell, arguments are not being recognised, the bot will only run in demo mode with test funds. - -live 1 using version 2.14.1
To Reproduce
Run the bot using any arguments and they will be set  to FALSE, see screenshot below
Expected behavior
The bot should run in live mode, also arguments such as disablebullonly should be set to FALSE but stay on TRUE
Desktop (please complete the following information):
Windows 10
Additional context
Ive re-installed all the bots again from fresh and problem still occurs, ive also added arguments into the config file but they still dont work

I don't use Windows myself so it is difficult to work on this for you. I'm not aware of any other Windows users having problems. Maybe one of the devs using Windows can help you with this.
Can you try pass the arguments as configuration in the config.json as see if it works?
{
    "coinbasepro" : {
        "api_url" : "https://api.pro.coinbase.com",
        "api_key" : "",
        "api_secret" : "",
        "api_passphrase" : "",
        "config" : {
            "base_currency" : "BTC",
            "quote_currency" : "GBP",
            "live" : 1,
            "autorestart" : 1
        }
    }
}

Also i forgot to mention, i ran the code for LTC-GBP
git pull; clear; python3 pycryptobot.py --sellatloss 0 --disablebullonly --live 1
but you can see from the screenshot the market is BTC, the config file also says LTC as base currency
im going to try your config file now also

just tried the argument as a config and they are still not working, it did seem to work fine, but when i restarted and updated the bots a couple of days ago is when the issue started

Hi, same problem here running on Ubuntu. After last update is completely ignoring arguments both from command line or from config.json file.

Okay, is fixed using new config format.

Can you share the config format please?

I run on Win10 but using WSL2. Maybe a work around would be install and use WSL2 until someone can track down the bug? I'm at work and can't until tonight.

Mmm That the one same as I have now

Seemed to have solved the issue now, not sure exactly what the problem was but i re-installed the bot and cloned the directories, then used the new style config file


All rat data are interventions, not occurrences: no presence absence information

See #209

There should be a field Materiaal_consumptie -> then it's definitly a management interaction, unless it's bak buis, those are always a management intervention.
It's possible if you do a management interaction that you don't see a rat, it could be a trail or a mark. If the poison is not eaten, the status should change to afgewerkt en afgesloten. But it is really more complicated:
On private land, they only go once, explain what they have to do, startup with vermin, and then they have to do it themselves, so then we don't know what happened next.


I can't exclude files with exclude()

With this code:
DarkGhostHunter\Preloader\Preloader::make()
    ->selfExclude()
    ->exclude("$sourceCodePath/public/phpbenchmarks_preloader_generator.php")
    ->writeTo('...');

I have this error:
2020/03/30 16:27:56 [error] 5091#5091: *177 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Symfony\Component\Finder\Exception\DirectoryNotFoundException: The "/var/www/phpbenchmarks/project/generator/var/generator/5e81fd32ac643/generated/public/phpbenchmarks_preloader_generator.php" directory does not exist. in /var/www/phpbenchmarks/project/generator/var/generator/5e81fd32ac643/generated/vendor/symfony/finder/Finder.php:589
So we can't exclude files from the list, only directories?

Yes, buy you can pass a Closure to filter further the files of your directories.

Good idea, thanks!