Remove a space leak in setValues

The comment in the code describes it best. I would have assumed unordered-containers gets this right. But, with a repeatedly hover and don't edit, I get 30Mb/min leak. If I change below, I get no leak. If I do anything without the second lookup/evaluate pair, the leak doesn't go away. I tried to reproduce this bug with unordered-containers on its own, and failed. I'm completely lost, but I do have a fix.

FWIW, after this patch and some in Shake, we're down to a 3Mb/min leak I can't get rid of in the GetModificationTimes function. I have no idea why it occurs, and the simplest things to make it go away don't work, and I've run out of time. I view it as not worth raising a ticket, since the bug will either go away on its own, or be very hard to reproduce.

How did you track these leaks?

Wrote a benchmark of repeatedly hover and noticed it leaked. Modified the code to do progressively less (e.g. turn off progress reporting, disable dirtying rules in Shake, short-circuit defineEarlyCutoff at lots of points) until the leak went away. Iterate on that pattern for an afternoon.

Please don't merge this ticket. Useful, but I now have enough information to fix it at the source.

Converted to a draft to prevent accidental merges. Thanks a lot for tracking this down @ndmitchell!

The space leak only occurs if we have collisions, but the odds of a collision should be miniscule - if we implement our Hashable instances correctly. https://github.com/digital-asset/ghcide/pull/588 fixes that, and then we can just wait for the unordered-containers fixes upstream. Closing this ticket.


I need attribute like exitOnOverlayClick to forbid click mask exit those step

It's there any events or attribute that I can use to forbid exit steps when I click the background mask, thanks.I compared with  Options Props of  intro.js and find it has props named exitOnOverlayClick. Thank you for you plugin that I don't want to use intro.js in vue project.Moreover, your work totally help me shorten my time in programming new tour function.

I read your [Configure intro.js instance] chart,and slove it.Thanks!


Cast sqrt to int

Converting the output of Math.Sqrt to int type, instead of double type, increase performance without changing the algorithm, as a C++ example.

Thanks for your PR.
it's may looks like just a cast but its much more and i know it.

Yep, sometimes small things make a huge disaster.
An example: https://www-users.cse.umn.edu/~arnold/disasters/patriot.html


Computercraft extension

Look into Computercraft to see if there's a way to add compatability that makes it easier to work with Forgero components

#211


Added .kts extension to Kotlin language

.kts is one of the officially supported extensions, it used to write gradle build files for example.

Merged.


Setup error: Could not retrieve sbt 1.0.2

