Truncate summary content

Summary content currently does not truncate text, which can cause a large amount of duplication if feeds without adding a lot of value. I've opened a related issue against core which, if fixed there, will eliminate the need for this issue: https://github.com/jekyll/jekyll/issues/6215

Can you provide more detail?
If a user provides an explicit summary, we should only output part of it??

Examples are good. Here's an example summary in a feed I have:
<summary type="html">The Imperial Champlains were on of the first major African American street gangs in Chicago.  In 1948 or 1949 the Imperial Champlains formed in between the intersections of 16th Street and Trumbull and 16th and Homan in the North Lawndale neighborhood.  The Champlains were a breakaway group from the Egyptian Cobras that formed in 1948 in the community to deal with racism from angry Jewish youths.  I do not know why some of the Cobras broke away to start the Champlains but I do know that both gangs would grow to become the largest gangs in North Lawndale as they fought each other viciously for control of the neighborhood.  By 1955 more gangs began breaking away from the Champlains and the Cobras causing a major gang war on the streets of North Lawndale which prompted many more members of this mostly Jewish community to leave the neighborhood, the Champlains still continued to grow despite losing members to other gangs, the newer members were Junior Champlains. By 1957 the Chicago police had identified and targeted the Champlains and began arresting several members of many gangs in the neighborhood and the Champlains were the angriest.  Many of the boys were taken to the Illinois Youth Center in St. Charles to serve out sentences.  It was in this facility where Edwin Perry got together with 6 members of the Imperial Champlains to create the Vice Lords.  In 1958 when the Vice Lords hit the streets of North Lawndale they aggressively attempted a complete takeover of the whole North Lawndale neighborhood, rivals like the Imperial Champlains stood in their way. Vice Lords, Champlains and Egyptian Cobras spread their influence into other west side neighborhoods like East Garfield Park, West Garfield Park and the Near West Side in the 1960s.  The Imperial Champlains set up operations in the Grace Abbott housing projects at 14th and Ashland and Henry Horner projects in the Near West Side neighborhood in the 1960s.  The Champlains continued to fight Cobras and Vice Lords but it was a losing battle by the late 1960s as the gang continued to shrink in size.  In the early 1970s the Imperial Champlains at last fully assimilated with the Vice Lords and became a branch known as “Imperial Vice Lords.” The Imperial Vice Lords landed in the Austin neighborhood at Chicago Avenue and Austin Avenue in the early 1970s.  In this community the Imperial Vice Lords met another Vice Lord branch led by Bennie Lee called the “Insane Vice Lords” from Madison Street and Cicero Avenue and the two branches became close.  In the year 1975 the leader of the Insane Vice Lords Bennie Lee was incarcerated and leadership of the Imperial Vice Lords was also no longer existent, it was at this point that both IVL gangs came together to form the “Imperial Insane Vice Lords,” and there was a new leader of this Vice Lord group Sidney “Don Sid” “Prince Symphony Sid” “Prince Shy Ku Auton” Hughes that led the organization and personally oversaw all operations in the Grace Abbott IIVL buildings until 1982 when he was convicted of rape charges.  Afterward Mathew “DJ” Williams took over as the leader of all operations for 20 years.  Under Williams’ leadership the IIVLs grew incredibly on the west side of Chicago mainly in Austin neighborhood and the public housing projects on the west side.  Williams also opted to allow all races into the organization in 1985 when the Vice Lord nation bestowed that option on all branches.  The IIVLs opened operations in the north side neighborhoods of Uptown and Albany Park in the 1980s and 1990s.  The IIVLs also opened on the south side at 71st and Jeffery in the South Shore neighborhood and they also opened in the suburbs of Elgin and Joliet. The Imperial Insane Vice Lords still operate in large numbers presently; therefore, the spirit of the Imperial Champlains is still alive with the IIVL organization. Please send in 1940s, 1950s, 1960s and 1970s pics! Questions: What exact year did the Champlains start, was it 1948 or 1949? Who was the founder of the Champlains and what happened to him? Who were the Champlain leaders from the 40s to the early 1970s and what years were they in charge? What year did Champlains open in the Henry Horner and Grace Abbott projects? What exact year did Champlains became Imperial Vice Lords? Who was the first Imperial Vice Lord leader and what happened to him? What year did Imperial Vice Lords open up in the Austin neighborhood at Chicago Avenue and Austin? What year did the north side sections open? What year did 71st and Jeffery open? What year did Elgin open? What year did Joliet open?</summary>

What do you think? A little excessive?

If this is what the user has provided as a summary, I think it is our job to output it as is.

User did not provide as summary. Jekyll provided as excerpt.

Seems there won't be an appetite here to make decisions for users, perhaps due to long-held use of this plug-in. I'll close this and hope core can trickle down some reasonable opinion on truncation for post excerpts.

User did not provide as summary. Jekyll provided as excerpt.

I understand now what you are saying. If a user did not provide a custom excerpt, the one generated by Jekyll could possibly be huge.
That is a valid concern, but one that should be tackled in Jekyll Core. Since we have no way of knowing if the excerpt was generated or explicitly provided, I feel like we shouldn't be monkeying with it on our end.
Thank you for your enthusiasm @jhabdas. I certainly do not mean to discourage you from making Jekyll better for all of us.

Knowledge and wisdom are fuel. And I know you have Hawk eyes and appreciate you sharing them.


[explore] adding y_axis_bounds to force Y axis bounds

a few comments but generally looks good! nice control addition!

Handled comments, merging.


page next, prev locale label not work(only doc)

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Prerequisites

[X] I'm using the latest version of Docusaurus.
[X] I have tried the npm run clear or yarn clear command.
[X] I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
[ ] I have tried creating a repro with https://new.docusaurus.io.
[X] I have read the console error message carefully (if applicable).

Description
Hello,
pagenavigator locale not work on Docusaurus v.3.3.2
only doc is not work

"sidebar.javaSidebar.doc.지원 환경": {
  "message": "サポート環境",
  "description": "The label for the doc item 지원 환경 in sidebar javaSidebar, linking to the doc java/supported-spec"
},

but category is work

"sidebar.javaSidebar.category.JAVA 모니터링": {
  "message": "JAVAモニタリング",
  "description": "The label for category JAVA 모니터링 in sidebar javaSidebar"
},

Reproducible demo
Our repository is https://github.com/whatap/whatap-docs
Our site: https://docs.whatap.io
Steps to reproduce
This problem occurs when yarn start and yarn build in version v3.3.2.
Expected behavior
Hopefully the page links (prev, next) at the bottom of the screen will apply the correct locale.
Actual behavior
Only when type is doc will you not be able to get the translated value in current.json .
Your environment

Public source code:
Public site URL:
Docusaurus version used:
Environment name and version (e.g. Chrome 89, Node.js 16.4):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):

Self-service

[ ] I'd be willing to fix this bug myself.

Yes it's a bug, duplicate of:

https://github.com/facebook/docusaurus/issues/8118
https://github.com/facebook/docusaurus/pull/8123


