-bash: tea: command not found

I've run the command:
sh <(curl https://tea.xyz)
I accepted the installation for tea and the setup for tea magic. After doing so, I tried running the example commands:
wget -qO- tea.xyz/white-paper | glow -
and
node --eval 'console.log("node: hello world")'
Neither of these commands worked. I tried rerunning them prepended with tea, but I received the error in this issue's title, namely:
-bash: tea: command not found
I have tried closing and opening new terminals, and have rerun the sh <(curl https://tea.xyz) command. The command re-asks if I want to install, but does not re-ask if I want setup the tea magic -- it just says "you’re all set!", followed by the wget command that I referenced above.

What is your bash --version? I believe bash 3 (14 years old, shipped with macOS) is too old, and this causes issues. bash 4 and zsh should work fine.
If that's not at issue, check your ~/.bashrc to see if the tea magic line was added. You can try running it directly, and see if that changes anything.
If you're on bash 4, have the correct magic, and you still don't locate tea, then that's extremely mysterious. I assume: ~/.tea/tea.xyz/v0/bin/tea node --eval 'console.log("node: hello world")' does work, correct?

Hi @jhheider, thank you for the response!
It turned out that I did indeed have bash 3. However, upgrading to bash 5 did not resolve the problem (though the example code you provided did work correctly: ~/.tea/tea.xyz/v0/bin/tea node --eval 'console.log("node: hello world")').
I discovered that I also needed to add the following code to my .bash_profile:
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

I can now run the commands in my original message, both with and without prepending tea.
Perhaps both of these steps would have been more obvious to a more experienced developer, and I certainly am not sure to what extent it is tea's responsibility to detect this kind of issue, but if it were possible to detect the bash version upon installation, maybe it could be helpful to newer users to include a warning message about older versions prior to bash 4?
I'm not sure if having a message somwhere about sourcing .bashrc in .bash_profile would be too much and too specific, but I feel I personally know a great deal of new developers who could get stuck on that step. But perhaps it was something unique to me that others wouldn't experience.
In any case, thank you for the help!

Interesting. I've never seen an install where .bashrc sourcing isn't default. Does bash 3 work (more) with the proper source line in .bash_profile?
What OS is this? The .bashrc thing is strange.

For the current approach, are you checking what SHELL the user is using, and then choosing to place the magic line in .bashrc if bash and .zshrc if zsh (and etc. for other shells)?
My current understanding is the following:
In macOS, when you open a new terminal window in iTerm2 (or the built-in Terminal.app), it starts a login shell. For Bash, a login shell reads and executes .bash_profile (or .bash_login or .profile if .bash_profile doesn't exist), but not .bashrc.
On the other hand, when you open a new terminal window with Zsh (the default as of macOS Catalina), it's also a login shell but it reads and executes both .zprofile and .zshrc.

Yes, we were only decorating the current shell, but that is migrating to looking for all shell configs. It sounds like we should use .bash_profile instead of .bashrc.

hm, actually:
https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
The bash manual says the files invoked are non-overlapping. It's "typical" for .bash_profile to invoke .bashrc, for exactly this reason.
It might be that we should instead check .bash_profile invokes .bashrc, or issue some kind of notice/warning. This isn't as simple as expected.

Need to consider the best approach here. At best, if your .bash_profile isn't invoking your .bashrc it seems like a misconfiguration, according to the GNU Bash manual. Solving it might be beyond tea's scope, but https://github.com/teaxyz/setup/issues/172 is open to exploring it.

v1 invokes in both (which is currently slow (not too bad), but we will speed it up).
We also changed the generally suggested invocations to val "$(tea foo)" to avoid the source syntax issues.


Store actual error message for lambda

Seems like our code wasn't properly grabbing exception messages if the exception was of type CustomWebApplicationException. This caused the message for the lambda failures to simply say HTTP 418. Now they are the actual errors.
https://github.com/dockstore/dockstore/issues/3678
Seems like there is a known test failure (though not related to my changes)

Closing in favour of https://github.com/dockstore/dockstore/pull/3696


Can't start docker container "Feeds error: Indentation problem"

Thank you for providing the docker installation option and it's documentation!
Following the docker compose and feeds setup provided, I'm unable to start the docker container. Getting the following error:
Starting Vigilant 1.1.0 daemon...
Loading feeds.yaml (feeds.yaml)
Feeds error: Indentation problem at line 3 (near "name: Met Office weather warnings").

I had originally tried to start the container with my own feeds.yaml file. But as you can see, even when creating a new feeds file and copy/pasting the provided example, the error still occurs.

My bad, sorry. YAML formatting of the example in docs/feeds.md was incorrect. Fixed in #169


Update rust to 1.80

What does this PR do?
Updates the version of rust used to build lading to 1.80. Also updates the debian-slim version.
Motivation
Primary motivation is to be able to use LazyLock and friends.
Related issues
Additional Notes

Ah shoot I forgot we hadn't merged this. I jumped this in https://github.com/DataDog/lading/pull/981.


feat: generate stubs for FTL modules

ftl build and ftl dev now accept a list of external library directories which need stubs generated of the ftl modules it uses
eg:
ftl dev build examples/go --external examples/go/lib

This example finds all go modules in the go folder as well as treating go/lib as an external library

@alecthomas I kept ProjectKey but just for getting projects via the key (engine.projects map[ProjectKey]Project{}) but removed the other uses when we really meant module name (dependencies, maps of schemas etc).


Python code not PEP compliant

We should make the Python code PEP 8 compliant. It is written too much like java. This slows down python in execution (it's not a compiled language) and reduces maintainability.
Originally posted by @TG-Techie in https://github.com/jeremyparadie/CASPER/pull/1#issuecomment-577533504

@pav17  please convert the gui code to be compliant


docs(prototypes): add prototype for threaded chat messages

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS

@sophieH29 can you make it visible in production?

Should it be black?


meta does not install properly

🐛 Bug Report
Any meta command (e.g. meta init) will throw this error:
[SyntaxError: Unexpected token {]

To Reproduce
Steps to reproduce the behavior:
Fresh install on Ubuntu 16.04 with the following commands:
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm i -g meta
git init
meta init

Should you be using npm i -g meta without sudo instead? Sudo will install meta under root.

I switched to Ubuntu 18.04, and the problem was surprisingly resolved.
Without sudo, the installation throws a write permission error.

This is a linux file permissions issue regarding npm/node installation.


Remove retry options from state apis.

Remove retry options for state apis once the issue in runtime is implemented dapr/dapr#1861

Two steps:
[] Remove code related to RetryOptions and change IT and examples
[] Update proto files to remove RetryOptions and update docs to reflect the same


Cannot handle some invalid int() conversion

[1]: int('12')   # no problem
12

[2]: int('1 2')  # let's try with a space between the two digits

Traceback (most recent call last):
  Code block [2], line 1, in <module>
    ValueError: invalid literal for int() with base 10: '1 2'

        Internal error for Friendly.
[…]

Thank you for this report.  I will look at it right away.

friendly-traceback has been updated to 0.4.89.
python -m pip install friendly-traceback --upgrade

Note that if you installed friendly instead of friendly-traceback as is recommended, friendly-traceback was automatically installed as a dependency, and is where the bug occurred.

Whauw, that was fast! Thank you so much. I have upgraded friendly-traceback.

Just for the record: I found the bug because Python is somewhat forgiving about strings passed to the int() method:
>>> int('  12\t\n')  # wrap the digits in a few blanks
12

So I was curious to see what Python would do if digits were separated by one or more blanks.

On Thu, Dec 2, 2021 at 8:51 AM Klaus Alexander Seistrup <
@.***> wrote:

Just for the record: I found the bug because Python is somewhat forgiving
about strings passed to the int() method:

int('  12\t\n')  # wrap the digits in a few blanks12

So I was curious to see what Python would do if digits were separated by
one or more blanks.
I know, which is why I first start by stripping any surrounding space
before trying to detect invalid characters

https://github.com/friendly-traceback/friendly-traceback/blob/53401c35b9f8a19bd3a1ec2e526bf83ca458eb17/friendly_traceback/runtime_errors/value_error.py#L143
By the way, handling of ValueError for int() was just added a couple of
weeks ago!


Configuration Component Agolia Crawler Selector for the URL

The Agolia Crawler currently only allows you to navigate to the page a particular search result is on when it is a node within the Configuration component. This should allow you to navigate correctly by setting the url tag properly.
return helpers.docsearch({
  recordProps: {
    lvl0: {
      selectors: "",
      defaultValue: lvl0,
    },
    url: {
      selectors: "",
      defaultValue: url.toString(),
    },
    lvl1: "h1",
    lvl2: "article h2",
    lvl3: "article h3",
    lvl4: "article h4",
    lvl5: "article h5, article td:first-child",
    lvl6: "article h6",
    content:
      "article p, article li, article td:last-child, article button.with-value",
  },
});

This is how you can override the URL tag, however, I do not know how to access the anchor tag for this item. You do have access to a Cheerio instance which might be possible to use, however I cannot think of anything currently.

So can't you use the cheerio instance to get the href for the a tag? then make that the url.


Demo data

Hello, where is the location of the demo data to replicate the tutorials? I can only find the ipynb files.
Thanks!

Hi, I have the same question here. Thanks.

Hi All,
Thank you for your interest in CAST. Due to file size restrictions of GitHub, we cannot upload the data here. Please refer to the zenodo repository link in the paper. https://zenodo.org/doi/10.5281/zenodo.12215314


feat(collective): edit collective tags

Fixes https://github.com/opencollective/opencollective/issues/1056

that was fast!

Yeah but that's a quick fix, ideally we should have a better UI for that with auto complete, etc.
But it does the job for now.

@xdamman can collectives review the tags they have already there?

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Start testing with cross compilation

Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

Huh. Darwin is failing too, with manpage issues.

@mheon @giuseppe @baude @QiWang19 @TomSweeneyRedHat @vrothberg @jwhonce PTAL

LGTM

Nice! I spent a half-hour chasing down Varlink stuff as the culprit for pkg/spec, but it turned out to be much simpler.
/lgtm

LGTM


Use right error for existent descriptors

Return the correct error when trying to add a new descriptor for
a path that already exists in the list.

You're on :fire: Merging. Thanks again.

@tywkeene :muscle:
You are welcome!


[iOS] Navigator NavigationBar height isn't updated when status bar is hidden

The height of the status bar is set here: https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS.js#L36
It is not updated when the status bar is hidden with <StatusBar hidden={true}/> which creates a gap at the top. The same issue occurs when the device is in landscape when the status bar is hidden by default.
This is only an issue on iOS and can be shown in UIExplorer by hiding the status bar.

@janicduplessis I see some discussion in #6195. Can we use currentHeight in iOS as well inside NavigatorNavigationBarStylesIOS.js ?

currentHeight is only implemented partially on Android. We had some discussion about a status bar dimension API but it is not implemented.

Hi! Is there a way to get the Height of the NavigatonBar (not StatusBar) for any device? Like what they do with "Dimensions"? I could not find this info anywhere. Thanks!

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/ios-navigator-navigationbar-height-isnt-updated-when-status-bar-is-hidden
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.

Here's my workaround for anyone that ends up at this ticket, utilizing the convenient prop for the navigation styles:
import NavigatorNavigationBarStylesIOS from "react-native/Libraries/CustomComponents/Navigator/NavigatorNavigationBarStylesIOS";
import _ from 'lodash';

const { Stages, ...rest } = NavigatorNavigationBarStylesIOS;
const NavigatorNavigationBarStylesNoStatusBarIOS = {
    ...rest,
    Stages: _.mapValues(Stages, (stage) =>
        _.mapValues(stage, (item) =>
            _.merge({}, item, { top: 0 })))
};

export default NavigatorNavigationBarStylesNoStatusBarIOS;

<Navigator
    navigationBar={
        <Navigator.NavigationBar
            navigationStyles={NavigatorNavigationBarStylesNoStatusBarIOS}
            routeMapper={ /* ... */ }
        />
    }
    /* ... */
/>


Add ports to select tej runtime on Queue module

I'll need to check this sometime. Also, the interface is not great...
tej automatically sets up a queue on the server (bunch of bash scripts + directory for jobs), but it needs to select the appropriate runtime. This is currently either PBS (with qsub) or a simple default runner based on nohup.
The setup_runtime port allows the user to select which runtime to deploy (rather than autodetect if qsub is available), and the need_runtime port allows the user to refuse to see his workflow executed if the remote machine doesn't use the right runtime (for example: only run this workflow on PBS).

Merged by<PHONE_NUMBER>fbe952afeb85c1a396c663ada295c4


bzlmod: drop exec platforms registration

In theory, it should be possible to register multiple execution
platforms statically and let Bazel pick the correct one automatically.
In practice, there are a range of problems with this approach:

Many rules have yet to switch to platform/toolchain setup, thus will
be picking up the wrong tool.

Many rules registered the wrong toolchains or registered them in the
wrong order which caused cross-compilation to happen remotely. I.e. using
an arm64 toolchain to compile an x86 stdlib.

Users may need to switch between RBE and local exec with
minimal flag changes.

Stop registering exec platforms automatically and advise users to set it
explicitly via a flag in .bazelrc file.

I think that this is correct even in the long term. No one knows which platforms are available to the end user except the root module. This is different from toolchains.


chore: update CODEOWNERS

I think that flagd and OFO are at the size and complexity that we need more CODEOWNERS. I think there's simply too many issues for a single person to keep up with.
I think 3 is a good number. It means that even if one CODEOWNER is away, there is one other person who can approve.
Relates to: https://github.com/open-feature/open-feature-operator/pull/265

I absolutely agree with this, but I would really like to caution that I want to see us having a consensus on feature development @toddbaert There are some additions recently I am not totally convinced by or where the need has come from. Therefore I would like to request that we ensure a) anything above a chore is in the project board at least for visibility b) anything break or major is signalled at the office hours ( which I will setup again )

Hey @AlexsJones, that sounds good. The project board we started during the last office hour should be fairly up-to-date. Let's chat at the next office hour to determine how we want to move issues from the Backlog to the Todo column. I think that would be a nice way to signal that a feature has been approved as work that should be done.

Sure, happy to merge

I'm going to merge this PR based on the last comment from @AlexsJones and the other outstanding PRs.


Missing file in complete application tutorial

On this page:

The highlighted download link is dead. It should point to this file.

It does point to this file...

Must be changed in both develop and latest

Is this a build problem? zip files are not put on the website or something like that?


Add save to localStorage for stitch menu

I'm just realizing I forgot to add in localStorage saving for the stitch menu as discussed in PR #90. Oops

added in #224


Bug: Command Template in /userdata show  when usernames has _ _

For some reason the command tempate in /userdata show for fake__simon is /inventory fake_\_Simon 2bf53837-f2a8-4222-89dd-4397994ae755

This is a known issue, it is todo with the text formatter we use escaping underscores. No ETA for a fix as of now

Already fixed in fact, just need to push a commit replacing MineDown-adventure with my own William278 flavored MineDown fork.


Make doc page templates in this repository vs erlang/otp

While, I'm not sure what the long term plans for what's pulled in via erlang/otp in regards to document pages, one thing is certain, we're currently creating a buggy situation per #41.
Specifically, the html files in doc/docs (pulled in from erlang/otp and massaged via perl scripts) in conjunction with the new search page added in #41 hard codes layouts in a non-resusable fashion setting up a scenario where something in the template in the otp repo needs to be added, removed, or updated but not done in the search.html source.
Maybe the most pragmatic thing to do now is build the search.html page via index.html.src that ends up in the repo as an ignored artifact (i.e., copy into place as search.html and use a script to replace the contents), though that feels like tacking on tech. debt.
Maybe OTP team has plans to move away from that system to jekyll templates and thus this issue.

Maybe the most pragmatic thing to do now is build the search.html page via index.html.src that ends up in the repo as an ignored artifact (i.e., copy into place as search.html and use a script to replace the contents), though that feels like tacking on tech. debt.

I think this is the best solution in the short-term. Another solution could be to include search.html in erl_docgen and just hide the link to it by default.

Maybe OTP team has plans to move away from that system to jekyll templates and thus this issue.

We do not. If anything we/I plan to bring bootstrap etc into erl_docgen in order to re-do the HTML layout for the docs, but that work is a long time away.


Change password endpoint

Hey, is there an endpoint for manually changing password(without challenge)? Couldn't find something like that.

@Siegi96 OK, I'm waiting for your PR, right?

Hey, is there an endpoint for manually changing password(without challenge)? Couldn't find something like that.

yes , there is in instagram app , its possible to add it to  instagrapi


JSX parsed as a regex

ex.

Would it be possible to reuse the regexes from here?
https://github.com/babel/babel-sublime

Can you provide actual code or a jsfiddle example?  Is this still an issue?  I've seen working examples of JSX now... the big issue we have is with self-closing tags, when you aren't using here.

Ping.


An other parameter to flutter cli

Hi everyone.
Flutter cli would have a name like parameter by example "Flutter create demo --org com.demo --name My Super App" .
demo  would be the project name and --name it would be the name of your application . It will be very helpful otherwise always we navigate to manifest file change our app name.
Thank you for understand me .

Hi @AdamMusa, You can already do that with the existing flutter cli as of flutter 2.5.1
flutter create myapp --org com.organization.awesome_app --project-name awesome_app

Thank you so much

Closing this issue as invalid as the feature already exists, if you disagree feel free to write in the comments and I will reopen it.
Thank you.


SAK-42382 - OneDrive: Returning to Sakai without granting OneDrive co…

…nsent produces 400 error

@ern, I've implemented the requested changes. A isNotEmpty validation is enough, the service uses that code to call a Microsoft service and get an authentication token, if the code parameter contains something weird, microsoft will not return an auth token.


Optimize agg with collation & Optimize mem utils

What problem does this PR solve?
Issue Number: ref #5294
What is changed and how it works?

optimize agg with collation

add ITiDBCollator::compareFastPath and ITiDBCollator::sortKeyFastPath to check bin collation as fast path
add std::unique_ptr<AggregationMethodMultiStringNoCache<AggregatedDataWithStringKey>> multi_key_string; to handle agg functions whose keys are all strings.

use inline_memcpy(libs/libcommon/include/common/memcpy.h) to accelerate memory copy for small buff
replace default memcpy with __folly_memcpy(libs/libmemcpy/folly/memcpy.S)
replace default memory comparison functions of StringRef with internal implementation.

Benchmark
ENV

tpch-100
1 tiflash
original a8c8cb1e2b8f358d7c14a3009ab2e1e6684908f6

Query

limit cpu up to 2000%
SQL: tpch-100 q1

select     l_returnflag,     l_linestatus,     sum(l_quantity) as sum_qty,     sum(l_extendedprice) as sum_base_price,     sum(l_extendedprice * (1 - l_discount)) as sum_disc_price,     sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) as sum_charge,     avg(l_quantity) as avg_qty,     avg(l_extendedprice) as avg_price,     avg(l_discount) as avg_disc,     count(*) as count_order from     lineitem where     l_shipdate <= date_sub('1998-12-01', interval 108 day) group by     l_returnflag,     l_linestatus order by     l_returnflag,     l_linestatus;

Time(s)
Original
Optimized

Improvement

11.48
10.68

10.96
10.5

11.18
10.66

11.16
10.67

11.18
10.51

AVG(Original) / AVG(Optimized) - 1.0

AVG
11.192
10.604

Optimized : Original
5.55%

Test memory compassion by string sort

limit cpu up to 500%
SQL

select max(l_comment) from lineitem;

Time(s)
Original
Optimized

Improvement

7.71
7.05

7.75
6.96

7.95
7.07

7.61
7.23

7.83
7.07

AVG(Original) / AVG(Optimized) - 1.0

AVG
7.77
7.076

Optimized : Original
9.81%

MemUtils
Test memory copy

__folly_memcpy, benefited from avx2 instructions, performs better when string size is not small(>80 Bytes)
the new implementation of inline_memcpy is better than original one(from Clickhouse).

Time(ns)
STL: (GNU libc) 2.17
Original Clickhouse
Optimized TiFlash
Folly
Improvement: (STL) / (Optimized) - 1.0
Improvement: (Original) / (Optimized) - 1.0
Improvement: (Original) / (Folly) - 1.0

MemUtilsCopy_${min}_${max}_${align}_true_${loop}: generate 4095 string pairs with size [${min}, ${max}] and specific alignment, memory copy one by one for ${loop} times

MemUtilsCopy_1_20_3_true_20000
352978
124102
109755
151166
221.61%
13.07%
-17.90%

MemUtilsCopy_1_40_3_true_20000
388125
169980
122037
189678
218.04%
39.29%
-10.38%

MemUtilsCopy_1_80_3_true_20000
423425
222338
215519
179408
96.47%
3.16%
23.93%

MemUtilsCopy_1_200_3_true_20000
567271
406959
368982
208478
53.74%
10.29%
95.20%

MemUtilsCopy_1_1000_3_true_20000
1021812
624687
576924
362513
77.11%
8.28%
72.32%

Test memory comparison

Time(ns)
STL: (GNU libc) 2.17
Optimized-avx2
Improvement: (STL) / (Optimized) - 1.0

MemUtilsCmp_${str-size}_${loop_times}: check mem-cmp for str for specific times

MemUtilsCmp_2_20
66.5
51.9
28.13%

MemUtilsCmp_13_20
75.3
66
14.09%

MemUtilsCmp_65_20
126
106
18.87%

MemUtilsCmp_100_20
167
106
57.55%

MemUtilsCmp_10000_20
5145
3740
37.57%

MemUtilsCmp_100000_20
81996
68577
19.57%

MemUtilsCmp_1000000_20
1254279
1112721
12.72%

Check List
Tests

[x] Unit test
[x] Integration test
[x] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/hold

/merge

/unhold

/rebuild


add metadata in the PDF export

Some metadata should be added to the exported PDF, such as:

the prefLabel of the work in Unicode
a reference to BDRC with the URI
a license indication (should be available in the admin data of the item)
a URI indication

the reference to iText should be removed

This has been implemented as of commit db71562. We could add more custom metadata to it in order to get a little closer to the info we currently have in BDRC intro pages. WDYT ?

Why not, I think author is a common field... What else do you propose?

If set, I suggest we add :
Author, Number of volumes, Current volume, Biblio note, Catalog info, Publisher, Publisher place, LCCN
All these are available from the work resource model we already have when creating ArchiveInfo.

maybe the LCCN is a bit superfluous, but if the others are easy to add then yes, let's do it!

All added (but LCCN) as of commit 1ebb6de

thanks! I think it's ok now, let's close it. I can't see the custom metadata in my (admittedly basic) PDF viewer, but what's there is enough I think


Check assert predicate from caller, and compile assertion to C assert

This is now built in to the C backend.


add custom metrics file for fraud

Planning to define custom metrics in the fraud notebook (which is the primary entrypoint for users using the demo notebooks). It's the existing demo custom metric of average nulls per row.

@jerryjliu imo we shouldn't add it to the fraud notebook. The fraud notebook is the self serve notebook customers see for the first time. Complicating that notebook can confuse customers. We should instead add to say regression or ranking

@jerryjliu imo we shouldn't add it to the fraud notebook. The fraud notebook is the self serve notebook customers see for the first time. Complicating that notebook can confuse customers. We should instead add to say regression or ranking

ok! i was thinking regression actually. not a big deal, i'll change

@jerryjliu imo we shouldn't add it to the fraud notebook. The fraud notebook is the self serve notebook customers see for the first time. Complicating that notebook can confuse customers. We should instead add to say regression or ranking

ok! i was thinking regression actually. not a big deal, i'll change

Do you mean move the self serve notebook to regression? I'm okay with that as well. Or if you meant move custom metrics to regression - that also makes sense!

Do you mean move the self serve notebook to regression? I'm okay with that as well. Or if you meant move custom metrics to regression - that also makes sense!

Like move the custom metrics demo to the regression notebook (which is NYC TLC - it fits because that notebook is also showing nulls over time)


Sensors without State Class since HA 2024.10.x

Describe the bug
Since updating to 2024.10.x of Home Assistant, I'm getting repair notifications for the following sensors:

I can confirm that the sensors are still receiving data so I don't think I want to do what the repair suggests and delete them, right?

To Reproduce
I'm not sure if this is just my instance or if others are seeing it as well, but if it is reproducible, just update to 2024.10
Additional context
Running version 20244.10.1 of Hass-DAB-Pumps via DConnect

This was changed because Home Assistant does not allow (gives a warning) the combination of DeviceClass 'Water' and StateClass 'Total Increasing', 'Total' or 'Measurement'.
The chosen solution was to keep the DeviceClass 'Water', but remove the StateClass. As a result, statistics are no longer gathered for fields 'Last_Period_Flow_Counter' and 'Last_Period_Flow_Counter_Gall'. Which is consistent with existing behavior for 'Last_Period_Energy_Counter'.
If you do want to see statistics for these values then 'Actual_Period_Flow_Counter' is a better entitity to use.
You can safely remove the old statistics for 'Last_Period_Flow_Counter', it will not remove the entity itself. Old statistics for 'Actual_Period_Flow_Counter' will still be there.


installation without root rights

[100%] Built target translate_positional_arguments
Install the project...
-- Install configuration: "Release"
CMake Error at contrib/libpoco/cmake_install.cmake:36 (file):
  file cannot create directory: /usr/lib/cmake/Poco.  Maybe need
  administrative privileges.
Call Stack (most recent call first):
  contrib/cmake_install.cmake:38 (include)
  cmake_install.cmake:37 (include)

it asks for administrative rigths. Although, I asked to install to user directory, i.e. where root rights are not required .
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/basiliscos/development/click-house

why it tries to install something inot /usrl/ib/.. ?

should be fixed here https://github.com/yandex/ClickHouse/commit/13e9b5c94977b5c3b9b43859d3b9d7cf1d584943

Yep, confirmed. Thanks you!


mr_left iPhone

`
    @* -- Logo -- *@

`
The above code works fine for centering the logo on Desktop.  It also centers it fine in Chrome DevTools when simulating a mobile.
On the iPhone itself though, the Logo moves flush left.   Also if I remove the mr-auto, as expected in Desktop the logo shifts flush right.  However on the actual iPhone it remains flush left.

mx-auto does not work either.  Brand logo remains flush left on iPhone regardless.

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via JS Bin and report back with specific browser and OS details.

Closing due to lack of response. Might be similar to #21745 though, too.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1064 ms

Resolved: Bofrost.at performance has improved in a242c18 after 15 minutes.


Infer index and type from T for GetMany

Set Index and Type on MultiGetDescriptor. If they have values, the specific index and type will be overridden on each get operation with them.
Fixes https://github.com/elastic/elasticsearch-net/issues/2093

Will need forward porting to 5.x

LGTM :+1:  but (as already discussed) needs url tests.


Updating master branch with release pipeline code to publish beta and latest packages through PR

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign mderazon
You can assign the PR to them by writing /assign @mderazon in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
Approval requirements bypassed by manually added approval.
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
Approval requirements bypassed by manually added approval.
This pull-request has been approved by: sumitsheokand
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/approve

[APPROVALNOTIFIER] This PR is APPROVED
Approval requirements bypassed by manually added approval.
This pull-request has been approved by: sumitsheokand
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Add type hints to gates and QuantumCircuit

Summary
This is pretty much all documentation changes, except that it also moves the definition of QuantumCircuit.measure into quantumcircuit.py rather than monkey-patching it from measure.py.  This makes it consistent with other instruction definitions, and made it easier to access the QubitSpecifier and ClbitSpecifier type aliases.
Add type hints to QuantumCircuit
This adds full type hints to all public function entry points in
QuantumCircuit.  This will not cause quantumcircuit.py to pass a mypy
check yet; there are various idioms used within the file which are not
statically type-safe (nor, in some cases, dynamically type safe in the
sense that we sometimes rely on mismatched types to throw exceptions).
These include anything which takes the inplace argument, since
inplace=True versions do not return, which influences the out types to
Optional["QuantumCircuit"]
This then means that methods using these functions (e.g.
QuantumCircuit.__add__) become unsafe; even though they use the
default inplace=False, subclasses could override this while still
maintaining type safety, and so the operation is not safe.
This patch makes no attempt to modify the behaviour of these
non-type-safe functions, only to classify what the current types are.
Add type hints and label to all standard gate classes
This completes the standard-library gate documentation overhaul tracked
by #3705, and mostly done in #4017, by adding type hints to the
initializers.
It also adds the missing label option to the iSWAP, R, RXX, RYY, RZX
and RZZ gates, to bring them up to parity with the other gates, tracked
in #6780.
Add parameters to QuantumCircuit gate docstrings
This only adds short documentation to the docstrings of the gate methods
(for example QuantumCircuit.x) about the parameters and the return
values.  It does not currently import the matrix representations into
the docstrings themselves, because the gate classes include those.  The
expectation is that you would see the docstring when running
interactively, and even in Jupyter, this typically does not include
displaying maths.  The matrix form is more useful when looking at the
online Sphinx documentation, where the cross-reference gate link will
work more easily.
Details and comments
Fix #3705
Fix #6780
I didn't pull the actual matrix definitions into the QuantumCircuit docstrings, because I think they'll add a lot of unreadable noise to the points where you'd actually see them most commonly - in the Jupyter/IDE popups for help and completions.  These are text-based, and so don't really show maths in the most part.  The only places you expect to see the maths are in the Spinx websites, where the links that are already in the docstring will work anyway.
There is a slight nuisance at the moment in that neither sphinx.ext.napoleon nor sphinx_autodoc_typehints quite handle cross-referencing the typehints in the docstrings properly, but this is something we could fix externally.
There are a few parts in QuantumCircuit where we're not doing things fully type-safely, and a couple of places where we do it in such a way that mypy can't statically analysise it.  I haven't attempted to fix any of this, since that can be done elsewhere.

Oh yeah, in other details: this leaves the fractured nature of the label parameter in the gate methods of QuantumCircuit, because we internally haven't made a 100% decision one way or the other.  We can make those changes in the future if we need to.

Looks good. Any reason you didn't bring reset in like you did with measure?
For a future PR: the consensus seems to be settling on qiskit.extensions being a mistake so perhaps one day we could eventually eliminate monkeypatching completely...

@levbishop: no good reason - I suspect I noticed that measure was being monkey-patched in because it's referenced within QuantumCircuit anyway, and I just didn't notice that reset wasn't it.  I've brought it in as well.
There are still 3 monkey-patched functions in the circuit library (QuantumCircuit.mcr[xyz]), but these seem to be of quite a different form so I've left them as-is.  Aer also patches a bunch of functionality in, so it's not like we can be entirely consistent just within Terra.  At any rate, this inclusion is pretty tangential to the rest of this PR - I think I only did the measure originally because mypy moaned about it.

Oh, I should highlight: the hints I've added should all be correct (I believe), but there's a few places where the inplace argument messes with mypy's static analysis.  Things like the arithmetic operators use functions which technically return Optional[T] (because of the inplace argument), but since we use them with inplace=False, we know they do return T.

For now lets just make any added hints correct, since that is uncontroversial.


Can i make a forge port of your mod called 'ForgetMeChunk' ?

Hello, a lot of forge modpacks needs your performance mod called 'ForgetMeChunk', So
can i port it for the forge mod loader and i can credit you as original author.
And don't worry i will not drop the support of it and i accept every condition you ask for.
Also if you have a discord name for easy contact i will be appreciated.
My discord name : AbdElAziz#1914

you know i get an email for curseforge messages, and github issues, you dont need to do both, and while yes i cant stop you, i recommend that you wait until i port this mod to 1.19 as there will be some important information coming with that update, if all goes to plan im doing the testing and porting tomorrow

But yes, sure you can port it, and as per the license you are allowed to, i imagine it would also be quite easy as this entire mod is one mixin

Okay i will port it when you create the 1.19 version, sorry for sending messages on both curseforge and github issues, Thank you for the reply!

the readme has been updated with as for mentioned important info if you deciede to port this please include that infomantion, this fix is not perfect and is at best a hack


Add EditorPrefs for payload policy and material import mode

Purpose of this PR
Ticket/Jira #: https://jira.unity3d.com/browse/USDU-141
Default values for the UsdAsset were set to not load the payloads and not load the materials. It gives the feeling the importer is broken and it's not clear to a new user which option needs to be changed to load the full asset.
This PR changes the default values  to load the payloads and the materials, and adds those settings as EditorPrefs.
The settings are accessible in the USD/Preferences sub menu

Note that the default values of the UsdAsset component were not changed but the user have full control over them.
Testing
Functional Testing status:
Loading the usd kitchen shows that the payload policy is respected
Loading the usd female skeleton show that the material import mode is respected
Restarting Unity after changing the prefs shows that the prefs are registered
I also checked that the prefs were properly set in the windows registry
Performance Testing status:

Overall Product Risks

Complexity:
Minimal
Halo Effect:
Minimal
Additional information
Note to reviewers:
I also reformated the code to respect Unity code style. I'll do that progressively on all files I modify.
The functional changes are in the first commit.
Reminder:

[ ] Add entry in CHANGELOG.md (if applicable)

There are actually quite a lot of potential "pipeline preferences", which makes me think that perhaps we should have a configuration asset, like HDRP...

As more general comment, do we know if there is a convention for the location of package settings? Menu toggles vs. Preferences window vs. Project Settings Window
I don't yet have a strong opinion either way but I'm wondering if it's something that users would like to set on a per-project basis 🤔

Editor Preferences -> Anything that is shared between projects on your machine. Useful for general+user configurations.
Project Preferences -> Anything that apply only to your project. That's why to have so many settings here, they are all defined per project.
Menu toggles -> I don't think that is standard. They pollute menus and go against the usage of Preferences or Project Settings.

Every time a new setting is exposed, we need to define its scope. Is it define per project? per user?
It matters to stay consistent so users don't get lost. @JulienDidierjean can probably confirm what is the best way.

It matters to stay consistent so users don't get lost. @JulienDidierjean can probably confirm what is the best way.

I already discussed the matter with @JulienDidierjean and even if not standard he was ok with it. Recorder is using the same trick as well.
@thomas-tu would you add a usd section to the Preferences even for those 2 options? I kind of like the idea of a hrdp style config asset though.

Closing the PR for rework. Planned for 2.1.0


Fix: don't assign buf_size in main function

Assigning buf_size in the main function doesn't reflect the usage. Functions, where buf_size aren't assigned by (sizeof(buf)); assigning it on main, gives buf_size the value, so the functions can use the correct value.
Since buf array length is fixed size, instead of this, just getting size of  buf in bytes when needed, will work much cleaner and better.
Patch file: bsdfetch.txt

I currently have some patches from a anonymous contributer that will be merged in the coming days. (It will be a bigger change to the code overall)
I will review the changes you have made to the code and merge them in with the queued changes that are not yet committed.
I plan to get all of it merged till the end of the week.
Again, thanks @rilysh for the work on bsdfetch.
Updates will be published as soon as i reviewed all the changes.

The issue with the sizeof assignments to variables before use is now solved in the current code. Currently, sizeof is directly called in snprintf.
Thanks for the work @rilysh !
I will close this PR since the changes are already present in the code.

No problem, good to see overall changes! :)


Amazon FREERTOS sdk_sync branch sntp linker error

component.txt
Describe the bug
Am trying to enable the sntp  with afr and made the following changes to the component.mk file
1.) in COMPONENT_SRCDIRS :=
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/api \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/apps/sntp \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/core \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/core/ipv4 \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/core/ipv6 \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/portable \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/netif \
    $(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/test/fuzz

2.) in COMPONENT_ADD_INCLUDEDIRS :=
$(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/include
$(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/portable
$(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/test/fuzz
$(AMAZON_FREERTOS_LIB_DIR)/third_party/lwip/src/include/lwip
3.) CFLAGS += -Wno-address  # lots of LWIP source files evaluate macros that check address of stack variables
the copilation was successfull but showing following error in linking
changed sntp_opts.h file as follows
#if !defined SNTP_SERVER_DNS || defined DOXYGEN
#define SNTP_SERVER_DNS            1
#endif
LD build/afr_sspc.elf
/home/shijin/afr_test/afr/sspc/make/build/tcpip_adapter/libtcpip_adapter.a(tcpip_adapter.o):(.rodata.ethbroadcast+0x0): multiple definition of ethbroadcast' /home/shijin/afr_test/afr/sspc/make/build/amazon-freertos-common/libamazon-freertos-common.a(ethernet.o):(.rodata.ethbroadcast+0x0): first defined here /home/shijin/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: /home/shijin/afr_test/afr/sspc/make/build/afr_sspc.elf section .dram0.bss' will not fit in region dram0_0_seg' /home/pentair/esp/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: region dram0_0_seg' overflowed by 209784 bytes
/home/shijin/afr_test/afr/sspc/make/build/amazon-freertos-common/libamazon-freertos-common.a(timeouts.o):(.literal.sys_timeout+0x14): undefined reference to sys_now' /home/shijin/afr_test/afr/sspc/make/build/amazon-freertos-common/libamazon-freertos-common.a(timeouts.o): In function sys_timeout':
/home/shijin/afr_test/afr/lib/third_party/lwip/src/core/timeouts.c:171: undefined reference to `sys_now'
collect2: error: ld returned 1 exit status
/home/shijin/afr_test/afr/sspc/make/../../lib/third_party/mcu_vendor/espressif/esp-idf/make/project.mk:406: recipe for target '/home/shijin/afr_test/afr/sspc/make/build/afr_sspc.elf' failed
make: *** [/home/shijin/afr_test/afr/sspc/make/build/afr_sspc.elf] Error 1
System information

Hardware board : esp32
afr freertos sdk_sync
Operating System [|Linux|]
Version of Amazon FreeRTOS (sdk_sync branch)
Project [Custom Application|MQTT|Shadow|Greengrass|OTA|Device Defender|TCP Echo|Sub pub Demo|Simple TCP Server]

Additional context
I have changed the component.mk file as per esp-idf version of sntp example.
It would be really great if anyone help with how to enable the sntp support for afr
attached the component.mk file as .txt file for the application(directory structure changed as per application)
Thank you!

/home/shijin/afr_test/afr/sspc/make/build/tcpip_adapter/libtcpip_adapter.a(tcpip_adapter.o):(.rodata.ethbroadcast+0x0): multiple definition of ethbroadcast'

section .dram0.bss will not fit in region dram0_0_seg
region dram0_0_seg overflowed by 209784 bytes

It looks like your application is building the ESP-IDF lwip component; we use FreeRTOS+TCP as the TCP/IP stack in our ESP32 demos, so that might be causing some some of the build issues you're seeing such as multiple definitions of 'ethbroadcast' or undefined reference to sys_now.
The combined application might also be too large or use too much RAM; like chegewara mentioned, it looks like the linker can't fit everything it needs to into the dram0_0_seg memory section.
Since the ESP-IDF sntp example seems to rely on lwip for its sntp protocol, you would probably need to modify your application to use lwip instead of FreeRTOS+TCP, rather than building both of them into the project. I don't think that we have specific guidance on how to do that, though.
Sorry that I don't have a better solution; we are currently working on adding NTP functionality to the Amazon: FreeRTOS libraries, but unfortunately I don't have a timeframe for when that will be ready to use.

@WRansohoff so is there any way to do the time sync in current afr repo?? May be through tls layer or mqtt..  Because my application requires to send the timestamp with the mqtt msg

Sorry, we don't support time sync in current AFR repo. We are actively working on NTP and you can expect a "preview release" coming sometime in August, in a separate branch. We will let you know.

Hi @shijinjose,
Custom NTP application through MQTT/TLS is a feasible option. But please note it will involve some additional cost for sending MQTT messages periodically.
I am closing this issue. Please feel free to reopen this if you still have questions.

Hello,
Is AFR still don't support time sync..?


Maven(Clean up) - Remove explicit compile scope

The compile scope is the default and there is no need to define it explicitly
This is similar to ChangeDependencyScope but that recipe expects a dependency and a scope as the input. We might be able to reuse some of the logic from the visitor

Might need to take into account it's not overriding a dependencyManagement scope, but otherwise yes makes sense to clean that up.

Might need to take into account it's not overriding a dependencyManagement scope, but otherwise yes makes sense to clean that up.

Can you assign this to me? @timtebeek

Hope you don't mind I unassigned you @yeikel
I want to open this issue back up again to anyone to pick up.
Feel free to open up a draft pull request if you'd like to contribute!


Having multiple series in same scatter plot and regression line for one of the series

Thanks for the nice example. I would like to add multiple series to the scatter plot but want to show regression line for only one of them. How can I achieve it...??
Thanks in advance,
Vivek

I'm sorry to say that is not possible right now. There is a bug that
prevents that case, just confirmed it.
For multiple series, you can only set the regression for all series like
shown here http://jsfiddle.net/asork1nb/
Tagged this as a bug, will solve it asap.
Thanks for reporting this issue,
Ignacio Vazquez
2018-03-15 6:40 GMT-03:00 Vivek Todur<EMAIL_ADDRESS>
Thanks for the nice example. I would like to add multiple series to the
scatter plot but want to show regression line for only one of them. How can
I achieve it...??
Thanks in advance,
Vivek
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/streamlinesocial/highcharts-regression/issues/66, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AB_TLinTaj36nlepqR3snpOOHLrLPxlYks5tejbxgaJpZM4Sr0rk
.


ASP.NET Core project templates use Kestrel by default. In Program.cs, the app calls ConfigureWebHostDefaults, which calls UseKestrel behind the scenes.

See How to use Kestrel in ASP.NET Core apps
ASP.NET Core project templates use Kestrel by default. In Program.cs, the app calls ConfigureWebHostDefaults, which calls UseKestrel behind the scenes.
Isn't UseKestrel the default config? You don't need to change the the ConfigureWebHostDefaults call to use IIS or HTTY sys, you change config. -- Right?
@guardrex  please comment. cc @serpent5

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

ID: f22dcddb-0c25-be1a-9a02-9e71dce86bdb
Version Independent ID: 3e0e12c2-e544-5655-e001-d2ec180b11a8
Content: Kestrel web server implementation in ASP.NET Core
Content Source: aspnetcore/fundamentals/servers/kestrel.md
Product: aspnet-core
Technology: aspnetcore-fundamentals
GitHub Login: @guardrex
Microsoft Alias: riande

I don't quite follow the question ... Kestrel and IIS Integration are provided via calls behind ConfigureWebHostDefaults, but not HTTP.sys. If you trace it out, you come out here ...
https://github.com/aspnet/AspNetCore/blob/1480b998660d2f77d0605376eefab6a83474ce07/src/DefaultBuilder/src/WebHost.cs#L217
... and for IIS bits, a little further down ... here ...
https://github.com/aspnet/AspNetCore/blob/1480b998660d2f77d0605376eefab6a83474ce07/src/DefaultBuilder/src/WebHost.cs#L256-L257
Are you saying that you'd like the topic to also show a more manual host set up that doesn't call ConfigureWebHostDefaults and thus ends up literally calling UseKestrel? It's not the happy path, but it could be shown, of course.
Otherwise, maybe "How to" should be taken off of the section title. It's more like just use it given that we rely on the magic bits ✨.

@guardrex  much simpler. I'm saying the following:
ASP.NET Core project templates use Kestrel by default. In Program.cs, the app calls ConfigureWebHostDefaults, which calls UseKestrel behind the scenes.
SHould be changed to
ASP.NET Core project templates use Kestrel by default. In Program.cs, the app calls ConfigureWebHostDefaults, which BY DEFAULT calls UseKestrel behind the scenes.
But even ASP.NET Core project templates use Kestrel by default.  is not  correct. The same templates run from VS use IIS Express.

I want to make How to use Kestrel in ASP.NET Core apps consistent for the 85% who use IIS Express from VS. What's written there doesn't make sense for that use case.

That's cool, except that this is just the Kestrel topic. It's really quite heavily focused on the OOB ... no IIS ... basic CLI tooling ... way of the world.
OOB ... dotnet run the template, you get Kestrel. There's no IIS/Express there to integrate.
These topics were written to compartmentalize things quite a bit. The incremental improvement might be worth it ... or not ... hard to say. The statement is accurate in the simplest case tho.

I want to make How to use Kestrel in ASP.NET Core apps consistent for the 85% who use IIS Express from VS. What's written there doesn't make sense for that use case.

I have a concern about that ... again, based on the xplat/xtooling scenarios involved. Engineering probably will shed helpful light on it tho. I'm just remarking from the historical perspective on why these topics adopted their current approach.

What about
ASP.NET Core project templates use Kestrel by default. In Program.cs, the app calls ConfigureWebHostDefaults, which BY DEFAULT calls UseKestrel behind the scenes.

ConfigureWebHostDefaults will always call UseKestrel (source). It'll also call UseIIS and UseIISIntegration (source). The magic seems to be in those IIS methods detecting if IIS is running and replacing the IServer implementation in DI accordingly (among other services, it seems).

Always "call," yes. Always "use," no ... depends on what the dev picks (e.g., HTTP.sys server).
That's correct @serpent5. All the juicy details (most of them anyway) are over at https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.0#in-process-hosting-model.

Just again from the historical perspective here ...
All of the server, host, publish, and deployment topics have been written and maintained to compartmentalize things fairly strictly. It was done (fair enough to say 'by me' ... I guess with engineering's blessings lol) ... it was done because we're so xplat/xtooling these days. It virtually demands that each subject area take most of its own set up and config explanations unto itself.
The good question here that you're asking I think is how to handle those first few contact docs ... extensions ... fundamentals.
This is why I say today that the host coverage isn't so good. I pitched right at the start ... and thought that engineering was on-board with it ... to have one Host topic. The current Web Host topic goes off to Advanced or someplace to die ⚰. The IWebHostBuilder bits that we need to keep under the Generic Host are in that topic ... in a section dedicated to the Web Host living inside of the Generic Host. All of the chat today about "switching" and "depreciated" for the Web Host ... well :smile: ... IWebHostBuilder ... still there ... still kick'in.
But final word on the server stuff ...
A reader needs to figure out what tech they want to use, then engage the docs exactly in those areas. The high level docs are rather general ... often speak to base/default scenarios (e.g., dotnet run a template from CLI). The dirty details are in each topic down in the TOC.

See https://github.com/aspnet/AspNetCore/issues/13145


fix: Don't send drmsessionupdate after unload

There is an async call, waiting for sessions to update, right before
the StreamingEngine fires off an drmsessionupdate event.
This could potentially cause an error, as the StreamingEngine's
player interface could potentially be set to null during destruction.
This adds a check to see if the StreamingEngine has been destroyed,
to catch that case.
Based on a test failure of #4241

I checked in local and I don't see any error.


Why Ollama is so terribly slow when I set format="json"

What is the issue?
This is a duplicate of #3154, which was closed, I'm assuming, by mistake.
The performance of the format="json" param is 10x slower than regular inference when additional context is included
A prompt like this takes ~24s to return on an NVIDIA T4 with CUDA enabled and  format="json". The same exact prompt without format json takes ~2s to return. This has got to be a bug right?
Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.

${context}

Please respond in the following JSON schema
{
   "${schema.fieldName}": {
      "type": ${schema.type},
      "description": ${schema.description}
     }
}

Question: ${schema.description}
Helpful Answer:

OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
0.1.32

I think this is related to a loop detection piece of code in the server.go code, the detection code allows the model to cycle for a number of tokens over whitespace, if the last token is repeated a number of times or only whitespace is detected for like 30 iterations it aborts the prediction, it would be useful if you could run your request while setting ollama in debug mode more about this here : troubleshooting
if this relates to the loop detection logic you will a line like 'prediction aborted, token repeat limit reached' in the log.
on the other side some other bugs on stop detection relate to llama.cpp and could also be a cause.
I would be useful to try your request with streaming enabled this will show what the model returns
curl http://<IP_ADDRESS>:11434/api/generate -d '{
   "model": "llama3:8b",
   "prompt": "You are a helpful writer, respond with an address in the US in JSON format.",
   "stream": true, "format": "json" }'

Now as a workaround I would recommend on not using the format=json for now and just mention it in the prompt itself, depending on what your integration is you might be better by capturing the json part of the response by using a regex orso, I've had some flaws and inconsistent behaviors using format=json across different model, the regex might be a more robust solution to this

I will say... I've observed that some models are slower with json mode than others. I'm not sure if it is a bug in the implementation, or if the models themselves are just trained in interesting ways.
Observing the streaming response, it seems to respond quickly, but then it waits around for awhile before deciding the message is complete. A well-defined grammar would realize that the JSON message is over, and immediately terminate, rather than waiting for some kind of end-of-stream token, and this could be the issue here.

getting this exact issue on llama3:8b but not with mistral:latest, weirdly enough? speeds for regular text between both models are the exact same on my 3080. i think @coder543 is correct, except this is a bug in the implementation. why are we outputting whitespace in the json in the first place?

https://github.com/ollama/ollama/assets/62841684/a91cb579-4160-445d-ad47-caf888f17a39
https://github.com/ollama/ollama/assets/62841684/fbc5a9b4-0113-4d2a-8467-5b24083433f7
the first video demonstrates my function calling without "format": "json", and the second demonstrates it with "format": "json". you can see the speed difference is insane; same prompt and everything.

Unfortunate your video isn’t showing it generating JSON in both modes. If the model can’t respond with the correct JSON without JSON mode at least some of the time, it makes it harder to know for sure where the issue is in a piece of software like this. It would also be helpful if the response were streaming (with a clear visual indication of when the streaming response has finished) so we could see if it pauses after generating the JSON, or if it is just generating the JSON really slowly character by character.

There are some known upstream issues with grammar restrictions (which JSON format uses): https://github.com/ggerganov/llama.cpp/issues/4218


Add InventoryItem Client-side functionality

Add InventoryItem Client-side functionality

Please check 2nd commit on this branch


Unity GUID error

updated LDtkUnity today and now I'm getting this error:
GUID [8c4bfcb5b17948478ccb955bccff9652] for asset 'Packages/com.unity.nuget.newtonsoft-json/Runtime/Newtonsoft.Json.dll' conflicts with:
  'Packages/jillejr.newtonsoft.json-for-unity/Plugins/Newtonsoft.Json Editor/Newtonsoft.Json.dll' (current owner)
We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

Looks like LDtkUnity installed jillejr.newtonsoft.json-for-unity and it's conflicted with the built in com.unity.nuget.newtonsoft-json.
Not sure what to do about this.

Hmm, some sort of package conflict issue. I'll investigate and try to figure this out. Thank you for the report. 🙂

I believe I've found a solution from these threads.
https://forum.unity.com/threads/newtonsoft-json-error-after-upgrading-to-0-8-1-from-0-6.961198/
https://forum.unity.com/threads/newtonsoft-json-package.843220/
Basically, I was using the standard Json.Net package from their GitHub, but Unity made their own version of Json.Net, so I'll try using that instead which may solve the problem.
Maybe you got this problem because you have another package that uses Unity's version of Json.Net?

 Fix GUID bug related to json.net package conflicts

I've tried fixing this. I pushed a new update that changes the dependent Package from Newtonsoft Json for Unity to Newtonsoft Json Unity Package.
Changelog
Overall, it should help prevent some clashing. The error might appear one more time, but won't appear any further after that, I think. 🙂
Feel free to reopen this issue if something unexpected still happens.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2263 ms

Resolved: Bofrost.at performance has improved in f47a18e after 34 minutes.


Crash on import in nextjs

I'm submitting a ...
[X ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
I am using nextjs and when importing lsp-factory module I get a crash: TypeError: Object prototype may only be an Object or null: undefined.

@lukso/lsp-factory.js: "^1.1.5"
I tried to load module couple ways:
// import lspFactory from<EMAIL_ADDRESS>// crash here

const doSomething = async ({ name, about, profileImage }) => {
  const lspFactory = (await import('@lukso/lsp-factory.js')).default() // crash here
}

I tried to narrow it down, seems like by simply importing jimp it breaks the app.

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

next-dev.js?3515:32 TypeError: Object prototype may only be an Object or null: undefined
    at Function.create (<anonymous>)
    at Object.inherits (VM18381 inherits_browser.js:6)
    at eval (VM18906 chunkstream.js:22)
    at Object../node_modules/pngjs/lib/chunkstream.js (node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:7127)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18905 parser-async.js:5)
    at Object../node_modules/pngjs/lib/parser-async.js (node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:7270)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18885 png.js:7)
    at Object../node_modules/pngjs/lib/png.js (node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:7314)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18884 index.js:12)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2325)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18878 index.js:14)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2347)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18828 index.js:12)
    at Object../node_modules/jimp/es/index.js (node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:6438)
    at Object.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18720 uploader.helper.js:16)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2446)
    at Module.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18719 lsp3-universal-profile.js:10)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2391)
    at Module.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18318 lsp-factory.js:7)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2501)
    at Module.options.factory (webpack.js?ts=1640812154560:660)
    at __webpack_require__ (webpack.js?ts=1640812154560:37)
    at fn (webpack.js?ts=1640812154560:329)
    at eval (VM18317 index.js:6)
    at<EMAIL_ADDRESS>(node_modules_lukso_lsp-factory_js_build_module_src_index_js.js:2369)
    at Module.options.factory (webpack.js?ts=1640812154560:660)

Hi @lykhonis. Can you try importing the LSPFactory class rather than the whole module?
e.g. import { LSPFactory } from<EMAIL_ADDRESS>

Unfortunately same issue.
import { LSPFactory } from<EMAIL_ADDRESS>
const createProfile = async ({ name, about, profileImage }) => {
  return 'oops'
}

export default createProfile

error - ./node_modules/@jimp/core/es/index.js:42:0
Module not found: Can't resolve 'fs'

Import trace for requested module:
<EMAIL_ADDRESS>./node_modules/jimp/es/index.js
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>./app/utils/createProfile.js
./app/utils/index.js
./app/components/modules/join/index.js
./app/components/modules/index.js
./app/components/layouts/app/index.js
./app/components/layouts/index.js
./pages/_app.js

https://nextjs.org/docs/messages/module-not-found

Thanks @lykhonis for reporting this issue.
We have added this issue in our internal backlog and we will look at it.

Here is a repo which reproduce the error:

https://github.com/Hugoo/nextjs-lsp-factory
The issue comes from fs, a node API which is not available in the browser.

This can be fixed by configuring webpack not to resolve fallback for fs in next.config.js:
module.exports = {
  webpack: (config, { isServer, }) => {
    if (!isServer) {
      config.resolve.fallback.fs = false;
    }
    return config
  },
}

You can see a basic working example app here https://github.com/CallumGrindle/nextjs-lsp-factory.
Thanks for your patience with this @lykhonis!


Security vulnerablity

Issue
Dependent apps could be vulnerable to relay attacks.
This is possible because the nonce value is reused for all authentication requests.
A copy of the signed message (nonce) could be reused by hackers to obtain access tokens and compromise account.
Fix

expire the nonce once it has been used and require new be nonce generated and used used during next login/ request (preferred)
user signs a random nonce, and sends nonce along with signature to back-end for validation

Fixed by @iChristwin in PR #4 and merged by @wassafshahzad to the main branch


[BUG] Set-PnPLabel [Access denied]

Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:

Are you using Invoke-PnPSiteTemplate or Get-PnPSiteTemplate? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.
Is the issue related to the cmdlet itself, its parameters, the syntax, or do you suspect it is the code of the cmdlet that is causing the issue? Then please continue reporting the issue in this repo.
If you think that the functionality might be related to the underlying libraries that the cmdlet is calling (We realize that might be difficult to determine), please first double check the code of the cmdlet, which can be found here: https://github.com/pnp/powershell/tree/master/src/Commands. If related to the cmdlet, continue reporting the issue here, otherwise report the issue at https://github.com/pnp/pnpframework/issues

Reporting an Issue or Missing Feature
Please confirm what it is that your reporting
Set-PnPLabel stopped working since the beginning of July with error related to permissions for
all sites, all labels we have published, it just errors out with Access Denied. Same operation works
from the UI with the same account. Get-PnPLabel works properly as well returning the available
labels.
Expected behavior
Please describe what output you expect to see from the PnP PowerShell Cmdlets
Expected is that the label would be applied as default on the document library, PowerShell
does not return output on success for this command.
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
Set-PnPLabel : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At line:1 char:1

Set-PnPLabel -list "Audit Logs" -Label "Audit Log Retention Label ...

  + CategoryInfo          : InvalidOperation: (:) [Set-PnPLabel], PSInvalidOperationException
  + FullyQualifiedErrorId : InvalidOperation,PnP.PowerShell.Commands.InformationManagement.SetLabel

Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
Connect-PnPOnline "https://xxx.sharepoint.com/sites/xxxx"
Set-PnPLabel -list "Audit Logs" -Label "Audit Log Retention Label"
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
1.11.0     PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?

[x ] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

Tested same with latest version of CSOM, same behavior:
$context.ExecuteQuery()
Exception calling "ExecuteQuery" with "0" argument(s): "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
At C:\Temp\SharePoint\TestApplyTag.ps1:55 char:1

$context.ExecuteQuery()

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : ServerUnauthorizedAccessException

On Dev tenant I was able to apply label if I grant Global Admin role to the executing user, the error returns as soon as I removed it. There must be underlying change on the backend to require Global Admin for some reason.

Found culprit to be the legacy Compliance Policy Center site, for some reason the code checks against it for access and only Global Admin is in there by default, you can modify it with SPO Management shell to include the accounts you need. Maybe you can add the dependency in the commandlet help file to show there is such dependency.

Having the same issue, would you be able to elaborate please with the commands you used in the SPO Management shell to resolve this?

Install-UnifiedCompliancePrerequisite, we were missing the site, test with load only key first. Once you have it add the users you need as admins on the site collection, and the commandlet should start working.

Thanks, I've connected ok and run -loadonly
to make the change did you change the owner? -PolicyCenterSiteOwner

I got the site url and browsed it, it is a Sharepoint site, so I just added the group I needed as admin on it.

legacy Compliance Policy Center site

Great, thank you.
Think I'd also just solved it by adding the Compliance Administrator role in PIM

Closing as not a bug, seems like an issue with the permissions and nothing to do with the cmdlets


chore(deps): upgrade runtime dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-runtime-dependencies-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2015

Questions ?
Please refer to the Backport tool documentation


Config management variables must be valid ansible variables

Any key used within the config management must be validated as valid Ansible Variables.
Requirement

[ ] add a validator to the model that checks all dict keys

mentioned in commit bf4555869855d694495231c46ffe55cd7d4fc073

marked this issue as related to #33

added 2m of time spent

mentioned in commit 4ee6347306dc5c67303e4e416c1be11ed4d9f519

mentioned in commit 2c1bbbfc15babdc22d67285dae1c18a4b6f3cc96


[improvement] website for playground (examples) and doc

Should be a jekyll static markdown website (https://github.com/jekyll/jekyll)
Some templates: https://html5up.net/

jsdoc can generate markdown documentation

loading examples in iframes should be good enough

https://popper.js.org/popper-documentation.html


add Jordan University of Science & Technology

I hope this time I don't have any  mistake
can you please add
my university to your list
https://www.just.edu.jo/

@razan-mardini cit.txt I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for your understanding!


Can you please release the latest version of nodejs in your assets?

Can you please add support to the latest LTS would be tons appreciated 18.13.0, see https://nodejs.org/en/

Windows x64 & x86
Linux x64 & x86
macOS x64

I honestly do not have macOS, so that puts me behind,

Hey @SDAdham, thanks for taking the time to open this issue! I plan to add 18.14.0 in the next couple days. I'll post a follow up message here when I do 😄

Thank you so much @code-ape . Much appreciated!

Closing for now. @SDAdham let me know if you have any issues related to this in the near future and I can reopen. Thanks!

Sorry @code-ape , I had personal situation happened I'll work on it soon.


[SM64] Animations Rework Docs

Documentation for #467

Can definitly make this better, but I'm bad at writing guides :/, open to changes


Updated dependencies, fixed errors.

Codecov Report

Merging #38 (c81e18f) into develop (3bd1412) will increase coverage by 0.08%.
The diff coverage is 100.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##           develop      #38      +/-   ##
===========================================
+ Coverage    92.13%   92.22%   +0.08%
===========================================
  Files            4        4
  Lines           89       90       +1
===========================================
+ Hits            82       83       +1
  Misses           7        7

Impacted Files
Coverage Δ

taskiq_redis/exceptions.py
100.00% <100.00%> (ø)

taskiq_redis/redis_backend.py
90.69% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Android] 0.16 stable margin/padding messed up

In the newest release 0.16, on Android, margin/padding seem to be messed up, margin are considered as padding. Not sure if this is related to the new shadow stuff.

@seph14 thanks for reporting! Could you help us out and give us a test case that would allow us to reproduce this issue?

@seph14 Any updates on this?

Hi,
sorry for the late response.
So I was trying to do a quote styling text, and the code was like this:
<View style={{marginLeft:-20, marginBottom:20,flexDirection:'row', marginTop:3,paddingTop:6,borderLeftWidth:4,borderLeftColor:#2d2d2d}}>
    <Text>...</Text>
</View>

I don't have exactly the code as we worked around this by adding a view just to draw the left border, but in this case, the border will be the same height with the outmost view - i.e. the marginBottom applied to the view is being considered as paddingBottom

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/android-016-stable-marginpadding-messed-up
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.


Easier version restriction on httparty dependency

The current version restriction on httparty makes it difficult to include this gem in projects already using httparty. I revved the version httparty to the latest, and it appears all gem functionality is still intact. Tests all pass using the latest version of httparty.
If you accept this PR, it would be super helpful to have a new version of the gem uploaded to Rubygems.
Cheers!

Coverage remained the same at 100.0% when pulling a6b0beaa621ef6fee5623332801077e470e87730 on newrelic-forks:looser_httparty_version into 09b58d8bf292b223c3136ecc321d8dc592411259 on ColbyAley:master.

Coverage remained the same at 100.0% when pulling a6b0beaa621ef6fee5623332801077e470e87730 on newrelic-forks:looser_httparty_version into 09b58d8bf292b223c3136ecc321d8dc592411259 on ColbyAley:master.

Ah, it looks like the build is failing CI because it's forced to use Ruby 1.9.2.
$ rvm use 1.9.2 --install --binary --fuzzy
$ export BUNDLE_GEMFILE=$PWD/Gemfile
$ ruby --version
ruby 1.9.2p330 (2014-08-07 revision 47094) [x86_64-linux]

Httparty now requires Ruby 1.9.3.
Gem::InstallError: httparty requires Ruby version >= 1.9.3.

@studiostark Somehow this completely fell of my radar. I have updated .travis.yml and removed 1.9.2, so if you want to rebase master into your branch, I would be happy to merge it.

@ColbyAley I've rebased my branch on top of master minus the commit that updated the gem version.

awesome! :shipit:

@studiostark Just pushed version 0.2.1 to RubyGems. Thanks for contributing! :facepunch: :+1: :tada:


CAMEL-14025: add muteException option on camel-undertow component

This pull request adds the "muteException" option to the Camel Undertow component.
If enabled and an Exchange fails processing on the consumer side the response's body won't contain the exception's stack trace. Instead it will simply return the body "Exception".
I hope that this implements the idea described in https://issues.apache.org/jira/browse/CAMEL-14023.

I accidently committed and pushed with a secondary GitHub account. Thus, I ammended the commits and force-pushed.


Missing and Incorrect Information on this page

The following section is missing something and has something incorrect:
In the Client ID field, enter the Application ID from the registered app in Azure Portal.
In the Client Secret field, enter the key generated under Keys that you copied in step 6 in the Setting up Azure Active Directory (Azure AD) based authentication.
In the Client Authentication field, choose the Send client credentials in body option.
Choose the Request token button. The first time you sign in, you'll get prompted for consent.
Scroll down and choose Use token button.
Fixes
**after the definition of the Client Secret field we should also put the Scope field it's definition. This field should be populated with the following URL: https://api.businesscentral.dynamics.com/.default   - support had to look this up and find it on a partner blog...we should have this in documentation
**Choose the Request token button. - this should be Choose the 'Get New Access Token' button.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e026c87e-6bbe-9e7c-5ecc-e6f2943e2655
Version Independent ID: 81cb7f00-6d48-4d29-b47c-b9bc36ad87d8
Content: Getting Started Developing Connect Apps for Dynamics 365 Business Central - Business Central
Content Source: dev-itpro/developer/devenv-develop-connect-apps.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for catching this. Will be updated for the next doc refresh.


assignBrowse / onDrop: Consider the possibility of an async initFileFn

Follow-up of c8dee19bc56 (#329)
When calling *addFile(), FlowChunk are created which, among other things, imply testing the File size in order to compute the endByte (and the number of chunks)
If an "initFileFn" is declared AND this function's prototype shows asynchronicity, then it's sane to assume we need to use asyncAddFile() (which will bootstrap slightly differently).
Awaiting for such an initFileFn can, for example, allow the chunk size to be computed differently regarding the stream initialization.
An example is a stream-crypto layer that could add an overhead affecting FlowFile.size.

Anyway, approved to merge 👍

Similar logic for using the asyncAddFiles should be applied in assignDrop/onDrop also - otherwise the files selected with different methods might end up being processed in different ways.

Thank you for noticing. Added a new commit regarding this aspect (although I'm not quite sure adding readonly protection logic to the <div>/dropzone is worth it). In my experience, an async init file function would typically take less than a second and unless this imply remote interaction (fetching a remote public key according to file type?) I don't quite see the need for it. Such a user would easily redefine their dropzone anyway.


Enabled Fail2Ban in production - initially just for a minute at a time

Trello card
https://trello.com/c/CvoMhTUe
Context
We should prevent bots poking around the site - particularly if they're looking for 'scammy' files
Changes proposed in this pull request

Minimal 1 minute ban

Guidance to review
Should be safe but we'll have to watch to see what the effects are

After further testing it is banning individual CDN nodes - grr - closing till issue is resolved


FOPTS-471 Standardize Usage Reduction Policies

Description

Issues Resolved

Link to Example Applied Policy

Contribution Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] New functionality has been documented in CHANGELOG.MD

Currently changes on:

AWS Unused Volumes
Azure Unused Volumes
AWS Old Snapshots
Azure Old Snapshots
AWS Unused IP Addresses
GCP Unused IP Addresses
AWS Unused databases
Azure Unused databases

Unused Volumes policy templates

AWS (https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-volumes.html)

[✓] Account name property added
[✓] Resource name added (same as resourceID)
[✓] Added unattached days
[?] Should I add all the other parameters?

Azure

[✓] Added unattached days
[?] unnattachedDays how it should be named? age?

Old snapshots

AWS (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html)

[✓] Renamed volumeSize to size
[✓] Renamed daysOld to age
[✓] Added resource name (same as snapshotID)

Azure

[✓] Added size

Unused IP addresses

AWS

[?] Unnatached days is not in the response. Check Javascript code, they use start and end date a couple of days ago.
[✓] resource name: got it from tags, not public IP address. I could easily change that
[✓] Added IP Address (private IP address)
[?] Previous mentioned IP address should be the public or the private one? Or maybe PublicIPv4Pool

GCP

[✓] IP address was already there. I changed the name from "address" to "ipAddress"

Unused databases

AWS (is it unused_rds file?) (https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html)

[✓] Renamed name to resourceName
[✓] Added timeRange
[✓] Added platform (it is database engine)

Azure (is it unused_sql_databases?) (https://learn.microsoft.com/en-us/rest/api/sql/rest-api-sql-create-or-update-database)

[✓] Mapped resourceType to sku name and capacity
[✓] Added timeRange
[x] Can't find databasengine or platform on documentation

Google (is it google_unused_cloudsql_isntances or google_sql_idle_instance_recommendation?)

[x] Pending: Add time range
[x] Pending: Add platform/database engine

Unused Compute instances

AWS

[x] Pending: Add resource name
[x] Pending: Add time range
[x] Pending: Tested threshold
[✓] Added threshold type
[✓] Renamed "_" fields
[✓] Added platform

Azure (is it idle_compute_instances file?)

[x] Pending: Add timeRange
[x] Pending: Tested threshold
[✓] Renamed averageCPU to cpuAverage
[x] Pending: Add platform
[✓] Renamed resourceType to resourceKind
[x] Pending: add resource type to hold instance type (SKU)

GCP (pending)

[x] Pending: Add time Range
[x] Pending: Tested threshold
[x] Pending: Add platform

Rightsize

AWS Rightsize Compute Instances

[✓] Added resourceName
[✓] Added timeRange
[?] How should I add tested threshold?
[✓] Renamed "_" fields to camel case
[✓] Added thresholdType
[✓] Renamed “recommendedVMSize” to “recommendedResourceType”

AWS rightsize RDS instances (pending) (is it rds_instance_cloudwatch_utilization file?)

[x] Pending: Add account name
[x] Pending: Resource name
[x] Pending: Rename engine to platform
[x] Pending: Rename recommended_size to recommendedResourceType
[x] Pending: Add timeRange
[x] Pending: Tested threshold
[x] Pending: Threshold type

AWS rightsize EBS volumes

[✓] Added accountName
[✓] Added resourceName
[✓] Renamed status to state
[✓] Renamed attachmentStatus to status
[✓] Renamed volumeType to resourceType
[✓] Added size
[x] Pending: Add iops
[✓] Added throughtput
[x] Pending: Add time range

Azure rightsize compute instances

[✓] Renamed resourceType to resourceKind
[✓] Renamed VMsize to resourceType
[✓] Renamed recommendedVmSize to recommendedResourceType
[✓] Renamed osType to platform
[✓] Renamed averageCPU to cpuAverage

Azure rightsize SQL databases

[✓] Added upsize threshold
[✓] Added threshold (downsize)
[✓] Renamed location to region
[✓] Renamed resource_group to resourceGroup
[✓] Renamed subscriptionName to accountName
[✓] Added accountId
[✓] Renamed name to resourceName
[✓] Renamed average_cpu to cpuAverage
[?] Threshold is just both upsize and downsize?

Closing this PR since this work was addressed in other PR's


docs(footer): only init twitter tweets on homepage

Protip: use ?w=1 to read this PR https://github.com/algolia/instantsearch.js/pull/1836/files?diff=split&w=1

Protip: use ?w=1

This should be the default, did not know this


Fix zshrc ordering

Options in programs.zsh as set before loading the configuration, as opposed to after.
Motivation for this change
I've just been bitten by this. I was attempting to load some completion script in interactiveShellInit but it silently failed because completion was being activated after.
I believe my change to be more sensible ; NixOS does his magic, and then it's up to the user to add his stuff if he wished to.
Things done
See diff.

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

[ ] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Thanks!

User config just went a bit deeper again. Until someone finds need to have HELPDIR overwritten ;-)


chore: исправил ссылку на arui-scripts

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.007%) to 79.018%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
6989

Relevant Lines:
8045

💛  - Coveralls


Enter grade as percentage or as mark, calculate and show percentage

Marking as stretch since having percentage assignment grades isn't required for a functional app.


How to use my finetined clip checkpoint

open_clip:ViT-B-32/yourpath.pt

And how can I use open clip model locally?

You can follow clip retrieval readme it is instructions for running locally
On Thu, Mar 14, 2024, 8:43 AM IF-chan @.***> wrote:

open_clip:ViT-B-32/yourpath.pt
And how can I use open clip model locally?
—
Reply to this email directly, view it on GitHub
https://github.com/rom1504/clip-retrieval/issues/372#issuecomment-1996751811,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE
.
You are receiving this because you commented.Message ID:
@.***>

You can follow clip retrieval readme it is instructions for running locally
…
On Thu, Mar 14, 2024, 8:43 AM IF-chan @.> wrote: open_clip:ViT-B-32/yourpath.pt And how can I use open clip model locally? — Reply to this email directly, view it on GitHub <#372 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE . You are receiving this because you commented.Message ID: @.>

I mean I want to load the model file on the local

Then use open_clip:ViT-B-32/yourpath.pt
On Thu, Mar 14, 2024, 11:34 AM IF-chan @.***> wrote:

You can follow clip retrieval readme it is instructions for running locally
… <#m_1435797397253820798_>
On Thu, Mar 14, 2024, 8:43 AM IF-chan @.> wrote:
open_clip:ViT-B-32/yourpath.pt http://yourpath.pt And how can I use open
clip model locally? — Reply to this email directly, view it on GitHub <#372
(comment)
https://github.com/rom1504/clip-retrieval/issues/372#issuecomment-1996751811>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE
https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE
. You are receiving this because you commented.Message ID: @.>
I mean I want to load the model file on the local
—
Reply to this email directly, view it on GitHub
https://github.com/rom1504/clip-retrieval/issues/372#issuecomment-1997131896,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAR437SQ6OLDEIVOWTFEN43YYF4K5AVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGEZTCOBZGY
.
You are receiving this because you commented.Message ID:
@.***>

Then use open_clip:ViT-B-32/yourpath.pt
…
On Thu, Mar 14, 2024, 11:34 AM IF-chan @.> wrote: You can follow clip retrieval readme it is instructions for running locally … <#m_1435797397253820798_> On Thu, Mar 14, 2024, 8:43 AM IF-chan @.> wrote: open_clip:ViT-B-32/yourpath.pt http://yourpath.pt And how can I use open clip model locally? — Reply to this email directly, view it on GitHub <#372 (comment) <#372 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE https://github.com/notifications/unsubscribe-auth/AAR437X5DFEXBSLIKGXFZNTYYFIJVAVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJWG42TCOBRGE . You are receiving this because you commented.Message ID: @.> I mean I want to load the model file on the local — Reply to this email directly, view it on GitHub <#372 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437SQ6OLDEIVOWTFEN43YYF4K5AVCNFSM6AAAAABEUTKL5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJXGEZTCOBZGY . You are receiving this because you commented.Message ID: @.**>

I mean the "open_clip:ViT-B-32" part to change with the model on the local file

open_clip:ViT-B-32 is the definition of the architecture
yourpath.pt is your local model


User-ID not supported?

It seems that the User-ID Feature is missing, am i wrong on that?
I would like to transmit a User-ID to GA but and please correct me if im wrong, it isnt possible with the CustomVariable Functions.
Greetings Whit3

Is User-ID a newer feature in Google Analytics? Can you point me at any
documentation for it, online?
If you're trying to send a custom variable called User-ID, you can do so.
There's an example of sending a user name in the Readme.
On Tuesday, December 1, 2015, Dome [Whit3Tube]<EMAIL_ADDRESS>wrote:

It seems that the User-ID Feature is missing, am i wrong on that?
I would like to transmit a User-ID to GA but and please correct me if im
wrong, it isnt possible with the CustomVariable Functions.
Greetings Whit3
—
Reply to this email directly or view it on GitHub
https://github.com/dustyburwell/garlic/issues/9.

here you go:
https://support.google.com/analytics/answer/3123662?hl=en


feat: cancel_denoms tactic

Ports the tactic CancelDenoms.derive and the interactive tactic cancel_denoms. This tactic is needed to make linarith handle divisions by numbers, but this PR does not involve linarith.

bors d+

bors merge