Installing MFC in ubuntu

Hi MFC team,
I am new to MFC and I have some difficulties in installing MFC into me Ubuntu. It would be very helpful, if you could provide instructions to install MFC in a linux system. I have read the documentation, but installation was unsuccessful. Looking forward to hear from you. Thank you.

Hello Syam, documentation on how to build and install MFC can be found under doc/documentation/building.md or on our website.
If you are still getting an error, please post what you have tried and what error you are receiving so we can better assist you!

Thank you and I appreciate your swift response.  I will get back to you soon.

@syam-s are you still having trouble building MFC ?

Sorry for the delay in the response @henryleberre...
I am still facing some issues. The errors I am having are at the end of the installation and are pasted below,

CMake Error: Problem with archive_read_open_file(): Unrecognized archive format
CMake Error: Problem extracting tar: /home/syams/Downloads/MFC/build/fftw/fftw-prefix/src/fftw-3.3.10.tar.gz
-- extracting... [error clean up]
CMake Error at fftw-stamp/extract-fftw.cmake:33 (message):
error: extract of
'/home/syams/Downloads/MFC/build/fftw/fftw-prefix/src/fftw-3.3.10.tar.gz'
failed
gmake[3]: *** [CMakeFiles/fftw.dir/build.make:100: fftw-prefix/src/fftw-stamp/fftw-download] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/fftw.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/fftw.dir/rule] Error 2
gmake: *** [Makefile:124: fftw] Error 2
Error: Failed to build the fftw target.
Terminated
mfc: Exiting the Python virtual environment.

Please comment,  your thought on these issues.

I also tried to install MGC with CMake and I am getting this error,
xxxxxxxx~/Downloads/MFC-4.1.2$ cmake .
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- The Fortran compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/gfortran - skipped
CMake Error at CMakeLists.txt:55 (find_program):
Could not find FYPP_EXE using the following names: fypp
-- Configuring incomplete, errors occurred!
See also "/xxxxxxxx/Downloads/MFC-4.1.2/CMakeFiles/CMakeOutput.log".
xxxxxxxx:~/Downloads/MFC-4.1.2$

@syam-s Could you try running:
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install tar wget make cmake gcc g++ \
                   python3 python3-dev         \
                   "openmpi-*" libopenmpi-dev