Hi,
I have come from https://github.com/jflanigan/jamr/issues/44,
and I have cloned your new repo: https://github.com/DreamerDeo/JAMR.
I follow your instruction by "sdk install sbt 1.0.2'' and "sdk install scala 2.11.12'' .
And my java version is
java version "1.8.0_331".  Java(TM) SE Runtime Environment (build 1.8.0_331-b09).  Java HotSpot(TM) 64-Bit Server VM (build 25.331-b09, mixed mode).
But when it comes to "./setup'', it gets the error:
"Error during sbt execution: Error retrieving required libraries
(see /root/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 1.0.2".
And here is the complete log:
update.log
Did I do something wrong？

@zsLin177  I think you should run sbt before running ./setup'in the JAMR directory.

@zsLin177 Did you run sbt before running ./setup in the JAMR directory.

Yes, I have tried that but it does not work.


Location permission requested after tapping search this area

If I am searching an area on the map, the app should not need my location

'MAPBOX_DOWNLOADS_TOKEN' Where is the token stored, for better testing.
I am new to this.

Hey @Anshu-Bijarnia thanks for checking out my project.
For development, you generate an access token yourself. And then create a file called developer-config.xml in app/arc/main/res/values/developer-config.xml. It should look like this
<resources>
    <string name="mapbox_access_token">[DEVELOPER_TOKEN]</string>
</resources>

Watch this video to see exactly how to create a mapbox account and get a token (It's all free) - https://youtu.be/13QOrQewgoQ?t=51


EL-1308 refactor of Steps::Logic into an object with methods

https://dsdmoj.atlassian.net/browse/EL-1308
Convert Steps::Logic into an object with methods rather than globally-callable session data methods

Guidance to review

Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing
Branch is generally up to date with main Github - definitely no conflicts
No unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
PR description says what changed and why, with a link to the JIRA story.
Diff has been checked for unexpected changes being included.
Commit messages say why the change was made.

Having made this PR, I'm not completely convinced by it. There appears to be several ways of asking the same question, and it's not clear (to me anyway) whether creating this extra object helps or hinders understanding?


64 and 32-bit SDK installers, multiple variants installed at once.

Can't install both at once - having any one of the four installer variants will block the others saying that a later version is installed.  Don't know if we should have separate (is it package?) GUIDs for each of those variants, but at least some people, if not most, who want one of the SDKs will want both - I'd almost do what MS does and make a single SDK installer that includes both the 32-bit and 64-bit variants, though that would likely be more work.

I'm going to look into bundling 32 and 64 bit together or using separate GUIDs. @rpavlik , if we bundle both 32 and 64 variants, then which bitness are we using for binaries (server, central, etc.) ?

Fixed via #25


add supply and inscription # range to collection overview

For each collection It would be useful to be able to see the range of inscription numbers, and the total supply on the overview page.
See https://ordinalswallet.com/collections for an example of this

that would require getting details  of all inscriptions in a collection right?


[stable/prometheus] Fixed type for allowedHostPaths

Signed-off-by: Florian Buchmeier<EMAIL_ADDRESS>What this PR does / why we need it:
Typo in node-exporter pod security policy template. Should read allowedHostPaths instead of AllowedHostPaths
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Title of the PR starts with chart name (e.g. [stable/chart])

Has already been addressed by https://github.com/helm/charts/pull/14154 .


feat: Add l1 token address endpoint

What ❔

This PR adds an RPC method that answers the chain's base token, or 0x0..01 if the base token is eth.
Why ❔
To make clients like block explorers or cli tools able to know which token the chain they point to is operating on, now that it could be one different from eth.

Checklist

[x] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[x] Code has been formatted via zk fmt and zk lint.
[x] Spellcheck has been run via zk spellcheck.
[x] Linkcheck has been run via zk linkcheck.

PR LGTM, but the CI seems to be failing.

CI is failing in the destination branch. @kelemeno is working on that separately


There is more than one implementation for Monoid/Semigroup for numbers

For numbers we can implement two (at least?) variants of Monoid/Semigroup:

empty is 0, combine is +

assert_eq!(combine_all(&vec![2, 3, 4]), 9)

empty is 1, combine is *

assert_eq!(combine_all(&vec![2, 3, 4]), 24)

Both implementations are valid (obey Monoid/Semigroup laws) and should coexist (maybe with some wrapping types - take a look at Haskell's Monoids)

That's a great point :) Would be great to hear what you think in #2


Just check that json is in the content type.

Just check that json is in the content type allows for vendor specific content types like: application/vnd+prooph.command+json https://3v4l.org/6vlV1

We should not change the content type detection, but just remove it instead.
Server should validate request not strict, but give response always as strict as possible. The internet designed like this. We cannot force always perfect clean requests and fail if it's not, the server should be as flexible as possible to allow as much as possible. But send always as strict as possible responses.
Strict validation if request (f.e. content-type) is only needed, when you want to return different responses, based on content-type request.

@prolic updated :)

@bweston92 can you submit this PR to the develop branch?

I'm closing this one as our new psr7-middleware is used now instead of the Commanding\API. In psr7-middleware we also do not check the content-type so the issue is covered.


fix a typo

Codecov Report

Merging #381 into pycontw-2017 will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           pycontw-2017    #381   +/-   ##
============================================
  Coverage          85.4%   85.4%
============================================
  Files                59      59
  Lines              1960    1960
============================================
  Hits               1674    1674
  Misses              286     286

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 3ae67a7...4f5e506. Read the comment docs.

這個好像也過期了，應該改成審查中 XDDD

Fixed in ad5cf1a.


Improve crossbuild

Install all the prebuilt dependencies for Windows to a specific folder, and use meson command line options to specify their location.
This removes crossbuild-specific code from the meson scripts and will simplify dependency upgrades.

67f356f881898e21edabd4ecd2fb509ad4c92362


business-variable not found

I have restarted Grafana but I couldn’t find the option for ‘variables’ in the panel types with Grafana v11.1.0,
even though I installed the plugin successfully.
Any ideas?

@SNetR Please check the Grafana logs during startup to make sure that the panel was loaded successfully.

@mikhail-vl Thank you for your feedback.
I have resolved the issue and utilized the Business Panel layout. However, in my dashboard, I have two variables (Standard and Business). If I remove the Standard variables, the layouts are automatically deleted as well. Even after adding the same query in the Business Panel, it does not work.

@sonnyR Glad to hear that!


Create HelpAshu_Problem.cpp

This is a sample problem to understand the working of segment trees.
The name of problem is Help Ashu taken from hackerearth.
LINK:   https://www.hackerearth.com/practice/data-structures/advanced-data-structures/fenwick-binary-indexed-trees/practice-problems/algorithm/help-ashu-1/
Pull Request Template
What have you Changed(must)
Adding a sample problem from hackerearth to implement segment tree.
Issue no.(must) - #259
Pr will be closed and marked as spam. If issue number not found or issue was assigned to someone else.
Marking as spam can block your account from HacktoberFest.
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me if not it will marked as spam.
[x] My file is in proper folder.
[x] I am following clean code and Documentation.
[x] I have added title and what program will do first in the file.

README - How to Contribute

Open an issue before making a PR. Closed.


How to add token verification in swagger UI in gf v2 version

1. What version of Go and system type/arch are you using?

2. What version of GoFrame are you using?

gf v2.0.0-rc3
3. Can this issue be re-produced with the latest release?
4. What did you do?

Most APIs of the program need to go through the token verification middleware before they can get the interface response data, but the swagger UI does not see the place where the token can be filled in. Can you tell me whether the current version of gf supports the configuration of token verification in swagger? If not, can you provide an idea?
5. What did you expect to see?
6. What did you see instead?

@ljd1995 Yes, the token can be configured in goframe swagger, as it uses standard OpenAPI specification, please refer to https://swagger.io/specification/


Adding simplification to every step of query generation

This pull request moves toDNF and simplifyDNF to the RegexInfo.simplify method.

Created by mistake.


Switch from JitPack to Maven Central

The current plan is to publish this library on Maven Central. We need to change the gradle build accordingly and set proper configuration (like group id, artifact id, ...)

Ticket opened with SonaType for group id social.bigbone.
https://issues.sonatype.org/browse/OSSRH-87317

SonaType repository has been setup successfully. I'll start now preparing the build for pushing snapshots to Maven Central.

PGP key created and uploaded to pgp.mit.edu. Public Key details are:
pub   ed25519 2022-12-24 [SC] [expires: 2024-12-23]
A9F7C456CB1B247B59518A906EDB348BE4923DE3
uid           [ultimate] André Gasser<EMAIL_ADDRESS>sub   cv25519 2022-12-24 [E] [expires: 2024-12-23]


Extend InternalMessageBus subscription with maxGroupSize argument

Rejecting, because it doesn't actually meaningfully abstract the group-dispatching per character in the message queue


System prompt data

adds support for pulling the system prompt from the data files. Useful for some CoT datasets.
Also adds more test coverage

It looks alright. I couldn't test it myself, but seem like the change is small for people not using system prompts.
I'm just worried for increased complexity. Optional system prompts, optional inputs etc.

Yeah. That was dead code that was copied from alpaca repo.


Migration will now report head and script failures

See: Migration script does not always migrate app/views/includes/{head, scripts}.html

Would it be OK to add a test to avoid this issue reappearing after a refactor please?


testing hooky integration

testing https://github.com/pydantic/hooky

please review.

please review.

please update.


The documents linked to a ticket are not displayed by the API

Hello,
We use mainly the API to display the tickets infos in a separate, custom web software.
That works well but we don't get the datas about the documents/files linked to the ticket using only the API.
We see them in the GUI of Handesk of course but not in the API response.
Are we doing something wrong or maybe this option doesn't exist in Handesk's API ?
Best regards,

This is something not implemented in handesk yet,
feel free to submit a PR adding this to the api endpoint, should be easy


Bug: Annotation groups obstruct code to be marked

If a large number of rubric categories exist, the annotation groups menu overflow and obstruct the code to be marked. Expected behaviour: the menu is constrained to the space above "view plain +A -A ?". This potentially makes it impossible to see the first several lines of a submission.

Reason for marking invalid:

cannot reproduce issue


setup android baselineProfile

Block: https://youtrack.jetbrains.com/issue/KTOR-5728/Linking-release-build-leads-to-compilation-error-with-coroutines-of-version-1.7.0-Beta

Gradle Managed Virtual Devices failing in CI: https://issuetracker.google.com/issues/193118030


Hey! I want to add a INSERT CATCH GAME

hey! @irshadmd  New Opensourcedev here!
pls assign me this task

go ahead 🚀


Keybase: Possibly revoked data detected

The Keybase UI has been giving me the following notification:
Keybase: Possibly revoked data detected
So I sent the log. Hope this helps.
my log id: 322fecc382a8b6eec581411c

Hi @foltzwerk: what's the history of your keybase account?    Had you written to your private KBFS directory before that?  If so, that data is now lost since you completely reset the account.  We don't have a good automatic procedure for that yet, but if you want us to reset that folder to be empty so you can use it again, we can do that.
We just need your explicit, signed permission.  So please run this command and post the output here if that's what you ant.  Please substitute the current date and time where indicated:
keybase sign -m "<DATE AND TIME>: Please reset folder /keybase/private/foltz because I reset the Keybase account foltz."

And if there are other folders that need a reset too (like your public folder?), add those too.

Hi Jeremy,
Yes, I reset my keys and proofs the other day.
2016-04-23-095430 PDT: Please reset folder /keybase/private/foltz because I reset the Keybase account foltz.
BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5wcIkHbsF67Phi pOHvASu3D9fNmQm zGhXbphJPqzhcCU git0eDe1vywqliS usYW9EI8ZSsTxlt A8HjWJKwzDI5r8m YtJDqpSYfwPgKYS 0yu9J6cWvQloqMB QRY3SKoAHN2eLrq NRZrxwh6wATIML6 4nJ7J2oIrfbB43X 7qarp6VWKmgRAU5 BImEUrPUPXG1Ut6 kdG0uJ4OQO97AIo XwSyMjs05DruYA7 4w8Jw8OlGxs29KU pj7S4RdVknOG6BJ G5NMT6eUU29DMCE vGbMBwQhzl4ui7s xO3sonCHN8AbPjp xeWoNfc3EzSiNfS flClptU5iXDWQle RpDwWScpOfR51u3 5yGcpEGq2DJWcpc XSWDd0RFR4PeOPT 7L2WEJ2ZtmFysxw ncfV62mZYGSQEjT ge. END KEYBASE SALTPACK SIGNED MESSAGE.
Thanks.

On Apr 23, 2016, at 9:00 AM, Jeremy Stribling<EMAIL_ADDRESS>wrote:
Hi @foltzwerk: what's the history of your keybase account?  Had you written to your private KBFS directory before that? If so, that data is now lost since you completely reset the account. We don't have a good automatic procedure for that yet, but if you want us to reset that folder to be empty so you can use it again, we can do that.
We just need your explicit, signed permission. So please run this command and post the output here if that's what you ant. Please substitute the current date and time where indicated:
keybase sign -m ": Please reset folder /keybase/private/foltz because I reset the Keybase account foltz."
And if there are other folders that need a reset too (like your public folder?), add those too.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Thanks @foltzwerk, your private folder should be reset now.  Please try it again.

Hi Jeremy,
I missed this last part of your previous email: "And if there are other folders that need a reset too (like your public folder?), add those too.”
Adding them now. No rush. Thanks.
2016-04-23-125000 PDT: Please reset folder /keybase/public/foltz because I reset the Keybase account foltz.
BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5wcIkHbsF67Phi pOHvASu3D9fNmQm zGhXbphJPqzhcCU git0eDe1vyWBPFJ 3OoricDUaeeAIGx d0MJhbL9q30TCzB UhK42jmgWWRr4rv tZuxwwoGv1yCnA9 cSeDOr2ckhllYFW qn1Ts15Ibl2PypC G4sVnuHSM7sbXEr Zi11ktO7H8LTDVV yHCqthcq4fuXblP d3lOSJ4OQO97AIo XwSyMjs05DruYA7 4w8Jw8OlGxs29KU pvOPhsZfX5Ed4ve CeEarhKnK701g3g ag0ypHTvtugGs87 3SmbWfBw3JlRNQI lgpTfwiyJ0vzrIm 8N93KQ6HVX3xZXq oAgvYZjW1Skbr0K nrTEHqHDEOroKJr PibtdelYQhtJ5ps EXYfIHkQKegFLwr 74DytUY1U9CcdKB U. END KEYBASE SALTPACK SIGNED MESSAGE.

On Apr 23, 2016, at 12:35 PM, Jeremy Stribling<EMAIL_ADDRESS>wrote:
Thanks @foltzwerk, your private folder should be reset now. Please try it again.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Ok, your public folder is reset too.

Hi Jeremy,
I made changes to the index.md in my public folder but the old version must be cached in the web server. https://foltz.keybase.pub https://foltz.keybase.pub/
I attached the index.md from my current /keybase/public/foltz directory so you can see the difference.
Is there something I’m doing wrong on my end?
Thanks,
David

On Apr 23, 2016, at 4:32 PM, Jeremy Stribling<EMAIL_ADDRESS>wrote:
Ok, your public folder is reset too.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/keybase/client/issues/2673#issuecomment-213852852

Because our reset protocol isn't automated yet, there are some loose ends.  Internally we track folders with a monotonically-increasing revision number, and when we reset your folder it dropped to 0, but keybase.pub probably thinks it is still at the old value (I think ~1800).
I just fixed it by restarting keybase.pub.

Thank you.
I am enjoying Keybase. It rekindled my interest in using PGP for email. The last time I tried GPGmail on Mac OS, about a year ago, it would crash Mail.app every time. Now it works nearly perfectly. I know that Keybase and GPGTools aren’t related but for the first time I feel like Pretty Good Privacy is within reach of average users. Maybe Keybase can accellerate its adoption. Anyway, I think you’re working on cool stuff.
David

On Apr 26, 2016, at 7:38 PM, Jeremy Stribling<EMAIL_ADDRESS>wrote:
Because our reset protocol isn't automated yet, there are some loose ends. Internally we track folders with a monotonically-increasing revision number, and when we reset your folder it dropped to 0, but keybase.pub probably thinks it is still at the old value (I think ~1800).
I just fixed it by restarting keybase.pub.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/keybase/client/issues/2673#issuecomment-214953286


Accepted query strings in page cache enhanced

Add support fo accepted query strings in page cache enhanced  mode
Feature Request https://github.com/szepeviktor/w3-total-cache-fixed/issues/221

waiting for community review...

Wow...wonderful feature.  I will review it later today (out and about buying last minute xmas presents)

Hi @nigrosimone  i did some adjustments to your code to include a section for nginx too: commit .
However, i discovered some issues...
The Accepted Query Strings field allows for regex entries.  So entries such as the following are permitted by w3tc:
utm_source
utm_source=foo
utm_source=.*
utm_source=(foo|bar)

Because of that i was thinking your line:
$rules .= "    RewriteCond %{ENV:CustomQueryString} ^(.*)&?".$query_string."=[^&]+&?(.*)$ [NC]\n";

Might be better as:
$rules .= "    RewriteCond %{ENV:CustomQueryString} ^(.*)&?".$query_string."[^&]*&?(.*)$ [NC]\n";

Notice i removed the "=" and replaced the "+" with "*"
However, even with the change the user would still have to be careful since if they did something like utm_source=.* it would fail because it should be utm_source=.*? and something like utm_source=(foo|bar) would have to be utm_source=(?:foo|bar) because of the $2 would get mismatched.  I figure it's not a big deal since most people probably wont get too intense with regex in that field.
I didn't do a Push Request yet.  Figured to show you the changes first so we can make any further adjustments.

some adjustments to your code to include a section for nginx too

awersome!

even with the change the user would still have to be careful

this is dangerous... if user broken htaccess "compliance", the website goes down and show white screen of dead. i think it's better specify it in the dashboard with a "strong" label under the textarea.

this is dangerous... if user broken htaccess compiling, the website goes down and show white screen of dead. i think it's better specify it in the dashboard with a "strong" label under the textarea.

I'll definitely do that.

Since i have a branch that is a clone of this branch but with newer tweaks i figure this PR shouldnt be squashed/merged but simply Closed and just Push my branch instead.  So i will do that.

yeah! maybe with practical examples like:
foo=.*?
foo=(?:bar|baz)


Export styles as CSS so the package could be used in non-tailwind projects

Hi @jakeprins I am trying to use react-vault in a SPA react application using MUI.
Unfortunately, I am having a hard time scoping the styles when I import<EMAIL_ADDRESS>All the MUI components are now being affected by the styles in the tailwind file since they share the same selectors, e.g., button, etc.
Ideally I only need the Vault component styled from Apideck since it is a modal that opens up.
Do you have any recommendations how I might solve this? Is there any timeline/priority on this ticket?
Best
Michael

Hey @michael-pont,
Are you using the latest version of React Vault? I believe the exported CSS should now be scoped (https://github.com/apideck-libraries/react-vault/commit/2a889d5a263035611835d239f89a6b19c3628218)
If you have the latest version installed and it's still causing issues let me know so I will investigate it.

Yes I am using version 0.2.10.
Here is my component code below

import { Vault } from '@apideck/react-vault';
import { useState } from 'react';
import { createVaultSession } from '../../api/queries';
import { Typography, Button } from '@mui/material';
import { useMutation } from 'react-query';
import { Box } from '@mui/system';
import { useUserStore } from '../../hooks/useUserStore';
import<EMAIL_ADDRESS>//import { Button } from '@apideck/components';
//import './ApideckVault.module.css';

const ApideckVault = () => {
  const userId = useUserStore((state) => state.getUserId());

  const [token, setToken] = useState('');
  const [openVault, setOpenVault] = useState(false);
  const [vaultLoading, setVaultLoading] = useState(false);
  const [vaultError, setVaultError] = useState('');
  const mutation = useMutation(createVaultSession);

  const createSession = () => {
    setVaultLoading(true);
    setVaultError('');
    mutation.mutate(userId, {
      onSuccess: (data) => {
        setToken(data.session_token);
      },
      onError: (error) => {
        console.error(error);
        setVaultError('Error creating session');
      },
      onSettled: () => {
        setVaultLoading(false);
      },
    });
  };

  const toggleVault = () => {
    setOpenVault(!openVault);
  };
  return (
    <Box sx={{ display: 'flex' }}>
      <Button
        onClick={token ? toggleVault : createSession}
      >
        Open Vault
      </Button>
      {vaultError && <Typography>{vaultError}</Typography>}
      <Vault
        token={token}
        open={openVault}
        onClose={toggleVault}
        unifiedApi="crm"
        serviceId="salesforce"
      />
    </Box>
  );
};

export default ApideckVault;

I believe for my particular setup css modules could work as a solution where I target the class name of the vault component.
https://www.gatsbyjs.com/docs/how-to/styling/css-modules/

Hi Jake,
Thanks for your help. I will try it out.
I am currently using the following from MUI which affects the css injection order, so I will have to play around with it.


feat(server): Support returning multiple results from execute

This PR adds supporting the changes of https://github.com/graphql/graphql-js/pull/2319 (but also for allowing to use graphql-transport-ws with my live query implementation)
@enisdenjo Please let me know your opinion on adding this 😄

Thank you for this PR! Before I dig in reviewing the code, I'd just like to touch on one point - shouldn't live queries be requested through the subscription operation?
For example, if you want to make this live:
{
  hello
}

you'd do:
subscription {
  hello
}

I am not so familiar with live queries, as I never used them 😅, but, this is how PostGraphile does it. Even in the Hasura live queries architecture document, they send live query events through the subscriptions operation.

I recommend reading https://medium.com/open-graphql/graphql-subscriptions-vs-live-queries-e38302c7ab8e
There is no official spec for live queries. The drawback of using subscriptions is that you can only query for one root field and need to also add all your query root fields to the subscription root type. Aside from that both live queries and subscriptions can be used to do the same things.

Thats fair! Thanks for sharing your insights and the great article. I learned something new. :D

:tada: This PR is included in version 1.8.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fixing typos

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description
Grammar corrections
Type of change
Checklist:

[ ] My changes generate no new warnings

Hi @mersonfufu! Thanks for your help :)
Can you please create a new issue and link it here?


Allow docx arbitrary attributes. Fixes #81

Fixes #81. This doesn't solve all the obstacles the docx var matching currently has, but it does solve this particular issue. See tests at<EMAIL_ADDRESS>and test with this Jinja:
Should NOT cause wizard prompts
{{users[0].email}}
{{users[0].address.address}}
{{users}}
{{users[0]}}
{{users[0].familiar_or()}}
{{users[0].birthdate.format("dd")}}
{{users[0].birthdate.format()}}

Causes wizard prompts because of unrelated functionality issues
{{users[0].address.block()}}

Should cause wizard prompts
{{users[0].mailing_address}}
{{user_has_name}}
{{users.number()}}
{{today()}}

Is this ready to merge?


Mistral 7B | RuntimeError: query and key must have the same dtype

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior
Not fail.
Current behaviour
It fails after running for around 5.5 minutes. I tried changing settings but no luck. I also tried updating peft library as per this post: https://github.com/OpenAccess-AI-Collective/axolotl/pull/132#issuecomment-1574882573
Terminal log (file names are a little bit different than the rest of the issue but have identical contents).
https://app.warp.dev/block/kqypTiu3ext2XlJPXHIGjY
Steps to reproduce
Based off the official config.yaml for Mistral I built my own and attempt to train using
accelerate launch -m axolotl.cli.train config.yml
Running on RunPod A100 using runpod/pytorch:2.0.1-py3.10-cuda11.8.0-devel (the Axolotl docker image always gives issues with pytorch so I don't use it).
Config yaml
base_model: mistralai/Mistral-7B-v0.1
base_model_config: mistralai/Mistral-7B-v0.1
model_type: MistralForCausalLM
tokenizer_type: LlamaTokenizer
is_mistral_derived_model: true

load_in_8bit: false
load_in_4bit: false
strict: false

datasets:
  - path: merged.jsonl
    ds_type: json # see other options below
    type: completion
dataset_prepared_path:
val_set_size: 0.01
output_dir: ./lora-out

sequence_len: 8192
sample_packing: true
pad_to_sequence_len: true

wandb_project: abc-project
wandb_entity:
wandb_watch:
wandb_run_id: abc-1-mistral-merged
wandb_log_model:

gradient_accumulation_steps: 4
micro_batch_size: 2
num_epochs: 10
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.000005

train_on_inputs: false
group_by_length: false
bf16: true
fp16: false
tf32: false

gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true

warmup_steps: 10
eval_steps: 20
eval_table_size: 5
eval_table_max_new_tokens: 128
save_steps:
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:
  bos_token: '<s>'
  eos_token: '</s>'
  unk_token: '<unk>'

Possible solution
It worked well with Llama 2 but it's not a solution...
Which Operating Systems are you using?

[X] Linux
[ ] macOS
[ ] Windows

Python Version
3.10.6
axolotl branch-commit
main/29b8f46aeddf3919034584a0fa7214394510e7c9
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of axolotl.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

I assume this is a pretty small dataset. Could you try increasing the val_set_size from 0.01 to 0.05, and also try it with eval_sample_packing: false

I can try that.
Side note: I end up moving to lora with load_in_8bit: true since I realised that this is old-fashion/full weights training. That worked. I am curious if load_in_8bit: false and no lora means it'd be better/faster to train. The dataset has around 10k json lines/examples. Some of them are a few tokens and others can be all the way up to 3k.
By the way, can you explain how does the progress bar come up with the total number of iterations? Is it number of epochs (steps) * examples in dataset * something else? I cannot seem to figure out and estimate it.

the Axolotl docker image always gives issues with pytorch so I don't use it

Hey, I noticed this one thing. Could you also please clarify what were the issues? Which image did you use that had the issue?

Sorry Nano, I will try again one day. I think the issue was that I used H100 instead of A100 and it was maybe a driver issue. I then went back to PyTorch and A100. So it's not entirely fair.

Thanks @winglian. Perhaps it was it that helped. I retried using this example https://huggingface.co/ehartford/dolphin-2.1-mistral-7b/blob/main/configs/dolphin-mistral-7b.yml and it has your advice implemented for val_set_size. I'm gonna close this for now. Pleasure working with this tool!


Improve CSS only HMR by applying scoping class to every element

Also bumps svelte-hmr to 0.14.0, to guarantee stable HMR transform code with injectCss: false (and injectCss has been changed to false in this version).

Following discussion on Discord, I moved the *{} logic to a preprocessor.
Unfortunately, we can't use the simple style hook to avoid an extra parse, because it misses the cases when a <style> tag is added or removed from a component. For one thing, it triggers an unneeded JS update (losing state in the browser) but, in the case of removing, it also causes an error in the browser trying to fetch the inexistant virtual CSS module.

good catch with the style removal. do you need to parse and inject the style rule in markup though?
just append a

who has a string <style in script block but no

as discussed on discord we're going for a simpler style preprocessor first. and may revisit a more elaborate solution later


Ignore SSL checking in HTTP20Adapter

I have a self-signed SSL nginx server that support HTTP2. Normally when I call the api to the server with requests, I will use verify=False to ignore the SSL checking.
After I realised requests itself does not support HTTP2, then I applied your HTTP20Adapter, how I can achieve the same result by ignore the SSL checking but transmit the request with HTTP2?
import requests
from hyper.contrib import HTTP20Adapter
s = requests.Session()
s.mount("https://myserver", HTTP20Adapter())
#
# s.verify = False
r = s.get("https://myserver/endpoint")
# or
# r = s.get("https://myserver/endpoint", verify=False)

It will got SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
The code below is basically same as your requests integration in your document.
Any suggestions?

Thanks for raising this issue! This will be resolved by #321.


fix formatting issue

Ticket
Link to Github Issue
https://github.com/tenstorrent/tt-metal/issues/15038
Problem description
Provide context for the problem.
rdoc format issue
What's changed
Describe the approach used to solve the problem.
Summarize the changes made and its impact.
Added a space to fix formatting
Checklist

[ ] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[ ] (For models and ops writers) Full new models tests passes
[ ] New/Existing tests provide coverage for changes

fixed in another pr by Borys


Foundation 6.4.3 buttons/links for initialized elements like reveal/toggle are not working until page resources like images etc. finish loading (even with lazy load)

What should happen?
When the web page is loading, the foundation elements should be available for interaction as soon as possible. When the $(document).foundation() is called, the elements like reveal are initialized and it should be possible to open the reveal with the related button/link. This should not wait until all the images and other page resources load into the page, especially if those resources are loaded by other js modules (e.g. image lazy load)
What happens instead?
When foundation is initialized e.g. for reveal, the reveal is available, but the buttons/links that trigger it to open are non-clickable.
E.g. on this page: https://foundation.zurb.com/sites/docs/reveal.html#sizing if you hard-refresh the page on slow connection and try clicking any of the "Click me for a modal" buttons, the click does nothing until all of the page resources finish loading. But the foundation reveal is already there and can even be called from dev tools console with $('selector').foundation('open').
Possible Solution

It was working as expected in foundation 6.3.1, so, might be that code changes review can help.
Test Case and/or Steps to Reproduce

Test Case:

How to reproduce:

Go to https://foundation.zurb.com/sites/docs/reveal.html#sizing
Open dev tools (in Chrome) -> Network tab, set connection to 'Slow 3G'
Hard-refresh the page (e.g. Ctrl+F5) and while the page still loads, try clicking 'Click me for a modal' button.
Once the page resources finish loading, you'll see that the button starts behaving.But before that, the clicking does nothing.

Context

There are some marketing images on the page, along with the useful info of a product and button to request more info. The button opens the reveal modal with a request form. The marketing images at the top of the page are loaded by the js plugin (galleria). The idea is that the users should be able to make a request right away, without waiting for every single marketing image to finish loading. It  was working before with the foundation 6.3.1
Your Environment

Foundation version(s) used: 6.4.3
Browser(s) name and version(s): Chrome 67.0.3396.87, Firefox 52.8.1
Operating System and version (desktop or mobile): desktop Linux Debian 9, desktop Windows 8

Checklist (all required):

[ x] I have read and follow the CONTRIBUTING.md document.
[ x] There are no other issues similar to this one.
[ x] The issue title is descriptive.
[ x] The template is correctly filled.

Well, this depends on when your JS is loaded and the DOM is ready. Lazyloading should not affect this.

@DanielRuf, the foundation is initialized not waiting for the DOM to be ready, it is just called at the bottom of the document. But the point of this bug report is that after the foundation has been initialized and if there are any other images loading (even if those images are inserted dynamically with js), the button/links to interact with foundation elements are not clickable.

it is just called at the bottom of the document

This is the same. We also wait for documentready for many events.

after the foundation has been initialized and if there are any other images loading (even if those images are inserted dynamically with js), the button/links to interact with foundation elements are not clickable.

This would be new for me.
The performance and JavaScript profilers show when the JS is executed. In general we had no issues with lazyloading solutions like lozad.

The problem exists whether you are using lazy loading or not - lazy loading is an attempt to workaround the problem

Might be that this issue has something to do with the load events.
I noticed an issue related to load events: https://github.com/zurb/foundation-sites/pull/11077

You can test Foundation Sites 6.5.0 RC1 now.

Hi @web-on. This is a great issue, thanks for the explainations.
This was already reported in https://github.com/zurb/foundation-sites/issues/10869 and this would be fixed by the pull request https://github.com/zurb/foundation-sites/pull/10877, so i'm closing it.
Duplicate of #10869


Cuda throws unknown error

Hi,
face_recognition was working properly until I've restarted my computer, then during the import face_recognition I'm having a:
Error while calling cudaGetDevice(&the_device_id) in file
...\AppData\Local\Temp\pip-install-l23j6xdc\dlib\dlib\cuda\gpu_data.cpp:201. code: 999, reason: unknown error
I've checked the file and it not exists. Folder pip-install-l23j6xdc  is not there.
For further details program fails when calling:
24
25 cnn_face_detection_model = face_recognition_models.cnn_face_detector_model_location()
---> 26 cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)
27
28 face_recognition_model = face_recognition_models.face_recognition_model_location()
And yes... I've restarted my machine already

This is gpu_data.cpp and 201 line

Solved it. My graphic card signature failed with code 52. Needed to reinstall driver and cuda


Isolation Glossary

Added Isolation to Glossary
Linked each other

RKI Link for 'Kriterien' in Isolation : https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Entlassmanagement.html?nn=13490888

@browkin
Will you add an English translation?
If there is no English text available, then perhaps add the terms

Isolation
Quarantine

to the English glossary and link to the German glossary with a note that the definitions are only available in German?

@MikeMcC399 FYI EN texts been added.

@dsarkar

FYI EN texts been added.

Thanks for the heads-up! The text looks fine, just minor formatting to be fixed.

@MikeMcC399 Thanks for the review and corrections.


Crash

After patching, when starting new save or loading from flight to KSC game will crash. With mods or witouh - all the same
[ LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[LagRemover] [Info] Loaded JOINT_RIGIDITY with value of1500000
[General] [State] Swapping game state! prev: [FlightView] --> new: [Loading]
[Debug] Loading Local Space Kerbin...
[Debug] Kerbin - Local-Space Load Finished. 1.8256s
d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
d3d11: failed to create buffer (target 0x5 mode 0 size 480) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 60) [0x887A0005]
d3d11: failed to create 2D texture id=5589 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5591 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5593 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5537 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 4800) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 768) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5539 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5595 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5541 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5543 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5545 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 4576) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 324) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5547 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5549 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 1320) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 168) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 5120) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 672) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 6760) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 900) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 14080) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 2112) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5551 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5553 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5597 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5555 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 20608) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 3336) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5557 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5559 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 961520) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 116838) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5561 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5563 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5565 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 187328) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 32160) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 3328) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 396) [0x887A0005]
d3d11: failed to create 2D texture id=5599 width=8 height=8 mips=4 dxgifmt=71 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5567 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 1056) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 144) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5569 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5571 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5573 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5575 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5577 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 25920) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 4632) [0x887A0005]
d3d11: failed to create 2D texture shader resource view id=5579 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 104600) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 12120) [0x887A0005]
d3d11: failed to create 2D texture id=5601 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5581 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5583 [D3D error was 887a0005]
d3d11: failed to create 2D texture shader resource view id=5585 [D3D error was 887a0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 15232) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 2832) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 5120) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 672) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 53020) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 4248) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 71856) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 8844) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 649296) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 155850) [0x887A0005]
d3d11: failed to create buffer (target 0x1 mode 0 size 5120) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 672) [0x887A0005]
d3d11: failed to create 2D texture id=5603 width=8 height=8 mips=4 dxgifmt=78 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5605 width=8 height=8 mips=4 dxgifmt=71 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5607 width=32 height=8 mips=6 dxgifmt=78 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5609 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5611 width=8 height=8 mips=4 dxgifmt=78 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5613 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5615 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create staging 2D texture w=128 h=2 d3dfmt=10 [887a0005]
d3d11: failed to create buffer (target 0x5 mode 0 size 480) [0x887A0005]
d3d11: failed to create buffer (target 0x2 mode 0 size 60) [0x887A0005]
d3d11: failed to create 2D texture id=5617 width=8 height=8 mips=4 dxgifmt=71 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5619 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5621 width=8 height=8 mips=4 dxgifmt=78 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5623 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5625 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5627 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5629 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5631 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5633 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5635 width=8 height=8 mips=4 dxgifmt=71 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5637 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5639 width=8 height=8 mips=4 dxgifmt=72 [D3D error was 887a0005]
d3d11: failed to create 2D texture id=5641 width=8 height=8 mips=4 dxgifmt=77 [D3D error was 887a0005]