🐛 Bug Report: AzureDevOpsEntityProvider doesn't handle project with space in name

📜 Description
When the project contains a space e.g. "Our Project" the code search doesn't return anything. Upgrading from the last version of the provider entities are removed as previously this was not an issue.
👍 Expected behavior
It should return data. It seems that in this case searchText contains something like proj:Our Project which looks for a project called "Our". It could have some logic to correctly quote the project if necessary and not already done.
👎 Actual Behavior with Screenshots
The provider does not return any entities.
👟 Reproduction steps
This is fairly scant but set project in a azureDevOps integration to a value with a space.
📃 Provide the context for the Bug.

We recently upgraded to the latest version of the provider and an integration which was previously working stopped working and users reported entities "disappeared"
Given wildcard projects are now supported this might not be much of an issue as most users will probably just use that.
We provide backstage as a service for others and we do not use Azure so testing a PR e2e isn't something we can easily do.

🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

Ah, yeah that looks like an oversight. Happy to review a PR that addresses it! 🙏

See also https://github.com/backstage/backstage/pull/16605


Could this be repurposed as a TTS model?

I notice this model design is very similar to Bark. Just more efficient. Once training code is released. If pre-trained with a corpus of speech pairs, wouldn't this make a great TTS model? until, someone[lucidrain hint hint] builds out voicebox. I only real difference in this model's architecture, is that bark is baed on nanogpt I belive. Thoughts?

i tried to do that on musicgen_trainer but train_loss can not converge

Just a wee note to say that yes, it can be repurposed as a TTS model. I used Audiocraft as my codebase for this paper: https://arxiv.org/abs/2402.01912


Finish music bot

It was requested a while ago and would be pretty cool. Role based with cool redis data types.

Making progress

gonna let it stay experimental for now


Detect zsh using ZSH_VERSION environment property

SHELL variable content is not reliable, use ZSH_VERSION instead https://stackoverflow.com/questions/9910966/how-to-get-shell-to-self-detect-using-zsh-or-bash

ZSH_VERSION is not available in non-interactive shells.


messages token count algorithm is different from the one in openAI official cookbook

On this line: https://github.com/Cainier/gpt-tokens/blob/main/index.js#L170
For model "gpt-3.5-turbo-0613", at line 170, the code is using tokens_per_message = 4, tokens_per_name = -1
but in openAI's cookbook code: https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb , in the num_tokens_from_messages function (snippet IN [14]) , you can see it is using tokens_per_message = 3, tokens_per_name = 1
And from their code, gpt-3.5-turbo-0301 and gpt-3.5-turbo-0613 are using different token-count method, but code in this repo are using the same method: https://github.com/Cainier/gpt-tokens/blob/main/index.js#L164

Thanks, you are right, I just checked openAI's cookbook code [14] and fixed this issue in code v1.0.10


Using conda for workflow dependencies

Hi Cedric,
I managed to get all the dependencies for the 16S pipeline resolved using the python-based conda package manager, instead of relying on the environment modules on the Manoa HPC plus the sources for all the R and python packages that you included in the repository.
It's very simple to use and explained in the README_conda.md under the 16S pipeline.
In my opinion, it's a more flexible and elegant way of resolving dependecies. For example, if you want to add another R package that has multiple dependencies - it's just a matter of adding one word to the build_conda_env script.
Anyway, have a look and see if you want to include this in your workflow repository.
Regards,
Razvan

BTW, something you might want to know about.
The latest version of mothur available in the bioconda channel (1.43.0) is not working with the current version of the workflow. I spent a few days trying to fix it (it was failing at step 12-TaxaFilter), but then I gave up and downgraded to the next available version (1.42.3) and it worked.
Mothur has a bad habit of changing the file names that come out of certain functions and the filenames are kinda crazy anyway (I noticed you had a step that is simplifying them because of that, but it made debugging the error even harder).
This problem is solved now by requiring a specific version of mothur, but you might want to look into getting some unit testing in place (i.e. making sure each mothur function call outputs files as expected).
I actually ran into a similar problem when I was testing mothur and trying to follow the SOP for 454 sequencing, which was on their website - it didn't work with the mothur version available back then!
I sent the message to the author, but got no reply. Anyway, it seems that there's a pattern and it most likely won't go away :)
Thought you might want to know that.

I actually spent hours trying to debug this version problem with mothur, I wish I saw your message earlier. I opened  couple issues on their GitHub and they are currently working on it. In the meantime, my fix is just to use a different version of Mothur for some steps. But eventually, they will have a stable enough version I can use for good! It's not completely stable for now (because of Mothur), but I should be able to release it soon.
I also created a Dockerfile to make the pipeline more reproducible and easier to install locally.


Launch issue

Every time I build phobos and launch it I get this crash error
java.lang.UnsatisfiedLinkError: no jassimp in java.library.path

do you have ModelTotem on? That happens to me whenever I use it

do you have ModelTotem on? That happens to me whenever I use it. Just turn it off on your config and it should launch fine

nah It just happens when I launch it

i know how to fix it add a default config into modules then add your config(change the name) then go into any servers and type +config module load yourconfigname

did this work @razedftw

did this work @razedftw

I haven't tried it yet i'm not home

kk it worked for me

kk it worked for me

I got home and I couldnt like even launch it so I couldnt try it

kk it worked for me

I got home and I couldnt like even launch it so I couldnt try it

if it doesnt work add me on discord NotRockysAly#6534

Send full crash log

Send full crash log

---- Minecraft Crash Report ----
WARNING: coremods are present:
Contact their authors BEFORE contacting forge
// Surprise! Haha. Well, this is awkward.
Time: 4/16/22 10:44 PM
Description: Initializing game
java.lang.UnsatisfiedLinkError: no jassimp in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at jassimp.JassimpLibraryLoader.loadLibrary(JassimpLibraryLoader.java:63)
at jassimp.Jassimp.loadLibrary(Jassimp.java:317)
at jassimp.Jassimp.importFile(Jassimp.java:124)
at jassimp.Jassimp.importFile(Jassimp.java:108)
at me.earth.earthhack.impl.util.render.model.ModelUtil.loadModel(ModelUtil.java:123)
at me.earth.earthhack.impl.managers.client.FileManager.handleModelDir(FileManager.java:146)
at me.earth.earthhack.impl.managers.client.FileManager.init(FileManager.java:73)
at me.earth.earthhack.impl.managers.client.FileManager.(FileManager.java:47)
at me.earth.earthhack.impl.managers.Managers.(Managers.java:78)
at me.earth.earthhack.impl.Earthhack.init(Earthhack.java:29)
at net.minecraft.client.Minecraft.handler$initHook2$zzk000(Minecraft.java:3507)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:536)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Client thread
Stacktrace:
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at jassimp.JassimpLibraryLoader.loadLibrary(JassimpLibraryLoader.java:63)
at jassimp.Jassimp.loadLibrary(Jassimp.java:317)
at jassimp.Jassimp.importFile(Jassimp.java:124)
at jassimp.Jassimp.importFile(Jassimp.java:108)
at me.earth.earthhack.impl.util.render.model.ModelUtil.loadModel(ModelUtil.java:123)
at me.earth.earthhack.impl.managers.client.FileManager.handleModelDir(FileManager.java:146)
at me.earth.earthhack.impl.managers.client.FileManager.init(FileManager.java:73)
at me.earth.earthhack.impl.managers.client.FileManager.(FileManager.java:47)
at me.earth.earthhack.impl.managers.Managers.(Managers.java:78)
at me.earth.earthhack.impl.Earthhack.init(Earthhack.java:29)
at net.minecraft.client.Minecraft.handler$initHook2$zzk000(Minecraft.java:3507)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:536)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Looking into it. Could someone provide me with a simple 3d model to test the model totem?