(from https://mflowcode.github.io/documentation/md_building.html)
Notice that tar is a dependency. I am guessing that CMake can't find tar to untar the FFTW source archive.
If you want to run CMake manually, you will have to install Fypp using pip3 install fypp. We use it to pre-process Fortran source files.
I hope this resolves your issue!

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install tar wget make cmake gcc g++
python3 python3-dev
"openmpi-*" libopenmpi-dev
I am getting the same error after following the above instructions. I have checked the availability of the file in the destination folder and found "fftw-3.3.10.tar.gz" there. When I tried to untar the file I received the error below,
/Downloads/MFC/build/fftw/fftw-prefix/src$ tar -xvzf fftw-3.3.10.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Then I downloaded it from "http://www.fftw.org/fftw-3.3.10.tar.gz" and extracted it. The extraction process worked. I think there is an issue with the "fftw-3.3.10.tar.gz" file present at the "MFC/build/fftw/fftw-prefix/src".
Also, please instruct me on how to install with CMakeList.txt too.

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install tar wget make cmake gcc g++
python3 python3-dev
"openmpi-*" libopenmpi-dev
I am getting the same error after following the above instructions. I have checked the availability of the file in the destination folder and found "fftw-3.3.10.tar.gz" there. When I tried to untar the file I received the error below,
/Downloads/MFC/build/fftw/fftw-prefix/src$ tar -xvzf fftw-3.3.10.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Then I downloaded it from "http://www.fftw.org/fftw-3.3.10.tar.gz" and extracted it. The extraction process worked. I think there is an issue with the "fftw-3.3.10.tar.gz" file present at the "MFC/build/fftw/fftw-prefix/src".
Also, please instruct me on how to install with CMakeList.txt too.

This error is interesting, I have never seen it before. The archive appears to be corrupted. I apologize you ran into this issue.
Solution 1
$ rm -rf build/fftw
$ ./mfc.sh build <your arguments here - if any>

This will give CMake another chance at downloading and extracting the FFTW source archive. It will then proceed as usual.
Solution 2
Replace /Downloads/MFC/build/fftw/fftw-prefix/src/fftw-3.3.10.tar.gz with the archive you downloaded (and were able to extract successfully).
Solution 3
$ sudo apt install libfftw3-dev
$ rm -rf build/fftw
$ ./mfc.sh build <your arguments here - if any> --no-fftw

It requests that MFC not download and install FFTW from source. It will instead search for a version already installed on your system (e.g from sudo apt install libfftw3-dev).
Building without mfc.sh (not recommended)
The error isn't with mfc.sh itself so I wouldn't advise using CMake directly, as you lose the ability to easily run cases and test MFC. Building MFC (and not its dependencies: Silo and FFTW) can be done via
rm -rf build && cmake -B build -S . -DMFC_BUILD_ALL=ON

You will have to manually install FFTW (if you want to build Simulation or Post-Process) and Silo (for Post-Process). mfc.sh uses the CMake super-build file from toolchain/dependencies/CMakeLists.txt.
Please let me know if this resolves your issue (or not) !

Good news @henryleberre...
I have tried Solutions 1 & 2, but they didn't work.
So, I have tried to find where the "fftw-3.3.10.tar.gz" downloading command comes from. I have found that the downloading link is given in the "MFC/toolchain/dependencies". Then I checked the "fftw-3.3.10.tar.gz" repository link, which is given in the dependencies file was "http://www.fftw.org/fftw-3.3.10.tar.gz". Even though  I could download the file from this link and extract it manually, the actual public release link is not this. The real link for the public release is "https://fftw.org/pub/fftw/fftw-3.3.10.tar.gz". Then I edited the  "MFC/toolchain/dependencies" file and replaced the old link with the new one. After saving the file, I followed the Solution 1 instruction. Finally, the MFC build was successful and finished without any errors.
So, please check the  "MFC/toolchain/dependencies" file and make suitable changes if t is a real issue for everyone. If it is only my issue, please ignore the suggestion.
@henryleberre, thank you for your support and swift replies in solving this issue. I am looking forward to exploring MFC capabilities and trying to use for my research work.
Thank you MFC team.

Thank you for the update @syam-s. I am unable to reproduce the issue you faced with downloading the FFTW source archive. I originally obtained the link from http://www.fftw.org/download.html. If others encounter this issue in the future, I will take a closer look. We build on many different systems and we have never seen this before..
We are looking forward to reading about your research using MFC!
I am closing this issue as "can't reproduce" for now so it can be reopened if we can.


[GSSOC 2023 Contribution ] How about dark mode/light mode feature

Want to work on it to make the website look attractive under GSSOC 2023.

not needed in this website


EIA-930 initial transform

Overview
This PR implements a basic, but usable version of core PUDL tables derived from the EIA-930 balancing authority, interchange, and subregion inputs.
Closes #3505
Open Questions

The big hourly EIA-930 tables are currently only being written to Parquet (since they increase the size of pudl.sqlite by 50% / 8GB and take 20min to write, while Parquet is 97% smaller and takes 90 sec). But this means we need to do some extra fiddling to ensure they are publicly accessible. There may also be documentation / validation issues that arise from the tables not being written to the DB (are the DB tables getting created and just not filled?)
There are a number of documentation / definitional issues outlined in #3505

Out of Scope

All the hourly tables currently contain both local and UTC timestamps, which is redundant. What's the best way to retain both the absolute and localized time information?  A UTC column, plus a UTC offset column? A single timezone aware localized column? This isn't straightforward because the timestamps have a fixed offset from UTC and don't follow daylight savings time conventions. (need to verify this)
There are a number of data consistency issues we should investigate, but that will have to come later. See #3505
We should probably also define additional asset checks for EIA-930, maybe along the lines of those consistency issues.
Ideally the region (larger than BA) and subregion (smaller than B) codes would have coding tables explaining their meaning and ensuring that they are consistent across all of the datasets that mention them, but we're out of time.

Testing
See tasklist below
# To-do list
- [x] Run the full ETL locally
- [x] Run `make pytest-integration-full`
- [x] Add `adjacent_balancing_authority_code_eia` to list of BA FK columns
- [x] Run `make pytest-validate`
- [x] Fix FK constraint violations in `core_eia930__assn_balancing_authority_region`
- [x] Fix NA values for CAN/MEX `region_code_eia`
- [x] Run `make pytest-coverage`
- [x] Review the PR yourself and call out any questions or issues you have
- [x] Update the release notes and reference the PR / related issues.
- [x] Run a branch deployment to make sure we don't have big memory/concurrency issues
- [x] NAME: rename `adjacent_{sub}region_code_eia` to `{sub}region_code_adjacent_eia`
- [x] Use `energy_source` rather than integer index level when reshaping for legibility
- [x] DATA: omit `region_code_eia` from `core_eia930__hourly_balancing_authority_demand`
- [x] NAME/DOC: rename `energy_source` to... `generation_energy_source` and document why it's not coded
- [x] NAME: rename `report_datetime_utc` to `datetime_utc` for uniformity with other hourly tables
- [x] Condense all alembic migrations into a single file before merging
- [x] DATA: verify that pandera schema asset checks require joint uniqueness of PK tuples.
- [x] DOC: Explain `energysource_processingstatus` naming of net generation columns pre-stack
- [x] Verify definitions of various data fields. See #3505
- [ ] Flesh out EIA-930 docs (field and resource descriptions, data source docs page)
- [ ] Decide how to distribute EIA-930 parquet outputs
- [ ] Avoid dead links for Parquet only outputs in the PUDL data dictionary

Investigating Data Consistency
Total vs. Aggregated Net Generation

EIA-930 reports net generation by fuel, and also as a total.
In theory, it seems like if you add up all the individual fuel specific generation numbers you should get the total.
Note that interchange doesn't seem to be included in the totals.
However, there's a fair bit of dispersion in the correlation between the calculated and reported totals. See the log-log plot below.
Most of the dispersion seems to be in the samples representing smaller values, but sometimes they're off by like an order of magnitude.
Maybe there's a way of combining the reported, adjusted and imputed values to get something closer to the total?  But that doesn't make a lot of sense since I'm comparing the reported versions of both the per-fuel and total generation numbers.

total_mask = core_eia930__hourly_balancing_authority_net_generation.energy_source == "total"
netgen_total = (
    core_eia930__hourly_balancing_authority_net_generation[total_mask]
    .drop(columns=["energy_source", "report_datetime_local"])
    .set_index(
        [
            "balancing_authority_code_eia",
            "report_datetime_utc",
        ]
    )
    .sort_index()
)
netgen_byfuel = core_eia930__hourly_balancing_authority_net_generation[
    ~total_mask
    & (core_eia930__hourly_balancing_authority_net_generation.energy_source != "interchange")
]
calculated_totals = (
    netgen_byfuel.groupby(
        [
            "balancing_authority_code_eia",
            "report_datetime_utc",
        ],
        observed=True)
    .agg(
        {
            "net_generation_adjusted_mw": "sum",
            "net_generation_imputed_mw": "sum",
            "net_generation_reported_mw": "sum",
        }
    )
    .sort_index()
)
fig, ax = plt.subplots(figsize=(10, 10))

ax.scatter(
    calculated_totals.net_generation_reported_mw,
    netgen_total.net_generation_reported_mw,
    s=1, alpha=0.05,
)
ax.set_xlim(1, 1e6)
ax.set_ylim(1, 1e6)
ax.loglog()
ax.set_aspect("equal")
ax.grid()
plt.xlabel("Sum of generation by all fuels [MW]")
plt.ylabel("Reported total generation [MW]")
plt.title("Net Generation by Balancing Authority")
plt.show()

Reported BA vs. Aggregated Subregion Demand

The correlation between whole-BA demand, and aggregations of individual subregions under a BA seems better than the net generation above.
However, note that the demand which is reported by subregion is just much, much smaller (like a factor of 10 or more) than that which is reported by the whole BAs. Not sure if that's just because some BA's don't really have subregions?

aggregated_ba_demand = core_eia930__hourly_subregion_demand.groupby(["report_datetime_utc", "balancing_authority_code_eia"], observed=True).demand_reported_mw.sum()
ba_demand = core_eia930__hourly_balancing_authority_demand.set_index(["report_datetime_utc", "balancing_authority_code_eia"]).demand_reported_mw
shared_index = aggregated_ba_demand.index.intersection(ba_demand.index)

fig, ax = plt.subplots(figsize=(10, 10))

ax.scatter(
    aggregated_ba_demand.loc[shared_index],
    ba_demand.loc[shared_index],
    s=1, alpha=0.05,
)
ax.set_xlim(1e2, 1e6)
ax.set_ylim(1e2, 1e6)
ax.loglog()
ax.set_aspect("equal")
ax.grid()
plt.xlabel("Subregion demand aggregated by BA [MW]")
plt.ylabel("Reported BA Demand [MW]")
plt.title("Demand by Balancing Authority")
plt.show()

Thoughts / decisions while renaming some things and documenting the EIA-930 tables/columns. See their data docs
Local Time
The reported local time is complicated. It includes daylight savings time gaps and duplicate hours. Some BAs span multiple timezones. Some BAs have chosen surprising timezones that don't correspond to their physical location. UTC is unambiguous and monotonically increasing, and can be localized intentionally by users based on their analytical needs, so I've removed the local time columns from the core tables, and added a report_timezone column to the BA codes table, which can be used for (re-)localization.
Other BA attributes
While adding the report_timezone column to the BA codes table I also added the region_eia, region_code_eia, and balancing_authority_retirement_date columns that EIA had compiled, and removed the region_code_eia from the (very long) core tables.
MW vs. MWh?
In EIA's CSVs, the demand, net generation, and interchange columns all end with _mw as if they are power, not energy. But in their description of the quantities they say:

BAs report all data as hourly integrated values, meaning they are time-weighted hourly averaged values.

And in their own plots displaying these quantities, they use megawatthours:

and everywhere else that we have net generation and demand numbers, they're in units of energy (MWh) not power (MW) so I have gone ahead and changed all of the demand / interchange / net generation columns to be MWh.
Demand Forecasts
EIA says that the demand forecast is a day ahead forecast, but it's not clear to me whether the timestamp associated with the data indicates the time at which the forecast was made, or the time at which the forecast is attempting to predict demand.
Change to table normalizations
After gaining a better understanding of how net generation, interchange, and demand relate to each other, I went ahead and re-organized the main balancing authority table breakdown into:

core_eia930__hourly_balancing_authority_operations (which contains total net generation, demand, and interchange) and
core_eia930__hourly_balancing_authority_net_generation_by_energy_source (which breaks down the net generation into several categories)

Visual Sanity Checks
Definitely some wonky stuff going on in the original data.
Total vs. Aggregated Net Generation (all energy sources)
netgen_reported = (
    core_eia930__hourly_balancing_authority_operations
    .set_index(
        [
            "balancing_authority_code_eia",
            "datetime_utc",
        ]
    )
    .loc[:, ["net_generation_reported_mwh"]]
).sort_index()

netgen_calculated = core_eia930__hourly_balancing_authority_net_generation_by_energy_source.groupby(
        [
            "balancing_authority_code_eia",
            "datetime_utc",
        ]
).net_generation_reported_mwh.sum().sort_index().to_frame()

fig, ax = plt.subplots(figsize=(10, 10))
ax.scatter(
    netgen_reported.net_generation_reported_mwh,
    netgen_calculated.net_generation_reported_mwh,
    s=1, alpha=0.05,
)
ax.set_xlim(1, 1e6)
ax.set_ylim(1, 1e6)
ax.loglog()
ax.set_aspect("equal")
plt.xlabel("Reported total generation [MWh]")
plt.ylabel("Sum of generation by all fuels [MWh]")
plt.title("Net Generation by Balancing Authority")
plt.grid()
ticks = np.logspace(0, 6, 13)
plt.xticks(ticks)
plt.yticks(ticks)
plt.show()

Reported BA vs. Aggregated Subregion Demand
aggregated_ba_demand = core_eia930__hourly_balancing_authority_subregion_demand.groupby(
    [
        "balancing_authority_code_eia",
        "datetime_utc",
    ],
    observed=True,
).demand_reported_mwh.sum()
reported_ba_demand = core_eia930__hourly_balancing_authority_operations.set_index(
    [
        "balancing_authority_code_eia",
        "datetime_utc",
    ]
).demand_reported_mwh
shared_index = aggregated_ba_demand.index.intersection(reported_ba_demand.index)

fig, ax = plt.subplots(figsize=(10, 10))
ax.scatter(
    reported_ba_demand.loc[shared_index],
    aggregated_ba_demand.loc[shared_index],
    s=1,
    alpha=0.05,
)
ax.set_xlim(1e2, 1e6)
ax.set_ylim(1e2, 1e6)
ax.loglog()
ax.set_aspect("equal")
ticks = np.logspace(2, 6, 9)
plt.xticks(ticks)
plt.yticks(ticks)
ax.grid()
plt.xlabel("Reported BA Demand [MWh]")
plt.ylabel("Subregion demand aggregated by BA [MWh]")
plt.title("Demand by Balancing Authority")
plt.show()

Calculated vs. Reported Demand
status = "reported"
fig, ax = plt.subplots(figsize=(10, 10))
ba_ops = core_eia930__hourly_balancing_authority_operations
ax.scatter(
    ba_ops[f"demand_{status}_mwh"],
    ba_ops[f"net_generation_{status}_mwh"] - ba_ops[f"interchange_{status}_mwh"],
    s=1,
    alpha=0.05,
)
ax.set_xlim(1e2, 1e6)
ax.set_ylim(1e2, 1e6)
ax.loglog()
ax.set_aspect("equal")
ticks = np.logspace(0, 6, 13)
plt.xticks(ticks)
plt.yticks(ticks)
ax.grid()
plt.xlabel(f"{status.title()} Demand [MWh]")
plt.ylabel("Net Generation minus Interchange [MWh]")
plt.title(f"{status.title()} vs. Calculated BA Demand")
plt.show()

On the table names: does it add anything to have _balancing_authority_ in all of these table names? If it does I'd suggest moving it to the end so that the beginning of the unique table name is the "what" of the table is at the front.

@cmgosnell here's my thought process on the table names. Although it is long, I think we probably do want balancing_authority in the table names because subregion_demand and operations both beg the question "subregion/operations of... what?" and listing out all of demand, net generation, and interchange for BA level totals is too verbose (and EIA also calls it the BA operations table in their docs).
We also already have some hourly demand tables, which include what entity / geography the demand pertains to, and I think having balancing_authority fit that same pattern helps make it clear these are all conceptually similar tables:

out_ferc714__hourly_estimated_state_demand
out_ferc714__hourly_planning_area_demand

The current BA table naming matches the pattern that's established with those tables of "hourly" + descriptive entity + reported variable (here demand, interchange or generation). This pattern also reads like something you'd actually say, which makes it easier to remember without needing to look it up every time, unlike "hourly demand estimated state" (or was it hourly demand state estimated?) and avoids the need for a connector word like "hourly estimated demand by state" which can work okay when there's just one dimension, but as we've seen in the net generation tables, gets unwieldy quickly when you have 2 or 3. Also hourly_operations_by_balancing_authority didn't really seem to make sense and hourly_interchange_by_balancing_authority also seemed inaccurate since it's really by pairs of balancing authorities which hourly_balancing_authority_interchange allows in English.


Nest.IndicesStats should contain shard_stats reported by GET /index/_stats

Is your feature request related to a problem? Please describe.
GET /index/_stats returns shard_stats with total_count property for indices. But C# method ElasticClient.Indices.Stats(index) returns Nest.IndicesStats class where the shard_stats is not mapped.
Describe the solution you'd like
Map shard_stats API returns to C# object.
Describe alternatives you've considered
I have to made a second call to get this information from index settings (it's not ideal).

Apologies for the delay @vkras. I'll take a look at this.

Added in 7.15, so re-labelling this as a feature we will add.

@vkras I've added this for the next release. Thanks for raising it.


Suggestions needed to improve speaker similarity

Hi @MaxMax2016 thank you so much for this wonderful project
I need your guidance on improving speaker similarity on So-VITS-SVC 4.1 stable branch.
I saw you introduced many approaches to reduce timbre to improve speaker similarity.

GRL for speaker
PPG Perturbation

Which one is better to improve similarity?
Please help me @MaxMax2016

What works in this project is PPG Perturbation. Here, GRL model is too small to be useful.

Thank you @MaxMax2016
One follow up question
Why you did MIX encoder with hubert SSL + whisper ppg? Along whisper is not good?
What is your suggestions about Whisper PPG for cross-lingual voice conversion?

Whisper PPG is not so good for cross-lingual voice conversion, so MIX encoder with hubert SSL + whisper ppg is used.

@MaxMax2016 I want to introduce GRL speaker loss in training.
Do I need to introduce it at the initial training phase or some interval after ( like 100k)?


modified script on reddit data text analysis

modified script

minor change

No conflict with the base branch. Okay to merge.


when use ipad,it can not refresh the picture

Hello zhang.Here I got a problem,and it only happens in mobile and ipad.
When I click the captcha's refresh icon fastly and continuously.Sometimes it can not show the picture and display nothing in the captcha div.

the reason maybe the default puzzle image host is in China. you can try it in your local net later. :)


cfl error in merging_glaciers notebook

On the website a cfl error occurs in the merging_glaciers notebook. But I could not reproduce the error locally, not sure how to proceed.

Can you try to set cfl_number to 0.01?

I also could not reproduce with cfl_number 0.01 locally. I also created an env with the same oggm version as is used on mybinder and was not able to reproduce the error.
Maybe there is something going on in the docker image.  I can try to run the notebook from the image to reproduce the error.

ah and before this I test also with python 3.10

You can also try to push cfl to 0.01 in a PR and trigger a build online, but the problem is that we won't know what the problem is.
Maybe something in the output changed again :cry:
cc @TimoRoth

Ah ok ok - great thanks.

Another solution would be to simplify this example or remove it, but that's some work or a bit sad,


Create issue and pull request templates

Apply this change https://github.com/jaegertracing/jaeger-client-go/pull/289 to all repositories.

[x] documentation
[x] jaeger
[x] jaeger-client-cpp
[x] jaeger-client-csharp
[x] jaeger-client-go
[x] jaeger-client-java
[x] jaeger-client-javascript
[x] jaeger-client-node
[x] jaeger-client-python
[x] jaeger-idl
[x] jaeger-kubernetes
[x] jaeger-lib
[x] jaeger-openshift
[x] jaeger-performance
[ ] jaeger-ui
[x] legacy-client-java
[x] spark-dependencies
[x] xdock-zipkin-brave

@PikBot thanks a ton for your help with all these changes!  I left the UI issue open for @tiffon to look at, since it changes the existing template, but everything else is done, so I am going to close this ticket. Once again, many thanks!

@yurishkuro happy to help! Please let me know if there is anything else I can help with.


[BUG] installation err on v0.12.12

Describe the bug
using Poetry (version 1.8.4)
python version 3.10
on poetry install --only main

Expected behavior
clean build
Additional context
OSX M2 Sonoma 14.5

@dni

grml, freaking secp256k1 library. i spot a pkg-config is needed for the install, can you try to brew install that?

yeah i did try the following but no dice. i can't recall how i fixed this bug last year
brew install pkg-config libsecp256k1

export PKG_CONFIG_PATH="/opt/homebrew/opt/libsecp256k1/lib/pkgconfig:$PKG_CONFIG_PATH"
export LDFLAGS="-L/opt/homebrew/opt/libsecp256k1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libsecp256k1/include"

arch -arm64 poetry install

Also tried:
brew uninstall libsecp256k1   # Remove existing installation
brew cleanup
brew install automake pkg-config libtool libsecp256k1

export LDFLAGS="-L/opt/homebrew/opt/libsecp256k1/lib -L/opt/homebrew/opt/openssl@3/lib"
export CFLAGS="-I/opt/homebrew/opt/libsecp256k1/include"
export CPPFLAGS="-I/opt/homebrew/opt/libsecp256k1/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/libsecp256k1/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig"

and
pip install --no-binary :all: secp256k1

Both of the above , after i try to manually install secp256k1, i still get the same error on poetry install --only main
wondering if there is a way to bypass....?

oookay that seemed to work
brew install pkg-config

oookay that seemed to work
brew install pkg-config

nice :)