Likely related to the LagRemover project, rather than space warp itself


[23.05]Build failure: uboot for riscv

Steps To Reproduce
Compile uboot source ( polarfire uboot ) for mpfs-icicle-kit (riscv)
Build log
  AS      arch/riscv/lib/memcpy.o
  AS      arch/riscv/lib/crt0_riscv_efi.o
arch/riscv/cpu/mtrap.S: Assembler messages:
arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause', extension `zicsr' required
arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc', extension `zicsr' required
arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval', extension `zicsr' required
arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0', extension `zicsr' required
  CC      boot/bootm.o
arch/riscv/cpu/start.S: Assembler messages:
arch/riscv/cpu/start.S:65: Error: unrecognized opcode `csrw stvec,t0', extension `zicsr' required
arch/riscv/cpu/start.S:72: Error: unrecognized opcode `csrw sie,zero', extension `zicsr' required
arch/riscv/cpu/start.S:346: Error: unrecognized opcode `csrw stvec,t0', extension `zicsr' required
  CC      arch/riscv/lib/reloc_riscv_efi.o
  CC      cmd/boot.o
  CC      boot/bootm_os.o
  CC      cmd/bootm.o
  AR      cmd/riscv/built-in.o
  CC      common/main.o
make[1]: *** [scripts/Makefile.build:289: arch/riscv/cpu/mtrap.o] Error 1
  CC      cmd/panic.o
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:289: arch/riscv/cpu/start.o] Error 1
  CC      cmd/help.o
  CC      boot/pxe_utils.o
  CC      cmd/blk_common.o
  CC      common/init/board_init.o
  CC      boot/image-board.o
  CC      boot/image-fdt.o
  CC      boot/image.o
  CC      cmd/version.o
  CC      common/exports.o
  CC      cmd/source.o
  CC      common/cli_hush.o
  CC      common/autoboot.o
  CC      common/board_f.o
  CC      cmd/bdinfo.o
  CC      boot/image-fit.o
  CC      disk/part.o
  CC      disk/part_dos.o
  CC      disk/part_iso.o
  CC      common/board_r.o
  CC      cmd/blkcache.o
  CC      disk/part_efi.o
  CC      cmd/bootefi.o