For now just clear earthhack/models

Looking into it. Could someone provide me with a simple 3d model to test the model totem?
zero-two.zip
Not sure if that will work but it was the only one I could find.

@Sandwich4780 ty, worked
Should be fixed, you can find a jar here.
In the future the model stuff might get moved to plugin as it bloats the jar quite a bit.
I'll leave this open for a bit, if you have problems or if it works please tell me here.

@Sandwich4780 ty, worked
Should be fixed, you can find a jar here. In the future the model stuff might get moved to plugin as it bloats the jar quite a bit.
I'll leave this open for a bit, if you have problems or if it works please tell me here.

 I'm Minecraft, and I'm a crashaholic.
Time: 4/17/22 7:15 PM
Description: Initializing game
java.lang.ExceptionInInitializerError
at me.earth.earthhack.impl.Earthhack.init(Earthhack.java:37)
at net.minecraft.client.Minecraft.handler$initHook2$zzk000(Minecraft.java:3507)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:536)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.NullPointerException
at me.earth.earthhack.impl.util.render.model.ModelUtil.loadModel(ModelUtil.java:125)
at me.earth.earthhack.impl.managers.client.FileManager.handleModelDir(FileManager.java:146)
at me.earth.earthhack.impl.managers.client.FileManager.init(FileManager.java:73)
at me.earth.earthhack.impl.managers.client.FileManager.(FileManager.java:47)
at me.earth.earthhack.impl.managers.Managers.(Managers.java:78)
... 11 more
A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head --
Thread: Client thread
Stacktrace:
at me.earth.earthhack.impl.Earthhack.init(Earthhack.java:37)
at net.minecraft.client.Minecraft.handler$initHook2$zzk000(Minecraft.java:3507)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:536)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

i cant open the mc


InlinePickerRowFormer resets "selectedRow" back to index 0