so just the command above works if i delete the poetry.lock
but on poetry run lnbits i now have this error
poetry run lnbits
2024-10-22 19:05:32.23 | ERROR | Traceback (most recent call last):
File "/Users/bk/Library/Caches/pypoetry/virtualenvs/lnbits-sDFEFuNU-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 693, in lifespan
async with self.lifespan_context(app) as maybe_state:
File<EMAIL_ADDRESS>line 199, in aenter
return await anext(self.gen)
File "/Users/bk/github/lnbits/lnbits/app.py", line 113, in lifespan
await startup(app)
File "/Users/bk/github/lnbits/lnbits/app.py", line 73, in startup
await migrate_databases()
File "/Users/bk/github/lnbits/lnbits/core/helpers.py", line 75, in migrate_databases
async with core_db.connect() as conn:
File<EMAIL_ADDRESS>line 199, in aenter
return await anext(self.gen)
File "/Users/bk/github/lnbits/lnbits/db.py", line 281, in connect
async with self.engine.connect() as conn:
File "/Users/bk/Library/Caches/pypoetry/virtualenvs/lnbits-sDFEFuNU-py3.10/lib/python3.10/site-packages/sqlalchemy/ext/asyncio/base.py", line 66, in aenter
return await self.start(is_ctxmanager=True)
File "/Users/bk/Library/Caches/pypoetry/virtualenvs/lnbits-sDFEFuNU-py3.10/lib/python3.10/site-packages/sqlalchemy/ext/asyncio/engine.py", line 157, in start
await (greenlet_spawn(self.sync_engine.connect))
File "/Users/bk/Library/Caches/pypoetry/virtualenvs/lnbits-sDFEFuNU-py3.10/lib/python3.10/site-packages/sqlalchemy/util/concurrency.py", line 64, in greenlet_spawn
_not_implemented()
File "/Users/bk/Library/Caches/pypoetry/virtualenvs/lnbits-sDFEFuNU-py3.10/lib/python3.10/site-packages/sqlalchemy/util/concurrency.py", line 47, in _not_implemented
raise ValueError(
ValueError: the greenlet library is required to use this function. No module named 'greenlet'
2024-10-22 19:05:32.23 | ERROR | Application startup failed. Exiting.

(running dev branch, btw)

dev is tough right now. but greenlet is a dependency from breez. hmmm suspicious can you try installing with poetry install instead of poetry install --only main

OK i had to kill off the poetry.lock file from dev, it rewrote it likely due to OSX
on main, it seems to work this time with just poetry install , before it wasn't working with --only main


Proposal: Decorators on functions

Hi all.
I think it would be a great feature if we can use decorators with functions too.
Example
// SImple use case
function deprecated(target: Function) {
    let oldFunction = target;
    return (...args) {
        console.log("You are using a deprecated function").
        return oldFunction.apply(null, args);
    };
}

@deprecated
function legacy(...args) {/* ... */};

It also would enable patterns like Contract, with pre/post conditions checks etc.

Functions are hoisted, so what are the intended semantics? See https://github.com/Microsoft/TypeScript/issues/2249#issuecomment-86367067
That's the main problem, and the ECMA-262 committee doesn't seem totally sure what to do about it either.

Any thing that typescript will support in this domain needs to be inline with the ES proposal. see https://github.com/wycats/javascript-decorators/issues/31 for related discussion.

The JS-decorator proposal is the right place to have this discussion. Please submit the proposal on https://github.com/wycats/javascript-decorators repo instead.

@mhegazy definitely agree, thank you for the info!


Error when task name is a number

I'm running into an issue when the task name is a number only. When passing this through as taskservice.rootfolder.tasks("TaskName") I get an error that "Value does not fall within the expected range."  as it is seeing the name as a number instead of a string. I am passing it as a string so I'm not sure if anyone else has seen this issue.
Any help would be appreciated.
Thanks,
Originally posted: 2015-11-05T06:45:38

I'm assuming this is not on a system prior to Windows Vista. If so, then we are dealing with a limitation of the base library from Microsoft. That error comes from calling the base library's IRegisteredTaskCollection.Item property that takes either an integer or a string. If working with the V1 native library on XP systems and earlier, this would be an artifact of the ITaskScheduler.Activate method. I don't put any code between those calls.
Originally posted: 2015-11-06T10:10:44

I'm on a win7 machine. I worked pasted it by using the getTasks method using a regular expression. Thanks for the help
Originally posted: 2015-11-08T09:38:43


Add IDE readme

The TODOs will be incrementally removed as they are resolved - hopefully soon™...

See https://github.com/BerkeleyHCI/PolymorphicBlocks/pull/60 for the sbt assembly documentation


Some MAKI icons not showing properly

I use MAKI icons, but some of them doesn't render properly. E.g. marker-15 is shown as dot, but airport-15 is shown properly.
Steps to reproduce
Demo https://www.dropbox.com/s/yqww9q542r52jvn/MapboxSymbolMAKIIconDemo.zip?dl=0
Configuration
Android versions: 9.0
Device models: Xiaomi mi 2 lite
Mapbox SDK versions: 7.2.0, plugin-annotation-v7:0.5.0

@androideveloper since a coupe of revisions of the mapbox styles we aren't shipping all maki icons anymore with a style. Next to the amount, another change is that are colored upfront. This is expected, we are thinking about ways to improve this with #882.
Not actionable as it's a work as designed. Thank you for reaching out. Closing.

@androideveloper you can check which sprites are shipped with your style by going to Mapbox Studio, selecting your style (or creating a new one out of the core style, like MAPBOX_STREETS, that you are using) and inspecting Images:

Only images listed here are going to be available out-of-the-box.


Documentation Fixes

[x] Issue in getting information about CLI
[x] Issue in getting information about sdk
[x] None of the links here work

Examples we can link to the Github page instead of rendering it here in the Docs. It will be easier to view there and the links will work seamlessly

latest commit 18e1f4e  has fixes for all 3


Add option to remove uploaded image

Allow users to remove an uploaded image from the list of images to process

functioning as expected now


Add component before/after scripts for package create

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist before merging

[x] Tests have been added/updated as necessary (add the needs-tests label)
[x] Documentation has been updated as necessary (add the needs-docs label)

This one's for you @Racer159 😆

After discussion going toward:
  - name: nextcloud-apps
    scripts:
      before:
        - pwd
        - echo preparing inject
      after:
        - pwd
        - echo successfully injected
      prepare:
        - pwd
        - tar -xzf data/apps/*
      showOutput: true
    dataInjections:
      - source: apps
        target:
          namespace: nextcloud
          selector: app.kubernetes.io/name=nextcloud
          container: nextcloud
          path: /var/www/html/apps
        compress: true


Filter Widgets for event_event_type and event_event

@nursix  I have a question:
what of this todo? https://github.com/flavour/eden/blob/master/modules/s3db/pr.py#L3193#L3197
Should there be a autofill widget??

@nursix Removed the input_label, Please Review


Event: appland.appmap/plugin:uninstall

@dustinbyrne According to documentation we can send uninstall event only with external JS file, but in this case we have to store API auth key in that file.

I don't think this is worth doing. When a user abandons using AppMap we
will be able to see that from telemetry already.
Whether they uninstalled the AppMap plugin isn't that important, compared
to knowing that they're inactive.

kevin

On Wed, Sep 8, 2021 at 1:48 PM Sasha H. @.***> wrote:

@dustinbyrne https://github.com/dustinbyrne According to documentation
https://code.visualstudio.com/api/references/extension-manifest#extension-uninstall-hook
we can send uninstall event only with external JS file, but in this case
we have to store API auth key in that file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/applandinc/vscode-appland/issues/210#issuecomment-915443924,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAVC623P4PYSUBXAIYHUVTUA6OVZANCNFSM46KLTZ5Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Slow language server

I understand that this problem does not apply to gintro, but is there any way to solve it. It looks like LS compiles the project every time to provide functionality, without support for incremental compilation. Since gintro adds 56094 lines of binding code, this greatly worsens the LS response time even in the helloworldGTK project. Vala has a similar problem, but it manifests itself on much larger amounts of code(probably the compiler itself is just simpler).
GIF demo:

Have other developers already encountered this problem, and how do they usually solve it?

That is an known problem, but reporting here is the wrong location. I am concerned with it even more as I also use the generic RTree and CDT modules. I use both with nimsuggest directly by my old pet editor. For strange syntax errors nimsuggest may sometimes even crash. Luckyly Nim is an easy languages, so I do not need nimsuggest that much. Syntax highlighting is done by pet without nimsuggest. I had a version which does highlighting with nimsuggest help, but that one generates high CPU load when one is editing.
So you may ask Araq directly, but be aware that he does not like GTK that much. We have more than 20 GUI libs for Nim now, I have listed them in my GTK4 book at the beginning. I assume that the tiny toy libs may work better with nimsuggest, as they are much smaller. Incremental compilation may help, but I don't know when it will become available. Other solutions could be to partition the gtk modules in tiny submodules, which you would have to import when needed. You may try yourself -- delete from gtk4.nim or the other related modules all what you may not need and see if performance improves.


Fixed windows compilation support for f2reduce.cpp.

I'm adding Windows support to XLA and this PR updates f2reduce.cpp so that it compiles successfully on Windows.

@jlebar This PR seems ok to me though we don't provide general windows support. What do you think?

What do you think?

The cost of this is that if and when you want to pull a new version of f2reduce, you have to reapply these changes (or break Windows again).
Up to you if you want to accept that complexity.

What do you think?

The cost of this is that if and when you want to pull a new version of f2reduce, you have to reapply these changes (or break Windows again).
Up to you if you want to accept that complexity.

Got it! Maybe I'll just let Windows break next time instead of fixing it... but I can do a favor for the contributor this time :)

Thank you! If you could also point me to where you're pulling f2reduce from, I could put up the fix there as well if that's possible.

Please contact @apgoucher if you want to contribute to the original f2reduce

If you could also point me to where you're pulling f2reduce from

There's a readme which points to the original repository.

Thank you!

Actually, @jlebar the readme file in that directory doesn't seem to point to a repository for f2reduce.

Try the VERSION file?
(Tip is to git grep for f2reduce.)
On Mon, Jul 29, 2024 at 12:24 PM Anthony Platanios @.***>
wrote:

Actually, @jlebar https://github.com/jlebar the readme file in that
directory doesn't seem to point to a repository for f2reduce.
—
Reply to this email directly, view it on GitHub
https://github.com/triton-lang/triton/pull/4416#issuecomment-2256728225,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABEZBZACNH4EMZOUMNMXNLZO2JGDAVCNFSM6AAAAABLUV53S2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWG4ZDQMRSGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks for merging this. Just fyi I opened a corresponding PR in the original repository here.


Add incremental builds by increasing isolation

I think with a few infra changes (borrowing some ideas from the Microsoft build ProdCon infra), we can enable incremental builds in source-build:
1. Use a unique blob feed output directory for each repo build.
This allows us to understand which artifacts came from which repos and easily delete (or ignore) stale assets.
2. Give each repo build its required inputs only.
Do this by either merging the upstream blob feeds into an input blob feed (like ProdCon) or pointing repos to multiple blob feeds.
Providing only the required inputs improves reliability: if repos can only use the artifacts they explicitly depend on via RepositoryReference, we will likely detect and fix any unknown dependencies and end up with a more correct graph.
3. Use an isolated, fresh package cache directory for each repo build.
This lets us clear the cache to consume new packages from upstream repos. Currently, we can't simply delete it because the source-build infra also shares the single package cache.
4. After each build, make cached packages available to downstream builds.
Without this, each submodule would download a fresh copy of every package even if an earlier repo already downloaded it, slowing the build down considerably and increasing the impact of network flakiness.
5. After harvesting a package cache directory, delete it.
The duplicate packages in each isolated cache would take a lot of space, and our build's already too large for some CI infra now.
For diagnosability, when we delete a package cache, we should note which packages were in it. If any changes were made to a specific package in-place (e.g. by BuildTools init), we should leave it alone in case it's important to understand a problem. (There are likely very few instances of this.)
6. Add a semaphore for each repo build completion.
This way, if a build fails, fix it and rerun the default build command to pick up where it left off.
When a repo starts building, all downstream repo semaphores should be removed so the new build's dependencies flow through to the end without question. This will help when making changes to e.g. CoreFX and expecting them show up in the Runtime without fully cleaning the repo first.

Non-goals
I don't think we should try to detect submodule changes and automatically rebuild. A false positive would potentially rebuild a lot and be very frustrating. Deleting the semaphore doesn't seem like a terrible experience. We can provide utility props to invalidate builds if that seems easier than deleting semaphores.
Future benefits
This would help a lot with the source-build CI legs that we plan to add to each official repo: the runs would go much faster by downloading a cache of the upstream dependencies rather than building all upstreams every single time. Blob feed output isolation would let upstreams zip up their source-built outputs and put them somewhere without any fuss, transferring them through BAR/Maestro++/Darc.

@dseefeld - What is the status of this issue?  Why is it in the ArPow epic?

[Triage] #6 - semaphore work, is the only item completed.  The rest of the items become much simpler to implement once ArPow is in place.


update chinese README file

update chinese README file.

Thanks @wwalisa. Please see if your team can also help translate this
https://github.com/IBM/FfDL


Consuming without group id

Hey I want to be able to consume using KafkaJS without specifying the consumer's group id.
I found out that in Kafka Python I can turn off auto commit for the consumer without giving it a group id and it allows me to consume while manipulating the offset.
Is it possible to do it in KafkaJS?  and if not would it be possible?

Have the same question.

I can see this beneficial for streamings apps where something like ktable is needed, right now i have to create a lot of junk group ids(random) in order to scale on k8s.  Consuming without group id would be very beneficial in use cases like this

It's not possible at this time. KafkaJS was built around the concept of consumer groups, rather than manual assignment. Committing offsets is strictly optional, as you can turn off autoCommit, use resolveOffset and/or seek to manipulate the offset, and then store your offsets outside of Kafka, but it's not particularly ergonomic.
That said, it is of course possible to enable the use-case, but I suspect it would be a rather large undertaking. I think it is highly related to #373, which doesn't currently seem to have a sponsor. I'd be happy to discuss a proposal for how to make it happen, what the API might look like and what the implications would be.
I'm going to close this issue in favor of #373. Feel free to continue the discussion there.


fix: atom should unmount correctly

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
1410

Relevant Lines:
1410

💛  - Coveralls


[issue on youtube's end] YouTube 503 download problems

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.10.13 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Spain
Provide a description that is worded well enough to be understood
As for Thursday, youtube gives problems when downloading an video.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[download] Downloading item 20 of 30
[youtube] Extracting URL: https://www.youtube.com/watch?v=oSPsr9m7OJo
[youtube] oSPsr9m7OJo: Downloading webpage
[youtube] oSPsr9m7OJo: Downloading android player API JSON
[youtube] oSPsr9m7OJo: Downloading ios player API JSON
[youtube] oSPsr9m7OJo: Downloading m3u8 information
[info] oSPsr9m7OJo: Downloading 1 format(s): 270+251
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 151
[download] Destination: Miss Tilly's Fun Time TV Minute Show 💖 ｜ Compilation ｜ Big City Greens ｜ Disney Channel [oSPsr9m7OJo].f270.mp4
[download]   4.8% of ~ 127.32MiB at    1.76MiB/s ETA 02:01 (frag 6/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out.. Retrying (1/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at    2.08MiB/s ETA 00:36 (frag 28/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out.. Retrying (1/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at  841.41KiB/s ETA 01:39 (frag 28/151)[download] Got error: 225540 bytes read. Retrying (2/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at    1.12MiB/s ETA 01:36 (frag 28/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out.. Retrying (3/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at    1.20MiB/s ETA 01:01 (frag 28/151)[download] Got error: 225540 bytes read. Retrying (4/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at  986.35KiB/s ETA 01:13 (frag 28/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out.. Retrying (5/10)...
Sleeping 5.00 seconds ...
[download]  19.4% of ~ 127.15MiB at    1.21MiB/s ETA 01:13 (frag 28/151)[download] Got error: 225540 bytes read. Retrying (6/10)...
Sleeping 5.00 seconds ...
[download]  23.9% of ~ 129.21MiB at    1.29MiB/s ETA 01:33 (frag 35/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out.. Retrying (1/10)...
Sleeping 5.00 seconds ...
[download]  23.9% of ~ 129.21MiB at  655.61KiB/s ETA 01:37 (frag 35/151)[download] Got error: 180116 bytes read. Retrying (2/10)...
Sleeping 5.00 seconds ...
[download]  33.3% of ~ 130.45MiB at    1.33MiB/s ETA 00:30 (frag 51/151)[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out. (read timeout=20.0). Retrying (1/10)...
Sleeping 5.00 seconds ...
[download] Got error: HTTP Error 503: Service Unavailable. Retrying (2/10)...
Sleeping 5.00 seconds ...
[download] Got error: HTTPSConnectionPool(host='rr3---sn-5hne6nzk.googlevideo.com', port=443): Read timed out. (read timeout=20.0). Retrying (3/10)...
Sleeping 5.00 seconds ...
[download]  35.9% of ~ 132.52MiB at    1.25MiB/s ETA 01:16 (frag 55/151)

Please provide verbose output and what command you are running

Please provide verbose output and what command you are running.
likely the format or server is unavailable. try --check-formats

Since today, I've had the same problem as him. Here's an example https://pastebin.com/B4zZHTDB
A second later, I made the same command again, and the video was downloaded.
It also happens without cookie/proxy.

I've also started having problems downloading Youtube videos today, similar to what's described above.
Here's a verbose output from one of the videos: https://pastebin.com/q2BaXQmv
It starts downloading normally, but then, after some time (could be 15 seconds, could be couple of minutes), it gives a repeated 503 error until yt-dlp gives up. The weird thing is that it doesn't happen right away, but after some time, and even weirder is that it doesn't happen to all videos. A lot of videos are downloading normally, without any problems. It's kinda random. And sometimes after trying a couple of time, a video that was giving 503 error will download without any issues, but only if the video is short enough. If it's a long multi-hour stream, then the download will error out eventually.
Another interesting thing is that I also watch Youtube through MPC-HC with yt-dlp. And if I try to watch those videos that give 503 error, what happens is that, at some point the playback stops, but if I pause and wait a couple of minutes, and resume, it will continue playing for awhile, until it stops again (and sometimes when I resume it borks the playback, but that's just MPC-HC being flacky). And this stopping is also kinda random. Sometimes it plays for half an hour no problem, sometimes it stops every 20 seconds.

I suspect this is an issue with YouTube. There are related reports over on r/youtube of buffering issues etc. which likely are of the same underlying problem.

https://downdetector.com/status/youtube/

see also: https://twitter.com/TeamYouTube/status/1718687545154761150

If you're experiencing buffering issues on YouTube our team is aware and working on a fix. YouTube TV or NFL Sunday Ticket may also be impacted. we'll follow-up here once this has been resolved.

Yep. Same issue. Also in Spain.
Interestingly, I put a VPN on and tried from a UK IP and the DL that was failing worked first time

The issue might have been resolved at least on my end.
I've been downloading big long videos, those that would eventually give me 503 error every time, and I haven't seen an error for awhile now.
Team Youtube on twitter.com are still responding to people reporting buffering, so it's not over for everyone.

Closing since the issue seems to have been resolved (although Team Youtube never followed up on it). If the problem manifests itself again, this can be-opened

its deep in the issue tracker now so

https://downdetector.com/status/youtube/


PHP Deprecated Warning in WC Stock Dependencies Plugin

Hi,
I've encountered a deprecated warning related to unparenthesized expressions in the WC Stock Dependencies plugin. This issue arises from a change in behavior in PHP 8, where the precedence of the '+' and '-' operators will be higher than the '.' operator.
Error Message:
PHP Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/XXXXXXXX.cloudwaysapps.com/XXXXXXXXXX/public_html/wp-content/plugins/wc-stock-dependencies/admin.php on line 1008
Can you please fix it?
Thank you

Thanks for the message. This is a warning and can be ignored for now. I am working on an update and will include a fix for this issue.

That sounds good. Thank you 🙏


fix(ui/input): fix(ui/input): fixed decimal point issue in number inp…

resolve issues #869

Codecov Report

Merging #871 (e69f663) into dev (de93417) will decrease coverage by 0.16%.
The diff coverage is 37.50%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##              dev     #871      +/-   ##
==========================================
- Coverage   94.54%   94.38%   -0.16%
==========================================
  Files         269      269
  Lines        5972     5988      +16
  Branches     1091     1097       +6
==========================================
+ Hits         5646     5652       +6
- Misses        326      336      +10

Impacted Files
Coverage Δ

packages/varlet-ui/src/input/props.ts
100.00% <ø> (ø)

packages/varlet-ui/src/input/Input.vue
87.38% <37.50%> (-8.41%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[5.3] Make Storage::delete() act like Filesystem::delete()

The current implementation will always return true even if one of file(s) weren't deleted unlike the delete method in Filesystem.
Note: This can be considered a breaking change, if so we can just change to master if the change is desirable.

@themsaid i like this change, however why do we need the $success variable. we can just return false when it fails otherwise return true at the bottom of the method.

Because we need to attempt to delete the other given files in case multiple files were passed.

Dude, I love your clear commit messages and PR titles : )

@tillkruss haha trying to keep everything clear :)


Jenkins Artifactory Publish plugin  is not working anymore

Current Behavior
During Junkins build artifactoryPublish task is executing with the following output:
> Task :generateEffectiveLombokConfig UP-TO-DATE
> Task :extractIncludeProto UP-TO-DATE
> Task :extractProto UP-TO-DATE
> Task :generateProto UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :generateMetadataFileForMavenJavaPublication
> Task :generatePomFileForMavenJavaPublication
> Task :artifactoryPublish

> Task :extractModuleInfo
No publisher config found for project: dbs5-proto

> Task :artifactoryDeploy

Expected Behavior
Here is expected output for prev version:
> Task :extractProto UP-TO-DATE
> Task :generateProto UP-TO-DATE
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :jar UP-TO-DATE
> Task :generateMetadataFileForMavenJavaPublication
> Task :generatePomFileForMavenJavaPublication
> Task :artifactoryPublish
> Task :extractModuleInfo
[pool-1-thread-1] Deploying artifact: https://artifactory.int.openbet.com/artifactory/dbs-candidate-local/com/donbest/dbs5/dbs5-proto/1.0-SNAPSHOT/dbs5-proto-1.0-SNAPSHOT.jar
[pool-1-thread-1] Deploying artifact: https://artifactory.int.openbet.com/artifactory/dbs-candidate-local/com/donbest/dbs5/dbs5-proto/1.0-SNAPSHOT/dbs5-proto-1.0-SNAPSHOT.module
[pool-1-thread-1] Deploying artifact: https://artifactory.int.openbet.com/artifactory/dbs-candidate-local/com/donbest/dbs5/dbs5-proto/1.0-SNAPSHOT/dbs5-proto-1.0-SNAPSHOT.pom
> Task :artifactoryDeploy

Context (optional)
No response
Steps to Reproduce
nothing special
build.gradle.kts
  plugins {
    `java-library`
    `maven-publish`
  }

  publishing {
    publications { create<MavenPublication>("mavenJava") { from(components["java"]) } }
  }

Jenkinsfile
  // artifactory
  def server = Artifactory.server 'artifactory'
  def rtGradle = Artifactory.newGradleBuild()

  rtGradle.resolver server: server, repo: 'openbet-repository'
  rtGradle.deployer server: server, repo: 'dbs-candidate-local'

  rtGradle.useWrapper = true
  rtGradle.usesPlugin = false

  def buildInfo = rtGradle.run tasks: 'artifactoryPublish', rootDir: env.WORKSPACE
  server.publishBuildInfo buildInfo

Gradle version
8.8
Gradle version that used to work
8.7
Build scan URL (optional)
No response
Your Environment (optional)
No response

Most probably your issue is caused by an external Gradle plugin, which cannot be addressed in the Gradle Build Tool project. We cannot just move the issue.
We recommend you open an issue on its issue tracker.
We have some integration tests with major plugins to catch potential problems early, but we don't have the capacity to cover all plugins available.
If you think you have come across a Gradle bug, please provide a reproducer for this issue without the plugin, and we’ll consider reopening it.

Given the executed tasks and the applied plugins, the Jenkins configuration seems to be injecting yet another plugin for Artifactory interactions. Here is one such plugin.
You will need to enquire about this issue on the Jenkins plugin itself and possibly follow up with the Artifactory one.

@ljacomet, do you have any ideas on Gradle changes from 8.7 and 8.8 regression as nothing has been changed on the project and Jenkins plugin at all?


Bower Components - Auto check dependencies and concat in right order

We will need a Gulp task that parse the bower components files and add main files to bower.js in the right order (dependencies first and then the library itself after) to avoid undefined error while running the application.
Tip: Each Bower library has its own bower.json file, which specifies the dependencies of that library.

Fixed


FixedMallocPool fixes for Windows

This PR closes #729. There are two main changes:

Prevent FixedMallocPool from being misused by disabling copy construction/assignment (can cause a use-after-free) and by validating the requested allocation size (can change when a pool_allocator object is copied, see below).

Modify pool_allocator to support Windows Debug builds. A std::shared_ptr is used to allow pool_allocator to be copied without copying the FixedMallocPool object. Also, note that pool_allocator<T> may be copy constructed from pool_allocator<U>, changing the allocation size that is requested from the FixedMallocPool object.
Specifically, std::multimap<std::size_t, Chunk*, std::less<std::size_t>, pool_allocator<std::pair<const std::size_t, Chunk*>>> actually constructs an allocator object of type pool_allocator<std::_Tree_node<std::pair<const std::size_t, Chunk*>, void*> (type size = 48; this is the size used to construct the FixedMallocPool object). This allocator object gets copied to a second allocator object of type pool_allocator<std::_Container_proxy> (type size = 16) that shares the same FixedMallocPool object. This is safe as long as the copied pool_allocator's type has a size less than or equal to the first pool_allocator's type, but it's good to verify this in FixedMallocPool.

Cc: @ctanis

@davidbeckingsale I moved the recursive part of the old allocate method to allocate_impl to avoid repeatedly UMPIRE_ASSERTing at the beginning of allocate.
There is probably a way to do this without recursion, if it is preferable.

@davidbeckingsale I moved the recursive part of the old allocate method to allocate_impl to avoid repeatedly UMPIRE_ASSERTing at the beginning of allocate.
There is probably a way to do this without recursion, if it is preferable.

It's okay, I assumed it was because of the assert but just wanted to confirm. I'm going to make a local branch and PR for this so that we can run it through our full CI pipeline - we can then merge it from there.

@davidbeckingsale It looks like you updated #746 before I could push this update that changes recursion to iteration.

No worries! Recursion is okay - closing this since #746 was merged.

Thanks!


Support editing 'Working Issue Branch' setting in the Settings editor

I would have expected that I can edit the working issue branch in the Settings editor:

It can actually be a boolean too, which is why you can't edit it here.
I'll break it into two settings.


Please document

At leas a line describing each and every function and what they do. It's missing in the files I've checked.

I think that is one of the purposes of having unit tests. I mean, if I want to know how a class operates I will look at the test. That's how I see it.

Sure it is, if there's some documentation indicating that fact. However, the best way of documenting a function is, well, describing it next to where the function is actually implemented.

But a test is a live thing that evolves with the code it tests and the other thing is easily ignored and can become outdated pretty quickly.

http://elegantcode.com/2010/04/25/if-self-documenting-code-is-the-what-unit-tests-are-the-why/
This article explains what I'm trying to say.

It's pretty clear what you're trying to say; you don't want to write
documentation.
Tests are OK if their coverage is high (which we don't know, because we
have no idea of the coverage of those tests) and if you document it
somewhere saying: "Want to know how to do x or y with this? Check out the
tests here and here".
Besides, it depends on the tests. BDD tests are pretty clear. These are not
so much.
At the end of the day it boils down to: how hard do you want people to try
to do stuff with this? Documentation lowers the threshold, it shows point
of entry, it highlights the path... reading documentation trumps reading
code any time.
But your code, your issue. If you don't agree, just close this.

"It's pretty clear what you're trying to say; you don't want to write
documentation."
That's not what I'm trying to say, I though we were discussing if writing documentation is pointless or not or in how much degree documentation should be written.
And I don't want to continue arguing with you and your bad manners I believe I haven been always polite in my answers taking into account your point of view before submitting an answer but you clearly doesn't intend into discuss anything, you just want to make your point that you believe is the universal truth so I will close this issue and move along.


Charts: layout option

I've noticed that auto-layouting charts by PowerPoint resulted in adding some extra space between chart boundary and plot area. Sometimes, I need the plot area to fulfil the chart absolutely (I expect the chart width to be 1 inch when I set width option to 1.0). It can be done by setting layout.
If the layout option is not specified, the chart layouting works as before, i.e. it's handled by PowerPoint.

Thanks @kajda90 !


re-export instant from generated crates

since Instant is not currently re-exported users need a second dependency on smithy-types

We should also re-export Blob

fixed


Reduce dependencies

AFAICT KrylovKit and Permutations are not used right now, and Combinatorics is just needed for tests so can be test-only dependency

Codecov Report

Merging #13 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #13   +/-   ##
=======================================
  Coverage   61.68%   61.68%
=======================================
  Files          26       26
  Lines        2067     2067
=======================================
  Hits         1275     1275
  Misses        792      792

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 1f5e5ab...1bc6ab9. Read the comment docs.

Agreed this is a very helpful improvement thanks


Crash when CommandBarFlyout closes

Describe the bug
React Native Windows had a problem with keyboard navigation when using the XAML CommandBarFlyout (https://github.com/microsoft/react-native-windows/issues/8306). They fixed this by switching to the MUX CommandBarFlyout, which fixed keyboard navigation but causes a crash when the flyout closes:
From https://github.com/microsoft/react-native-windows/issues/8306#issuecomment-897267971 :
Exception thrown: read access violation.
this->m_sharedState.m_ptr was nullptr.

And call stack:
 	Windows.UI.Xaml.dll!CDependencyObject::NWPropagateDirtyFlag(DirtyFlags::Value flags) Line 3055	C++
 	[Inline Frame] Windows.UI.Xaml.dll!CUIElement::NWSetDirtyFlagsFromChildAndPropagate(DirtyFlags::Value flags, unsigned int) Line 115	C++
 	Windows.UI.Xaml.dll!CUIElement::NWSetSubgraphDirty(CDependencyObject * pTarget, DirtyFlags::Value flags) Line 315	C++
 	Windows.UI.Xaml.dll!CUIElement::RemoveLayoutTransitionRenderer(CLayoutTransitionElement * pLayoutTransitionElement) Line 3575	C++
 	Windows.UI.Xaml.dll!CLayoutTransitionElement::DetachTransition(CUIElement * pTarget, CTransitionRoot * pParent) Line 11339	C++
 	Windows.UI.Xaml.dll!CFocusRectManager::ReleaseResources(bool isDeviceLost, bool cleanupDComp, bool clearRenderData) Line 576	C++
 	Windows.UI.Xaml.dll!CFocusRectManager::UpdateFocusRect(CCoreServices * core, CDependencyObject * focusedObject, CDependencyObject * focusTargetObject, DirectUI::FocusNavigationDirection focusNavigationDirection, bool cleanOnly) Line 645	C++
 	Windows.UI.Xaml.dll!CFocusManager::UpdateFocusRect(const DirectUI::FocusNavigationDirection focusNavigationDirection, bool cleanOnly) Line 2838	C++
 	Windows.UI.Xaml.dll!CCoreServices::NWDrawTree(HWWalk * pHWWalk, CWindowRenderTarget * pRenderTarget, VisualTree * pVisualTree, unsigned int forceRedraw, XRECT_WH * prcDirtyRect) Line 6376	C++
 	Windows.UI.Xaml.dll!CCoreServices::NWDrawMainTree(CWindowRenderTarget * pIRenderTarget, bool fForceRedraw, XRECT_WH * prcDirtyRect) Line 6084	C++
 	Windows.UI.Xaml.dll!CWindowRenderTarget::Draw(CCoreServices * fForceRedraw, unsigned int prcDirtyRect, XRECT_WH *) Line 136	C++
 	Windows.UI.Xaml.dll!CXcpBrowserHost::OnTick() Line 545	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::Tick() Line 1449	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::OnReentrancyProtectedWindowMessage(HWND__ * msg, unsigned int lParam, unsigned __int64) Line 1041	C++
 	[Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::ProcessMessage(HWND__ *) Line 890	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::WindowProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 839	C++
 	Windows.UI.Xaml.dll!CDeferredInvoke::DispatchQueuedMessage(bool * dispatchedWork, bool * hasMoreWork) Line 301	C++
 	[Inline Frame] Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallback() Line 1534	C++
 	Windows.UI.Xaml.dll!CXcpDispatcher::MessageTimerCallbackStatic(void * myUserData) Line 1526	C++
 	CoreMessaging.dll!00007ffa44e153db()	Unknown
 	CoreMessaging.dll!00007ffa44e3c85b()	Unknown
 	CoreMessaging.dll!00007ffa44e1996b()	Unknown
 	CoreMessaging.dll!00007ffa44e18e26()	Unknown
 	CoreMessaging.dll!00007ffa44e17061()	Unknown
 	CoreMessaging.dll!00007ffa44e16e83()	Unknown
 	user32.dll!UserCallWinProcCheckWow()	Unknown
 	user32.dll!DispatchClientMessage()	Unknown
 	user32.dll!__fnDWORD()	Unknown
 	ntdll.dll!00007ffa4a5b0c54()	Unknown
 	win32u.dll!00007ffa48341104()	Unknown
 	user32.dll!GetMessageW()	Unknown
>	Playground-win32.exe!RunPlayground(int showCmd, bool useWebDebugger) Line 406	C++
 	Playground-win32.exe!WinMain(HINSTANCE__ * instance, HINSTANCE__ * __formal, char * __formal, int showCmd) Line 442	C++
 	Playground-win32.exe!invoke_main() Line 107	C++
 	Playground-win32.exe!__scrt_common_main_seh() Line 288	C++
 	Playground-win32.exe!__scrt_common_main() Line 331	C++
 	Playground-win32.exe!WinMainCRTStartup(void * __formal) Line 17	C++
 	kernel32.dll!00007ffa49357034()	Unknown
 	ntdll.dll!00007ffa4a562651()	Unknown

They were able to workaround the issue by making sure that there are no secondary commands:
 flyout.Closing([](winrt::IInspectable const &sender, auto &&) {
    const auto &flyout = sender.as<winrt::Microsoft::UI::Xaml::Controls::TextCommandBarFlyout>();
    flyout.SecondaryCommands().Clear();
  });

Steps to reproduce the bug

Steps to reproduce the behavior:

Launch RNW playground app (here's a branch where the switch to WinUIU2 has been made: https://github.com/lyahdav/react-native-windows/tree/win-ui-2-cbf-with-crash-on-flyout-closing-fix)
File -> Open rntester example
Right-click on textinput at top of screen to open flyout
Click off of flyout

Expected behavior
Flyout closes without crashing.
Screenshots

Version Info

NuGet package version:
[Microsoft.UI.Xaml 2.6.1-prerelease]

Windows app type:

UWP
Win32

Yes
Yes

Windows version
Saw the problem?

Insider Build (xxxxx)

May 2021 Update (19043)
Yes

October 2020 Update (19042)

May 2020 Update (19041)

November 2019 Update (18363)

May 2019 Update (18362)

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Xbox

Surface Hub

IoT

Additional context

I can try to find a smaller example repro.

A simple repro app would be a big help, if you could provide it.  Thanks!

In the steps to reproduce, before step #4, you have to use the keyboard up or down arrows to navigate the CommandBarFlyout first so that there's a focus rect visible. Makes sense given the call stack includes UpdateFocusRect.


Creating database.yml should be optional

My database.yml looks something like this, according to http://12factor.net
default: &default
  adapter:  <%= ENV['RAILS_DB_ADAPTER'] %>
  encoding: <%= ENV['RAILS_DB_ENCODING'] %>
  database: <%= ENV['RAILS_DB_DATABASE'] %>
  host:     <%= ENV['RAILS_DB_HOST'] %>
  password: <%= ENV['RAILS_DB_PASSWORD'] %>
  pool:     <%= ENV['RAILS_DB_POOL'] %>
  username: <%= ENV['RAILS_DB_USERNAME'] %>

So it would be cool if I could instruct the application_ruby cookbook to not overwrite it. I'm injecting the necessary variables via the environment.
If you think this makes sense, I'll prepare a pull request for that.
Thanks,
plu

This is now the case in 4.0.pre. The database config will only be generated if there are database settings given.


[FEATURE] Gravitino python client support backward compatibility

Describe the feature
Gravitino python client need support backward compatibility with Gravitino server.
Can refer to: https://github.com/datastrato/gravitino/issues/2866
Motivation
No response
Describe the solution
No response
Additional context
No response

@noidname01 can you please help to work on this if you have time? You can refer to Java client to understand more about this.

@noidname01 can you please help to work on this if you have time? You can refer to Java client to understand more about this.

Sure, let me take a look.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1640 ms

Resolved: Bofrost.at performance has improved in 9c7d6e5.


change not trigger on disable field -formly

Hi,
I have a disable field,
which changed by a function,
and the change not triggered on this field.
{
type: 'input',
key: 'Amount',
hide:false,
templateOptions: {
maxlength: 15,
minlength: 3,
disabled: true,
pattern: /^\d*[.]\d$/,
                change: (field, $event) => {
                  console.log('change',field);
                  this.func(field)
              },
              },
              hooks: {
                onChanges: (field: FormlyFieldConfig) => {
                    this.func(field)
                },
            },

my code not recognize valuechanges;
valueChange: ({ value }) => this.calcTotalPayment(value),
versiov:
Angular CLI: 8.3.29
Angular: 8.2.14

that works:
hooks: {
onInit: (field: FormlyFieldConfig) => {
field.formControl.valueChanges
.subscribe((e)=>{
this.calcTotalPayment(field)
}
                    );
                  }
                  },

Hi @chavilax, please provide a minimal reproduction if you want to get help quickly.
Also, at the very least, make sure your code is properly formatted and readable.
Are you using a version of formly that's compatible with Angular 8?

Maybe the change in your FormlyFieldConfig is not properly registered by formly. Have you tried reassigning the FormlyFieldConfig instead of only changing a single property?
Again, there's not much I can do without a minimal reproduction.

To subscribe to the form value changes use form.valueChanges:
{
  hooks: {
    onInit: ({ formControl, form }) => form.valueChanges.pipe(tap(
      () => formControl.setValue(this.model.sum),
    )),
  },
},


[Question] Clarification of example.

Sorry to ask you this directly but would you mind clarifying a bit of your example?
mapProps(({ setCounter, ...rest }) => ({
  increment: () => setCounter(n => n + 1),
  decrement: () => setCounter(n => n - 1),
  ...rest
 }))

So far I have this when translated to ES5 by hand.
mapProps(function({setCounter: setCounter, /* ...rest??? */})) {
  return {
    increment: function() { return setCounter(n => n + 1) },
    decrement: function() { setCounter(n => n - 1) },
    // ...rest?????
  }
})