arch/riscv/lib/cache.c: Assembler messages:
arch/riscv/lib/cache.c:12: Error: unrecognized opcode `fence.i', extension `zifencei' required
arch/riscv/cpu/cpu.c: Assembler messages:
arch/riscv/cpu/cpu.c:94: Error: unrecognized opcode `csrs sstatus,a5', extension `zicsr' required
arch/riscv/cpu/cpu.c:95: Error: unrecognized opcode `csrw 0x003,0', extension `zicsr' required
  CC      common/board_info.o
make[1]: *** [scripts/Makefile.build:254: arch/riscv/cpu/cpu.o] Error 1
  CC      cmd/booti.o
make[1]: *** [scripts/Makefile.build:253: arch/riscv/lib/cache.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1810: arch/riscv/cpu] Error 2
make: *** Waiting for unfinished jobs....
  CC      cmd/cpu.o
  CC      cmd/console.o

Additional context
Compilation works fine when we use nixpkgs 22.11.
    #nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
     nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";

The issue is reported only with 23.05. Some extended riscv instructions are supported in gcc11 or later. So if we configure stdenv to use gcc11, it works fine.
With nixos-22.11 I need not to force any gcc version.

23.05 uses gcc 12 by default. nixpkgs/nixos-23.05#pkgsCross.riscv64.ubootQemuRiscv64Smode compiles fine for risc-v so it would be nice if you could provide a way to reproduce the problem.

