Add observation methods

Modflow 6 supports adding observation for model outputs, which can make the evaluation of the model easier. Right now there are no methods in nlmod to support observations, but one can use the flopy methods for this. However, some utilities would be welcome in nlmod, for example:

add observations for rivers, drains, wells or other boundary packages (possibly together with boundname)
generate observations for the downward flow (formerly known as flow lower face) in an entire model layer, and generate a DataArray for the entire model grid again.

For the flow lower face: we can also use this information from the FLOW-JA-FACE budgets in the budget file, when save_flows=True in the npf-package. Therefor, I added the method nlmod.gwf.output.get_flow_lower_face in PR #327, that works for both structured and vertex grids.


Stop storing duplicate entries in the cache.db network_manager table

By making the utxo the Primary key of this table we will replace
records if we get an update from the registry. Currently we just keep
adding new records. The side effet of this fix is that we will not store
nodes that do not have a utxo (i.e. fullnodes).
When we start adding more information about peers into our cache we will
need to decide how to handle fullnodes as well as banned and whitelisted
info.

I am going to convert this to draft for now until I understand how the table is used and whether we need to refactor a bit more before making changes.

After analyzing the code I see that having duplicate entries here will not actually cause any harm as only the addresses are read on startup into sets which can not store duplicates.


Fix README.md link

Describe the bug
The link to Getting started guide in README.md is wrong (/guides) is not necessary any more.
To Reproduce

Go to README.md
click on Getting started guide

Expected behavior
get me to vercel app
How often does this bug happen?
Every time
System Info
No response
Additional Context
No response

Thanks for the report and taking the time to open an issue, super appreciated 🙌
This is now fixed 🎉


There does not seem to be a built in way of making the mdl-layout__drawer pull out.

I have been looking and I can't find a good way of making the mdl-layout__drawer pull out on mobile. This is something which is really necessary for easy access to the side bar on mobile and can be done in other frameworks easily. ex in materialize $(".button-collapse").sideNav();. Am I missing something or is this not supported with MDL?

Can you please specify what you mean by "pull out"?

@Garbee I mean the type of menu that is in the inbox and until very recently was in YouTube. The type that you swipe right to pull out and left to push in so you don't have to press the hamburger button to move the side menu in and out of view.

So, this is a duplicate of #1023 it seems. There currently is no public API for drawer toggling within the layout.


Option to ignore line and print as is

Hey Luca
So I required a Solution to be able to print tables with same column widths but interspersed with user messages or titles because I am using the column command to build some of the CLI interfaces to display system status etc.
I already have a working implementation but I am not sure if you even want to support this in the scope of this project Because well... it's quite a niche use case I would assume.
So I would like to discuss it first and clarify the use case.
What it would achieve
Parameter
Function supports an additional parameter which accepts a prefix-string -i | --ignore-line-prefix.
Example: Given argument -i '\i' prefixed lines with \i will be ignored and not treated as columns and printed as is.
Per Line from stdin

If $line starts with given argument from parameter -i do not use it to align columns and skip it.
If $line starts with given argument from parameter -i print only the sub-string starting from ignore-line-prefix's length

A table could be something like the following where sections are separated by titles or messages but columns for all sections are aligned the same.
This is a title or message for section 1:
Statuslabel A1     : value-xyz A1   Statuslabel A2 : value A2       Statuslabel A3 : value A3
Statuslabel-xyz B1 : value B1       Statuslabel B2 : value B2       Statuslabel B3 : value-xyz B3

This is a title or message for section 2:
Statuslabel C1     : value C1       Statuslabel C2 : value-xyz C2   Statuslabel C3 : value C3
Statuslabel D1     : value-xyz D1   Statuslabel D2 : value D2       Statuslabel D3 : value D3

...

Let me know what you think and if I should open a PR for you to review.
Cheers :)
Lukas

Hi Lukas... I'll try to look into this issue and understand what you need.
Thank you in advance for your contribution ☺

Also, could you include a separate file in the tests/ folder which contains the desired output first with column and then with column_ansi? This way it's easier to understand the differences.

Hi Luca
Sry for the late response! I will do so this afternoon.

Hi Luca
Sry for the late response! I will do so this afternoon.

Ty! 😄

@LukeSavefrogs
I created a draft PR, as I didn't have time today to test how my changes play together with yours just yet.
So currently the code changes are just there for you to review if you want.
Automated tests should hopefully follow tomorrow or on the weekend.

@LukeSavefrogs
I created a draft PR, as I didn't have time today to test how my changes play together with yours just yet.
So currently the code changes are just there for you to review if you want.
Automated tests should hopefully follow tomorrow or on the weekend.

Thank you! I'll take a look 😄