I have three questions.

Is this reasonably accurate?
I get that ...will spead the values in restinto the object but I'm really confused as to where rest comes from.
Why are the arguments wrapped in an object literal? I'm sure I've translated this part poorly.

I don't think many people will find it easy to understand what this example does. Might want to cool it with the ({(({}) => ({}))}) and some of the more advanced ES2015 features.
Many thanks.

Thanks for the feedback!

It's pretty close. The return isn't really needed. You're using arrow functions inside setCounter(), which isn't ES5. The arguments list is wrong, which I'll address below.
The props mapper receives a single argument: the props passed down from the owner. In this case, the props are counter, setCounter, and whatever additional props are passed to <CounterContainer> So if the owner renders <CounterContainer foo="bar" bar="baz" />, then ...rest is an object containing counter, foo, and bar.
This is taking advantage of object destructuring inside the arguments list.

The fixed ES5 example looks like this:
mapProps(function(props) {
  return Object.assign({}, props, {
    increment: function() { props.setCounter(function(n) { return n + 1; }); },
    decrement: function() { props.setCounter(function(n) { return n - 1; }); },
  });
})

As you can see, ES2015 features make a big difference here, especially arrow functions. I think it's fairly safe to assume that most people who would be interested in using Recompose will be mostly familiar with ES2015 features, since Babel is the official solution for compiling JSX.
However, I agree with you that for someone who's not as familiar with things like ES2015, or currying, or function composition, or higher-order components... it may be all a bit overwhelming. Perhaps when I have the time to build a proper docs site, we can do something similar to what @gaearon did with his code snippets for React DnD, which can be toggled between ES5/ES6/ES7.