I will create a repro for you.

Please clone following Github repository
https://github.com/tattvam/nix-polarfire.git
and run nix-build
It compiles uboot and kernel for Microchip polarfire SoC successfully but when we comment following line in file icicle-kit/default.nix
overlays = [ (self: super: { gcc = self.gcc11; }) ];
it will throw the error.
If you see nixpkgs/pkgs/misc/uboot/default.nix in 22.11, there was a patch to workaround it:
ubootQemuRiscv64Smode = buildUBoot {
    defconfig = "qemu-riscv64_smode_defconfig";
    extraPatches = [
      #<EMAIL_ADDRESS>      (fetchpatch {
        url = "https://patchwork.ozlabs.org/series/283391/mbox/";
        sha256 = "sha256-V0jDpx6O4bFzuaOQejdrRnLiWb5LBTx47T0TZqNtMXk=";
      })
    ];
    extraMeta.platforms = ["riscv64-linux"];
    filesToInstall = ["u-boot.bin"];
  };

But now since this patch is merged in latest uboot so it compiles successfully 23.05, but older uboot will not compile. A way to fix this is to force compilation to gcc11.

You can either copy the patch, or append the following to makeFlags (extraMakeFlags if you are using buildUBoot)
"ARCH_C=c_zicsr_zifencei"

This will append the required extensions to the end of the march option

It works as it is, without any such changes on latest nixpkgs 22.11. Probably we are missing some fix on 23.05.

It was changed in binutils 2.38 according to the patch so that zifenci and zicsr were not enabled by default.

The breaking change was https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=aed44286efa8ae8717a77d94b51ac3614e2ca6dc which disables zifencei and zicsr by default as part of the update from 2.2 to 20191213, The patch for u-boot re enables the instructions required.

Following changeset fixes the issue:
https://github.com/NixOS/nixos-hardware/pull/661
It is backward compatible.

Is there anything to do nixpkgs-side? if not then close.

Please close this.

https://github.com/NixOS/nixos-hardware/pull/661
Fixes the issue.


Stop working

Sometimes the pip stops when I watch shorts then go back to a vid and I have to kill the app to get it to work again

Could you provide the detailed steps to reproduce this issue of yours?

When I use pip the. Go to shorts the pip stops working when I select a video

Sometimes

The pip stops working when I watch shorts

Better record a video of such behavior. I can't reproduce the bug.

https://www.swisstransfer.com/d/64d4aed1-4733-4b27-b514-714c379bd786

This is a video that explains the problem it’s just to big for GitHub

Have you seen the video

Yes but no time to work on it yet.

oh right i see

@JackPlaysGames0510 Still a problem?

Not the original author and not sure if entirely up to date (using uyouenhanced built 2 weeks ago v19.42.1-3.0.4, not sure if you’ve changed anything since then) but still getting the issue very frequently


Hashtag download stops after 8 posts

Describe the bug
Hashtag download stops after 8 posts
To Reproduce
loader= Instaloader(download_comments=False,
download_videos=False,
download_geotags=False,
save_metadata=False,request_timeout=100) loader.download_hashtag(hashtag,max_count=max_count,fast_update = False,)
Expected behavior
Posts should be downloaded
Error messages and tracebacks
No Errors
Instaloader version
4.5.3
Additional context
macOS and Linux

Got a similar error here, download nothing and break. No idea, what happened.

To Reproduce
loader= Instaloader(download_comments=False,
download_videos=False,
download_geotags=False,
save_metadata=False,request_timeout=100) loader.download_hashtag(hashtag,max_count=max_count,fast_update = False,)

This is hardly how to reproduce this bug. Running these commands works fine for me, downloading max_count hashtags with hashtag set to a hashtag that has enough posts.

@aandergr are you logged into an account or using it as is? I’m trying figure out what could be causing it if it’s working for you. I’ve tried on multiple hashtags and systems

Im not currently logged in with an account. here's a screenshot:
https://ibb.co/3vGLQp1

It just stops without error, I print the DONE

Other scrapers are also having this issue it seems

Having this issue as well. Stopping on the 8th post for any hashtag I try.
Also on MacOS Catalina, using Python 3.7.6, instaloader 4.5.3
Issue occurs whether logged in or not.
The hashtag cars has more than 8 posts, so I would expect it to pull the requested 25.
import instaloader L = instaloader.Instaloader(download_videos = False, download_comments = False, save_metadata = False) L.download_hashtag('cars', max_count = 25, profile_pic = False)

Hah, it works on your machine! What OS are you on? OP and I are on MacOS. Might be related to that.

I’ve tried on Ubuntu with command line, and get the same issue. Tried different IP addresses as well, same issue.

So I tried different IPs in different regions to investiage this. Indeed, in one region, Instaloader returned only 8 hashtag posts. But accessing Instagram in a browser quickly revealed the reason:

(Recent posts from all hashtags are temporarily hidden to help prevent the spread of possible false information and harmful content related to the election.)
So of course, Instaloader does not return the hashtag posts in this case.
The hashtag posts that are accessible are just the 9 top posts. These are correctly returned by Hashtag.get_top_posts(). The only bug that we still have here is that Instaloader downloads 8 instead of 9 posts in this case.

Ahhh that would explain it. Duh, I should have thought to go check on Instagram proper. Good catch. Darn Americans :) I appreciate your responsiveness.

@aandergr thanks!

@aandergr thanks a lot for your responsiveness and guidances.
Do you know why it is retreieving only 10 entries despite asking for 1000 entries?
Also, how can I ask it to download all the posts for a specific hashtag if I don't have a time constraint?
(base) mona@mona:~/research/insta-scrape$ python instaloader_tester.py
Retrieving pictures with hashtag #book...
[   1/1000] #book/2020-11-30_00-22-21_UTC.jpg exists [Uma semana linda se inicia pr…] unchanged
[   2/1000] #book/2020-11-30_00-04-39_UTC.jpg exists [Uma foto não planejada] unchanged
[   3/1000] #book/2020-11-29_22-08-44_UTC.jpg exists [Eu sou apaixonada no por do ☀] unchanged
[   4/1000] #book/2020-11-29_21-39-19_UTC.jpg exists [sem efeito✨ . . . . . . . . .…] unchanged
[   5/1000] #book/2020-11-29_21-33-55_UTC_1.jpg exists #book/2020-11-29_21-33-55_UTC_2.jpg exists #book/2020-11-29_21-33-55_UTC_3.jpg exists #book/2020-11-29_21-33-55_UTC_4.jpg exists #book/2020-11-29_21-33-55_UTC_5.jpg exists #book/2020-11-29_21-33-55_UTC_6.jpg exists #book/2020-11-29_21-33-55_UTC_7.jpg exists #book/2020-11-29_21-33-55_UTC_8.jpg exists #book/2020-11-29_21-33-55_UTC_9.jpg exists [• VOCÊ JÁ ESCUTOU ALGUMA DESS…] unchanged
[   6/1000] #book/2020-11-29_20-12-30_UTC.jpg exists [Asking for book recommendatio…] unchanged
[   7/1000] #book/2020-11-29_20-10-12_UTC.jpg exists [La sensación visual 📸  🎬 Esa …] unchanged
[   8/1000] #book/2020-11-29_19-40-22_UTC.jpg exists [Lazy Sunday ⚡  #bath #bathti…] unchanged
[   9/1000] #book/2020-11-29_19-16-53_UTC.jpg exists [New pic from my new book Repr…] unchanged

Here's the code:
import instaloader

loader= instaloader.Instaloader(download_comments=False,
                    download_videos=False,
                    download_geotags=False,
                    save_metadata=False,request_timeout=100)
loader.download_hashtag('book', max_count=1000, fast_update=False, profile_pic=False)


OpBitfieldExtract and OpBitfieldInsert no longer work for non-32-bit integer types

This appears to be a "regression" of sorts caused by the following PR: https://github.com/KhronosGroup/SPIRV-Tools/pull/4758
The corresponding issue is here: https://github.com/KhronosGroup/glslang/issues/2737
For some context, I'd like to use OpBitfieldExtract and OpBitfieldUInsert to efficiently convert structures into their proper types while also utilizing the 128-byte / 256-byte cache line loads on NVIDIA / AMD GPUs. I have found these intrinsics yield substantial improvements to performance by reducing ALU pressure from the 64-bit logical operations otherwise required for emulating their behavior.
So, something like,
uint64_t4 data = Buffer.LoadAligned<uint64_t4>(...);
uint8_t A = bitfieldExtract(data.x, 0, 8);
uint8_t B = bitfieldExtract(data.x, 8, 8);
uint8_t C = bitfieldExtract(data.x, 16, 8);
uint16_t D = bitfieldExtract(data.x, 24, 16);
// and so on...

Beyond that, using the bitfield extraction Ops is important for performance when non-32-bit types are used in a structure where HLSL bitfields are used.
struct {
    uint64_t A : 8;
    uint64_t B : 8;
    uint64_t C : 48;
};