Hi,
Line 79 of this file
Former/Former/RowFormers/InlinePickerRowFormer.swift
causes not being able to set selectedRow to different index:
}.configure{                 $0.pickerItems = SOME_COLLECTION_WITH_100_ITEMS                    $0.selectedRow = 2 //<--- This is always overwritten by line 79 back to 0             }
Thanks

We can have a
selectedRow = 0 only when selectedRow >= pickerItems.count
IMO that would be a better approach for the fix that you have employed for index out of range

I will look into this and get back to you shortly

any news on this? same issue here. and thanks a lot for this nice piece of software!

@benwalch Do you found a way to fix it?


Spi does not implement SpiDevice?

Bug description
I'm trying to write to an SD card with the embedded-sdmmc crate (latest verion: 0.8.0), which requires a struct that implements the SpiDevice<u8> trait. Now the documentation of /esp-hal/src/spi/master.rs mentions the SpiDevice trait, but after grepping this repository I found that this doc string is in fact the only instance of the word SpiDevice ever appearing in the esp-hal repo. Should the Spi struct not implement the SpiDevice trait?
I have used the embedded-sdmmc before with an earlier version of esp-hal and this worked without a problem back then.
To Reproduce
For reference, this is the code that I would expect to work:
use esp_backtrace as _;
use esp_hal::{delay::Delay, gpio::Io, prelude::*, spi::{master::Spi, SpiMode}};
use embedded_sdmmc::SdCard;

#[entry]
fn main() -> ! {
    let peripherals = esp_hal::init(esp_hal::Config::default());
    let io = Io::new(peripherals.GPIO, peripherals.IO_MUX);

    let cs = io.pins.gpio7;
    let sck = io.pins.gpio8;
    let miso = io.pins.gpio9;
    let mosi = io.pins.gpio10;
    let spi = Spi::new(peripherals.SPI2, 20_000u32.kHz(), SpiMode::Mode0).with_pins(sck, mosi, miso, cs);

    let delay = Delay::new();
    let sdcard = SdCard::new(spi, delay);

    loop {}
}

Expected behavior

Environment

Target device: [e.g. ESP32-S3]
Crate name and version: [e.g. esp-hal 0.20.0]

You want ExclusiveDevice

See also https://github.com/esp-rs/esp-hal/blob/v0.21.1/esp-hal/src/spi/master.rs#L21


ListView inside QustomDialog

I create a QustomDialog and then I use setContentView to inflate a new layout, which contains a ListView.
How can I reach that ListView?
final QustomDialogBuilder chooseDeliveryCustomerDialog = new QustomDialogBuilder(getActivity());
chooseDeliveryCustomerDialog.setCustomView(R.layout.custom_add_associate, getActivity());
final AlertDialog dialog = chooseDeliveryCustomerDialog.create();
ListView customerList = (ListView) dialog.findViewById(R.id.custom_associate_listView);
This are the steps I do.
With every item dialog.findViewById(...) works fine, but with ListView it gives NullPointer.

The answer to my question is:
before findViewById(..) command, I have to show the dialog with dialog.show().
@Logan676 for your problem I think you should create a layout and inflate it to the QustomDialog using qustomDialog.setCustomView(R.layout.your_layout), then create and show the relative AlertDialog and last, after dialog.show(), manage the onClickListener or onItemClickListener on the List.


Update minimum cmake version (#4076)

Resolves issue #4076
This commit updates the minimum cmake version 3.16, since 3.5 and below will be deprecated.

A side not to those new to cmake versioning, it goes as follows 3.1, 3.2... 3.5... 3.9, 3.10, 3.11 etc. Therefore keep in mind that 3.5 is actually lower than 3.16.

coverage: 100.0%. remained the same when pulling 20393d339a84ad3e0ef4bc3ee505e0dc4187c703 on Nauroze:update-min-cmake-version into 5d2754306d67d1e654a1a34e1d2e74439a9d53b3 on nlohmann:develop.

So @nlohmann, I think this change is good enough and supports this CMake build script until CMake 3.27 is deprecated. Can this be merged?

I also think this PR is a pure improvement.

The changes in this PR are insufficient, there are still various CMakeLists.txt files in the tests area which need updating as well. The shift all the way up to 3.27 also looks a bit risky to me to take as a single jump all at once. It would take a deeper analysis of all the policies between 3.1 and 3.27 to be sure none of them adversely affect the project.
I just open #4112 before seeing this PR here. My PR only lifts the upper range to CMake 3.14, but I did go through the project's CMake logic and I believe the policy changes are fine between 3.1 and 3.14. I also updated the tests area. Therefore, I recommend closing this PR here in favour of #4112, which is a safer, more complete change.

@Nauroze What do you think of #4112?

@Nauroze What do you think of #4112?

@nlohmann Yeah I'm good with that, it's more thorough as it is changing the CMakeLists.txt in the test directories as well.
Something to keep in mind: Since it uses 3.14 we have to look at changing this again in a few years if any future deprecation warnings come out. 3.27 would be a change for the long run. But I do understand picking 3.14 was a conservative choice and keeping it safe.

Closed in favor of #4112.


Update XTheadVector Intrinsic List

Add XTheadVector Unit-Stride Segment Load/Store Intrinsics, XTheadVector Strided Segment Load/Store Intrinsics and XTheadVector Indexed Segment Load/Store Intrinsics.
Update contributor list.

Are there plans to implement these changes in GCC?

In fact, I see that these Intrinsics have been implemented in the downstream, but these patches have some impact on the upstream RVV, so these patches should not be submitted to the upstream until the upstream can accept them.
Therefore, I would recommend not merging this PR until all the GCC patches are ready..


Add ActionCable as a topic to the guide

From @openscript on November 4, 2015 10:21
The release of Rails 5 is coming closer and closer. I've been spending some time with ActionCable, but I think there are still a few things to discover. Howsoever, I thought I can contribute something to the guides. So let's start the ActionCable topic.

Here is my idea about the chapter structure, based on Active Job Basics and Action Mailer Basics:

[ ] Introduction: A few lines about what's ActionCable
[ ] Technical background: How does ActionCable work? What's the PubSub pattern?
[ ] Configuration of the service
[ ] Creating a Cable

[ ] At the server-side
[ ] At the browser-side

[ ] Opening a channel

[ ] At the server-side
[ ] At the browser-side

[ ] Running the service

What do you think about? Is someone else working on this?
Copied from original issue: rails/rails#22178

Lets move this discussion for Action Cable repository so you can start to work closer to the code.

Thanks! I started in the rails repository, because the guides are in that repository, too. So I thought it's the right place.

Has anyone started writing this up? I can take care of some topics such as:

What's the PubSub pattern?
Creating a cable;
Opening a channel;

Should the ActionCable README reflect the content of the guide?

Hey, I was thinking about contributing to documentation too, @openscript are you still interested into writing this?

Whoever wants to start work on this, that'd be great. We definitely need a guide!

I am now working on a rails 5 api that includes websockets through actioncable, but I can't say I am much experienced so I am not sure I am suitable to start a guide on my own.
I certainly could review and extend a guide.

Vasilis, we need some help combining the --api setup with Action Cable
generators. ACa generators should not produce the client-side code, like
app/assets/javascript/channels, when in --api mode. Could use some help
with that :D
On Thu, Dec 17, 2015 at 2:07 PM, Vasilis Spilka<EMAIL_ADDRESS>wrote:

I am now working on a rails 5 api that includes websockets through
actioncable, but I can't say I am much experienced so I am not sure I am
suitable to start a guide on my own.
I certainly could review and extend a guide.
—
Reply to this email directly or view it on GitHub
https://github.com/rails/actioncable/issues/114#issuecomment-165447880.

How could I help? What I did was rake assets:precompile on a non --api setup and then copy the static asset to /public/js/cable.js and made static assets available, this way I was able to access the js as an external library in the client side.

Is there a checklist or Trello board or something somewhere that lists out which topics still need documentation? I'd love to contribute some.

I'm not sure if anyone began working on this, but I thought I'd share what I started: action_cable_overview.md.
Note: It does draws heavily from the README and code comments (as they were the guide I worked through to get started), but I restructured them in some areas. Let me know if it'd be a good starting point, but if nothing else, I'll be adding to it as I keep digging into AC.
Outline:
Action Cable Overview

Introduction
What is Pub/Sub?
What is Action Cable?
Server-Side Components

Connections

Connection Setup

Channels

Parent Channel Setup
Subscriptions

Client-Side Components

Connections

Connect Consumer

Subscriber

Client-Server Interaction

Streams
Broadcastings
Subscriptions
Pass Parameters to Channel
Rebroadcasting message

Full Stack Examples

Common Steps
Example 1: User Appearances

Create the Server-Side Appearance Channel
Create the Client-Side Appearance Channel Subscription

Example 2: Receiving New Web Notifications

Create the Server-Side Web Notifications Channel
Create the Client-Side Web Notifications Channel Subscription
Broadcast content to a web notification channel instance from elsewhere in your application

More complete examples

Configuration

Redis Connection
Allowed Request Origins
Other configurations

Running the cable server

Standalone
In app

Notes
Dependencies
Deployment

@davidkuhta Thats great :) I will review it tomorrow it's getting kinda late here.

This issue was moved to rails/rails#22673


API key not found

I have followed the install instruction and added the meta data into AndroidManifest.xml ( android/app/src/AndroidManifest.xml )

But when I run the app on my phone. It shows this error:
API key not found.
Please help me. Thanks.

Hey @davidtran  ,
I think it is to do with recompiling the changes made in your project build.gradle and the app build.gradle. Sync and save. Close the Emulator. open it again and type
react-native run-android again in your cmd. You should be good if you followed all the steps correctly.


Stuck with "unsaved changes" in multi-diff editor

Testing #203040

Disable autosave
Open a file, make some change, don't save
Open a stash in multi-file diff editor
The diff editor is marked as unsaved and I can't close it at all
If I close the original editor, the multi file diff can be closed

@hediet, could you please take a look at this one. Thanks!


Update develop to what main used to be

This updates develop to the previous state of main

@datadavev can you approve this one as well, please?  Checking that develop is protected now as well.


Prepare for v0.0.6

What this PR does / why we need it
Which issue(s) this PR fixes

Fixes #
Special notes for your reviewer
Does this PR introduce a user-facing change?

None

/kind documentation
/lgtm
/approve


[SelectList] Width does not consider images within list elements

I was having PhantomJS issues when running the tests to validate that this would work as intended. But I've got a select list with icons in the a tags (used in prod, but may not be a real pattern). For whatever reason, the icons are not correctly interpreted as part of the width.

https://jsbin.com/ginoxukuwe/1/edit?html,output
I thought perhaps changing the a to li to perhaps capture the entire width, but that may not even be the solution.

@scott-joe Will look into. I can tell you the resize is created by cloning the selectlist and then calling outerWidth() on each item and choosing the largest width.
How do images work in "jQuery memory" with elements that are never added to the DOM? I would imagine that the img src is never called/loaded until added to the DOM and this may be causing the issue.
Looks like this is the culprit! LN158 sizer.find('.selected-label').text($(this).text());. That's going to strip the non-text out. Should probably be .html().

Awesome. Glad it wasn't just in my head. Thanks for looking into it! And I learned something about "jQuery memory" in the process.


Install Issues

Ok so not new to linux but new to docker.  I am trying to get this installed but running into what i assume is a basic issue.   I run all the install commands but when I try to start this I get the below:
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
canary@canary:~/canarytokens/canarytokens-docker$ docker-machine ls
NAME   ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER   ERRORS
canary@canary:~/canarytokens/canarytokens-docker$

OK so I messed with this all day and got no where....what platform are you guys using?  I tried Ubuntu 18 and it didnt like that.  So I have been messing with Ubuntu 16 and it really hates the old version of python on there....even if I update it to 3.5 I still get a lot of errors.

Should not be an issue, it worked for me on Ubuntu 18.04 only thing you need to change canarytokens/Dockerfile FROM ubuntu:16.04 to FROM ubuntu:18.04

Hi @dirtdiver512,
Sorry to hear that you hitting some issues. Would you mind letting me know how you trying to run the canarytokens-docker? What OS? Just a few more details so I can try replicate and find a solution for you.

Looks like it is crashing right around the pip and python stuff.  It s fresh install of Ubuntu 16.  Including the log during install.
canary-install.zip

I have tried the install instruction here and on :
https://zeltser.com/honeytokens-canarytokens-setup/

zip file was empty...sorry
canary-install.log

for ubutnu 18 i changed that file and get to this point:
canary@canary-18:~/canarytokens-docker$ docker-compose up
ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default.
canary@canary-18:~/canarytokens-docker$ docker-machine start default
Docker machine "default" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
canary@canary-18:~/canarytokens-docker$ docker-machine ls
NAME   ACTIVE   DRIVER   STATE   URL   SWARM   DOCKER   ERRORS
canary@canary-18:~/canarytokens-docker$

Hi @dirtdiver512,
What OS are you trying to run docker on? That way I can try reproduce the issue and help you quickly.
Thanks for sending the logs and info. I want to get you up and running as soon as possible.

@jayjb the image-build process fails due to incompatibility w/ Python 2.7 (which is now deprecated). Updating base-image to Ubuntu 18.04 seems to fix this problem.
However, using a full-blown OS as a base-image seems a bit overkill.

Hi @pisces-period, @dirtdiver512,
We have updated the docker images. Please give them a go and let me know if you have any issues.

Closing this issue.


Nginx proxy buffering creates useless I/O on server

In this line:
https://github.com/SUSE/Portus/blob/9ee98db159fa469951d009bcaecee19a6643bade/examples/compose/nginx/nginx.conf#L140
Since docker images are large objects, nginx proxy buffering needs temporary files to handle buffering, which leads to useless disk I/O. In our setup, it actually reduces the performances.

true, the best setup would be like the one from https://github.com/jwilder/nginx-proxy I has pretty good defaults.

True. Thanks for the heads up!


Feature request:As a admin I want to be able to make sure a GIF does only run once.

Feature request
As a admin I want to be able to make sure a GIF does only run once.
A clear and concise description of what you expected to happen.
Admin option for enabling number of cycles e.g 0

Hi, this will not be done at plugin level, but rather at Mattermost client level. There's a feature request to the Mattermost team on this subject, albeit with a non configurable number of cycles: mattermost/mattermost-server#15399


Manual recovery option for failed federations

Currently, when more than f=n-t guardians are shut down in an uncoordinated manner (without calling the upgrade API endpoint) it can happen that some are shut down while processing an epoch while others are already finished, resulting in some guardians being on different epochs than others.
This poses a problem when restarting since restarts from such a failed state (>f offline = failed/stalled federation) requires a quorum of t guardians to agree on the epoch the federation is in. If the guardians can agree out of band that the most up-to-date epoch any guardian observed actually happened they should be able to recover manually though.
For this to be practical we need an API endpoint that allows manual approval/application of epoch outcomes, either by specifying the trusted epoch hash and letting fedimintd fetch the epoch from its peers or by giving it whole epoch outcomes. I'm not sure what the optimal design is, either would work imo, the former being slightly more convenient.
CC: @jkitman @dpc

Seems okay...but we should never start from an older epoch or we will get an inconsistent database.


TCCP: Assorted user interface improvements

Handful of improvements that came out of user testing.
See https://github.local/Design-Development/Design-Thinking-and-User-Research/issues/296
Changes

Form validation for landing page "location" field
Visual linear gradient over the 11th card result to indicate that there are more cards to view.
New "see card details" link
Speed bumps are larger
Misc. hierarchy changes

How to test this PR

yarn cypress run --spec test/cypress/integration/consumer-tools/credit-cards/explore-cards.cy.js
Visit the landing page and see what happens when you try to submit the form without selecting a location.
Visit the cards page and change the "sort by" field. The results are capped at 10 and a "show more" button appears except when sorting by card name.

Screenshots

"show more" fade
location validation
"see card details" link

Checklist

[x] PR has an informative and human-readable title

PR titles are used to generate the change log in releases; good ones make that easier to scan.
Consider prefixing, e.g., "Mega Menu: fix layout bug", or "Docs: Update Docker installation instructions".

[x] Changes are limited to a single goal (no scope creep)
[x] Code follows the standards laid out in the CFPB development guidelines
[x] Future todos are captured in comments and/or tickets
[x] Project documentation has been updated, potentially one or more of:

This repo’s docs (edit the files in the /docs folder) – for basic, close-to-the-code docs on working with this repo
CFGOV/platform wiki on GHE – for internal CFPB developer guidance
CFPB/hubcap wiki on GHE – for internal CFPB design and content guidance

Front-end testing

Browser testing
Visually tested in the following supported browsers:

[x] Firefox
[x] Chrome
[x] Safari
[x] Edge 18 (the last Edge prior to it switching to Chromium)
[x] Internet Explorer 11 and 8 (via emulation in 11's dev tools)
[x] Safari on iOS
[x] Chrome on Android

Accessibility

[x] Keyboard friendly (navigable with tab, space, enter, arrow keys, etc.)
[x] Screen reader friendly
[x] Does not introduce new errors or warnings in WAVE

Other

[x] Is useable without CSS
[x] Is useable without JS
[x] Does not introduce new lint warnings
[x] Flexible from small to large screens

Cypress test failed in the merge queue but passes for me locally with our test database against both Chrome and Electron. Trying again.

Cypress test failed in the merge queue but passes for me locally with our test database against both Chrome and Electron. Trying again.

I changed the tests to wait for the htmx request to finish before each assertion. Hopefully it'll fix things.


Examples?

This looks promising, but the binaries provided include only some vpx files, but not all of them. For example, video_writer.h is used by the examples.
Any example using the compiled library?

The examples in the repo use other source files apart from just those in the examples folder. These files are not part of the binary release as they are not part of the library interface. So video_writer.h is included from the repos root. The libvpx writers did it this way so they can reuse source code between the examples and other parts of libvpx. It can make it a bit confusing if your just looking at the source file for each example as its not immediately obvious that it requires linking in additional local source files to work.
So you can see what files are required for each example program by reading the contents of 'examples.mk'.
Another option would be to look at the ffmpeg source code for its libvpx wrapper. Or there's the google option (but i havnt actually tried that myself)


Feature idea: countdown until poison AoE disappates

I'm not aware of a way in which the stock game shows how much longer a poison cloud will hang around, which makes it difficult to make decisions about it. Perhaps this is something the a mod could add?

Thank you for raising this issue.
I took a look at the code and it appears that the TileEffect expiration times are defined in a GetLayerExpireTime method inside TileEffectState.cs When a tileEffect is created/applied, a turnCreated parameter is included. This turnCreated parameter is used in a HasExpired function in combination with the  to calculate whether to remove the effect.
Finding out how long any particular tileEffect has remaining doesn't look too difficult. Working out how to display a turn-left counter on each tile will be more of a challenge, and the display would only work for the host of the game.
Whether we're able to add a countdown timer or not, your idea has inspired me to create a new rule for controlling the durations of the tileEffects... It's totally the opposite of what you asked for, but I like the idea of poison gas lasting longer and spreading further, so i'm going to have a play around with that :-)


Registry: Relax rules to allow valid stakes to register

Currently, only enrolled validators may register. However, this means that nodes are not immediately reachable when they enroll, and there is a delay in between the moment a block is externalized and nodes can get an address to contact those new peers.
If the block interval is too low, or one's retry delay too high, it means a node might miss one or more consensus rounds.

Assigning this to myself to be done in this sprint.


Remove more qiskit.org links

All qiskit.org links are now removed other than:

Old release notes, since these aren't even built anymore.
The PDFs for Qiskit CLA. Opened https://github.com/Qiskit/documentation/issues/796 to discuss what to do
asv.conf.json. I'm not sure if that messes things up to change it.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.004%) to 89.195%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
4
91.18%

Totals

Change from base Build<PHONE_NUMBER>:
0.004%

Covered Lines:
58819

Relevant Lines:
65944

💛  - Coveralls

Thanks a lot!


Returning custom live properties

Hi,
is it possible to return custom live properties to the webdav-client to add additional information to the webdav entry?
After looking in the code, I couldn't find an easy way to do this, but maybe I've missed something.
Kind regards, and thank you for making this awesome library! :smile:
Marcus

Note for others trying to do the same thing:
Thanks to this change, this should be way easier and cleaner to do now:
https://github.com/FubarDevelopment/WebDavServer/commit/35a0f16ce19d570996204e3b93b01a87179c8df4


Download NCBI Taxdmp file in CI

We discussed adding this file to the automatic releases because it is sometimes arbitrarily slow to download

Will do. I didn't do it yet for now because the very first time the file will not exist, but using the default as a fallback is a good idea and fixes that problem as well.

Very ironically showing that this is already a good change, NCBI just changed their endpoint and the original download URL no longer works.


Custom Theme don't work

Is your feature request related to a problem? Please describe.
Custom theme don't work with ThemeProvider or Props in local.
My code:
import KeplerGl from 'kepler.gl';

class Kepler extends React.Component {
  render() {
    const mapboxApiAccessToken = '';
    const customTheme = {
      sidePanelBg: '#ff0000',
      titleTextColor: '#ff0000',
      sidePanelHeaderBg: '#ff0000',
      subtextColorActive: '#ff0000',
    };
   return <KeplerGl mapboxApiAccessToken={mapboxApiAccessToken} theme={customTheme} store={store} />
}

Additional context
React 16.6.3
Redux 4.0.1
react-redux 6.0.0

You need<EMAIL_ADDRESS>to use the theme prop. 1.0.0-0 is using react 0.16, so you will need to upgrade react as well

Master has been updated, pull latest master, in custom-theme folder run  rm -r node_modules && rm yarn.lock && yarn --ignore-engines && npm start should work

not a bug


xmrig-proxy: src/unix/core.c:233: uv__finish_close: Assertion `handle->flags & UV_CLOSING' failed.

Hello friends,
im running xmrig-proxy and it is running but some times I got this error:
xmrig-proxy: src/unix/core.c:233: uv__finish_close: Assertion `handle->flags & UV_CLOSING' failed.
and obviously it is killing the program, normally the program is running few hours.
Libuv Package:
Package: libuv1
Priority: optional
Section: universe/libs
Installed-Size: 166
Maintainer: Ubuntu Developers<EMAIL_ADDRESS>Original-Maintainer: Debian Javascript Maintainers<EMAIL_ADDRESS>Architecture: amd64
Version: 1.8.0-1
Depends: libc6 (>= 2.14)
Filename: pool/universe/libu/libuv1/libuv1_1.8.0-1_amd64.deb
Size: 57426
MD5sum: 9aabb25665c1b868260eb95d24507fb5
SHA1: 859f2d0613c4b9f49d735bbfbe1f3934372a5266
SHA256: 2854d5b9bd2ea549610f0a806636f36db44df2d93eb9b1bf5448545b881d53a7
Description-en: asynchronous event notification library - runtime library
Libuv is the asynchronous library behind Node.js. Very similar to libevent or
libev, it provides the main elements for event driven systems: watching and
waiting for availability in a set of sockets, and some other events like timers
or asynchronous messages. However, libuv also comes with some other extras
like:

files watchers and asynchronous operations
a portable TCP and UDP API, as well as asynchronous DNS resolution
processes and threads management, and a portable inter-process
communications mechanism, with pipes and work queues
a plugins mechanism for loading libraries dynamically
interface with external libraries that also need to access the I/O.
.
This package includes the dynamic library against which you can link
your program.
Description-md5: 93573ad1b9de0529887627652f90b981
Multi-Arch: same
Homepage: https://github.com/libuv/libuv
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Linux version:
Linux virtualmachine01 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
OS: Ubuntu 16.04
Thanks and all the best

Hello @cjihrig thanks for your answer,
Now I'm running:
Name        : libuv
Arch        : x86_64
Epoch       : 1
Version     : 1.10.2
Release     : 1.el7
Size        : 273 k
Repo        : installed
From repo   : epel
Summary     : Platform layer for node.js
URL         : http://libuv.org/
License     : MIT and BSD and ISC
Description : libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
: Windows and libev on Unix systems. We intend to eventually contain all platform
: differences in this library.
this is a new version available for Centos using the EPEL repository. and we have the same problem.

@cjihrig I see the last version is 1.19.x I will compile that version instead of using the one from EPEL Repo. And check how it behave

You should report this to xmrig-proxy.  It's most likely not a bug in libuv but in the way xmrig-proxy uses libuv.
I'll close this out for now.  Can reopen if it does turn out to be a bug in libuv.


🚀 - Line Wrapping for long lines

Which @codeimage/* package(s) are relevant/releated to the feature request?
codeimage
Description
Hi,
The tool does a great job, but if I have a really long line, it does not wrap automatically. And I can't find any toggle or feature to do so.

This is a corner case that actually I didn’t plan to manage. What I can do is maybe allow to set a custom width for the frame in order to wrap the text according to that size. I could work on this in January


⚠ Mobitopup has degraded performance

In 6fefe4c, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 7987 ms

Resolved: Mobitopup performance has improved in 5c153f8.


Encrypt 2FA secret and remove url from db

Issue:
The 2FA secret should not be stored in plain text in the database. This needs to be able to be encrypted for storage and decrypted for use.
Fix:
Make use of crypto in NodeJS to setup encryption/decryption

Fixed


[Feature Request] Rounded Corners for Entire Screen

Description of the new feature / enhancement
Rounded corners for screens (instead of applications).
Scenario when this would be used?
For those perfectionists who like rounded corners. :)
Supporting information
There is an app on github: https://github.com/RoundedCorners/app
Can a similar feature be added to the toolbox?

This looks like a great request for /feedbackhub :)


Upgrade dawidd6/action-download-artifact v2.28.0 -> v2.28.1

This PR contains the following updates:

Package
Type
Update
Change

dawidd6/action-download-artifact
action
patch
v2.28.0 -> v2.28.1

Release Notes

dawidd6/action-download-artifact (dawidd6/action-download-artifact)
v2.28.1
Compare Source

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade dawidd6/action-download-artifact v2.28.0 -> v2.28.1


Zenith goal broken in 1.4.4

With the Zenith achievement added in 1.4.4, crafting the Zenith doesn't seem to trigger victory on either the current official APWorld or the beta Calamity APWorld. I haven't tested this yet without other mods, but I tried crafting it entirely in the vanilla inventory to be safe instead of using any sort of modded inventory container and it still only awarded the achievement without counting as victory.

Might have been able to resolve the issue locally when using the official APWorld, but it still remains the case for the newer APWorld.

Thanks for the report, fixed in https://github.com/Seldom-SE/archipelago_terraria_client/commit/df76dc3612974fab84dbd7aee6497ec7c741559c. I had changed the location name to "Infinity +1 Sword" in the apworld, but not in the client, lol


SVGR adds svg code to .js when bundled with webpack 5

I have component library which contains multiple svgs which is built using SVGR. This component library is being consumed by my-app. When my-app is bundled with webpack 5 it creates .js file for this component library and it has the svg code in it, there by increasing .js file size in final bundle.
Component Library Config
module.exports = {
  stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
  addons: [
    "@storybook/addon-links",
    "@storybook/addon-essentials",
    "@storybook/addon-interactions",
  ],
  framework: "@storybook/react",
  core: {
    builder: "webpack5",
  },
  features: {
    emotionAlias: false,
  },
  webpackFinal: async (config, { configType }) => {
    const fileLoaderRule = config.module.rules.find(
      (rule) => !Array.isArray(rule.test) && rule.test.test(".svg")
    );
    console.log(config.module.rule);
    fileLoaderRule.exclude = /\.svg$/;
    config.module.rules.push({
      test: /\.svg$/,
      use: ["@svgr/webpack", "url-loader"],
    });
    return config;
  },
};

my-app Webpack Config
module.exports = {
  module: {
    rules: [
      {
        test: /\.svg$/,
        use: [
          {
            loader: require.resolve("@svgr/webpack"),
            options: {
              prettier: false,
              svgo: false,
              svgoConfig: {
                plugins: [{ removeViewBox: false }],
              },
              titleProp: true,
              ref: true,
            },
          },
          {
            loader: require.resolve("file-loader"),
            options: {
              name: "static/media/[name].[hash].[ext]",
            },
          },
        ],
        issuer: {
          and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
        },
      },
      {
        test: /\.(js|mjs|jsx|ts|tsx)$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader",
          options: {
            presets: [
              [
                "@babel/preset-env",
                {
                  targets: {
                    esmodules: true,
                  },
                },
              ],
              ["@babel/preset-react", { runtime: "automatic" }],
              "@babel/preset-typescript",
            ],
            plugins: [
              "@babel/plugin-proposal-class-properties",
              "@babel/plugin-proposal-object-rest-spread",
            ],
          },
        },
      },
    ],
  },
  plugins: [new ForkTsCheckerWebpackPlugin()],
  optimization: {
    chunkIds: "named",
  },
};

Svg file is consumed as a react component like this.
declare module "*.svg" {
  import * as React from "react";

  export const ReactComponent: React.FunctionComponent<
    React.SVGProps<SVGSVGElement> & { title?: string }
  >;

  const src: string;
  export default src;
}

import { ReactComponent as Logo } from "./logo.svg";

In final bundle svg code is added in the .js file and seperate .svg file is also loaded.
How to avoid svg code from being included in .js file?

Up

Looking for the same solution.

Using ref: true svgr option includes all imported svgs as react components, even if the react component wasn't explicitly imported. I don't think this is intended behavior.
For example, passing ref: true option and having the following import
import svg from './logo.svg';

will still generate a react component of logo.svg and include it in the bundle.

@mikirejf I don't understand what is exactly the problem.

@gregberge
Let's say we have the following react code:
import logo from './logo.svg';

function App() {
  return <img src={logo} />;
}

With default SVGR options, a bundler (in my case it's Vite) produces the following (or similar code):
const logo = "/static/logo-a072c053.svg";

If we then use ref: true option, the bundler, in addition to the url, also produces the JSX, even if it's not used or referenced anywhere in the code:
const SvgLogo = (props, ref) => /* @__PURE__ */ reactExports.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 91, height: 37, viewBox: "0 0 91 37", ref, ...props }, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("g", null, /* @__PURE__ */ reactExports.createElement("path", { fill: "#fff", d: "M58.27 ... 73.052" }))));
reactExports.forwardRef(SvgLogo);
const logo = "/static/logo-a072c053.svg";