This is accurate, yes. You can't return an object inline with arrow functions since the compiler can't differentiate between { as the start of an object literal or the start of the function body. To get around that you wrap it in ():
// won't work
const vector = (x, y) => { x, y }

//works
const vector = (x, y) => ({ x, y })

The Notion function({ setCounter, ...reset }) is called destructuring in ES2015. Basically instead of doing
mapProps(function(props) {
  var setCounter = props.setCounter
  var rest = Array.prototype.slice.call(arguments, 1); // rest of the properties of `props`
})

You can just get the properties you want to modify and create a new object that just merges the existing properties with the modified ones.
If it helps, here would be the ES5 non-immutable way:
mapProps(function(props) {
	var setCounter = props.setCounter

  var decrement = function () {
    return setCounter(function (n) {
    	return n - 1
    })
  }

  var increment = function () {
    return setCounter(function (n) {
    	return n + 1
    })
  }

  props.increment = increment
  props.decrement = decrement
  return props
})

Ooh, I know you're trying to be helpful, but please don't modify the props object, even in an example. Don't want anyone to get confused and think that's okay :)
Here's that snippet updated to use a new object:
mapProps(function(ownerProps) {
  var setCounter = ownerProps.setCounter

  var decrement = function () {
    return setCounter(function (n) {
        return n - 1
    })
  }

  var increment = function () {
    return setCounter(function (n) {
        return n + 1
    })
  }

  var props = {}
  props.increment = increment
  props.decrement = decrement
  return props
})