Before PR#4758, this worked so long as SpvCapabilityInt8 / SpvCapabilityInt16 / SpvCapabilityInt64 were requested. The various different overloads map to specialized NVIDIA hardware similar to NVIDIA's bfe and bfi PTX intrinsics.
If I understand right, Samsung's hardware is unable to do ALU ops for non-32-bit types for bitfield insertion / extraction (including 16-bit and 8-bit types), hence PR #4758, but now, other IHVs which do support them are locked out from using these intrinsics.
I'm finding this to be particularly problematic for OpBitfieldExtract and OpBitfieldUInsert, as these are most commonly used for converting from one integer width to another.
Could we re-enable these intrinsics for non-32-bit types if something like the corresponding SPV integer capability is requested?

I suppose an alternative way to frame this, is there a recommended approach for extracting bit fields for types other than 32-bit integers in SPV? I’m actually not sure what the driver does for 64-bit values, but perhaps certain IHVs are using two sequential 32-bit extract/insert routines and then augmenting the results with some 64-bit ALU ops…

#4758 was not added because of any specific hardware. As stated on that PR, it is implementing a specific statement in the spec. Look for VUID-StandaloneSpirv-Base-04781 on https://registry.khronos.org/vulkan/specs/1.3-extensions/html/chap51.html.
If you want 64-bit integers supported for those instructions, you will have to get the Vulkan specification changed. Some type of extension or something.

You could also avoid the validator, and just keep passing it to the driver. There is no guarantee it will work on all drivers.

If you want 64-bit integers supported for those instructions, you will have to get the Vulkan specification changed. Some type of extension or something.

@s-perron Is there a particular repo you'd recommend I submit a feature request to? Or is this something that only IHVs have the ability to do?

You can open an issue at https://github.com/KhronosGroup/Vulkan-Docs/issues.


java.lang.NullPointerException: Attempt to read from field 'int com.android.okio.Segment.limit' on a null object reference

Hi,
Since i installed this plugin and enable crashlytics, i recieve this errors in firebase panel:
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int com.android.okhttp.okio.Segment.limit' on a null object reference at com.android.okhttp.okio.Buffer.write(Buffer.java:1182) at com.android.okhttp.okio.Buffer.read(Buffer.java:1221) at com.android.okhttp.okio.RealBufferedSource.read(RealBufferedSource.java:55) at com.android.okhttp.internal.http.Http1xStream$FixedLengthSource.read(Http1xStream.java:393) at com.android.okhttp.internal.Util.skipAll(Util.java:159) at com.android.okhttp.internal.Util.discard(Util.java:141) at com.android.okhttp.internal.http.Http1xStream$FixedLengthSource.close(Http1xStream.java:410) at com.android.okhttp.okio.RealBufferedSource.close(RealBufferedSource.java:396) at com.android.okhttp.okio.RealBufferedSource$1.close(RealBufferedSource.java:384) at com.google.android.gms.internal.firebase_messaging.zzk.zza(com.google.firebase:firebase-messaging@@20.0.0:4) at com.google.firebase.messaging.zzj.close(com.google.firebase:firebase-messaging@@20.0.0:38) at com.google.firebase.messaging.zzd.zza(com.google.firebase:firebase-messaging@@20.0.0:51) at com.google.firebase.messaging.FirebaseMessagingService.zzc(com.google.firebase:firebase-messaging@@20.0.0:60) at com.google.firebase.messaging.zze.run(com.google.firebase:firebase-messaging@@20.0.0:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.android.gms.common.util.concurrent.zza.run(:6) at java.lang.Thread.run(Thread.java:764)
There's a post related bug here: https://github.com/firebase/firebase-android-sdk/issues/1006
Maybe it's a firebase problem?

The error is arising in the OKHTTP library used by Firebase - it could be due to another plugin in your project referencing a different version of the OKHTTP library - you'll need to check the plugin.xml of each plugin in your project to confirm this and/or check the entries in platforms/android/app/build.gradle.
You can confirm this plugin works fine in isolation by build and running the example project.

Great! Much thanks for your help. I just wanted to know if it could be a bug by the plugin.

Recently firebase-messaging has released a new version who correct this error: https://github.com/firebase/firebase-android-sdk/issues/1006#issuecomment-566152818
He says updating firebase-messaging to 20.1.0 solves problem.

you can override the default version used by the plugin by setting the ANDROID_FIREBASE_MESSAGING_VERSION plugin variable at plugin install time:
--variable ANDROID_FIREBASE_MESSAGING_VERSION=20.1.0


Got an activity result, but no plugin was registered to receive it.

android 6.0.1
cordova 8.0.0
cordova-plugin-camera 4.0.3
After taking photos, it will repeat the output of the title of the title, resulting in the failure to get the image.

The reason is that onActivityResult is rewritten in MainActivity in my Cordova project, and Android permissions are processed in onActivityResult.


Unexport SlabID fields to prevent misuse

Updates https://github.com/onflow/cadence/pull/2622 and more context at https://github.com/onflow/cadence/pull/2622#issuecomment-1622232675.
Description
Previously SlabID had two exported fields Address and Index.  Address field was used in Cadence repo to obtain storage address.
We want clients to obtain storage address by calling Array.Address() or OrderedMap.Address().  This PR unexports Address field to prevent misuse.

[ ] Targeted PR against main branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Codecov Report

Merging #323 (33b8013) into fxamacker/rename-id-and-related-functions-and-types (adcd6fa) will decrease coverage by 0.10%.
The diff coverage is 80.95%.

@@                                   Coverage Diff                                   @@
##           fxamacker/rename-id-and-related-functions-and-types     #323      +/-   ##
=======================================================================================
- Coverage                                                64.74%   64.64%   -0.10%
=======================================================================================
  Files                                                       14       14
  Lines                                                     8046     8050       +4
=======================================================================================
- Hits                                                      5209     5204       -5
- Misses                                                    2160     2168       +8
- Partials                                                   677      678       +1

Impacted Files
Coverage Δ

array.go
69.92% <71.42%> (ø)

map.go
66.78% <80.00%> (-0.10%)
:arrow_down:

storage.go
74.17% <81.81%> (-0.79%)
:arrow_down:

basicarray.go
49.78% <100.00%> (ø)

storable.go
54.41% <100.00%> (ø)


fix(dl): fix yaml config and get object logic

Signed-off-by: wuhuizuo<EMAIL_ADDRESS>

/approve


TE-911: Changed webpack.config to made jq plugins external

https://spryker.atlassian.net/browse/TE-911

Closed due to no functional code in PR.


Merge pull request #855 from PolymeshAssociation/beta

Description
Update beta with master
Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

this seems a bit redundant to me, but it seems better to ensure beta contains every commit of master just in case

Lots of code smells I think we ignored previously

:tada: This PR is included in version 17.1.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 18.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Information Architecture for Product Management Oversight

as per discussion with Architecture, different kinds of information between different oversight committees.
Standards for interoperability between committee/stakeholder?

common data model?
orchestration
traceability

Will be handled as part of the Phase 2 (through the WG)


Custom board with linker script

I'm trying to use platformio with custom boards (specifically, stm32f401rb).
I've created a JSON file describing my board like this:
{
        "my_stm32f401": {
                "build": {
                        "core": "stm32",
                        "extra_flags": "-DSTM32F4 -DSTM32F401xB -DSTM32F40_41xxx",
                        "f_cpu": "8000000L",
                        "ldscript": "stm32f401.ld",
                        "cpu": "cortex-m4",
                        "mcu": "stm32f401rbt6",
                        "variant": "stm32f401rb"
                },
                "frameworks": ["mbed", "cmsis", "spl", "libopencm3"],
                "name": "My STM32F401 Board",
                "platform": "ststm32",
                "upload": {
                        "maximum_ram_size": 65536,
                        "maximum_size": 131072
                },
                "url": "http://example.com",
                "vendor": "Myself"
        }
}

I use libopencm3 framework, it contains a "common" stm32f4 linker script which is supposed to be included like this (this is my stm32f401.ld from the config above):
MEMORY
{
	rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K
	ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
}

INCLUDE libopencm32_stm32f4.ld

So the question is - where should I put my custom ldscript for my custom board? I would prefer it to be next to my sources, in my project directory.
Currently the only working location was ~/.platformio/packages/frameworks/libopencm3/lib/stm32/f4/. Neither project root, nor src directory worked and printed the following error:
TypeError: coercing to Unicode: need string or buffer, NoneType found:
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/main.py", line 141:
env.SConscript("$BUILD_SCRIPT")
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/scripts/ststm32.py", line 81:
target_elf = env.BuildProgram()
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py", line 50:
f.lower().strip() for f in env.get("FRAMEWORK", "").split(",")])
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/tools/platformio.py", line 192:
join("$PIOBUILDER_DIR", "scripts", "frameworks", "%s.py" % f)))
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 614:
return method(*args, **kw)
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/serge/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/scripts/frameworks/libopencm3.py", line 171:
ldscript_path = find_ldscript(root_dir)
File "/usr/local/lib/python2.7/dist-packages/platformio/builder/scripts/frameworks/libopencm3.py", line 59:
assert isfile(ldscript)
File "/usr/lib/python2.7/genericpath.py", line 29:
st = os.stat(path)

And in fact during the first build my linker script in opencm3 source tree has been expanded and my include statement has been replaced by full contents of the libopencm32_stm32f4.ld.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/30214637-custom-board-with-linker-script?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github).

You can specify full path in board's definition ("ldscript": "/full/path/to/script.ld",). Have you tried it?

Hmm... I guess I could, but it's kinda not portable, if other developers
have fetched the same sources to a different path that will break the
build. Can it be relative instead? Or can I use variable interpolation in
that path string?
On Jan 26, 2016 5:48 PM, "Ivan Kravets"<EMAIL_ADDRESS>wrote:

You can specify full path in board's definition ("ldscript":
"/full/path/to/script.ld",). Have you tried it?
—
Reply to this email directly or view it on GitHub
https://github.com/platformio/platformio/issues/474#issuecomment-174932204
.

ld looks for scripts in LIBPATH. You can dump PlatformIO build environment using platformio run -t envdump and find LIBPATH. As you can see, ~/.platformio/packages/ldscripts is added to this list. See https://github.com/platformio/platformio/blob/develop/platformio/builder/main.py#L99
To make portable project you need to take a look at extra_script. You can prepend here "current project directory" to LIBPATH and keep your specific LDScript in the root of the project.