This leads to bundles being heavier than they should be.
Since the OP is using Webpack and I'm using Vite, I'm assuming there's a bug(?) in SVGR. I hope that clarifies it.

@abhishekoza got it thanks, only with ref option activated?

@gregberge It also happens when memo: true.


Olimex ESP32-POE / E07-M1101S-SMA

Hardware
Olimex ESP32-PoE/EVB
Firmware version
v.2.4.7
Application version
v.2.4.7
What happened? What did you expect to happen?
Connected the E-07 one to one to the Olimex Ext ports. 1-1, 2-2, 3-3, 4-4, and so on
In the esp radio configuration setting i used TX=GPIO04, CSN=GPIO13, SCLK=GPIO14, MOSI=GPIO15, MISO=GPIO16 and RX+GPIO36.
when saving these setting and enabling the radio i get an 500:service error, service put/save radio.
when unchecking the enable radio then saving works. but when enabling radio and saving setting the same error appears.
what is wrong
How to reproduce it (step by step)
1. Go to...
2. Click on...
...

Logs
No response

Please ignore the pin numbers on that board and only use the pinouts as defined by their GPIO counterparts.  You do not match pin 1 on the Olimex to pin 1 on the transceiver.  You will find a mapping of the pins at the following url.
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/resources/ESP32-POE-ISO-GPIO.png
Also, if you are using the UEXT connector on the board make sure you pay close attention to the orientation of the pins.  You will see the key slot to the left in the diagram.
The board is likely rebooting when it tries to activate the pins so either you have mis-wired on the transceiver or on the Olimex.