minecraft: install missing gsettings schemas

Motivation for this change
I don't like to contribute unfree software but someone asked me a favor.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS)
Built on platform(s)

[x] NixOS 20.03
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change
[x] Tested execution of all binary files (minecraft-launcher)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

What's this for?

There are few places in the launcher that open the gtk file picker. Without this the program crashes right away.


Multiple Client Multiple Server cross communication using Nginx.

This example shows how multiple clients can communicate with multiple servers while being shared over a single domain i.e localhost:80 using nginx as a reverse proxy.

(See comment on #2305 re: what's the best place to put interesting example projects)

@sjud just as an idea, you could do this without nginx as well, when you use cloudflares Pingora which they officially released last week.
This could be used directly inside the Leptos SSR code and proxy requests to your other apps. With this you have a less complex setup and you could stay Rust only as well.

Superseded by #2500.


Display the output graph/images of my code in the same window

Is it possible to display the output graph/images of my code in the same window just like the attached image?

Image Source

README: Are you suddenly seeing errors related to Alignment flags when starting Gooey? Upgrade your gooey installation to the latest version (pip install -U gooey) to resolve the errors! See this issue for additional information.

Found a bug? Just a friendly heads up, debugging it requires information from you! Make sure the template below is filled out in its entirety.

[ ] OS- UBUNTU
[ ] Python Version : 3.6
[ ] Gooey Version :
[ ] Thorough description of problem

[ ] Expected Behavior
[ ] Actual Behavior

[ ] A minimal code example -- preferably copy/pastable in the issue itself (less time figuring out how to run your code == more time debugging!)
[ ] Screenshot (if visual quirk)
[ ] Anything else you may think will be helpful

Thanks! ^_^

Unfortunately not. Gooey wraps CLI programs, so it's fairly text focused. You could launch additional windows while running, but there's not currently a way, nor any immediate plans to support, displaying any rich media inline.


HUD not showing up when called from Facebook's loginButtonDidCompleteLogin

Hey guys,
I'm not sure if this is a bug in JGProgressHUD, but can anyone give me any thoughts as to why this doesn't work:
    func loginButtonDidCompleteLogin(_ loginButton: LoginButton, result: LoginResult) {
        switch result {
        case .failed(_):
            break
        case .cancelled:
            break
        case .success(_, _, _):
            let hud = JGProgressHUD(style: .dark)
            hud.textLabel.text = "Loading"
            hud.show(in: self.view)

            DispatchQueue.main.asyncAfter(deadline: .now() + 4.0) {
                hud.dismiss()
                self.performSegue(withIdentifier: "loggedInSegue", sender: self)
            }

            break
        }
    }

If I call hud.show(in: self.view) from viewDidLoad it works fine, but in this callback it does not work. It doesn't throw an error. The segue is performed as expected, but no HUD.
I've verified that in both cases, self.view is the same object (i.e. Optional(<UIView: 0x7ffd3450fe40; frame = (0 0; 414 736); autoresize = W+H; layer = <CALayer: 0x60000003ce20>>) )
Thanks in advance!

You're probably running this on a background thread.


Deliver beanvalidation-spec Specification Version update for Jakarta EE 9

Is your feature request related to a problem? Please describe.
Jakarta EE 9 is the next major release, with the main focus of moving from the javax namespace to the jakarta namespace.
Describe the solution you'd like
This issue will be used to track the progress of this work effort via the Jakarta EE 9 Project board.
Additional context
Jakarta EE Specification Process
Eclipse Project Handbook
Eclipse Release Record for Jakarta EE 9
ToDo

[x] Create Eclipse Release Record in your respective Jakarta Specification Project.
Most Component Release Records will just reference the Jakarta EE 9 Platform Release Plan.  But, if your Component deviates at all from the Platform Release Plan, then a description of the changes will be required in the Release Record.
[x] Initiate a ballot for your Jakarta Release Record/Plan.
Again, if your component is only doing the required minimum as defined by the Jakarta EE 9 Platform Release Plan, then no separate ballot is required.  You are already approved.  But, if your component deviates from the Platform Release Plan, then you will need to initiate your own ballot as defined by the Jakarta EE Specification Process.
[x] Jakarta-ize your Specification document (if applicable)
Many of the Jakarta EE components now have the source for their Specification documents.  It is strongly recommended that these Specification documents are properly updated to represent Jakarta EE instead of Java EE.  Some helpful instructions are documented here.
[x] javax -> jakarta Spec updates
If your component has Specification source, then all javax package references need to be updated to use jakarta package references.
[x] javax -> jakarta API updates
Your component APIs need to move from using the javax namespace to using the jakarta namespace.
[ ] Release Candidate (RC) of Jakarta API in Maven Central
A Release Candidate of your component API should be pushed to Maven Central as soon as humanly possible.  This will allow other dependent components to utilize your APIs as they are updating their APIs.  Multiple revisions of these Release Candidate APIs are allowed (and probably expected) during the development cycle.
[ ] javax -> jakarta TCK updates
Your component TCK needs to be updated to use the jakarta namespace.
[ ] javax -> jakarta Compatible Implementation updates
Your compatible implementation that will be used to demonstrate completeness of the Specification needs to be updated to use the jakarta namespace.
[ ] Final Jakarta API available in Staging Repo
When ready, your final version of the API needs to be staged to get ready for the PR review and approvals.
[ ] Draft Specification and Apidoc PRs ready for review
Like we did for Jakarta EE 8, draft PRs need to be created and reviewed in preparation for the final ballots.
[ ] Release Review Ballot started
Each Jakarta EE component will need to initiate a separate Release Review ballot after proper reviewing has completed.  To be clear, there will not be a blanket Release Review for all of Jakarta EE 9 like we did for the Plan Review.  Each component needs a separate Release Review.

Hi @kwsutter ,
What's the planned schedule for this?

Per the overall Platform Release Plan, June 2020.  But, the individual components (ie Bean Validation) would have to be done well before that.

Hi Kevin,

well before that.

Is there any way to quantify that "well"? That'd really help for our
planning here. E.g. is there a timeline for doing candidate releases etc.?
Good news is that the BV spec document is (largely, hopefully, anyways)
already Jakarta-ized as part of Jakarta EE 8. I don't think we'll have any
bandwidth for any actual spec work in terms of new features in the given
time frame.

Is there any way to quantify that "well"?
The following spreadsheet is trying to provide some target timelines:
https://docs.google.com/spreadsheets/d/1EN5UEzxFV1Buk7yqdQAweaynWJ3UNn2BjN7blXn9vh4/edit#gid=0

For the early wave specs like BV, 2020-03-20 is the current target for an initial RC release. The vast majority of the EE9 specs will not have any new features as that is the plan. Introducing new features would require a full release plan by the spec project and approval, and this was decided by the platform group to not be what was wanted.

A random thought just coming to my mind as I was looking at some code: is there already an agreed on namespace for XML descriptors under Jakarta? E.g. BV uses http://xmlns.jcp.org/xml/ns/validation/configuration. Is there something standardized Jakarta pattern already that'd replace that?

https://projects.eclipse.org/projects/ee4j.bean-validation/releases/3.0

Once we get a Milestone or RC API jar file with the Jakarta namespace change, could we get a Notecard inserted into the Milestone/RC column of the Project Board?  Since Bean Validation is a Wave 1 deliverable, it would be good to get these available.  Thanks!

Yes, I'm waiting on a permission issue in the CI to get the release out. If
I don't get a response soon, I'll do the release and tag by hand since that
is what is currently failing.
On Tue, Feb 4, 2020 at 3:46 PM Kevin Sutter<EMAIL_ADDRESS>wrote:

Once we get a Milestone or RC API jar file with the Jakarta namespace
change, could we get a Notecard inserted into the Milestone/RC column of
the Project Board
https://github.com/orgs/eclipse-ee4j/projects/17#column-7346435? Since
Bean Validation is a Wave 1 deliverable, it would be good to get these
available. Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/eclipse-ee4j/beanvalidation-spec/issues/253?email_source=notifications&email_token=AACRDMXISLU4R72I7JCF3HTRBHO5DA5CNFSM4KGUGQ3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZJZ2Q#issuecomment-582130922,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACRDMTQGX3KUAY2XKOHDWLRBHO5DANCNFSM4KGUGQ3A
.

I have done a 3.0.0-M1 by tagging the repo outside of the CI environment:
https://jakarta.oss.sonatype.org/content/repositories/staging/jakarta/validation/jakarta.validation-api/3.0.0-M1/
It has been release to maven central so should be available soon.

@gsmet Released an early version of Hibernate Validator that implements BV 3.0.0-M1.
https://repo1.maven.org/maven2/org/hibernate/hibernate-validator/7.0.0.Alpha1/


Poor image quality

Even without set .compress() or setting .compress(0) the image resulting looks like it WAS indeed compressed.
Digging I found out that this happens due to CompressionProvider.kt:172 which compress 10% of any jpg without had been instruct to !
There are any reason to this?
    // Check file format
    var format = Bitmap.CompressFormat.JPEG
    var quality = 90
    if (file.absolutePath.endsWith(".png")) {
        format = Bitmap.CompressFormat.PNG
        quality = 100
    }

Kudos for the amazing library, anyway!

@Dinosane2 Good Finding buddy, I will make it 100.
Thank you!


Does pytorch-lightning suppot dynamic plot during training like https://github.com/stared/livelossplot in keras

🚀 Feature

Does pytorch-lightning suppot dynamic plot during training like https://github.com/stared/livelossplot in keras
Motivation

A dynamic plot of loss or metrics is quite useful for model training
Pitch

Alternatives

Additional context

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.

Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.

Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

cc @borda @awaelchli @edward-io @ananthsub @rohitgr7 @kamil-kaczmarek @Raalsky @Blaizzy

Have you tried tensorboard or any of the other loggers?

@wangbingnan136 I've created this Lightning logger for LiveLossPlot:
from lightning.pytorch.loggers.logger import Logger
from lightning.pytorch.utilities import rank_zero_only
from livelossplot import PlotLosses

class LiveLossPlotLogger(Logger):
    def __init__(self):
        super().__init__()
        self.liveloss = PlotLosses()
        self.current_metrics = {}

    @property
    def name(self):
        return "LiveLossPlotLogger"

    @property
    def version(self):
        return "0.1"

    @rank_zero_only
    def log_hyperparams(self, params):
        pass

    @rank_zero_only
    def log_metrics(self, metrics, step):
        if "val_acc" in metrics:
            self.current_metrics["val_acc"] = metrics["val_acc"]
            self.current_metrics["val_loss"] = metrics["val_loss"]

        if "train_acc_epoch" in metrics:
            self.current_metrics["acc"] = metrics["train_acc_epoch"]
            self.current_metrics["loss"] = metrics["train_loss_epoch"]

            self.liveloss.update(self.current_metrics)
            self.liveloss.send()

            self.current_metrics = {}

Here is my usage example:
    def training_step(self, batch, batch_idx):
        x, y = batch
        logits = self(x)

        loss = self.loss_fn(logits, y)
        self.log("train_loss", loss, prog_bar=True, on_epoch=True)  # this automatically logs `train_loss_epoch` at the end of epoch

        return loss

    def validation_step(self, batch, batch_idx):
        x, y = batch
        logits = self(x)

        loss = self.loss_fn(logits, y)
        self.log("val_loss", loss, prog_bar=True)

        preds = torch.argmax(logits, dim=1)
        acc = self.accuracy(preds, y)
        self.log("val_acc", acc, prog_bar=True)

        return loss

I'm not sure where the train_acc_epoch comes from as I am not calculating it anywhere, but I guess you can add it like this:
acc = ...  # calculate here
self.log("train_acc_epoch", acc, on_step=False, on_epoch=True)

Here is what the plot look like:


python3Packages.sanic: disable more flaky tests

ZHF #122042
Disable two timeout tests that hang forever on Darwin.
Verified a resulting app still works (on both Darwin and NixOS).

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 125287 at 7c304b11 run on aarch64-linux 1

15 packages built successfully:

dyndnsc
python38Packages.entrance
python38Packages.entrance-with-router-features
python38Packages.json-logging
python38Packages.pytest-sanic
python38Packages.sanic
python38Packages.sanic-auth
python38Packages.sanic-testing
python39Packages.entrance
python39Packages.entrance-with-router-features
python39Packages.json-logging
python39Packages.pytest-sanic
python39Packages.sanic
python39Packages.sanic-auth
python39Packages.sanic-testing


Socket.io client side

@ProPheT777  ¿i can use socket.io in client side? i can subscribe from socket.io to server topics????

Socket.io is for NodeJS Web Application, GosWebSocketBundle is for PHP Socket, with WAMP server. ;)