Also, don't forget that you can change build environment on-the-fly using extra_script, including pre-defined board settings. See BOARD_OPTIONS environment variable.

Ok, extra_script can become a solution, but it looks like my extra script
is evaluated after libopencm3.py fails at find_ldscript(path).. So I get a
crash before I'm able to "patch" my environment.
On Tue, Jan 26, 2016 at 6:37 PM, Ivan Kravets<EMAIL_ADDRESS>wrote:

Also, don't forget that you can change build environment on-the-fly using
extra_script, including pre-defined board settings. See BOARD_OPTIONS
environment variable.
—
Reply to this email directly or view it on GitHub
https://github.com/platformio/platformio/issues/474#issuecomment-174949886
.

--
"One must have a chaos inside oneself to give birth to a dancing star." -
Thus Spoke Zarathustra

@valeros please remove assertion https://github.com/platformio/platformio/blob/develop/platformio/builder/scripts/frameworks/libopencm3.py#L59 and allow to specify own LD Script using extra_script.

Ok, just removing assert doesn't help it - the same exception appears later, in merge_ld_scripts.
But a solution to my problem seems to be as simple as build_flags = -Wl,-T${PROJECTSRC_DIR}/stm32f401.ld in platformio.ini. Do you see any potential pitfalls with this?
Also, since now my custom build flag works, I wonder how can I trick the platformio to ignore the ldscript specified in board JSON configuration? Currently I specify a "common" linker script or any other ld script that exists in opencm3 sources, but it seems really ugly. Also, I can't just ignore the ldscript because JSON parser checks for this field.

build_flags = -Wl,-T${PROJECTSRC_DIR}/stm32f401.ld

This is GOOD approach. It should work in any case. @valeros will fix libopencm3 framework.

Also, since now my custom build flag works, I wonder how can I trick the platformio to ignore the ldscript specified in board JSON configuration? Currently I specify a "common" linker script or any other ld script that exists in opencm3 sources, but it seems really ugly. Also, I can't just ignore the ldscript because JSON parser checks for this field.

I've changed this issue to bug, we will fix all these things.
P.S: Have you tried Ukrainian PlatformIO IDE? :)

Круто, дякую! Доречі, такий сценарій як в мене мабуть буде дуже типовий, бо мало хто в продакшені використовує всякі ардуїни, здебільшого кастомні чіпи з малою пам’яттю, бо ціна і всяке таке. То може б детальніше в доках розписати що до чого...
With regards to the IDE - I'm a religious vim user, but Atom seems to be on the rise these days, so I'll definitely give it a try and spread the word about it in my team!

Hi @zserge! Please try development version with build_flags = -Wl,-T${PROJECTSRC_DIR}/stm32f401.ld

Yes, I confirm that this works. Thanks for such a quick fix!

@zserge

I'm a religious vim user,

I'm too :blush: I have opened issue to make project generator for VIM which will generate configs for YouCompleteMe, syntastic and etc. https://github.com/platformio/platformio/issues/467

I'll definitely give it a try and spread the word about it in my team!

Thanks a lot! :) Don't forget to give us a star :star: https://github.com/platformio/platformio/stargazers


OCPBUGS-7056: fix ovn config file path

GetConfigFile() may return empty path or user defined path, but ovn config file is only supported under /etc/microshift
Signed-off-by: Zenghui Shi<EMAIL_ADDRESS>

@zshi-redhat, can we link this PR to a JIRA issue/bug?

/jira refresh

/jira refresh

@zshi-redhat, can we link this PR to a JIRA issue/bug?

Done.

/lgtm

/retest

/cherrypick release-4.12


feat(paragraph): Implement fmt::Write for Text

Unresolved question: there may be a case for parsing ANSI color escapes here.

Ansi codes can be a separate feature. There's a good library we can borrow https://github.com/uttarayan21/ansi-to-tui
Btw, can you please mention one or more use case for this feature? One demo for the most important use case in the examples directory would be great.
Also, will it break if later on we add a feature in Text widget that depends on any outer context to render the widget? Like the terminal width and height. I think it will.

The use-case would be using Text with the API of some other crate (a logging system, for example) that expects an fmt::Write instance. Adding an example would mean pulling in such a crate.

Ansi codes can be a separate feature.

External APIs might expect to be able to write! such codes directly.

Also, will it break if later on we add a feature in Text widget that depends on any outer context to render the widget? Like the terminal/layout width and height. I think it will.

Wouldn't such a feature belong on Paragraph, not Text?

The use-case would be using Text with the API of some other crate (a logging system, for example) that expects an fmt::Write instance

I think using the default Debug would be more appropriate for logging. I can't think of any other usecase where it's more beneficial to print the potentially multi line rendered string that displaying the inspectable representation of the object.

Adding an example would mean pulling in such a crate.

Examples can have dedicated dependencies.

External APIs might expect to be able to write! such codes directly.

Can you please provide an example? Having to parse every Text widget for potential ansi codes might impact performance. If we really want to integrate ansi codes into ratatui natively, I'd implement something like AnsiText, or Text.has_ansi_codes. but let's discuss it in the forum first.

Wouldn't such a feature belong on Paragraph, not Text?

Good point. Agree here.

Having to parse every Text widget for potential ansi codes might impact performance.

To be clear, my suggestion is that the fmt::Write impl would perform the escape code parsing. The Text object itself would continue to use Spans for styling, consistent with the rest of ratatui.

I'm not sure I understand. The idea is that logs (or whatever else) would be written to the Text, which would then display them.

Ah sorry, yes, this makes sense... I think we can update one of the existing demos to showcase this.

the fmt::Write impl would perform the escape code parsing. The Text object itself would continue to use Spans for styling, consistent with the rest of ratatui.

Ah got it... while this is definitely a creative/clever solution, it might be surprising to have Text.new/from and Text.write behave differently. Need more opinions. @orhun @joshka @mindoodoo.

What about just having all stylable text elements (Span, Line, Text) automatically perform ANSI sequence parsing? I cannot think of any real-world use case which would require it to print them out as literals. If it is actually needed, just have either a flag parameter or alternative literal methods.

I'd like to see the use case for this more thoroughly explained. Show me some example code for something that this helps make easier.
Definitely ANSI code inside strings is an issue. Let's create an issue to discuss that more.

I've added a simple example to examples/.

BTW, it's worth taking a bit of a look back through the https://github.com/fdehau/tui-rs/ to see if there's much talk about ANSI and this sort of thing to get more context. I know that there a couple of issues where people were talking about it, but haven't dug deeper.

Closing this out as the choices necessary to implement this outweigh the value that we would get. The main workaround for this would be generally to write to the underlying string / str and then wrap it in a Text for display. This should effectively be a noop.


⚠ Bofrost.es has degraded performance

In ebb4ae5, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1577 ms

Resolved: Bofrost.es performance has improved in 6fdd799 after 6 minutes.


Trying to use swagger node on an existing project

Running swagger project open seems to be looking api/swagger/swagger.yaml. I have it under vendor/api/swagger/swagger.yaml.

Is it possible to use swagger-node-express with an existing project structure ?

How can we override this to account for my directory structure?
Does it generate the usage pageby default or does it need some special configuration with swagger-ui ?

Thanks,
Ravi

Unfortunately, different project structures aren't well supported at present. This functionality was intended and much of the code is localized, but I've identified some bugs that will prevent it from working well for you.
You'll need to do your own swagger-ui work for now.

thanks @theganyo


[Docs] Lack of dedicated contributing guide for meshery-operator

Current State
There is no contribution guide available for meshery/meshery-operator. This lack of documentation makes it difficult for contributors to set up the project in their local environment, test it, and make contributions effectively.
Desired State
A comprehensive contribution guide should be created and included in the repository. This guide should provide detailed instructions on how to set up Meshery Operator for the local environment, including steps for installation, configuration, testing procedures, and guidelines for making contributions. This documentation will not only facilitate the onboarding process for new contributors but also ensure a smoother and more efficient development workflow for the project

Contributor Guides and Handbook

📚 Instructions for contributing to documentation

Meshery documentation site and source

🛠 Meshery Build & Release Strategy
🎨 Wireframes and designs for Meshery UI in Figma (open invite)
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Hi @animeshchaudhri  i would like to work on this.

@akshayamadhuri go ahead


Add array:some/every langlib function

Please refer to : https://github.com/ballerina-platform/ballerina-spec/issues/1005

Closing since https://github.com/ballerina-platform/ballerina-lang/pull/35496 and https://github.com/ballerina-platform/ballerina-lang/pull/35531 PRs are merged


Resize UI to show the full OCaml variant name

The UI text width needs to be increased to show the full OCaml variant name.

Partial fix in https://github.com/ocaml-bench/sandmark-nightly/commit/e6d9b3d6d562e16c3c81b993890b7cf637f25e83.

LGTM.


Hello World Example Failing: "Error: unknown flag: --sort-by"

Steps to reproduce: install and run the hello world example.
Expected result: Output of command bacalhau list --wide --sort-by=id --id-filter=<JOB_ID> yields a filtered list of jobs
Actual result: command fails with two separate flag errors "Error: unknown flag: --sort-by" and then "Error: unknown flag: --id-filter" once the first flag is removed.

Just realizing I mistakenly ran this command from within my Bacalhau build folder (palm_to_face). Closing as "Not an Issue"

"Not an Issue"

just fyi, this won't work until we cut a new release - fyi @lukemarsden

Reopening as this behavior just appeared for me again with a fresh test on v0.1.8

Still not repro able from main


Feature Request --> owner.repository - add stargazers to data downloaded per repository

Tell us about your feature request:
A clear and concise description of what you want to happen or the change you would like to see.  Use a use case to describe how a person would actually use your request to accomplish a goal. Thank you.
-> download github users that starred repository with
curl -ni https://api.github.com/repos/BradleyA/Linux-admin/stargazers

Describe how your feature request could work:
Steps to demonstrate your feature request.

add line to owner.repository

How are you currently working without your feature request?
A description of any alternative solutions or features you've considered or are using today.
-> Don't have information

Version:

OS ( lsb_release -a ; Ubuntu 14.04  Ubuntu 16.04  Ubuntu 20.04 )
-> Ubuntu 16.04

Command: ( check-markit <IP_ADDRESS>3 2020-08-29T22:25:47.061044-05:00 (CDT) https://github.com/BradleyA/markit.git master uadmin )
-> github-repository-traffic/owner.repository  <IP_ADDRESS>8  2020-02-16T21:26:27.092163-06:00 (CST)  https://github.com/BradleyA/Linux-admin.git  master  uadmin

Think about including users that forked repository


[BUG] Having duplicate users throws 404 for "Manage Users" page

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Visionary Eye Care in ND is getting a 404 every time they try to navigate to the settings page. This is because they have a duplicate user in their system and GraphQL throws an error ("duplicate key {$useremail}")
Steps To Reproduce

Spoof into Visionary Eye Care
Go to their settings page
See this error in the console:

Expected Behavior
We shouldn't allow these duplicate records to be created in the first place, but they should be handled more gracefully if they do exist.
My guess is that this user tried to change their email address, but I'm frankly not sure how we could've gotten to this state. In Okta, the duplicate user does appear twice but with a slightly wonky change: there are different usernames for the two different users, but the primary email for each is the same.
Additional context
You can find additional information in the support inbox. I'm working with the affected user from Visionary Eye Care to get their account back to normal, but I'm not sure why or how this happened in the first place and want to make sure it's not affecting anyone else.
Does this issue have a priority label?

[X] I have added a priority label

Has issue been assigned to a team?

[X] I have added a team label

The original user with this problem has been fixed, but we still see occasional issues in this vein (graphQL returning duplicate users, and in Okta there are two users with slightly different names.)
We should identify the path where this happens. Signing up and being added to an org at the same time? Adding one email uppercase and one lowercase?

This will be fixed with #4375


Gym Badge Disappeared From Case

I was looking at the badge in my gym case and double clicked on it. It went poof. It was a ground gym badge. IGN: freddypwner Discord: Soyeah,ImAGamer#3115

It didn't enter your inventory? I believe double clicking removes the badge from the case

It didn't enter your inventory? I believe double clicking removes the badge from the case

It did not enter my inventory.

Refunded, known issue with Pixelmon. Please report to their tracker (https://pixelmonmod.com/tracker.php?p=2) if you find a way to reproduce it.


Constructor type checking

uses https://github.com/jespercockx/scope/pull/4 branch of the scope library because allLookup turned out to be a very stubborn function to implement, requiring a lot of unfolds

smarter conversion is hard, see:
https://github.com/jespercockx/agda-core/commit/3ebba92a9807643399d626f907647892c91ad0a8


+/plus is not taken into account in rawValue of snips/number entity

What's the issue?
While for a snips/number slot with value "-100" or "minus 100"  the rawValue has the correct value, for "+100" or "plus 100" it hasn't: the +/plus is missing.
This happens consistently, as I discovered in my app Pick something random.
Use Cases Impacted
In some cases, the + is important for clarity. For instance, when you're talking about temperature ranges, such as "from -40 to +75 degrees".
How to reproduce
Install the app Pick something random.
Parse a sentence:
pi@snips:~ $ snips-nlu parse -t "pick a number between -100 and +100"
Loading model... loaded in 2515 ms
{
  "input": "pick a number between -100 and +100",
  "intent": {
    "intentName": "koan:RandomNumber",
    "confidenceScore": 1.0
  },
  "slots": [
    {
      "rawValue": "-100",
      "value": {
        "kind": "Number",
        "value": -100.0
      },
      "range": {
        "start": 22,
        "end": 26
      },
      "entity": "snips/number",
      "slotName": "min"
    },
    {
      "rawValue": "100",
      "value": {
        "kind": "Number",
        "value": 100.0
      },
      "range": {
        "start": 32,
        "end": 35
      },
      "entity": "snips/number",
      "slotName": "max"
    }
  ]
}
Elapsed: 28 ms

Expected behavior
I would expect "rawValue" to be "+100" and "start" 31 for the max slot in this example:
pi@snips:~ $ snips-nlu parse -t "pick a number between -100 and +100"
Loading model... loaded in 2515 ms
{
  "input": "pick a number between -100 and +100",
  "intent": {
    "intentName": "koan:RandomNumber",
    "confidenceScore": 1.0
  },
  "slots": [
    {
      "rawValue": "-100",
      "value": {
        "kind": "Number",
        "value": -100.0
      },
      "range": {
        "start": 22,
        "end": 26
      },
      "entity": "snips/number",
      "slotName": "min"
    },
    {
      "rawValue": "+100",
      "value": {
        "kind": "Number",
        "value": 100.0
      },
      "range": {
        "start": 31,
        "end": 35
      },
      "entity": "snips/number",
      "slotName": "max"
    }
  ]
}
Elapsed: 28 ms

Version and Environment
Snips Flow 1.1.2 (0.62.3), Raspbian 9.8, assistant with Pick something random installed.

Hi @koenvervloesem ,
This is indeed an issue with the builtin entity parser not capturing the +, I've created an issue in the corresponding repository.
Thanks for reporting.

@koenvervloesem
This should be fixed in snips-nlu>=0.20.0


examples/v3.0/petstore-expanded.yaml wrong operationId name

#1988

It is not necessary to have an issue open to 'support' a PR. Closing as this issue has no further context or explanation.


[Docs] Add Chinese version of conventions

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
This PR is for chinese version of conventions.md

Please re-request review if you fix my comments.

Kindly ping @BIGWangYuDong for the final check.

LGTM, two details need to be modified


Two Interfaces attached to iobroker/Raspi: SMA-EM listen on wrong Interface

Describe the bug
I have to networks attached to Raspi and iobroker. My Solar SHM is attached to wlan0 instead of eth0. The adapter listens to eth0 instead of wlan0. So i can't reach my SHM.
To Reproduce
Steps to reproduce the behavior:

Install adapter
Go to Logs
Listen via UDP on Device eth0 with IP XXX.XXX.XXX.XXX on Port 9522 for Multicast IP <IP_ADDRESS>

Versions:

Adapter version: 0.6.5
Operating system: Raspi

Additional context
Add any other context about the problem here.

The adapter binds to all interfaces which have a valid IPv4 address when the adapter is started. Can you confirm that the wlan0 device has a valid IPv4 address?

@Flippo710
Could you please check your network configuration (e.g. using ifconfig -a ) to see if anything is wrong with your wlan0 interface as @TGuybrush suggested? Are there any other relevant messages in the iobroker log?

Sorry Guys, I was in vacation :)
I tried to reinstall the adapter again, now, it listens to both interfaces:

But still no connection. So I turned up Wireshark on the PI and found the following packets:

So there is definitly traffic arriving at the PI from the SHM (its the <IP_ADDRESS>!)
Any idea?

@Flippo710
What do you mean by "no connection"? Does the Instance connection indicator in the instance Tab turn green? Is the Object tree in the Objects Tab (sma-em.0) generated? I suggest that we continue the discussion in the iobroker forum where you already posted your problem. Maybe some other users have also ideas.

Hey,
yep, I have a tree, which is empty.
And I have no conection to a device or service...:

@Flippo710
Did you configure direct meter communication in Sunny Portal?
Regarding the wireshark recording: Can you filter on the multicast destination ip <IP_ADDRESS>? SMA-EM does not listen on dest ip <IP_ADDRESS>

No, I didnt configure direct meter communication...(well, I didn't read anything about it, or that I have to configure it...)
And I get no packages from this MC :(

You should not configure direct meter communication unless you absolutely need it because of network issues. So we can rule out this as a problem. If you do not get udp packages from <IP_ADDRESS> the most likely reason is that your network infrastructure (routers, switches) does not properly forward IGMP packages from the SHM to your RPI. In which network are the inverters? I assume in the same network as the SHM? do the inverters receive the SHM multicasts?

@Flippo710
Has this issue been resolved meanwhile so that I can close it?

I have actually the same problem when I assign multiple IPs to one NIC. The last version working for me is 0.6.1-beta.0. I still have this version in production. It would be helpful to be able to choose which IP to use.

@krafel
As mentioned by @TGuybrush above, the adapter binds to all interfaces which have a valid IPv4 address when the adapter is started. Thus if your network is configured correctly and the SHM multicasts arrive on any of the bound interfaces, the sma-em adapter should start. Would you please provide an iobroker log of the startup of the sma-em and other relevant information on your system like sw-versions and network configuration  (e.g. using ifconfig -a ) so that we can figure out what goes wrong.

@pdbjjens here I have teh same Issue.

The log of the start of sma-em is like the following

Hope you could help me out and get the sma-em adapter running.
Many thanks and kindest regards
Rainer

Sorry, included one picture twice. The correct log of the startup of the sma-em should be this one:

SW-Versions:
ioBroker 6.3.5 on a raspberry pi
SMA-EM-Adapter 0.6.5
SMA devices are STP7000TL-20 and ev charger and sunnyhomemanager 2.0 connected over a switch with a fritz box cable 6591.
For the network configuration I don't know exactly, which information you need. There is no special configuration used.

@Rennsemme5
in which network are the SMA components? The same as the RasPi  i.e. 192.168.178.xxx ? Is the STP connected via WLAN?
SHM and EVC are probably connected via eth?
What type of switch is it?

Yes, the SMA components are within the same network as the RasPi. all components are connected with LAN. The switch is the one which is proposed from SMA. It is the TP-Link TL-SF1005D.
On the RaspPi is only the ioBroker with less adapters running. It is my first ioBroker and I'm still at the beginning.

The other adapters are

I don't need WLAN on RasPi. You think I should turn it off directly at the raspi
direct metering is configurated.
"Bezug und Einspeisung" = Internes Energy Meter
"PV-Erzeugung" = kein Zähler
"Messintervall internes Energy Meter:" 200 ms
Direkte Zähler Kommunikation: Gerät 1 = IP of Discovergy energy meter; Gerät 2 = IP of Sunny Tripower inverter; Gerät 3 = IP of EV Charger.
Hope that helps a little bit

yes, direct meter communication was the reason. I deaktivated it and now it looks great. So I have to follow up, if there are problems on the SMA products without direct comunication. Hopefully not. Many thanks for your help.