Thnx for your info. Sorry but I’am a newbie and still struggling with the wiring.
The E07-M1101D-SMA has eight pins:
1 GND
2 VCC
3 GDO0
4 CSN
5 SCK
6 MOSI
7 MISO
8 GDO2
Where to your info the olimex has the pins (EXT)
1 GND
2 +3.3V
3 UIRXD GPI36
4 UITXD GPI04
5 I2C-SDA GPIO13
6 I2C-SCL GPIO16
7 HS2_DATA0 GPIO2
8 HS2_CMD GPIO15
9 VSPIC50 GPIO5
10 HS2_CLK GPIO14
In the radio configuration is asked to select the  right pins for
I’am struggling with the wiring, which pin of the olimex to which pin of the e07-M1101S-SMA
As well as what to fill in in the radio section for:
SCLK
CSN
MOSI
MISO
TX
RX
I would appreciate it very much I you could help me with this then I’am not an electronic goerroe
Thnx in advance
Ton Ensink
Van: rstrouse @.>
Verzonden: woensdag 9 oktober 2024 21:09
Aan: rstrouse/ESPSomfy-RTS @.>
CC: Qualitrade @.>; Author @.>
Onderwerp: Re: [rstrouse/ESPSomfy-RTS] Olimex ESP32-POE / E07-M1101S-SMA (Issue #477)
Please ignore the pin numbers on that board and only use the pinouts as defined by their GPIO counterparts. You do not match pin 1 on the Olimex to pin 1 on the transceiver. You will find a mapping of the pins at the following url.
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/resources/ESP32-POE-ISO-GPIO.png
Also, if you are using the UEXT connector on the board make sure you pay close attention to the orientation of the pins. You will see the key slot to the left in the diagram.
The board is likely rebooting when it tries to activate the pins so either you have mis-wired on the transceiver or on the Olimex.
—
Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/477#issuecomment-2403200516 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPNX22COZEPXINMYFU3OYDZ2V5MZAVCNFSM6AAAAABPU2Z7T6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGIYDANJRGY .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AOPNX2YWGFJDOGVF6PL2VRDZ2V5MZA5CNFSM6AAAAABPU2Z7T6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUPHXXAI.gif Message ID: @.*** @.***> >

Dear Sir,
I wrote a mail this morning about the radio config.
Finally after a lot of testing finally fixed the problem.
Nevertheless thanks for your support !
Ton Ensink
Van: rstrouse @.>
Verzonden: woensdag 9 oktober 2024 21:09
Aan: rstrouse/ESPSomfy-RTS @.>
CC: Qualitrade @.>; Author @.>
Onderwerp: Re: [rstrouse/ESPSomfy-RTS] Olimex ESP32-POE / E07-M1101S-SMA (Issue #477)
Please ignore the pin numbers on that board and only use the pinouts as defined by their GPIO counterparts. You do not match pin 1 on the Olimex to pin 1 on the transceiver. You will find a mapping of the pins at the following url.
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/resources/ESP32-POE-ISO-GPIO.png
Also, if you are using the UEXT connector on the board make sure you pay close attention to the orientation of the pins. You will see the key slot to the left in the diagram.
The board is likely rebooting when it tries to activate the pins so either you have mis-wired on the transceiver or on the Olimex.
—
Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/477#issuecomment-2403200516 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPNX22COZEPXINMYFU3OYDZ2V5MZAVCNFSM6AAAAABPU2Z7T6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTGIYDANJRGY .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/AOPNX2YWGFJDOGVF6PL2VRDZ2V5MZA5CNFSM6AAAAABPU2Z7T6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUPHXXAI.gif Message ID: @.*** @.***> >


fix mysql port seen as string instead of int

I had this issue with mysql client and custom port :

[2016-09-19 12:08:32,654] root.INFO MainThread Starting server...
[2016-09-19 12:08:32,656] root.INFO MainThread Server started on port 8080
Traceback (most recent call last):
File "/usr/local/bin/prometheus-mysql-exporter", line 9, in
load_entry_point('prometheus-mysql-exporter', 'console_scripts', 'prometheus-mysql-exporter')()
File "/usr/src/app/prometheus_mysql_exporter/init.py", line 160, in main
autocommit = True,
File "/usr/local/lib/python3.5/site-packages/MySQLdb/init.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/MySQLdb/connections.py", line 204, in init
super(Connection, self).init(*args, **kwargs2)
TypeError: an integer is required (got type str)

Thanks for raising this @commarla. I've implemented the fix in a different way to get some nice error messages here https://github.com/Braedon/prometheus-mysql-exporter/pull/4


Expected a VNode / Vthunk / VWidget / string but: got 0

This construct h('td', null, [0]) gives error:
Uncaught Error: Unexpected virtual child passed to h().
Expected a VNode / Vthunk / VWidget / string but: got 0
Seems easy to fix:
https://github.com/Raynos/virtual-hyperscript/pull/18

Please report it on virtual Dom instead. This one is deprecated.


darwin: use hw.cpufrequency again for frequency info

This reverts commit https://github.com/libuv/libuv/commit/87f076515937345fda1a1dbc598f34e65e1b81c7.
This has been reported to be unnecessary, and also returns the wrong answer (off by exactly 100x), so it is not particularly useful. It is simpler to hard-code the answer (2.4 GHz) until Apple fixes their kernel (if they ever choose to). This choice of value should be pretty good (i.e. past and future-proof) anyways.
This also reverts the bugfixes to the original PR:
Revert "darwin: fix iOS compilation and functionality"
This reverts commit https://github.com/libuv/libuv/commit/1addf9b88a17bc32d009d377a14d540ccddd06db.
Revert "macos: fix the cfdata length in uv__get_cpu_speed (https://github.com/libuv/libuv/pull/3356)"
This reverts commit https://github.com/libuv/libuv/commit/1e7074913e1d2a1be72b62ba807325c14b0b317a.
Revert "darwin: fix -Wsometimes-uninitialized warning"
This reverts commit https://github.com/libuv/libuv/commit/6085bcef8dea1eaa21a92e2b6e6f03a0476b6c54.
Revert "macos: fix memleaks in uv__get_cpu_speed"
This reverts commit https://github.com/libuv/libuv/commit/d2482ae121e0ae5d0cf0934b2e93cee81a4ac5ed.
Fixes: https://github.com/libuv/libuv/issues/3642
Please reference discussion in https://github.com/libuv/libuv/pull/2912

FWIW, on my M1 Pro MBP running macOS Monterey, sysctl hw.cpufrequency returns nothing; sysctl hw.tbfrequency returns 24000000—the off-by-100x figure mentioned earlier. According to this discussion you're apparently supposed to multiply it by kern.clockrate[hz] (which returns 100) to get the actual clock rate in Hz.
Although it's clearly a nominal clock rate, since neither the eight performance cores nor the two efficiency cores run at 2.4GHz, at least per Anandtech.

An old 2012 MBA for comparison:

hw.cpufrequency1800000000
hw.tbfrequency1000000000

That 1.8 GHz is the advertised clock speed.

When they do, we can potentially use this implementation: https://github.com/oshi/oshi/issues/1483#issuecomment-1188563867

@vtjnash do you want to merge this?