humm you can use any client which support wampV1 so if socket io over wamp client exist it will work.
@navalex their is no language specification, since they communicate over a common protocol, application with wamp client can communicate to each other (java, python, js, php etc) Like php can speak to nodejs throught socket io websocket


Create teachers-shaping-their-students-wellbeing.md

Trello card
Context
Changes proposed in this pull request
Guidance to review

@MylesJarvis just following up on this PR from early July - is it still needed/what are the next steps?

@MylesJarvis just following up on this PR from early July - is it still needed/what are the next steps?

I believe @emilytraff and her team were looking at reaching out to the person featured int he blog to confirm they were okay with it being on the site. I don't believe I got an update before I moved off the team, so one to check in with them!

Hi @gemmadallmandfe - we've struggled with this one as the person who spoke to the featured teachers has been on sick leave for quite some time - hopefully they'll be back in soon and we can get the teachers' contact details.

No problem @emilytraff - will leave this as is in github as Draft so you can revisit when appropriate


next releases, breaking changes

In this thread we collect all the things that we should know for the next releases
name_id_policy_format
https://github.com/IdentityPython/pysaml2/commit/0c1873da1f280d4921b9c9b3da9126388d75e701
https://pysaml2.readthedocs.io/en/latest/howto/config.html#name-id-policy-format