I stopped here by chance.
There is a wonderful command called teip (https://github.com/greymd/teip).
You can use it like this:
teip -v -g '(^|:)$' -- column -t

Then only lines which does not match the pattern (^|:)$ will be passed to column command and replaced by the result.
BTW, I also have a column-like command which can handle ANSI terminal sequences.
https://github.com/tecolicom/App-ansicolumn

BTW, I also have a column-like command which can handle ANSI terminal sequences.
https://github.com/tecolicom/App-ansicolumn

I'll add this project to the list of similar projects.
Thank you for sharing 🎉


CLI tests are not working with hardhat network on local machine

@mjlescano they're not supposed to. They're intended to be run on the local network:
npx hardhat node
npx hardhat deploy --network local --clear --no-confirm --instance test
npm test

This is because we need the CLI and the test processes to both hit the same chain. The CLI tests start the CLI sub-process with child_process. If they both target the hardhat network, each starts its own, different hh network. This was discussed with Pato from Nomic Labs, and he said that the best solution is to use a local network.
If you want, I can try to throw a very explicit error if someone tries to run the tests on the hh network. I could also try to wrap these commands in a single npm test command.

What do you think of skipping the tests if using the hardhat network? This way, the npm run test command on the root of the project would still work.


WIP: Add March 12 event resources

Slowly but surely adding the March 12 event resources. It includes:

[x] Event notes
[ ] Event recording
[x] Intro and outro slides
[ ] Event recording caption file
[x] Event recording transcript

I don't want some of these resources to be blocked by waiting for the others, so I' going to merge with what we have and leave the currently unavailable items listed as "pending" for adding to a future PR.


argv.json additional elements required

The README.md Requirements states that the argv.json additions are no longer required in VSCodium since v1.75.
I'm using Arch Linux's build called Code.  I find that I need to add the following in argv.json:
    "enable-proposed-api": [
        "contribViewsRemote",
        "jeanp413.open-remote-ssh",
    ]

I'm using Arch Linux's build called Code. I find that I need to add the following in argv.json:

yes, Code is not the same release as VSCodium so you'll need to whitelist the extension in argv.json, also the extension by default tries to install vscodium-server on the remote machine but Code and vscodium-server are not compatible, so you'll need to do some manual changes if you want it to work


tests for skinny_board()

Current coverage is 77.62% (diff: 100%)

Merging #49 into master will increase coverage by 0.34%

@@             master        #49   diff @@
==========================================
  Files             8          8
  Lines           286        286
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits            221        222     +1
+ Misses           65         64     -1
  Partials          0          0

Powered by Codecov. Last update 7c55beb...03cf8f7


Menu items do not bind to the global toolbar on OSX

The "Main" and "Wallet" menu items show up in the same place they do on Linux whereas the OSX standard is to have them on the global toolbar.

Fixing this will require the use of the Mac OS X Swing L&F. Will be fixed after issue #12 - https://github.com/vaklinov/zcash-swing-wallet-ui/issues/12


Auto generate config_schema_version field.

Include the required config_schema_version field when GAPIC configen generates base GAPIC YAML

Codecov Report

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

@@             Coverage Diff              @@
##             master    #1662      +/-   ##
============================================
+ Coverage     85.51%   85.51%   +<.01%
  Complexity     4272     4272
============================================
  Files           405      405
  Lines         16800    16802       +2
  Branches       1759     1759
============================================
+ Hits          14366    14368       +2
  Misses         1849     1849
  Partials        585      585

Impacted Files
Coverage Δ
Complexity Δ

...le/api/codegen/configgen/viewmodel/ConfigView.java
100% <ø> (ø)
3 <0> (ø)
:arrow_down:

.../configgen/transformer/DiscoConfigTransformer.java
96.47% <100%> (+0.04%)
15 <0> (ø)
:arrow_down:

...degen/configgen/transformer/ConfigTransformer.java
96.61% <100%> (+0.05%)
12 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


ENH: Add MersenneTwisterRandomVariateGenerator::ResetNextSeed()

Allows generating a reproducible sequence of pseudo-random numbers.

FYI, I would like to use this member function to write reproducible unit tests for elastix Random Sampler, which internally uses ITK's ImageRandomConstIteratorWithIndex. The problem is that ImageRandomConstIteratorWithIndex creates a new MersenneTwisterRandomVariateGenerator, and each MersenneTwisterRandomVariateGenerator::New() "get the next seed", by calling GetNextSeed(): https://github.com/InsightSoftwareConsortium/ITK/blob/75b99671a89a9ef6ba1ad8fda62ba3843ad61b54/Modules/Core/Common/src/itkMersenneTwisterRandomVariateGenerator.cxx#L65
The proposed ResetNextSeed() would allow multiple MersenneTwisterRandomVariateGenerator objects (created by New()) to generate the very same sequence of numbers.

@thewtex Would it still be feasible to include this PR with the upcoming release (assuming that it will be approved)? It appears a useful feature for both SuperElastix/elastix and ITKElastix.

@N-Dekker yes :+1:


windows-10 error ImportError: DLL load failed: 找不到指定的模块。

`
Traceback (most recent call last):
File "C:/Users/Admin/PycharmProjects/algorithm_practice/Pandas/les_lpot_test.py", line 7, in
from lets_plot import *
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot_init_.py", line 17, in
from .frontend_context import *
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot\frontend_context_init_.py", line 6, in
from ._configuration import *
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot\frontend_context_configuration.py", line 8, in
from ._html_contexts import _create_html_frontend_context, _use_isolated_frame
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot\frontend_context_html_contexts.py", line 7, in
from ._jupyter_notebook_ctx import JupyterNotebookContext
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot\frontend_context_jupyter_notebook_ctx.py", line 14, in
from .. import _kbridge as kbr
File "C:\Users\Admin\PycharmProjects\algorithm_practice\venv\lib\site-packages\lets_plot_kbridge.py", line 7, in
import lets_plot_kotlin_bridge
ImportError: DLL load failed: 找不到指定的模块。
Process finished with exit code 1
`

Could you provide more details about your system, please?

Actual Windows 10 version ("This PC" - "Properties" - "About").
Python and Anaconda versions.
Lets-Plot version.

Also you can try to use the latest Lets-Plot version and install MinGW toolchain:
conda install m2w64-toolchain
https://github.com/JetBrains/lets-plot/blob/master/README_PYTHON.md#installation
https://pypi.org/project/lets-plot/

Hi, I get this same error. Windows 11. The help page says MinGW toolchain is required, but the link seems to assume I'm using conda, which I am not.
How does a windows/pip user use lets_plot?

Hi @davidgilbertson AFAIU you can use msys2 shell and pacman to install mingw along with python and pip on Windows.
$ pacman -S mingw-w64-x86_64-python-pip

https://packages.msys2.org/package/mingw-w64-x86_64-python-pip
Then you can use pip for managing your python env.
I've never tried that though.


PredicateExpressions for String is only available for FOUNDATION_FRAMEWORK

Hi,
The predicate expressions StringLocalizedStandardContains and StringLocalizedCompare are under #if FOUNDATION_FRAMEWORK.
I would like to use these on Linux as well.

Those two are currently unavailable because the APIs that they represent (String.localizedStandardContains and String.localizedStandardCompare) are not yet available in the package. We can add the Predicate operators as soon as the actual APIs are available. It looks like we have https://github.com/apple/swift-foundation/issues/284 open to track localized comparison, @itingliu do we have another radar tracking bringing over the string contains functions (localized in particular)?

Yes we have a radar for implementing localized contain: 104656368. We can create an issue as well if we think that helps keeping things on track.

Are there any plans to address this issue on Linux in a not too distant future ?


[Feature Request] lessen async js complexity

What is the need and use case of this feature?
Whenever I find myself writing code using RNTP, I find myself needing to worry about:

chaining async calls
making sure they do not cause race conditions
where to place the setupPlayer code to have it running before I call anything else (and wait for it to complete)
making sure that if anything throws, I setup the player again because the service is not running and then rerun the function I called to see if that works

Describe the ideal solution
By bringing down the async calls to as little as possible, we can reduce async complexity as well as improve performance (less to and fro between js and native).
Here is an example of a new function signature for TrackPlayer.add:
await TrackPlayer.add(tracks, {
  /** (optional) Whether the tracks should replace the current (or upcoming when 'upcoming') queue */
  replace: 'upcoming',
  /** (optional) The repeat mode */
  repeat: RepeatMode.Queue,
  /** (optional) the index at which to add the tracks */
  index: 5,
  /** Whether to skip to the first of the added tracks (optional, can also be boolean) */
  skip: {
    /** (optional) Whether to play after skipping */
    play: true,
    /** (optional) The position at which to start playing */
    position: 10
  }
});

Which replaces something like:
await TrackPlayer.removeUpcomingTracks();
const index = await TrackPlayer.add([track]);
await TrackPlayer.setRepeatMode(RepeatMode.Queue);
await TrackPlayer.skip(index, 10);
await TrackPlayer.play();

To avoid race conditions, we could setup an internal promise queue in RNTP where we wait for any queue related function call to resolve first before calling the next. We can also catch any errors here and setup the player again and rerun them here. This could happen either on the js side or on the native side.
Also, I believe all of this could be done in a backward compatible way.
Would love to your thoughts on this.

This is a cool concept of a DSL/Builder pattern and I really like it. It definitely provides the templates for everything a person needs to worry about while setting up a player. We should look into this.

If we were to move in this direction my feedback would be to provide an even high-level abstraction like:
await TrackPlayer.dispatchCommands([
  { name: "add", args: {...} ],
  ...
]);

While TurboModules is definitely the future, a downside seems to be that all packages must use them or it won't work. It is going to take quite some time to reach such a grade of adoption. (If you compare it to for example the slow adoption of ESM which has ben a pita on the node.js side)
This chaining of commands is very interesting and is something which internally would probably look like the data structure @jspizziri is speaking of. I wonder however, what return types would then work like. Or perhaps this would be only the queue logic subset of functionality?
How about:
TrackPlayer.run(
    Playlist.play().add(track).seek(XX)
)

or
Playlist.play().add(track).seek(XX).run()

On the issue of async issues between dispatch commands, the way I have been ensuring the order of async calls is to use a local promise queue. Something like:
let p = Promise.resolve();

const play = () => {
  return p = p.then(
    () => TrackPlayer.play()
  )
};

const seek = (time) => {
  return p = p.then(
    () => TrackPlayer.seek(time)
  )
};

const add(track) => {
  return p = p.then(
    () => TrackPlayer.add(track)
  )
}

That way any async call must resolve first before the next is performed, ensuring async call order. We could have something like this running in the background on the JS side to ensure call order. And you can even add error catching logic in there, which has setupPlayer called on failure. Which is then something else that users would not need to worry about.
The (theoretical) downside of this might be that queueing is slow – but I have yet to experience this on my side.

The two could even be combined, where you would just have the existing api as is, but internally a buffer is built up and every tick (or x ms) the command list sent to the native side and results are return as an array. Then each promise can resolve individually with the return values. So imagine:
TrackPlayer.play()
TrackPlayer.add(track)
TrackPlayer.skip(10)

leads to internal buffer:
[['play'], ['add', track], ['skip', 10]]

Which is sent to the native side (after which the internal buffer is set to [] again and waits for new commands) and the commands are performed and returned back to the js side with the list of return values:
[null, 0 , null]

Then the js side resolves all the promises with their corresponding return values.

@jspizziri is there a PR where those changes landed?

@qmx, we're now using our project board to manage our workflow. See more on discord.
This feature is going in our backlog, which means we ant to implement it at some point in the future, but it's not on a concrete roadmap. All such features are organized in our project and closed. Once they're on a concrete roadmap we'll reopen them.


Deprecated path.el.getPointAtLength

Resolves path.el.getPointAtLength is not a function error in #275

I removed the if statement that caused the problem. @naivefun could you please confirm that this version of anime resolved the Firefox issues?

Resolves issue: #275

@eybarta could you please create a jsfiddle? I created a example with this pull request included.

sorry for the delay.. here's a jsfiddle, you can see the error in the console..
thx!
https://jsfiddle.net/eybarta/ezm0kdgL/2/


Incorrect Legend for HML in Rolling Fama French Plot

It looks like the HML legend label is incorrect in the plotting.plot_rolling_fama_french() function. It currently labels the HML factor as "High Growth". However, this is actually the opposite of what it should be as HML stands for High Book-to-Market minus Low Book-to-Market, in other words, value minus growth. Source: http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/f-f_factors.html
https://github.com/quantopian/pyfolio/blob/3909c49c3875d1be7700f9a7f4c4da60eb957d4c/pyfolio/plotting.py#L196-L199
Maybe the label should simply be "Value (HML)".

Yes, that seems right. Want to do a PR?


Header truncates clone command at 36 characters

Describe the bug
When viewing a repository page, the git clone command in the upper right is truncated at 36 characters.
To Reproduce

ssh to a running Soft Serve server with at least one repo
Select a repo

Expected behavior
The full git clone command is visible in the TUI header, or something indicates that it is truncated.
Screenshots
Regardless of the width of the terminal window, the command is truncated:

Environment (please complete the following information):

OS: Server running on Fedora 40, clients on Fedora 40, Ubuntu 22.04, Windows 11
Terminal: Reproduced in clients running bash and pwsh via Windows Terminal and bash and zsh running Konsole
Version: soft version v0.7.4

Additional context
N/A

Noting that due to #462 the clone commands can't be copied anyway, so I'm not sure why git clone is needed as opposed to just the URL.


Checklist() and MultiChoice() are indistinguishable in the runtime for end-users

Currently users have no visual way of telling between Checklist() and MultiChoice(). It's not clear whether they can pick one or multiple items.
Inquirer.js uses some unicode characters to indicate that it is a checklist.

For a plain multi-choice list, it uses what ishell uses now:

The ideal scenario would be to make it configurable. So, irrespective of what symbols are used, users can override it if desired.

Changed to this.

Wonderful thank you. There might be concerns regarding these characters someday if you decide to support Windows. Inquirer.js has platform-specific character choices.


Undefined name: exception --> Exception

exception (lowercase 'e') is an undefined name in this context while Exception (uppercase 'e') is the superclass.
flake8 testing of https://github.com/grumpyhome/grumpy on Python 2.7.14
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./grumpy_tools/vendor/pythonparser/source.py:259:9: F821 undefined name 'exception'
        exception.__init__(self, "Ranges %s and %s overlap" % (repr(first), repr(second)))
        ^
1     F821 undefined name 'exception'
1

This change (and others) was merged in upstream: https://github.com/m-labs/pythonparser/pull/22/files

We should unvendorize this lib soon.


Add anchorlink to individual examples

Closes #53.
This adds individual anchorlinks to each component example. It builds on the _section.erb partial, which has not been completely used for all examples; so there isn't a link for every example. If this is the path to take, I can (separately) convert all the examples to use the partial.

sweet!


Fix minor spelling mistake in CONTRIBUTING.md

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Cannot search extensions

VSCode Version:
OS Version:

Steps to Reproduce:

Open VSC
Search for any extension
No results shown

I want to install Quokka.js but cannot search for any extensions.

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

Same as https://github.com/Microsoft/vscode/issues/57851

looks like someone messed the marketplace

the marketplace is down

https://github.com/Microsoft/vscode/issues/57851

I also get this problem

Guessing most of you already know this, but the marketplace is up again. Could be a lucky timewindow for me, but here's hoping.

The marketplace is up right now but are you able to search any extensions by typing a part of the name or the full name? I get the list of them only by precompiled searches like "Show Popular Extensions" or "Show Recommended Extensions", etc..

Can't search by part name or full name. Nothing appears in the search


Removed ext/six in favour of having an external dependency

Closes #533.

thx!

fwiw this PR broke snippets on Python 2 because of this issue
I'm going to fix it. Also, this error should have been reported by travis but apparently errors in Qt code do not fail the tests -- this has to be fixed too


support to match warnings

Similar to the error matching but without marking the build as failed (related to #224).
For cycling through logic (ctrl-alt-g) it could first go through all errors and then go through all warnings.

So, if an option is included where you can control whether or not a matched "error" fails the build, would this still be necessary?

With the additional option this would for sure be less important. The only inconvenience would be if a build has many builds but only a single error that it might be difficult to jump to the important error.
With a separate set of regex for warnings the logic could be smarter as mentioned before.

I think this makes more sense when the linter integration ( #251 ) is complete. The linter already has the notion of warning vs errors and a nice display of them, with skip-to and click functionality.
I don't think we should add support for moving between warnings in vanilla error matching.

Sounds good to me.

#251 has been dropped in favor of #354. Do you still plan on adding warning support now that it's done?
Thanks

Absolutely. Just need to figure out a nice way to do it. I haven't given it much though yet. If you don't mind, could you please open an issue where we can track it?


(Suggestion) A workaround for Vercel

References:

https://github.com/dotenv-org/dotenv-vault/issues/261
https://github.com/vercel/vercel/issues/10607

Since Vercel doesn't allow dynamic env load for server env key, so i decided to make this workaround for other user to use. Here's I'm making an example on Next.js project.

Create .env.key file containing DOTENV_KEY
Create this script in /scripts/load-env.ts or any other place you wish

import { config } from "dotenv";

import { writeFile } from "fs/promises";

const main = async () => {
    const keyEnv = config({ path: ".env.key" });
    const DOTENV_KEY = keyEnv.parsed?.DOTENV_KEY || process.env.DOTENV_KEY; // If DOTENV_KEY not found in .env.key, get it from process.env

    if (!DOTENV_KEY) {
        throw new Error("No DOTENV_KEY found in .env.key or process.env");
    }

    const envs = config({ DOTENV_KEY }); // If DOTENV_KEY found, get the .env.vault, load it to get shared env variables

    if (!envs.parsed || Object.keys(envs.parsed).length === 0) {
        throw new Error("No .env.vault found or it is empty");
    }

    try {
        await writeFile(
            ".env",
            // eslint-disable-next-line prefer-template
            "# This file is generated by /scripts/load-env.ts\n" +
                "# DO NOT ATTEMPT TO EDIT THIS FILE\n" +
                Object.entries(envs.parsed)
                    .map(([key, value]) => `${key}=${value}`)
                    .join("\n")
        );

        console.log("Successfully loaded .env.vault to .env");
    } catch (error) {
        console.error("Failed to load .env.vault to .env", error);
    }
};

main();

Add env:load to your scripts and edit existing script like this

"scripts": {
    "dev": "pnpm env:load && start http://<IP_ADDRESS>:3000 && next dev",
    "build": "pnpm env:load && prisma generate && next build",
    "env:load": "ts-node ./scripts/load-env.ts"
}

💡 You can change pnpm with any other package manager you want

So basically, it loaded the content of the .env.vault to .env and then proceed to build the app with .env keys, i think this way is more safe and straightforward than prefixing the keys with NEXT_PUBLIC_ since the key prefixed with that can be bundled in the JavaScript file.
And also this helps executing cli that are depends on env vars like prisma db pull more easier, if you are collaborating with other devs, they just need to load the env first using pnpm env:load after pulling from the repo.
Let me know what you think. Thank you!

Thank you so much for this, @raflymln! Just got it working in our project and could not have done it without your help. We have a monorepo setup so the one modification we had is to make sure the .env gets written to the directory that holds Nextjs. Seems obvious in retrospect 😂

Your welcome @dnishiyama! Glad to hear it's working :D

A little random, but for anyone trying to use dotenv vault with vercel now: I couldn't get the .env.vault from the build input to copy into the output no matter what I tried.
Naturally, I assumed I was making some sort of mistake so I contacted Vercel and they just pointed me to this issue without addressing the underlying file copy issue. Digging into their issue repo, I found at least one issue where the post-build file copy process had a bug that omitted files. 🤷
Eventually, I just gave up and went back to using Docker. But there might be some additional weirdness in Vercel's deployment process.

Our process is still working for us. We use a yarn or pnpm monorepo like this https://github.com/t3-oss/create-t3-turbo. What framework are you using? What is your build command?
Here is our file content:
import { readFileSync, writeFileSync } from 'fs'
import { config } from 'dotenv'

// Assumes it is called from root and run from tooling/env/src/load-env.ts

const main = () => {
  const keyEnv = config({ path: '../../.env.key' })
  // Use no default so that our dotenv calls don't go down the vault path
  const DOTENV_KEY = keyEnv.parsed?.DOTENV_KEY ?? process.env.DOTENV_KEY // If DOTENV_KEY not found in .env.key, get it from process.env

  if (!DOTENV_KEY) {
    let hasDotEnv = false
    try {
      hasDotEnv = !!readFileSync('../../.env')
    } catch {
      /* empty */
    }
    if (hasDotEnv) {
      console.log('Found .env file, skipping .env.vault load')
      return
    }

    throw new Error('No DOTENV_KEY found in .env.key or process.env')
  }

  const envs = config({ DOTENV_KEY, path: '../../.env.vault' }) // If DOTENV_KEY found, get the .env.vault, load it to get shared env variables

  if (!envs.parsed || Object.keys(envs.parsed).length === 0) {
    throw new Error('No .env.vault found or it is empty')
  }

  try {
    // This env is needed for the app
    writeFileSync(
      '../../apps/nextjs/.env',

      '# This file is generated by /scripts/load-env.ts\n' +
        '# DO NOT ATTEMPT TO EDIT THIS FILE\n' +
        Object.entries(envs.parsed)
          .map(([key, value]) => `${key}=${value}`)
          .join('\n'),
    )

    console.log('Successfully loaded .env.vault to .env')
  } catch (error) {
    console.error('Failed to load .env.vault to .env', error)
  }
}

main()

And turbo.json
{
  "$schema": "https://turborepo.org/schema.json",
  "globalDependencies": ["**/.env"],
  "pipeline": {
    "build": {
      "dependsOn": ["^build", "^db:deploy", "^db:generate", "env:load"],
      "outputs": [".next/**", ".expo/**"]
    },
    "ci": {
      "dependsOn": ["lint", "typecheck", "build"]
    },
    "clean": {
      "cache": false
    },
    "db:deploy": {
      "inputs": ["prisma/schema.prisma"],
      "cache": false
    },
    "db:generate": {
      "inputs": ["prisma/schema.prisma"],
      "cache": false
    },
    "db:push": {
      "inputs": ["prisma/schema.prisma"],
      "cache": false
    },
    "db:seed": {
      "inputs": ["prisma/schema.prisma"],
      "cache": false
    },
    "dev": {
      "persistent": true,
      "cache": false
    },
    "env:load": {},
    "format": {
      "outputs": ["node_modules/.cache/.prettiercache"],
      "outputMode": "new-only"
    },
    "lint": {
      "dependsOn": ["^topo"],
      "outputs": ["node_modules/.cache/.eslintcache"]
    },
    "topo": {
      "dependsOn": ["^topo"]
    },
    "typecheck": {
      "dependsOn": ["^topo"],
      "outputs": ["node_modules/.cache/tsbuildinfo.json"]
    }
  },
  "globalEnv": [
    "DATABASE_URL",
    "EXPO_ROUTER_APP_ROOT",
    "NEXTAUTH_SECRET",
    "NEXTAUTH_URL",
    "NEXT_PUBLIC_URL",
    "NODE_ENV",
    "SKIP_ENV_VALIDATION",
    "PORT",
    "VERCEL",
    "VERCEL_URL"
  ]
}

Just wanted to add my 2 cents, I'm using @dotenvx/dotenvx which is a successor (?) to dotenv. Honesty, these two packages confuse me, but anyway. If you use dotenvx, you don't have to traverse any paths such as ../../ you can just specify the root of you repo.
import { readFileSync, writeFileSync } from 'fs';
import { config } from '@dotenvx/dotenvx';

// Assumes it is called from root and run from tooling/env/src/load-env.ts

const main = () => {
	const keyEnv = config({ path: './.env.key' });

	// Use no default so that our dotenv calls don't go down the vault path
	const DOTENV_KEY = keyEnv.parsed?.DOTENV_KEY ?? process.env.DOTENV_KEY; // If DOTENV_KEY not found in .env.key, get it from process.env

	if (!DOTENV_KEY) {
		let hasDotEnv = false;
		try {
			hasDotEnv = !!readFileSync('../../.env');
		} catch {
			/* empty */
		}
		if (hasDotEnv) {
			console.log('Found .env file, skipping .env.vault load');
			return;
		}

		throw new Error('No DOTENV_KEY found in .env.key or process.env');
	}

	const envs = config({ DOTENV_KEY, path: './.env.vault' }); // If DOTENV_KEY found, get the .env.vault, load it to get shared env variables

	if (!envs.parsed || Object.keys(envs.parsed).length === 0) {
		throw new Error('No .env.vault found or it is empty');
	}

	try {
		// This env is needed for the app
		writeFileSync(
			'../../.env',

			'# This file is generated by /other/scripts/load-env.ts\n' +
				'# DO NOT ATTEMPT TO EDIT THIS FILE\n' +
				Object.entries(envs.parsed)
					.map(([key, value]) => `${key}=${value}`)
					.join('\n')
		);

		console.log('Successfully loaded .env.vault to .env');
	} catch (error) {
		console.error('Failed to load .env.vault to .env', error);
	}
};

main();


Idea: Class level attribute defaults

Some thoughts on the feature which might be useful. The idea is to have class level defaults for the attributes. For example:
class Add < ActiveInteraction::Base
  integer :a, :b

  def execute
    a + b
  end
end

Add.defaults.a = 1
Add.run!(b: 2)
# => 3

Why?
Dependency injection
Interaction can pre list class dependencies. That's handy because the interaction class becomes loosely coupled and you don't need to pass big list of classes to use every time you call it.
Testing
With dependency injection it's particular useful in testing, when you can swap classes without stubbing used classes or the interaction itself.

There is a work around which currently works
class Add < ActiveInteraction::Base
  integer :a, :b

  def execute
    a + b
  end
end

Add.filters[:a].options[:default] = 1
Add.run!(b: 2)
# => 3

That works, it would overwrite the attribute default and it's not possible to unset it. Keen to see what other people think and if such pattern should be promoted more.

If you're wanting to pass in common attributes (for tests and such) you can put those in a hash and merge into that hash as needed.
defaults = {a: 1}

Add.run!(a.merge(b: 2))

We do something like that in our own tests.
let(:inputs) { {a: 1} }
let(:result) { Add.run!(inputs) }

describe 'foo' do
  before { inputs[:b] = 2 }

  it 'works' do
    expect(result).to eql 3
  end
end

good idea, I think this issue could be closed as there are plenty of work arounds. But if anybody is keen on dependency injection feature, it would be great to hear those.


Deprecate inductiva.api_key = "YOUR_API_KEY"

As we streamline our key management process, we really want to avoid having users define keys directly in their code.
Let's start by removing all references to
inductiva.api_key = "YOUR_API_KEY"

in our documentation.
Some examples:

https://github.com/inductiva/inductiva#windtunnel-example
https://github.com/inductiva/inductiva#example
https://github.com/inductiva/inductiva/tree/main/inductiva/molecules/protein_solvation#example
https://github.com/inductiva/inductiva/tree/main/inductiva/coastal#example-1-simulating-waves-on-a-synthetic-bathymetry
https://github.com/inductiva/inductiva/tree/main/inductiva/fluids/fluid_tank#example
https://github.com/inductiva/inductiva/tree/main/inductiva/fluids/wind_tunnel#example

Also, change:

https://github.com/inductiva/inductiva#api-access-tokens

To:
Obtain your API token using Inductiva Console https://console.inductiva.ai/ and follow the instruction for setting up the key and testing your access.
Once you the key is correctly installed you are good to go!
You can start exploring Inductiva API with the examples below.
@hpenedones : can we get a direct link to the console page where we generate the key?

Closing as this was handled in https://github.com/inductiva/inductiva/pull/1018.
No references to inductiva.api_key = "" exist in the docs


Unclear/no explanation of Javascript Array.prototype.reduce() prior to challenge

Describe your problem and how to reproduce it:
The linked page asks us to use reduce() on an object containing several film objects, containing several properties for each film, to get the average of ratings of films by Christopher Nolan.
Unless I've missed something, the way reduce() works and how to use it has not yet been explained, on this page or in any previous lesson.
Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/functional-programming/use-the-reduce-method-to-analyze-data
Tell us about your browser and operating system:

Browser Name: Chrome
Browser Version: 78.0.3904.70
Operating System: Windows 10

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

I think we can probably add an example of using reduce and also explain more about how to use the callback function.


[Concurrency] Diagnose non-Sendable 'self' arguments crossing actor isolation boundaries in member reference expressions.

Otherwise, the following code bypasses Sendable checking:
class NotSendable {

  @MainActor
  var x: Int {
    0
  }
}

func bar() async {
    let notSendable = NotSendable()
    await notSendable.x // Sending an instance of 'NotSendable' to the MainActor here!
}

@swift-ci please smoke test

@swift-ci please smoke test


unescape method destroyed the json data format

First we determine that such json is correct
{"key1": 123, "trouble": "{\"inner\": \"hehe\"}"}
This can be referred to the json  official document.
Also we can use python check it:

We have such a requirement to write test cases:

*** Settings ***

*** Test Cases ***
json_test_demo
    ${payload}    Set Variable    {"key1": 123, "trouble": "{\"inner\": \"hehe\"}"}

But the results of the operation did not meet our expectations：

After a long debug process, I found the problem here. Open robot/utils/escaping.py, we can find return ''.join(self._yield_unescaped(string)) in line 51. This step remove \!

Backslash is an escape character in Robot Framework data. You need to double it like \\ to get a literal backslash. We cannot safely start making exceptions to this rule.


Taunts are in stereo and play across the whole map.

I looked at the taunt files, and most of them are in stereo. I even tried to make all of them mono, but to no avail. They just play across the whole map regardless of whether they are in mono or stereo. No files were modified except for changing the taunts from stereo to mono.

is this a new issue? is this with the default taunts or new taunts you added? the default taunts worked correctly last I checked.

This is with the default taunts. I didn't add any taunts.

do you have addons? I don't have this issue with vanilla install

There is such a problem, can do, so you can adjust the volume and the radius in the config.


[Typo]: Spelling of rajasthan is incorrect ,

Description
spelling of Rajasthan is written as Rajisthan in entry page , that should be corrected as Rajasthan
Screenshots

Any additional information?
No response
What browser are you seeing the problem on?
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I'm a GSSoC'24-Extd contributor
[X] I'm a Hacktoberfest'24 contributor
[X] I am willing to work on this issue (optional)

@Jashwanth-rit you are assigned.

i want to fix this issue, kindly assign it to me me with the tag hacktoberfest and gssoc-extd

Hey @Jashwanth-rit You have raised a duplicate issue; it was already raised by someone else.

Look at all the issues, see which ones are available and which ones are not, and create issues accordingly.
This is not the way to work on open source :)

ok fine.


Cell type annotation: scGPT integration/KNN workflow

Changelog

Small fixes in scGPT integration component (src/scgpt/embedding) and workflow (src/workflows/intgration/scgpt_leiden)
Workflow for cell type annotation based on scGPT integration followed by KNN label transfer

Issue ticket number and link
Checklist before requesting a review

[x] I have performed a self-review of my code

[x] Conforms to the Contributor's guide

Check the correct box. Does this PR contain:

[ ] Breaking changes
[x] New functionality
[ ] Major changes
[ ] Minor changes
[ ] Documentation
[ ] Bug fixes

[x] Proposed changes are described in the CHANGELOG.md

[x] CI tests succeed!

LGTM! We just need to sort out the CHANGELOG entries. I think you can adjust it as you see fit and merge :)

thx for the review!!


Update Ubuntu version for {x86_64, i686}-unknown-linux-gnu docker images

This should solve svd2rust CI build issues.
Also Rust uses Ubuntu 16.04 in x86_64-gnu-distcheck Docker image.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jamesmunns (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

(Yes, I know about this, but It's time to move forward)

bors: try

New problem here: https://github.com/rust-embedded/cross/blob/42fd2420fb7f568e10cd534725245df8ecae8904/ci/script.sh#L33-L43
Introduced 2 days ago: https://github.com/rust-lang-nursery/compiler-builtins/pull/294
I have no idea how to fix this.

Also Rust uses Ubuntu 16.04 in x86_64-gnu-distcheck Docker image.

This is not the docker image used to build the rust-std components. It's only used for testing.
The image used to build the rust-std components is this centos 5 image.

This should solve svd2rust CI build issues.

https://github.com/rust-embedded/svd2rust/pull/297 should fix those

Ok, now at least we have an alternative. Thanks!


Incorrect texture used as config background

Minecraft's world creation uses light_dirt_background.png, MidnightLib's config uses options_background.png. Both of them use the same tabs
This partially breaks resourcepack compatibility

Possible solutions:

Use light_dirt_background.png
Add a new texture

The options background texture is used, because these screens contain an options list widget, which uses that as it's background. Changing the texture would require adding our own renderBackground method, which would increase the file size a lot.

Is adding a new tabs and footers texture a better solution then?

Is adding a new tabs and footers texture a better solution then?

Nope, that'd require even more code.

So there's no fix I guess :(


Add support for openvswitch

This PR will add OVS functionality to OpenStack Neutron
Adds code changes to the following formulas to install and configure OVS when selected from the kinetic-pillar environment/answers.sls neutron:backend:
compute
container
network
neutron
This PR closes https://github.com/GeorgiaCyber/kinetic/issues/124

I didn't see anything else that was missing

@jdiaz9 @djivey This looks good - I will do a deployment off of this and get back to you.  Slightly related, is there any reason to keep linuxbridge at this point?  Originally we had it just because it was the default in the docs and 'just worked', but I feel like at this point OVS is the standard (even if the docs haven't been updated) and OVN is the 'next thing'.

Based on what I am seeing here, we could drop linuxbridges, Its not tested very well any more and if you install the latest neutron packages with linuxbridges, it breaks, we had to pin it to 2.16 to get it functional again.

I just noticed the zun and kuryr need bumped to victoria for container install.sls


Issue in conversion of Iterable collections to the Object using Object.fromEntries

Bug Report
🔎 Search Terms
Object.fromEntries, Map.entries conversion to Object, property's name mapping in Object conversion.
🕗 Version & Regression Information
Versions: 4.8.4, Library: es2022

This is the behavior in every version I tried, and I reviewed the FAQ for entries about entry conversion... Unless I'm blind (which is possible), I can't find an answer or reasoning as to why this behavior should be expected.

⏯ Playground Link
Playground link
💻 Code
let mapBug = new Map<string, { name: string }>([
  ["1", { name: "A"}],
  ["2", { name: "B"}],
  ["3", { name: "C"}]
]);

let mapWorking = new Map<string, { name: string }>([
  ["#1", { name: "A"}],
  ["#2", { name: "B"}],
  ["#3", { name: "C"}]
]);

let items = Array.from(mapBug.entries()).sort((a, b) => a[0].localeCompare(b[0]));
items.reverse();

console.log(Object.fromEntries(items))

items = Array.from(mapWorking.entries()).sort((a, b) => a[0].localeCompare(b[0]));
items.reverse();

console.log(Object.fromEntries(items))

🙁 Actual behavior
Returns an Object created from the map where "number" properties are placed in their value ordering (e.g. 1, 2, 3).
{
  "1": {
    "name": "A"
  },
  "2": {
    "name": "B"
  },
  "3": {
    "name": "C"
  }
}

🙂 Expected behavior
Should return an Object created from the map where properties are placed depending on their ordering after they have been sorted.
{
  "3": {
    "name": "A"
  },
  "2": {
    "name": "B"
  },
  "1": {
    "name": "C"
  }
}

The only way to get this desired behavior is by appending something in front of the "key" name in order to make it look like a string and not a number.

This is a runtime issue, TypeScript doesn't control what Object.entries() does at runtime.

FYI, this is because object properties that look like array indices are special-cased. See OrdinaryOwnPropertyKeys: the keys are always sorted in the order of array index > string properties > symbol properties.

Thanks @Josh-Cena, I figured this was expected behavior but couldn't find the relevant part of the ES spec.

If order matters, use an array instead of an object / a map.

Technically speaking objects are unordered collections and relying on property order is unsafe—this behavior is only standardized for maximum determinism. I'm aware that JavaScript doesn't offer an ordered key-value collection, so a map is probably the best you can have.


Skills form

Description
Created components/ folder in the srs folder
Created a component called Skills.js  in the components folder
Added a form to the get the user skills

Acceptance Criteria

[ ] Create a component called Skills.js and save it in a folder called components in the src directory

[ ]  Heading: Skills

[ ] Form with above mentioned fields

[ ] Inputfields must be editable

[ ] Input fields are accessible

[ ] Save button does not require functionality

[ ] No stylings but plain html

[ ]  The new component is imported and displayed in the App.js component

[ ] Only the new component is displayed

Type of Changes

Type

:bug: Bug fix

✓
:sparkles: New feature

:hammer: Refactoring

:100: Add tests

:link: Update dependencies

:scroll: Docs

Updates
Before

After

Hi @YuriDevAT ,please I will be waiting for your feedback incase there is anything I need to edit if it not ok

H @Fomonyuytar-Joseph thank you for your contribution. It seems like there are merge conflicts. Did you fork (and update) the latest version of the project? You can do so by clicking on the Sync fork button.

@Fomonyuytar-Joseph I was wondering where my comment was. 😀 Actually, you do not have to close the PR and create a new one but just push your changes to the remote branch again. The PR the updates automatically.


yolov4-csp training with custom-dataset

Hi, could you share the link that you trained yolov4-csp?
I want to train yolov4-csp256 with my custom dataset, but I don't know exactly if this link is right.
https://github.com/WongKinYiu/ScaledYOLOv4/tree/yolov4-csp

I only used the pre-trained DarkNet yolov4-csp: https://github.com/AlexeyAB/darknet/blob/master/cfg/yolov4-csp.cfg

Then, if I want to learn yolov4-csp-256, do I only need to adjust the width height?

Then, if I want to learn yolov4-csp-256, do I only need to adjust the width height?

Yes, I think so.

Hi Thank you for reply!
I finished my yolov4-csp-256 model. How do i modify yolo_to_onnx.py and onnx_to_trt.py?
trained classes : 3 (face, phone, cigar)

"yolo_to_onnx.py" and "onnx_to_trt.py" should just work.  No need to modify them.
Refer to https://github.com/jkjung-avt/tensorrt_demos/issues/421 for how to modify the code to display your own custom class names at inference time.

ok thanks a lot!
i'll try it


Change pagination links index to stdClass instead array

Hi all,
i change links pagination index because when transformer return data, if pagination is empty, meta -> links index is an array like this :
{
    meta : {
        links : []
    }
}

otherwise meta -> links is an object like this :
{
    meta : {
        links : {
            next : '',
            previous : ''
       }
    }
}

So in firts case is an empty array and is second case is an object.
With my patch in first case is an empty object.
P.S.: sorry for bad english =D

This is a breaking change.


Fix conform for us/ca/mono

Fixed the conform for Mono County from this error.
ST_Prefix → StreetPref
ST_Suffix → StreetSuff

Hm, a preview error.

Re-run this please.

Mono lake and Mamoth!

On Nov 23, 2016, at 09:48, migurski<EMAIL_ADDRESS>wrote:
Merged #2151.
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


feat(int128/ghcp): re-scaffold int128/ghcp

int128/ghcp supported multiple architecture after v1.13.1 but the aqua-registry still pointed to amd64 binary.
(This caused https://github.com/suzuki-shunsuke/tfaction not working in arm64 environment)
Ref:

https://github.com/int128/ghcp
https://github.com/int128/ghcp/releases

Thank you for your contribution!

Could you sign commits according to the guide?
https://aquaproj.github.io/docs/products/aqua-registry/contributing/#commit-signing
https://github.com/suzuki-shunsuke/oss-contribution-guide/blob/main/docs/commit-signing.md

I want to accept your pr, but If you can't sign commits, I'll create a pull request instead of you.
Thank you.

(This caused https://github.com/suzuki-shunsuke/tfaction not working in arm64 environment)

As a workaround, my fork suzuki-shunsuke/ghcp is available.
https://github.com/suzuki-shunsuke/ghcp

@suzuki-shunsuke Hi, I just signed my commit and re-pushed.  could you review this again?

Thank you.

🎉 https://github.com/aquaproj/aqua-registry/releases/tag/v4.284.1

@suzuki-shunsuke could you update aqua-checksums.json to include ghcp variant of linux_arm64?.
https://github.com/suzuki-shunsuke/tfaction/blob/cb5972bc25678c8be69bcd35efea406520353eaa/aqua-checksums.json#L48-L62

Sure.

https://github.com/suzuki-shunsuke/tfaction/pull/2149

https://github.com/suzuki-shunsuke/tfaction/releases/tag/v1.13.3


storage-file-datalake live tests failing with "Server failed to authenticate the request"

Starting in build 20230120.1, pipeline "js - storage-file-datalake - tests" started failing with error "Server failed to authenticate the request":
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2132141&view=logs&j=5e34a6f3-c3b5-5d4d-c393-936926487f94&t=86665613-b39e-5e57-3f04-bdbde63b3006&l=183

Perf tests are working fine after the core-v2 migration..
triggered a new run for the live tests as well
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2602046&view=results

Not seen after migrated to core-v2 and the pipelines are green after this #25072


Mandatory fields onto connector configuration instance

From<EMAIL_ADDRESS>on January 18, 2011 16:27:53

REST method must specify mandatory fields about a certain connector type
the administration console must take care to present and manage mandatory fields during connector configuration

Original issue: http://code.google.com/p/syncope/issues/detail?id=72

From chicchiricco on April 06, 2011 11:03:10
Status: Started
Owner: chicchiricco

From chicchiricco on April 06, 2011 11:06:08
This issue was closed by revision r896 .
Status: Fixed


Please could somebody help

Hey guys,  I'm not quite sure what's going on here however I followed nerdy rodents video to get this working on ubuntu (in windows) however I am getting this error. have I done something wrong? Any help/advice would be welcome as I'm not the best at this kind of thing. thank you :)
The following values were not passed to accelerate launchand had defaults used instead:        --num_cpu_threads_per_processwas set to12to improve out-of-box performance To avoid this warning pass in values for each of the problematic parameters or runaccelerate config`.
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link
/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cuda_setup/paths.py:86: UserWarning: /home/bobross/anaconda3/envs/diffusers did not contain libcudart.so as expected! Searching further paths...
warn(
/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cuda_setup/paths.py:98: UserWarning: /usr/lib/wsl/lib: did not contain libcudart.so as expected! Searching further paths...
warn(
/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/cuda_setup/paths.py:20: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('CompVis/stable-diffusion-v1-4')}
warn(
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so
CUDA SETUP: Highest compute capability among GPUs detected: 8.6
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/bitsandbytes/libbitsandbytes_cuda117.so...
Traceback (most recent call last):
File "/home/bobross/github/diffusers/examples/dreambooth/train_dreambooth.py", line 637, in
main()
File "/home/bobross/github/diffusers/examples/dreambooth/train_dreambooth.py", line 450, in main
train_dataset = DreamBoothDataset(
File "/home/bobross/github/diffusers/examples/dreambooth/train_dreambooth.py", line 230, in init
raise ValueError("Instance images root doesn't exists.")
ValueError: Instance images root doesn't exists.
Traceback (most recent call last):
File "/home/bobross/anaconda3/envs/diffusers/bin/accelerate", line 8, in
sys.exit(main())
File "/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/accelerate/commands/accelerate_cli.py", line 43, in main
args.func(args)
File "/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/accelerate/commands/launch.py", line 837, in launch_command
simple_launcher(args)
File "/home/bobross/anaconda3/envs/diffusers/lib/python3.9/site-packages/accelerate/commands/launch.py", line 354, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/home/bobross/anaconda3/envs/diffusers/bin/python', 'train_dreambooth.py', '--pretrained_model_name_or_path=CompVis/stable-diffusion-v1-4', '--instance_data_dir=path-to-instance-images', '--output_dir=path-to-save-model', '--instance_prompt=a photo of sks dog', '--resolution=512', '--train_batch_size=1', '--gradient_accumulation_steps=2', '--gradient_checkpointing', '--use_8bit_adam', '--learning_rate=5e-6', '--lr_scheduler=constant', '--lr_warmup_steps=0', '--max_train_steps=400']' returned non-zero exit status 1.`
I have added my 512x512 images into the "training folder" but that's it.

ValueError("Instance images root doesn't exists.")

what does that mean mate ? how could i fix that please?

--instance_data_dir="training folder" \

econDS, thank you soo much that fixed it. i do have one more question. when i use the online collab version i can select what the class name is and my prompt however in mr rodents "no_pres.sh" it doesn't have that soo how do i know what to promp to tell SD. i have finished the training and more confused than earlier lol. Soo sorry for being a newbie.


Made submodule url relative

Using a relative path neatly avoids specifying protocol. This will help users who are not able to clone by ssh due f.e. firewall rules.

That's a good point. Thanks!


Modify the way parameters are sent to the API, so the values are HTML encoded

Change the requester to accept parameters and modify all GET and DELETE methods to change how attributes are passed to the requester.

Mostly completed the methods in get.py. Still need to work on changing the methods which use format_filter from formatting.py since this returns a str in the format "key=val" which is no longer necessary.
Still need to do Delete methods.


Not able to initiate the Docker image

After cloning and moved to genomics-workshop
I'm trying
docker run --rm -it \
  -v ${PWD}:/home/rstudio \
  -p 4000:4000 \
  -p 8787:8787 \
  -e USERID=$(id -u) \
  -e GROUPID=$(id -g) \
  carpentries/lesson-docker

This is the STDOUT
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] add: executing...
Nothing additional to add
[cont-init.d] add: exited 0.
[cont-init.d] userconf: executing...
[cont-init.d] userconf: exited 0.
[cont-init.d] done.
[services.d] starting services

This is the alpha test of The Carpentries Lesson Template docker image.
Please open an issue if you find any problems or have suggestions:
<https://github.com/carpentries/lesson-docker/issues/new>

-----------------------------------------------------------------------------------

 ->> STEP 1 --- Preview Site: <http://<IP_ADDRESS>:4000>   <<-
 ->> STEP 2 --- Open RStudio: <http://localhost:8787> <<-

 Username: rstudio
 Password: data4Carp

Once you are in RStudio in your browser, edit any of the files in `_episodes_rmd/`
and then run `make lesson-md` in the Terminal tab to render the lessons. The
website will update automatically
-----------------------------------------------------------------------------------

When you are finished, close the browser windows and use <CTRL+C> to exit
this session.

[services.d] done.
Configuration file: /home/rstudio/_config.yml
            Source: /home/rstudio
       Destination: /home/rstudio/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
     Build Warning: Layout 'page' requested in _extras/AMI-setup.md does not exist.
  Liquid Exception: Could not locate the included file 'carpentries.html' in any of ["/home/rstudio/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in /home/rstudio/_extras/about.md
jekyll 3.8.7 | Error:  Could not locate the included file 'carpentries.html' in any of ["/home/rstudio/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.

Machine Type: Linux

Thank you for this report. It looks like it's an issue with Jekyll's remote themes. I'm still not exactly sure WHY it's not working, but I will update this once I do :)

Note that this also (ironically) is an issue with https://github.com/carpentries-incubator/docker-introduction

Thank you again @sk-sahu for bringing this up! It turns out that there's an unspoken rule that using remote themes requires you to be inside the source directory, so I modified the docker container so that it moved inside the source directory to allow their use.


pulumi up/preview hangs for DNS record

Describe what happened
When running pulumi up it hangs forever when it needs to create or update a DNS record. It works fine with a Zone.
❯ pulumi up --show-replacement-steps -s production -C l10/cloudflare
Previewing update (production):
     Type                        Name                   Plan
     pulumi:pulumi:Stack         cloudflare-production  running
 +   └─ cloudflare:index:Record  _dmarc                 create

I also tried to import an existing DNS record and got this message:
pulumi import -s production -C l10/cloudflare \
   cloudflare:index/record:Record _dmarc \
   5e284095faa7f1d18edd609de6e279ca/dd2d000da48d35d846569e0dae35e084

Previewing import (production):
     Type                        Name                   Plan       Info
     pulumi:pulumi:Stack         cloudflare-production
 =   └─ cloudflare:index:Record  _dmarc                 import     4 warnings

Diagnostics:
  cloudflare:index:Record (_dmarc):
    warning: One or more imported inputs failed to validate. This is almost certainly a bug in the `cloudflare` provider. The import will still proceed, but you will need to edit the generated code after copying it into your program.
    warning: cloudflare:index/record:Record resource '_dmarc' has a problem: Invalid combination of arguments. "data": one of `content,data,value` must be specified. Examine values at '_dmarc.data'.
    warning: cloudflare:index/record:Record resource '_dmarc' has a problem: Invalid combination of arguments. "content": one of `content,data,value` must be specified. Examine values at '_dmarc.content'.
    warning: cloudflare:index/record:Record resource '_dmarc' has a problem: Invalid combination of arguments. "value": one of `content,data,value` must be specified. Examine values at '_dmarc.value'.

Is the Java flavor of the Cloudflare provider fully supported? DNS records is arguably the primary Cloudflare resource. Looking at the Github issues I see only two Java issues (one closed and one open).
Please advise how to fix or troubleshoot this problem.
Sample program
Here is a sample code, very similar to the example program
import com.pulumi.Context;
import com.pulumi.cloudflare.Record;
import com.pulumi.cloudflare.RecordArgs;

  private static void createRecord(String zoneId) {
      new Record(
        name,
        RecordArgs.builder()
            .zoneId(zoneId)
            .name("_dmarc")
            .content("\"v = DMARC1; p = none;\"")
            .type("TXT")
            .ttl(3600)
            .build());
}

Log output
The logs are empty.
 pulumi logs -C l10/cloudflare
Collecting logs for stack production since 2024-09-12T00:37:24.000-07:00.

Affected Resource(s)
DNS records not created.
Output of pulumi about
pulumi about -Cl10/cloudflare
CLI
Version      3.131.0
Go Version   go1.23.0
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  aws         6.41.0
resource  cloudflare  5.38.0
language  java        unknown

Host
OS       darwin
Version  14.1
Arch     arm64

This project is written in java: executable='/Users/gigi/.sdkman/candidates/java/current/bin/java' version='openjdk 21.0.2 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode)' java='/Users/gigi/.sdkman/candidates/java/current/bin/java' javac='21.0.2' maven='Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)'

Current Stack: organization/cloudflare/production

TYPE                         URN
pulumi:pulumi:Stack          urn:pulumi:production::cloudflare::pulumi:pulumi:Stack::cloudflare-production
pulumi:providers:cloudflare  urn:pulumi:production::cloudflare::pulumi:providers:cloudflare::default_5_38_0
cloudflare:index/zone:Zone   urn:pulumi:production::cloudflare::cloudflare:index/zone:Zone::insurbot.com

Found no pending operations associated with production

Backend
Name           Gigis-MacBook-Pro.local
URL            s3://invisible-pulumi/aws?profile=ProdAdmin
User           gigi
Organizations
Token type     personal

No dependencies found

Additional context
I'm on the latest version 3.58.0. I tried with the previous version too (3.57.0) with the same results.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Thank you for filing this issue, @the-gigi.
The Java SDK should have the same behavior as the other Pulumi languages. We'll take a look - thank you for providing us with your code, and for trying multiple provider versions as well.

@guineveresaenger Update: I managed to create a new DNS record when the name of the record include the domain:
_dmarc.insurbot.com instead of just _dmarc. The only _dmarc name is how the record are imported, which is broken and missing the "content" field.  I guess this is an upstream issue.
In the end instead of importing into Pulumi, I had to delete the original DNS record and re-create it using Pulumi.
Anyway, even if the import is corrupted or using invalid name without the domain, it shouldn't hang.

@the-gigi - glad you found a resolution. I agree that hanging is a bad experience. We are working on validating inputs for our users, so I'll keep this issue open to track this.


ENH: update package version

Hi! This is the friendly automated conda-forge-webservice.
I've started a version update as instructed in #60.
I'm currently searching for new versions and will update this PR shortly if I find one! Thank you for waiting!
Fixes #60

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

noarch: python recipes should almost always follow the syntax in our documentation. For the host section of the recipe, you should almost always use python {{ python_min }}.* for the python entry. You may need to override the python_min variable if the package requires a newer Python version than the currently supported minimum version on conda-forge.
noarch: python recipes should almost always follow the syntax in our documentation. For the run section of the recipe, you should almost always use python >={{ python_min }} for the python entry. You may need to override the python_min variable if the package requires a newer Python version than the currently supported minimum version on conda-forge.
noarch: python recipes should almost always follow the syntax in our documentation. For the test.requires section of the recipe, you should almost always use python ={{ python_min }} for the python entry. You may need to override the python_min variable if the package requires a newer Python version than the currently supported minimum version on conda-forge.
PyPI default URL is now pypi.org, and not pypi.io. You may want to update the default source url.


Update set-variables-scripts.md

I had trouble accessing variables across stages in my YAML pipeline when using the current code snippet as reference.
After my debugging I discovered that the code snippet in 'Set a variable for future stages' section is missing a 'dependsOn' segment stating it's dependence on stage 'A'.
The variables cannot be accessed across the stages without the 'dependsOn: A' line.
My Pull Request adds this line to the code snippet in the documentation.

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

Thanks @MFredX!
#sign-off


Add MoEngage to React Native app

Description of the change
Added a tab for steps to add MoEngage to React Native app
Type of change

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists
Development

[ ] Lint rules pass locally
[ ] The code changed/added as part of this pull request has been covered with tests
[ ] All tests related to the changed code pass in development

Code review

[ ]  This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
[ ] "Ready for review" label attached to the PR and reviewers mentioned in a comment
[ ] Changes have been reviewed by at least one other engineer
[ ] Issue from task tracker has a link to this pull request

Can we also move point 5 -> 6 in React Native Device Mode Setup ?


Change pf-c-toolbar__current to pf-c-toolbar__total-items in toolbar docs

Looks like that part of the docs wasn't updated to reflect an element change.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MarkdownPS

MarkdownPS-master.zip

:white_check_mark: Build MarkdownPS 1.0.87 completed (commit https://github.com/Sarafian/MarkdownPS/commit/63ed2ff152 by @Abu2rkii)

Why would you do this? I checked and the extension is still .ps1. If the extension changed, then it should be for all files in the repository. Also, for backwards compatibility I would keep .ps1 because the module works on PowerShell 4 and 5.


typo in virtualcluster/doc/demo.md

What this PR does / why we need it:
Fixes typo in virtualcluster/doc/demo.md
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

/lgtm
/approve

@pmorie you should fix the author name to the CLA authorized in this PR


Delete BatchNormalization layer causes loss cannot reduce properly

Thank you for the code. The modified add_final_training_ops function is very helpful. I got 70% accuracy while training, however, when I use the retraied_graph.pb file for image prediction, the whole performance becomes very poor.
Another problem is when I deleted the BatchNormalization layer, the cross entropy will no longer reduce.
I guess these two problems are related to the fact that the weight of the network is not properly saved or updated. Do you know where the problem is? Thank you.
Train logs

INFO:tensorflow:2018-07-26 15:28:02.482981: Step 0: Train accuracy = 4.0%
INFO:tensorflow:2018-07-26 15:28:02.482981: Step 0: Cross entropy = 5.147309
INFO:tensorflow:2018-07-26 15:28:10.097577: Step 0: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:17.475636: Step 10: Train accuracy = 2.0%
INFO:tensorflow:2018-07-26 15:28:17.475636: Step 10: Cross entropy = 5.147165
INFO:tensorflow:2018-07-26 15:28:18.149421: Step 10: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:24.574369: Step 20: Train accuracy = 1.0%
INFO:tensorflow:2018-07-26 15:28:24.575368: Step 20: Cross entropy = 5.147106
INFO:tensorflow:2018-07-26 15:28:25.267146: Step 20: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:32.510834: Step 30: Train accuracy = 2.0%
INFO:tensorflow:2018-07-26 15:28:32.511836: Step 30: Cross entropy = 5.147902
INFO:tensorflow:2018-07-26 15:28:33.132634: Step 30: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:39.460614: Step 40: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:28:39.460614: Step 40: Cross entropy = 5.147810
INFO:tensorflow:2018-07-26 15:28:40.117404: Step 40: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:46.508364: Step 50: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:28:46.508364: Step 50: Cross entropy = 5.147882
INFO:tensorflow:2018-07-26 15:28:47.131161: Step 50: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:53.146240: Step 60: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:28:53.147239: Step 60: Cross entropy = 5.147972
INFO:tensorflow:2018-07-26 15:28:53.739051: Step 60: Validation accuracy = 2.0% (N=100)
INFO:tensorflow:2018-07-26 15:28:59.649185: Step 70: Train accuracy = 1.0%
INFO:tensorflow:2018-07-26 15:28:59.649185: Step 70: Cross entropy = 5.145600
INFO:tensorflow:2018-07-26 15:29:00.431913: Step 70: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:06.365018: Step 80: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:06.366020: Step 80: Cross entropy = 5.147554
INFO:tensorflow:2018-07-26 15:29:06.990790: Step 80: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:12.831961: Step 90: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:12.831961: Step 90: Cross entropy = 5.148786
INFO:tensorflow:2018-07-26 15:29:13.441760: Step 90: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:19.363865: Step 100: Train accuracy = 1.0%
INFO:tensorflow:2018-07-26 15:29:19.364873: Step 100: Cross entropy = 5.146307
INFO:tensorflow:2018-07-26 15:29:19.986665: Step 100: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:25.749834: Step 110: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:25.749834: Step 110: Cross entropy = 5.146955
INFO:tensorflow:2018-07-26 15:29:26.313644: Step 110: Validation accuracy = 2.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:31.962837: Step 120: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:31.962837: Step 120: Cross entropy = 5.147587
INFO:tensorflow:2018-07-26 15:29:32.528656: Step 120: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:38.202848: Step 130: Train accuracy = 1.0%
INFO:tensorflow:2018-07-26 15:29:38.203855: Step 130: Cross entropy = 5.146802
INFO:tensorflow:2018-07-26 15:29:38.768664: Step 130: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:44.807890: Step 140: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:44.807890: Step 140: Cross entropy = 5.148148
INFO:tensorflow:2018-07-26 15:29:45.344713: Step 140: Validation accuracy = 1.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:50.953925: Step 150: Train accuracy = 0.0%
INFO:tensorflow:2018-07-26 15:29:50.953925: Step 150: Cross entropy = 5.146530
INFO:tensorflow:2018-07-26 15:29:51.517739: Step 150: Validation accuracy = 0.0% (N=100)
INFO:tensorflow:2018-07-26 15:29:57.135949: Step 160: Train accuracy = 0.0%

After using retrain.py from the latest commit and setting is_training flag properly, I can get right result from retrained_graph.pb. However, after deleting the BatchNormalization layer, the cross entropy still can't reduce.

    with tf.name_scope('hidden2_weights'):
      hidden2_weight = tf.truncated_normal([1024, 1024], stddev=0.001)
      layer2_weights = tf.Variable(hidden2_weight,name='hidden2_weights')
      variable_summaries(layer2_weights)
    with tf.name_scope('hidden2_biases'):
      layer2_biases = tf.Variable(tf.zeros([1024]),name='hidden2_biases')
      variable_summaries(layer2_biases)
    with tf.name_scope('hidden2_Wx_plus_b'):
      logits_hidden2 = tf.matmul(dropped_hidden1,layer2_weights)+layer2_biases
      tf.summary.histogram('hidden2_pre_activations',logits_hidden2)

    with tf.name_scope('hidden2_activation'):
      hidden2_activated=tf.nn.relu(logits_hidden2,name='hiddenLayer2_activation')
      tf.summary.histogram('hiddenLayer2_Activation',hidden2_activated)
    with tf.name_scope('hidden2_dropout'):
      dropped_hidden2=tf.layers.dropout(hidden2_activated,rate=0.5,training=True,name='hidden2_dropout_layer')
     variable_summaries(dropped_hidden2)

These are the changes you need to do if you want to remove batch normalization

add the bias(while using batchnorm we don't add biases explicitly because this is done internally)
feed the logit to next activation.


NEW DEVICE: Ledvance Orbis Downlight Tunable White

I managed to apply tuya-cloudcutter to my LEDVANCE Downlight. It is a warm-white/cold-white dimmable LED with BK7231T.
oem-bk7231s-light-ty-2.9.16-sdk-1.0.8-40.00.json
ledvance-orbis-downlight-400m-tunable-white-light.json
With esphome I had to change the color pin to inverted to get correct results.

Added as LEDVANCE Orbis CCT Surface Downlight


C headers and library paths not considered when installing packages

Issue description
C headers and libraries not considered while executing pipenv install .... Example:
pipenv install pyaudio
fails
LDFLAGS='-L/usr/local/Cellar/portaudio/19.6.0/lib' CFLAGS='-I/usr/local/Cellar/portaudio/19.6.0/include' pipenv install pyaudio
works
Expected result
Successful install of pyaudio and updated Pipfile
Actual result
$ pipenv install pyaudio
Installing pyaudio…
Collecting pyaudio
  Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Building wheels for collected packages: pyaudio
  Running setup.py bdist_wheel for pyaudio: started
  Running setup.py bdist_wheel for pyaudio: finished with status 'error'
  Complete output from command /Users/abhinav/.local/share/virtualenvs/MIR-y6qaSjd5/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-install-9_u4suva/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-wheel-3qp0_rrx --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.14-x86_64-3.7
  copying src/pyaudio.py -> build/lib.macosx-10.14-x86_64-3.7
  warning: build_py: byte-compiling is disabled, skipping.

  running build_ext
  building '_portaudio' extension
  creating build/temp.macosx-10.14-x86_64-3.7
  creating build/temp.macosx-10.14-x86_64-3.7/src
  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DMACOSX=1 -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c -o build/temp.macosx-10.14-x86_64-3.7/src/_portaudiomodule.o
  src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
  #include "portaudio.h"
           ^~~~~~~~~~~~~
  1 error generated.
  error: command 'clang' failed with exit status 1

  ----------------------------------------
  Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
  Running setup.py install for pyaudio: started
    Running setup.py install for pyaudio: finished with status 'error'
    Complete output from command /Users/abhinav/.local/share/virtualenvs/MIR-y6qaSjd5/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-install-9_u4suva/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-record-rltofn55/install-record.txt --single-version-externally-managed --compile --install-headers /Users/abhinav/.local/share/virtualenvs/MIR-y6qaSjd5/bin/../include/site/python3.7/pyaudio:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.14-x86_64-3.7
    copying src/pyaudio.py -> build/lib.macosx-10.14-x86_64-3.7
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_portaudio' extension
    creating build/temp.macosx-10.14-x86_64-3.7
    creating build/temp.macosx-10.14-x86_64-3.7/src
    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DMACOSX=1 -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c -o build/temp.macosx-10.14-x86_64-3.7/src/_portaudiomodule.o
    src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
    #include "portaudio.h"
             ^~~~~~~~~~~~~
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------

Error:  An error occurred while installing pyaudio!
  Failed building wheel for pyaudio
Command "/Users/abhinav/.local/share/virtualenvs/MIR-y6qaSjd5/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-install-9_u4suva/pyaudio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-record-rltofn55/install-record.txt --single-version-externally-managed --compile --install-headers /Users/abhinav/.local/share/virtualenvs/MIR-y6qaSjd5/bin/../include/site/python3.7/pyaudio" failed with error code 1 in /private/var/folders/k9/x93q0_xn1ls9zy76m2mf2k_00000gn/T/pip-install-9_u4suva/pyaudio/

Steps to replicate
$ brew install portaudio
$ virtualenv install pyaudio (works)
$ pipenv install pyaudio (fails)
$ LDFLAGS='-L/usr/local/Cellar/portaudio/19.6.0/lib' CFLAGS='-I/usr/local/Cellar/portaudio/19.6.0/include' pipenv install pyaudio (works)

So specifically you are saying you thing pipenv should automatically set additional LDFLAGS? I’m not clear in any way on why it doesn’t work

Hi Dan,
My surprise simply came from the fact that within a virtualenv, straightforward pip install pyaudio worked out, I didn't had to explicitly provide header locations.  I decided to migrate to pipenv for good reasons, but unfortunately I run into above issue.
Ideally, if it worked by default within a virtualenv, it should have worked out within pipenv too.  I didn't dig much into inner details, but lemme know if you need further info/assistance from my side.
Thank You

I can read some virtualenv code but I have actually no idea why it works. I imagine virtualenv sets some environment variables we are missing, can you diff your environment with and without a virtualenv?

I'm running into the same issue as op.  It caused me to turn back to virtualenv since that works fine.
I have gotten closer to figuring out the root cause.  pipenv install pyaudio is failing when building the portaudio extension.  This is a non-python dependency I already installed system wide. Specifically, this clang command fails when install pyaudio.
➜ # check that we're inside a pipenv
➜ which python3
/Users/chris/.local/share/virtualenvs/pipenvTest-lVRq8pD8/bin/python3
➜ # now download and untar the pyaudio package manually
➜ pip3 download pyaudio --dest=.
➜ tar xfz PyAudio-0.2.11.tar.gz
➜ cd PyAudio-0.2.11/
➜ python3 setup.py install
...
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot
	/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
	-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include
	-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
	-DMACOSX=1<EMAIL_ADDRESS>-c
	src/_portaudiomodule.c -o build/temp.macosx-10.15-x86_64-3.8/src/_portaudiomodule.o
src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found
#include "portaudio.h"
		^~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1

when installing with a virtualenv, it works fine.  The corresponding clang command in virtualenv is:
➜ # activate virtualenv
...
➜ python3 setup.py install
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot
	/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
	-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include
	-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
	-DMACOSX=1 -I/usr/local/include  # <---- path where portaudio.h is
<EMAIL_ADDRESS>-I/usr/local/opt/sqlite/include
	-I/private/tmp/testenv/envTest/include
	-I/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_portaudiomodule.c
	-o build/temp.macosx-10.15-x86_64-3.7/src/_portaudiomodule.o

Essentially pipenv doesn't see the system wide installation of portaudio like virtual env does. Pipenv's clang command fails because it doesn't contain an include path to /usr/local/include/ where portaudio.h is contained.
So is this correct behavior? In one sense it seems correct that pipenv isn't relying on any external dependencies, but on the otherhand, when an external dependency isn't a python package I'm not sure how to cleanly install it just for this pipenv.  The documentation for PyAudio says to install the portaudio dependency system wide with brew install portaudio (on a mac)
If pipenv is behaving correctly, what's a clean way to work around this?
I tried to fix this by running CPPFLAGS="-I/usr/local/include/" pipenv install pyaudio but that didn't solve it. This made the above clang work, but then the next clang command fails.  At this point I cut my losses and went back to virtualenv.
...
➜ CPPFLAGS="-I/usr/local/include/" python3 setup.py install
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include/ -DMACOSX=1<EMAIL_ADDRESS>-c src/_portaudiomodule.c -o build/temp.macosx-10.15-x86_64-3.8/src/_portaudiomodule.o
# ^^^ worked with CPPFLAGS added!

clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/usr/local/include/ build/temp.macosx-10.15-x86_64-3.8/src/_portaudiomodule.o -lportaudio -o build/lib.macosx-10.15-x86_64-3.8/_portaudio.cpython-38-darwin.so
ld: library not found for -lportaudio

Is this even still an issue?


🐛 [BUG] :  iOS Deep Links With Chrome As Default Browser

Check : https://github.com/ionic-team/capacitor/discussions/4368
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

It's fixed with RN version.


Tone marks behave differently than diacritics

I'm sorry I don't have the specifics on this one. I meant to write it up months ago, but things happened to me. I thought I had it in my email drafts or something, but I don't. I thought I would mention it anyway, in case someone else bumps into it. It could be the same issue.
The problem is that Cog deals with tone marks (˩ ˥) differently than if I used diacritics for tone (è é). It could be the same problem I was talking about in issue #49, but I don't think so. I had a specific example at one time. I do know for sure that I ended up removing all the tone marks and putting in diacritics. That was not fun.

Could it have something to do with syllabification? Tone letters do affect syllabification. Cog uses them as syllable breaks. The tone diacritics do not have this effect.

It might have had something to do with syllabification, but it might not have been. Seems to me the tone marks affected the likely cognate/non-cognate analysis in the Compare / Variety Pairs tab. If I'm mistaken, that in turn affects the similarity matrices.
While tone letters are often (usually?) written at the end of syllables, I'm not sure if it's a good idea for Cog to use them as syllable breaks. I'm still thinking through that. But given that both diacritics and tone marks are used to mark tone, even phonetically, I think they should have the same outcome regardless which is used.
I did have a specific example at one time. I don't know what happened to it. I have since stepped away from the position and the two languages I was working on. Again, apologies.


Custom values: Save/Update custom values

Summary
Provide user option to save and edit saved custom values
Motivation

Proposal
Provide users option to save and update the custom values
Testing Guideline [Optional]
Manual testing

Hey team! Please add your planning poker estimate with ZenHub @shivani170 @sohel-rp

Merged


Multi-Factor Authentication

The x/crypto/ssh library has recently added support for MFA (see golang/go#61447 and CL 516355). Supporting MFA requires a refactor of the current authentication implementation, so retrofitting might be tricky.
Brainstorming is welcome.

 Eventually, would we want the config to be able to look something like
{
  "apps": {
    "ssh": {
      "grace_period": "2s",
      "servers": {
        "srv0": {
          "address": "tcp/<IP_ADDRESS>:2000-2012",
          "pty": {
            "pty": "allow"
          },
          "configs": [
            {
              "config": {
                "loader": "provided",
                "no_client_auth": false,
                "authentication": {
                  "username_password": {
                    "providers": {
                      "static": {
                        "accounts": [
                          {
                            "name": "user1",
                            "password": "JDJhJDE0JDcxOENoL2duS3FuR2VPRUpLa2lVM085Mk40T1JkcHBvQW4ycHU2c0FkMm1qLkhKejhzWG9t"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "mfa": [ {
                      "username_password": {
                        "providers": {
                          "static": {
                            "accounts": [
                              {
                                "name": "user2",
                                "password": "JDJhJDE0JDcxOENoL2duS3FuR2VPRUpLa2lVM085Mk40T1JkcHBvQW4ycHU2c0FkMm1qLkhKejhzWG9t"
                              }
                            ]
                          }
                        }
                      },
                      "public_key": {
                        "providers": {
                          "os": {}
                        }
                      }
                    }]
                  }
                }
              }
            }
          ]
        }
      }
    }
  }
}
``` ?
Essentially, We are saying in this case that `user2` would require mfa with `username_password` followed by `public_key` to authenticate while still allowing `user1` to authenticate with just the password. Is that overall direction here seems fine? If so, we can essentially use that `mfa` list to set up the new `PartialSuccessError` on the callbacks. so the order on that list would be the order of our auth flows.

Is that overall direction here seems fine?

Not really. MFA shouldn't be a separate configuration nor is it a different authentication provider. It's a multi-step authentication. I recommend you should first run the server, experiment with its config, the structure, and how the code loads and matches the respective authentication provider. Don't worry about changing the config structure as long as the final structure makes sense and is future-proof.
Ideally, the second factor is a TOTP. Check the TOTP PR for a sense of how TOTP is set up, what it requires, and think of how it could be retrofitted for MFA.


Ubuntu uses a managed resolv.conf, we can't just edit it directly

Don't try to update resolv.conf on ubuntu because it's managed by systemd-resolve, and it makes it sad.
To do it properly it requires modifications to the /etc/netplan/xyz.yaml where you have set up the machines config, and we can't assert that without knowing more about the destination model. For example a netplan that looks like this:
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: false
      dhcp6: false
      ipv6-privacy: true
      addresses:
        - <IP_ADDRESS>/24 # Update as appropriate.
      routes:
        - to: default
          via: <IP_ADDRESS>
      nameservers:
          addresses: [<IP_ADDRESS>] # update to wherever we want dns to resolve. For pi-hole, probably localhost.

I realise this is a different approach than https://github.com/geerlingguy/internet-pi/pull/389. That's also fine, but is more opinionated about how you want your dns to finally respolve. This PR assumes that you are letting pi-hole control the upstream DNS through it's web config.
It also just opts out of core functionality, rather than adding new stuff which I think was part of @geerlingguy 's objection to #389


Model object named Directory triggers validation

I have a model object in my project named Directory. The analyzer picks it up and thinks it is a usage of System.IO.Dictionary.
This is my first time working with a Roslyn analyzer so I may not have used the best of methods.

Thank for participating in the release.
Added to the next release.

Glad it works out for ya.


Tanishka: The 48 Laws of Power

Book Title?
The 48 Laws of Power
Author?
Robert Greene
Genre of Book?
Self-help

Hi, I'd like to add the synopsis of 48 Laws of Power.

Hi, I'd like to add the synopsis of 48 Laws of Power.

Hi @pranavjainjs , you can add for any other book. More in Contribution Guidelines

can u explain me the issue a bit more @Tanishka0067

Hey @adarsht0001 , please read README to know more about the project.


[Feature Request] Migrating sources

Need a way to migrate manga from one source to another since sometimes sources change structures or shutdown so the updater will constantly be hitting a dead server or for files that dont exist.
Ideally the process would be

Navigate to migrate source
Select $SOURCE which you want to migrate from
Select a manga you wish to migrate
It will perform a global search across all available sources for you
Select the manga under the desired source
Transfer would take place where it will add that manga to your list and carry over read progress and remove the old listing

This has to be done manga by manga to avoid running into rate limits when performing the global searches.

Sound like a great enhancement. I hate it when a source apparently drops the manga and I have to switch to another source. Big thanks for picking this project up btw 🚀


Improvement/160 configuration of the qr code style and background color

Pull Request for #160

reviewed with @IAV-MNd