Arbitrary entity attributes
https://github.com/IdentityPython/pysaml2/commit/e5d0b4f0760144430d885165d41d777b59ef5d6a

regarding name_id_format_policy, I've just checked it and it to work. example here:
https://github.com/peppelinux/Django-Identity/blob/7b0dedbd3bced2a9a9b73a2506d7f87b7a9fca8c/djangosaml2_sp/djangosaml2_sp/djangosaml2_sp/sp_pysaml2_satosa.py#L43

Set requested attributes per authn request
IdentityPython/pysaml2#691

released
https://github.com/knaperek/djangosaml2/releases/tag/v1.0.0


Add default-fee-rates-and-wallet-privacy to bitcoinplusplus/onchain-privacy

This PR adds Default Fee Rates and Wallet Privacy transcript to the bitcoinplusplus/onchain-privacy directory.

Hey @MomboteQ, thank you for your submission and apologies for taking a bit to get to this! It appears that the transcript was submitted without any edits or changes made.
As we continuously strive to enhance productivity, it's become evident through recent reviews that we haven't effectively communicated our expectations to reviewers. I anticipate that we'll soon provide more comprehensive Review Guidelines to clarify expectations. In the meantime, please read the Review Guidelines in https://github.com/bitcointranscripts/bitcointranscripts/issues/348, and you can see an examples of 'right editing' in https://github.com/bitcointranscripts/bitcointranscripts/issues/335.
Would you like more time to take another shot at this?

The transcription included minor changes. The default transcription was virtually error-free, so I corrected minor errors. Why should I write a transcription from scratch even though the one I received from you was virtually flawless? Of course, I corrected what was wrong

Hey @MomboteQ, thanks for your response! Apologies if there was any confusion in my previous message. I didn't intend to imply a need for a complete re-write of the virtually error-free transcript. I appreciate your effort in addressing the minor errors.
The primary aim of my previous comment was to encourage a review of our 'new' review guidelines, emphasizing completeness and readability in the final output. I hope you'll take a moment to glance through the Review Guidelines that I linked to, aiming for a comprehensive and reader-friendly transcript. Your contributions are truly appreciated.

Hey @MomboteQ, just a friendly reminder about the refined review guidelines I previously shared. They're aimed at helping reviewers like yourself understand our expectations, ensuring a consistent level of transcript quality.
Since we haven't received any response from you, I'll proceed to close this submission. It provides an opportunity for others to review or for you to revisit. If you have any questions or need further clarification, feel free to reach out. Thanks!


Feature Request: Allow specifying deployment strategy

Is your feature request related to a problem? Please describe.
We have a couple of applications that should never have more than one instance running.  With ACA it is not possible to use the strategy of 'Recreate' to achieve this.
Describe the solution you'd like.
Allow setting deployment strategy on a container
Describe alternatives you've considered.
Instead of doing an update of the container version for updates - would have to completely destroy and recreate it.
Additional context.
Might as well offer being able to set all the strategies
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
https://spot.io/resources/kubernetes-autoscaling/5-kubernetes-deployment-strategies-roll-out-like-the-pros/#a2

Has anybody found a way to do this? Seems like quite a critical feature, since using any SQL database can give a lot of problems if the deployment cannot be set to something like "Recreate" in kubernetes

We are facing the same challenge and would benefit greatly if this would be implemented.
We have several background jobs in our app (such as database cleanup and notification dispatching) that must run as a singleton. Our workaround is that we implement the leader election pattern within the application logic. Therefore, we can ensure that only one instance (the designated "leader") is actively processing the jobs.
If we could specify the deployment strategy, we could remove this additional complexity and move these jobs to a separate container app with the "Recreate" strategy and be guaranteed that at most one instance is running at any given time.


refactor: print "Finished game ..." alongside the scoreline to prevent chaotic output

prevent cases where finished game is printed twice before the scoreline, as this may affect fishtest parsing.
prevents this:
Finished game 64 (Engine2 vs Engine1): 1-0 {Black loses on time}
Finished game 63 (Engine1 vs Engine2): 1-0 {Black loses on time}
Score of Engine1 vs Engine2: 38 - 25 - 0  [0.603] 63
Started game 67 of 100 (Engine1 vs Engine2)
Score of Engine1 vs Engine2: 39 - 25 - 0  [0.609] 64

I can confirm that with that patch the fishtest worker runs without asserts triggered (while with master it still does).