Function to Execute Raw Bytecode

Was asked to open an issue here, hope this is alright.
It would be pretty useful to have a function that takes bytecode and data and executes the bytecode along with the data. Ethereumjs-vm has a function runCode() that does this and works pretty well, but I'd rather be using Python.

Closed by #315


Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $

i have two client, but the selector data is different, and one of it will produce JSON parse error

I think it may be a bug....

Can you provide more detailed stack information

this code modified the selector handle data

Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ 	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:386) ~[gson-2.8.6.jar:?] 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215) ~[gson-2.8.6.jar:?] 	at com.google.gson.Gson.fromJson(Gson.java:932) ~[gson-2.8.6.jar:?] 	at com.google.gson.Gson.fromJson(Gson.java:897) ~[gson-2.8.6.jar:?] 	at com.google.gson.Gson.fromJson(Gson.java:846) ~[gson-2.8.6.jar:?] 	at com.google.gson.Gson.fromJson(Gson.java:817) ~[gson-2.8.6.jar:?] 	at org.dromara.soul.common.utils.GsonUtils.fromJson(GsonUtils.java:110) ~[soul-common-2.3.0-RELEASE.jar:2.3.0-RELEASE] 	at org.dromara.soul.plugin.springcloud.SpringCloudPlugin.doExecute(SpringCloudPlugin.java:71) ~[soul-plugin-springcloud-2.3.0-RELEASE.jar:2.3.0-RELEASE] 	at org.dromara.soul.plugin.base.AbstractSoulPlugin.execute(AbstractSoulPlugin.java:95) ~[soul-plugin-base-2.3.0-RELEASE.jar:2.3.0-RELEASE] 	at org.dromara.soul.web.handler.SoulWebHandler$DefaultSoulPluginChain.lambda$execute$0(SoulWebHandler.java:100) ~[soul-web-2.3.0-RELEASE.jar:2.3.0-RELEASE] 	at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:44) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.publisher.Mono.subscribe(Mono.java:4213) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:124) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) [reactor-core-3.3.8.RELEASE.jar:3.3.8.RELEASE] 	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [?:1.8.0_211] 	at java.util.concurrent.FutureTask.run(FutureTask.java) [?:1.8.0_211] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_211] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_211] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_211] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_211] 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]

@SaberSola

This handle belongs to divide plugin,Why it is Id 8

This is a bug, It has been fixed in the master branch

The judgment is reversed

Duplicate of https://github.com/dromara/shenyu/issues/1297, Already fixed by https://github.com/dromara/shenyu/pull/1315


Update module pion/dtls to v2.0.0-rc.2

Bumping dtls to support backwards compatibility
to Go 1.12

Codecov Report

Merging #921 into master will decrease coverage by 0.32%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
- Coverage   77.06%   76.73%   -0.33%
==========================================
  Files          59       59
  Lines        4303     4303
==========================================
- Hits         3316     3302      -14
- Misses        713      721       +8
- Partials      274      280       +6

Impacted Files
Coverage Δ

internal/mux/mux.go
84.61% <0%> (-6.16%)
:arrow_down:

datachannel.go
80.42% <0%> (-1.78%)
:arrow_down:

dtlstransport.go
74.6% <0%> (-1.06%)
:arrow_down:

peerconnection.go
73.04% <0%> (-0.27%)
:arrow_down:

Continue to review full report at Codecov.

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


Add handle_silenced parameter to handler defined type

We have a handler that needs to operate on events, regardless of whether they've been silenced or not - this change implements the handle_silenced handler config option, as outlined in https://sensuapp.org/docs/0.29/reference/handlers.html

@madAndroid Awesome work, thanks for adding this!

@ghoneycutt - thanks :) Comments addressed and changes made

@ghoneycutt - Comments addressed, and all tests now passing :)

Sorry to ask you to change some of the things I asked here for, like type validation, though we've implemented data types and all PR's will now need to be rebased.

@ghoneycutt - No worries, I've rebased, should be ready to go now

Thanks for adding this new functionality!
Released in v2.28.0

@ghoneycutt - Thanks! :)


fix: No more sql tomfoolery + CI fixes

This PR contains two minor fixes:

Live integration tests can run now
It's basically impossible to call sql as a regular function now. You'd have to deliberately pretend to call it like a tagged template by doing something insane like:

const arr = [];
arr.raw = [];
await sql(arr, []);

hey @tcc-sejohnson @cramforce  can you list out some context on why calling sql as a regular function was banned?  There's a really nice use for it to construct conditional queries while still benefiting from zeroconf from this lib, e.g. something like:
const query = (search?: string) => sql(
  [`SELECT * FROM someTable ${search ? 'WHERE $1' : ''}`],
  search ? [search] : []
);

You can of course reach in to the underlying pg client but it's really nice to be able to go through this library for a couple of reasons:

zeroconf
if this worked, I'd be able to wrap sql with my own logic (schema validation, wrapping results in a Result type) with a consistent interface regardless of whether the query is conditionally constructed or not

Is there perhaps some other intended API in @vercel/postgres for doing this kind of thing?

it was disallowed to avoid accidental SQL injection

Got it, thanks @cramforce ! By any chance can you advise on the recommended way to construct queries like the one I posted? I saw sql.query but that returns void so I can't use it for reads. Do I just have to reach in to pg manually?

Wait, are you sure sql.query returns void?

Wait, are you sure sql.query returns void?

That's what typescript is telling me

It returns Promise<QueryResult<O>>

huh -- sincere apologies, I just upgraded dependencies and now I'm seeing that too.  Don't know why I was getting void before.  Sorry for bothering you and thank you!


Fix empty rect behavior by reverting 84d12654104e783011f24267145fb6bfccd2a30e

[x] I agree to follow the project's code of conduct.
[ ] I added an entry to rstar/CHANGELOG.md if knowledge of this change could be valuable to users.

I'm not really a regular rstar contributor, and I don't know that a simple reversion is the best way to solve this problem.

A more rigorous solution would probably make use of an explicit empty state, e.g. Option<AABB>::None

I don't know that a simple reversion is the best way to solve this problem.

I don't think we can just revert it as now the removed test case test_locate_within_distance_on_empty_tree would panic again. There also was quite a bit of boy scouting in that commit which we should not loose in any case.

I guess we can infer empty based on the "nonsense" state of min > max, so maybe can solve the root issue by adding logic without changing the type signatures.

There are certainly different options, but I am also wary of making merged more expensive to compute. I wonder if switch to a "(centre, diameter)" representation of the AABB as is done for periodic boundary conditions might be a more fundamental change to make the empty state more tame, i.e. represented by "diameter = 0".

One option I see is to revert the empty representation back to "(max_value, min_value)" but change the point trait to use only saturating arithmetic.

I'm happy to have you take this in any direction - but I think getting the wrong answer is almost always a bigger concern than getting a slightly slower answer.

Unfortunately, I'm out of time for today, but please feel free to solve the problem with or without my particular solution.

One option I see is to revert the empty representation back to "(max_value, min_value)" but change the Point trait impls to use only saturating arithmetic.

Sadly, I see no viable option to wire this through our trait bounds ending in RTreeNum expect detaching from the Num-based hierarchy. So I do think the max/min representation is indeed superior, but I would prefer a more targeted revert and alternative fix for #161 as proposed in #184.

superseded by https://github.com/georust/rstar/pull/184


question how to highlight certain points after plotting chart bubble view

Below is my chart and I have a question

Currently, in order to highlight some bubble points from the chart, I have to redraw the whole chart with pre-coloured points. Is there a way to access to some bubble points from the plotted chart so that I can change the their background colors

Which layer are you using to display chart points?

I'm currently using  ChartPointBubble for the chart point and using ChartPointsViewsLayer like following
fileprivate func bubblesLayer(_ xAxisLayer: ChartAxisLayer, yAxisLayer: ChartAxisLayer, chartInnerFrame: CGRect, chartPoints: [ChartPointBubble], diameter: CGFloat) -> ChartLayer {

        return ChartPointsViewsLayer(xAxis: xAxisLayer , yAxis: yAxisLayer, innerFrame: frame, chartPoints: chartPoints, viewGenerator: {(chartPointModel, layer, chart) -> UIView? in

            let circleView = ChartPointEllipseView(center: chartPointModel.screenLoc, diameter: CGFloat(chartPointModel.chartPoint.diameterScalar) + 3.0)
            circleView.fillColor = chartPointModel.chartPoint.bgColor

            return circleView
        })

    }

I also notice that, some of my bubble points are not perfectly rounded.

Hmm. I'm not sure what causes the circles to be clipped when using corner radius. I may be related with using fractions for the size of the view (does diameterScalar return a number with fractions?), as there's sometimes rounding going on that may cause a little part of the underlaying layer to show outside of the view, thus being clipped? Try using whole numbers (round down) or maybe try setting clipToBounds of the view to false.
There are also other possible solutions, like here where the user solved it using UIBezierPath. I have read that corner radius is actually bad for performance, so if you find a better (and performant) way to create circles, feel free to submit a pull request! Otherwise you can of course just use your own views in viewGenerator.
To modify the color of the items your can access the viewsWithChartPoints property of the ChartPointsViewsLayer, e.g:
chartPointsLayer.viewsWithChartPoints[2].view.backgroundColor = UIColor.red

@i-schuetz: Thanks for you assistance. The way that I improve the shape of the dot is to add width to the circleView . You are right, corner radius is bad for the performance. UIBezierPath is much better. I can take a look into it to improve it.
Also, thanks for bring it up, I dont know why guidelines is overlapping with y axis. What is 0.6. Currently, I'm setting chartSetting like following
let chartSettings = ChartSettings()

        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)

        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxis, coordsSpace.yAxis, coordsSpace.chartInnerFrame)

        let guidelinesLayerSettings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: 0.5)
        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxis: xAxisLayer, yAxis: yAxisLayer, innerFrame: innerFrame, settings: guidelinesLayerSettings)

        let bubbleLayer = bubblesLayer(xAxisLayer, yAxisLayer: yAxisLayer, chartInnerFrame: innerFrame, chartPoints: chartPoints, diameter: 10)

0.6 is the new version of SwiftCharts, where the guidelines are fixed, and also the viewsWithChartPoints was changed to open (readonly, but you can change the color of the views with this).

I have just edited my previous question. Can you take a look at it again

Where did I say that you have to create an optional property for the layer? We haven't even talked about this.
Probably you mean the chart, which has to be an instance property to prevent being released from memory. The layers don't have to. You also don't have to force unwrap the chart anywhere.
Concerning the circles, I made a mistake, looked in the implementation of ChartPointTextCircleView, which uses cornerRadius, instead of  ChartPointEllipseView, which draws the circles using Core Graphics. There's probably something wrong with the calculation of the circle borders, here:
let circleRect = (CGRect(x: borderOffset, y: borderOffset, width: frame.size.width - (borderOffset * 2), height: frame.size.height - (borderOffset * 2)))

Which could be also the rounding issue we already mentioned. It would be probably fixed by simply reducing the size of circleRect but this is not a proper fix without knowing exactly why and how much.
The drawing with Core Graphics is also the reason that you can't change the color of the circles setting the background color. You would have to change fillColor instead and call setNeedsDisplay to make it redraw.

Addition:
Note also that to avoid having to cast the UIViews from ChartPointsViewsLayer to ChartPointEllipseView, in order to set fillColor, you have to set the generic parameters and return type of the closure of ChartPointsViewsLayer explicitly, like this:
ChartPointsViewsLayer<ChartPointBubble, ChartPointEllipseView>(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, viewGenerator: {(chartPointModel, layer, chart) -> ChartPointEllipseView? in ...}

@i-schuetz: thanks for your help again


fix: move cleanup script + update var names

Extracted from #482

@grayside ideally we can delete this script at some point.
For now, it probably makes more sense to "wall it off" in the installation-testing/ directory.


[BUG] output Nonsense compared to llama.cpp

Describe the bug
A clear and concise description of what the bug is.
import torch
from auto_gptq import AutoGPTQForCausalLM
from transformers import AutoTokenizer

# Load the AutoGPTQForCausalLM model and tokenizer
model_name_or_path = "/scratch/yerong/.cache/pyllama/Llama-2-7B-GPTQ"
model = AutoGPTQForCausalLM.from_quantized(model_name_or_path, model_basename="model", inject_fused_attention=False, use_safetensors=True, trust_remote_code=False, device="cuda:0", use_triton=False, quantize_config=None)
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)

# Set the padding token to be equal to the end of sequence token (eos_token)
tokenizer.pad_token = tokenizer.eos_token

# Set the device (CPU or GPU)
# device = "cuda" if torch.cuda.is_available() else "cpu"
# model.to(device)

# Define a list of prompts (text) for batch generation
sentence = "Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect",

# sentences = [
#     "Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect",
#     # "Prompt 2: Bill Gates dropped out of Harvard",
#     # "Prompt 3: Another prompt to generate text.",
#     # "Prompt 4: Yet another prompt for AutoGPT.",
#     # "Prompt 5: A fifth prompt to see what it generates.",
#     # "Prompt 6: AutoGPT can generate text creatively.",
#     # "Prompt 7: Let's test another prompt.",
#     # "Prompt 8: The final prompt for this batch.",
# ]

input_ids = tokenizer(sentence, return_tensors='pt', truncation=True, padding="max_length", max_length=512).input_ids.cuda()
# input_ids = tokenizer(sentences, return_tensors='pt', truncation=True, padding="max_length", max_length=512).input_ids.cuda()

with torch.no_grad():
    outputs = model.generate(
        input_ids=input_ids,
        max_new_tokens=256,
        do_sample=True,
        top_p=0.9,
        temperature=float(0.01),
        top_k=40
    )

# print(tokenizer.batch_decode(outputs[:, input_ids.shape[1]:], max_new_tokens=256, skip_special_tokens=True))
print(tokenizer.batch_decode(outputs, max_new_tokens=256, skip_special_tokens=True))

skip module injection for FusedLlamaMLPForQuantizedModel not support integrate without triton yet.
['nobody nobody nobody nobody\n everybody nobody nobody nobody nobody nobody nobody nobody\n nobody\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n._\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n']
['Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect nobody nobody nobody nobody\n everybody nobody nobody nobody nobody nobody nobody nobody\n nobody\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n._\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n nobody\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n']

Hardware details
Information about CPU and GPU, such as RAM, number, etc.
V100 32 GB
Software version
Version of relevant software such as operation system, cuda toolkit, python, auto-gptq, pytorch, transformers, accelerate, etc.
(lla) [yerong2@ccc0077 self-instruct]$ echo "CUDA Toolkit: $(nvcc --version | grep release)"
CUDA Toolkit: Cuda compilation tools, release 11.7, V11.7.64
(lla) [yerong2@ccc0077 self-instruct]$ echo "Python: $(python --version 2>&1)"
Python: Python 3.11.4
(lla) [yerong2@ccc0077 self-instruct]$ echo "Transformers (Auto-GPT): $(pip show transformers | grep Name | awk '{print $2}') $(pip show transformers | grep Version | awk '{print $2}')"
Transformers (Auto-GPT): transformers 4.31.0
(lla) [yerong2@ccc0077 self-instruct]$ echo "PyTorch: $(python -c "import torch; print('torch', torch.__version__)")"
PyTorch: torch 2.0.1+cu117
(lla) [yerong2@ccc0077 self-instruct]$ echo "Accelerate: $(pip show accelerate | grep Name | awk '{print $2}') $(pip show accelerate | grep Version | awk '{print $2}')"
Accelerate: accelerate 0.21.0

To Reproduce
Steps to reproduce the behavior:

Run the python script above

Expected behavior
A clear and concise description of what you expected to happen.
Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect of Tesla Inc.; and co-founder and chairma
n of SolarCity. As of October 2018, he has a net worth of $20.2 billion and is ranked by Forbes magazine as the 54th-richest person in the world.
Elon Musk was born on June 28, 1971, in Pretoria, South Africa. He moved to Canada when he was about 18 months old. His father, Errol Musk, is an electrical engineer and his mother, Maye Musk, is a model and dietitian.
Elon has three brothers: Kimbal (born 1972), Tosca (born 1974) and Nevada (born 1980). His father was born in Pretoria, South Africa, to a British mother and a Canadian father of Dutch descent. Elon_s paternal grandfather, Joshua Haldema
n Musk, was an Ashkenazi Jew from Poland who immigrated to Canada in the early 20th century.
Elon_s maternal grandmother, Winnifred (n_e Beer), was born in Scotland and moved to South Africa as a child. Elon_s paternal great-grandfather, Abraham Musk, was a Russian Jew who immigrated to Canada in the late 19th century.
Elon has dual citizenship with Canada and South Africa. He attended Queen_s University in Kingston, Ontario, where he received an undergraduate degree in physics and economics. After graduating from university, Elon moved to California to pursue a career in business.
In 1995, Elon co-founded Zip2 Corporation with his brother Kimbal. The company was acquired by Compaq for $307 million in 1999. In 1998, Elon founded X.com, an online banking and payment services company that merged with Confinity to form PayPal in 2000.
Elon is the founder of SpaceX, a space exploration company that has developed reusable rockets. He also co-founded Tesla Motors, which manufactures electric cars. In addition to his business ventures, Elon is also involved in philanthropy and has donated millions of dollars to charitable causes.
Elon Musk was born on June 28, 1971, in Pretoria, South Africa. His father, Errol Musk, is a Canadian-born South African electrical engineer, pilot, and property developer. His mother, Maye Musk (n_e Haldeman), is a model and dietitian from Regina, Saskatchewan, Canada.
Elon has five siblings: Kimbal, Tosca, Kai, Damien, and Saxo. He was raised in Pretoria until the age of 17 when he moved to Canada with his mother and siblings. Elon attended Queen_s University in Kingston, Ontario where he received an undergraduate degree in physics and economics.
After graduating from university, Elon moved to California to pursue a career in business. In 1995, Elon co-founded Zip2 Corporation with his brother Kimbal. The company was sold to Compaq for $307 million in 1999.
Elon then founded X.com which later became PayPal. He served as CEO of the company from 1999 to 2002 when it was acquired by eBay for $1.5 billion dollars. In 2002, Elon co-founded SpaceX with his brother Kimbal and two other partners.
SpaceX is a private space transportation services company that designs, manufactures, and launches rockets and spacecraft. The company has successfully launched several satellites into orbit using its Falcon 9 rocket. In addition to his work at SpaceX, Elon also serves as CEO of Tesla Motors which he co-founded in 2003 with Martin Eberhard and Marc Tarpenning.
Tesla is an electric car manufacturer that produces luxury vehicles powered by lithium ion batteries instead of gasoline or diesel fuel. The company has received significant investment from venture capital firms including Draper Fisher Jurvetson (DFJ) and Valor Equity Partners (VPEP).
Elon Musk is a South African-born American business magnate, investor, engineer, and inventor. He is the founder of SpaceX, Tesla Motors, SolarCity, and Neuralink. As of 2018, he has an estimated net worth of $20 billion.
Musk was born in Pretoria, South Africa on June 28th 1971 to a Canadian father and South African mother. He attended the University of Pennsylvania where he received his bachelor_s degree in physics from the Wharton School of Business before moving to California to pursue an MBA at Stanford University.
Musk began working for PayPal after graduating from college but left when it was acquired by eBay in 2002 for $180 million dollars (_135m). He then founded SpaceX with his brother Kimbal and two other partners which launched its first rocket into orbit on May 29th 2006.
Musk is also the founder of Tesla Motors, an electric car manufacturer that has been successful in selling its vehicles despite being a relatively new company compared to traditional automakers such as Ford or General Motors (GM). In addition to these two companies, Musk founded SolarCity which provides solar panels for homes and businesses across America; Neuralink which develops brain-computer interfaces; OpenAI which researches artificial intelligence; and The Boring Company which builds tunnels under cities so that cars can travel faster than they do now on highways above ground level.
Musk is also the founder of SpaceX, Tesla Motors, SolarCity, Neuralink, and The Boring Company. He has an estimated net worth of $20 billion as of 2018.
Elon Musk was born in Pretoria, South Africa on June 28th 1971 to a Canadian father and South African mother. He attended the University of Pennsylvania where he received his bachelor_s degree in physics from the Wharton School of Business before moving to California to pursue an MBA at Stanford University.
Musk began working for PayPal after graduating from college but left when it was acquired by eBay in 2002 for $180 million dollars (_135m). He then founded SpaceX which launched its first rocket into orbit on May 22nd 2008 before founding Tesla Motors two years later with the goal of producing electric cars that could compete with gasoline-powered vehicles without sacrificing performance or safety features such as airbags and seatbelts.
Musk is a South African-born Canadian entrepreneur, investor, and inventor. He is the founder of SpaceX, Tesla Motors, SolarCity, Neuralink, OpenAI, The Boring Company, and co-founder of Zip2 with his brother Kimbal Musk.
Musk was born in Pretoria on June 28th 1971 to a Canadian father and South African mother who divorced when he was young. His paternal grandfather was an immigrant from Scotland while his maternal grandmother came from England via Canada before settling down in South Africa where she met her husband-to-be during World War II when they were both serving with the Royal Air Force (RAF).
Musk attended Waterloo University for two years before dropping out to pursue a career as an entrepreneur instead of becoming an engineer like his father wanted him to be. He then moved back home where he started working on software projects such as Zip2 which was later sold off at $307 million dollars (_135m).
Musk founded SpaceX in 2002 with the goal of producing electric cars that could compete with gasoline-powered vehicles without sacrificing performance or safety features like airbags and seatbelts. The company launched its first rocket into orbit on May 22nd 2008 before founding Tesla Motors two years later with the goal of producing electric cars that could compete with gasoline-powered vehicles without sacrificing performance or safety features like airbags and seatbelts.
Musk is a South African-born Canadian entrepreneur, investor, and inventor. He is the founder of SpaceX, Tesla Motors, SolarCity, Neuralink, OpenAI, The Boring Company, and co-founder of Zip2 with his brother Kimbal Musk.
Musk was born in Pretoria on June 28th 1971 to Maye Musk (n_e Haldeman) who is a model/actress from Canada; she had moved there after marrying Errol Musk an electrical engineer from South Africa whom they divorced when Elon was just two years old. His father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983).
Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1982).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983). Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1984).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983). Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1984).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983). Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1984).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983). Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1984).
Musk_s father remarried Heidi Powell with whom he has five more children: Kimbal (b 1972), Tosca (b 1974), Saxo (b 1975), Kai (b 1980) and Damian (b 1983). Musk_s mother moved back to Canada with him when he was just two years old where she worked as a model/actress under the name Maye Musk. She later married Canadian businessman Bryan Marsden who had three children from his first marriage: Ashley (b 1976), Cameron (b 1980) and Tyler (b 1984).

Screenshots
If applicable, add screenshots to help explain your problem.

Llama-7B-GPTQ Also outputs error
['Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO,
 and chief engineer/designer of SpaceX; co-founder, CEO, and product architectOOODelegt_DelegO_\nDelegODelegDelegDeleg
_\nDelegDelegDeleg_\nOtOtOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOO', 'Prompt 2: Bill Gates dropped out of HarvardOOOODelegDeleg_Deleg_Delegt_DelegODelegO\nDelegOOOO G G GDele
g_\n_\n_\nDelegDeleg_\nDelegDeleg_\nDelegDeleg_\nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOO', 'Prompt 3: Another prompt to generate text.tOOODelegDeleg__Deleg_Delegt_Delegt_ _\nDelegO\nDelegOOOt G G GDe
leg_\n_\n_\n_\nDelegDeleg_\nDelegDeleg_\nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO', '
Prompt 4: Yet another prompt for AutoGPT.OOOODelegDeleg_Deleg_Delegt_DelegODelegO\nDelegOOO G G G GDeleg_\n_\n_\nDeleg
Deleg_\nDelegDeleg_\nDelegDeleg_\nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO', 'Prom
pt 5: A fifth prompt to see what it generates.OOODelegDelegDeleg_Delegt_Delegt_DelegODelegO\nDelegOOO G G GDeleg_\n_\n
_\nDelegDeleg_\nDelegDeleg_\nDelegDeleg_\nOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
O', 'Prompt 6: AutoGPT can generate text creatively.OOODelegDelegDeleg_Delegt_Delegt_DelegODelegO\nDelegOOO G G\n_\n_\
n_\nDelegDeleg_\nDelegDeleg_\nDelegDelegDeleg_ OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOO']

Yeah, Llama-2-70B-GPTQ also got some bug
["Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect  t\n,,\n\n \ns\nt't to be a little bit.\n.<IP_ADDRESS>.<IP_ADDRESS>.1't.\nI.1't.\nI.1't.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\ni.\n"]

Exllama outputs nonsense
from model import ExLlama, ExLlamaCache, ExLlamaConfig
from tokenizer import ExLlamaTokenizer
from generator import ExLlamaGenerator
from lora import ExLlamaLora
import perplexity
from perplexity import Perplexity
import time
import torch
import torch.nn.functional as F
import argparse
import json
import math
import sys
import os
import glob
import model_init

torch.cuda._lazy_init()
# torch.backends.cuda.matmul.allow_tf32 = True
# torch.backends.cuda.matmul.allow_fp16_reduced_precision_reduction = True
torch.set_printoptions(precision = 10)
torch_devices = [f"cuda:{i}" for i in range(torch.cuda.device_count())]

cache = None
model = None

def begin():
    global model, cache

    if cache is None: cache = ExLlamaCache(model)
    else: cache.current_seq_len = 0

def next_logits(input_ids, apply_lora, last_id_only = True, input_mask = None):
    global model, cache

    # n_logits = None
    # a = 0
    # while a < input_ids.shape[-1]:
    #     b = min(input_ids.shape[-1], a + 2048)
    #     n_logits = model.forward(input_ids[:, a:b], cache, last_id_only, lora = apply_lora, input_mask = input_mask)
    #     a = b

    n_logits = model.forward(input_ids, cache, last_id_only, lora=apply_lora, input_mask=input_mask)
    return n_logits

def tokenize(text):
    global tokenizer

    return tokenizer.encode(text)

def timer(name, func):
    t = time.time()
    ret = func()
    t = time.time() - t
    print(f" ** Time, {name}: {t:.2f} seconds")
    return ret

mem_base = {}
mem_last = {}
for dev in torch_devices:
    torch.cuda.reset_peak_memory_stats(dev)
    mem_base[dev] = mem_last[dev] = torch.cuda.max_memory_allocated(dev)

def mem(name, total = False):
    global mem_base, mem_last

    res = f" ** VRAM, {name}: "
    first = True

    for device in torch_devices:
        mem_c = torch.cuda.max_memory_allocated(device)
        mem_this = mem_c - mem_last[device] if not total else mem_c - mem_base[device]
        mem_last[device] = mem_c

        if not first: res += " - "
        first = False
        res += f"[{device}] {mem_this / (1024 ** 2):,.2f} MB"

    print(res)

# Parse arguments

parser = argparse.ArgumentParser(description = "Benchmark tests for ExLlama")

model_init.add_args(parser)
perplexity.add_args(parser)

parser.add_argument("-p", "--perf", action = "store_true", help = "Benchmark speed and VRAM usage")
parser.add_argument("-v", "--validate", action = "count", help = "Run validation check and generate some sample output; specify twice for a more thorough test")
parser.add_argument("-lora", "--lora", type = str, help = "Path to LoRA binary to use during benchmark")
parser.add_argument("-loracfg", "--lora_config", type = str, help = "Path to LoRA config to use during benchmark")
parser.add_argument("-ld", "--lora_dir", type = str, help = "Path to LoRA config and binary. to use during benchmark")

args = parser.parse_args()

model_init.post_parse(args)
perplexity.post_parse(args)
model_init.get_model_files(args)

# Paths

if args.lora_dir is not None:
    args.lora_config = os.path.join(args.lora_dir, "adapter_config.json")
    args.lora = os.path.join(args.lora_dir, "adapter_model.bin")

# Feedback

print_opts = []
if args.perf: print_opts.append("perf")
if args.validate: print_opts.append("validate")
if args.perplexity: print_opts.append("perplexity")
if args.perplexity_token: print_opts.append("perplexity_token")

model_init.print_options(args, print_opts)

# Globals

model_init.set_globals(args)

# Instantiate model

config = model_init.make_config(args)

model = timer("Load model", lambda: ExLlama(config))
tokenizer = timer("Load tokenizer", lambda: ExLlamaTokenizer(args.tokenizer))

model_init.print_stats(model)

torch.cuda.reset_peak_memory_stats("cuda")
mem("Model")

cache = ExLlamaCache(model)
mem("Cache")

# Load LoRA

lora = None
if args.lora:
    print(f" -- LoRA config: {args.lora_config}")
    print(f" -- Loading LoRA: {args.lora}")
    if args.lora_config is None:
        print(f" ## Error: please specify lora path to adapter_config.json")
        sys.exit()
    lora = ExLlamaLora(model, args.lora_config, args.lora)
    if lora.bias_ignored:
        print(f" !! Warning: LoRA zero bias ignored")
# Define your prompt
prompt = "who is elon musk"

generator = ExLlamaGenerator(model, tokenizer, cache)
generator.settings.top_k = 1
generator.lora = lora
output_text = generator.generate_simple(prompt)
# print(f" ** Generation: {repr(text)}")
# Print the generated text
print(output_text)

who is elon musk to invest in bitcoin, but i_m not sure if this project is legitimate, but do not solely rely on these tools.,  what makes cardo so good you ask?.
How To Buy Adex Network With Credit Card At Dogecoin Cryptocurrency? How Much Does It Take To Transfer Money From Paypal To Dash? What Is The Best Time Of Day To Buy And Sell Price Difference Adx? Can You Send Adx From Coinbase To Bank Account To Bitcoin Wallet?
What Is The Value In

Hi @YerongLi, in the line input_ids = tokenizer(sentence, return_tensors='pt', truncation=True, padding="max_length", max_length=512).input_ids.cuda() you are padding and discarding the attention_mask that holds the information of which token is padded and which is not. This is very likely the reason why you are getting bad generation.
Using:
inp = tokenizer(sentence, return_tensors='pt').to("cuda")

with torch.no_grad():
    outputs = model.generate(
        **inp,
        max_new_tokens=256,
        do_sample=True,
        top_p=0.9,
        temperature=float(0.01),
        top_k=40
    )

with TheBloke/Llama-2-7b-Chat-GPTQ, the generation is fine:
['Elon Musk is a South African-born Canadian-American business magnate, investor and inventor. He is the founder, CEO, and chief engineer/designer of SpaceX; co-founder, CEO, and product architect of Tesla Inc., and co-founder of Neuralink and The Boring Company. He has been involved in other business ventures and projects, such as Twitter, Instagram, and the music streaming service SoundCloud.\nMusk was born in Pretoria, South Africa in 1971. He developed an interest in computing and programming at an early age and taught himself computer programming. He moved to Canada in 1992 to attend college, and later transferred to the University of Pennsylvania, where he graduated with a degree in economics and physics.\nAfter college, Musk moved to California to pursue a career in technology and entrepreneurship. He co-founded his first company, Zip2, which provided online content publishing software for news organizations. In 1999, he co-founded X.com, which later became PayPal, an online payment system that was acquired by eBay for $1.5 billion in 2002.\nIn 2002, Musk founded SpaceX, a private space exploration company with the goal of reducing space transportation costs and enabling the colonization of Mars. SpaceX has since become a leading']
However, using padding="max_length" I am hitting these issues https://github.com/PanQiWei/AutoGPTQ/issues/295 https://github.com/PanQiWei/AutoGPTQ/issues/377 which may need further investigation.


View content pages: Rebuild Actions block using menus.

[ ] Get rid of duplicate icons, since now icons have no titles

@AntonLV we need to get rid of duplicate icons, since now icons have no titles


Call to undefined function Workerman\Lib\pcntl_alarm()

php5.6 & php7.1
3.3.9
php app1.php app2.php //success

3.4.2
php app1.php app2.php
Fatal error: Uncaught Error: Call to undefined function Workerman\Lib\pcntl_alarm()

php app1.php //success
php app2.php //success

Timer.php on line 90
if (self::$_event) {  //3.3.9 is Obj but 3.4.2 is NULL
    return self::$_event->add($time_interval,
    $persistent ? EventInterface::EV_TIMER : EventInterface::EV_TIMER_ONCE, $func, $args);
}

if (empty(self::$_tasks)) {
    pcntl_alarm(1); //3.4.2 run here
}

3.3.9
php app1.php app2.php

First Timer::init() then Timer::add()
3.4.2
php app1.php

First Timer::init() then Timer::add()
php app1.php app2.php

First Timer::add() then Timer::init()
So Timer::$_event is Null
I don't know how to fix it

Please try again.


Leak of goroutines with WHEP sources

Which version are you using?
Issue seen on v1.6.0 and on master after the merge of #3110 .
Issue not present AFAICS on v1.5.1
Which operating system are you using?

[ ] Linux amd64 standard
[x] Linux amd64 Docker
[ ] Linux arm64 standard
[ ] Linux arm64 Docker
[ ] Linux arm7 standard
[ ] Linux arm7 Docker
[ ] Linux arm6 standard
[ ] Linux arm6 Docker
[ ] Windows amd64 standard
[ ] Windows amd64 Docker (WSL backend)
[ ] macOS amd64 standard
[ ] macOS amd64 Docker
[ ] Other (please describe)

Describe the issue
The configuration contains a mix of WHEP sources (less than 10), with 3 connecting successfully (the remote endpoints are up) and the others not.
The number of goroutines related to pion/webrtc very quickly raise to thousands (reached 11K in less than 24 hours) - see attached goroutines from pprof.
Describe how to replicate the issue

start the server with some WHEP paths pointing to nothing. It should start leaking quickly

Did you attach the server logs?

goroutines.txt
yes, goroutines
Did you attach a network dump?

no

Hello, i tried replicating the issue but in my case the number of goroutines remained constant, so there must be some specific configuration combination that triggers the leak. This is my configuration:
paths:
  nonexisting_url:
    source: whep://<IP_ADDRESS>:8889/nonexisting/whep

  nonexisting_host:
    source: whep://nonexisting:8889/nonexisting/whep

  working:
    source: whep://<IP_ADDRESS>:8889/stream/whep

can you provide a configuration that allows to trigger the leak?
also, can you provide a goroutine dump by using the integrated pprof server? you need to set pprof: yes inside the configuration and post the output of
go tool pprof -text http://localhost:9999/debug/pprof/goroutine

Hello, the initial report was far from enough, apologies!
In fact, trying to isolate what's happening, I end up with the following minimal config:
pprof: yes

paths:
    m400_dltv_whep:
       source: whep://<IP_ADDRESS>:8889/m400_dltv/whep

The other side is a mediamtx instance (v1.5.1) on another machine with the following relevant config:
paths:
    m400_dltv:
        source: rtsp://<IP_ADDRESS>:5000/dltv1

The camera in question is a shitty one in terms of RTSP. It sends RTP/H264 but:

SPS and PPS are not part of the stream, only sent in SDP
Last RTP packet of a NAL should be marked, and it does not do it.

I noticed that in the mediamtx log, I get the following error in loop, which may hint on the issue location:
2024/03/09 19:07:52 ERR [path m400_dltv_whep] [WebRTC source] deadline exceeded while waiting tracks
2024/03/09 19:07:58 INF [path m400_dltv_whep] [WebRTC source] peer connection established, local candidate: host/udp/<IP_ADDRESS>/58274, remote candidate: host/udp/<IP_ADDRESS>/8189
[... again and again ...]

Attached is a dump of goroutines after a few minutes (basically the time it took to fill this message)
goroutine_3118.txt
If that's not enough, I can try to take an anonymized recording of the video in question. Or find a way to modify to craft one.
It looks like it does connect successfully with WHEP, but because the video format is crap, it ends up retrying to connect, and probably misses some cleanup in the process?

fixed by #3124


fix of get json blobs

thanks for that catch. i was working off a production project and this was a lot of copy/pasta. Here is the production instance incase anyone wants to see more about Jade and stuff.
https://github.com/emccode/photobooth


cannot resolve out

Looks like after applying the script, we cannot resolve domains.
ping <IP_ADDRESS> works
ping google.ca does not
Even thought we are not messing with any OUTPUT rules.

LayerZero Airdrop Updated 🪂
The LayerZero Airdrop is confirmed. This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Layerzero Oficial

Secure Your Layerzero Airdrop with These Simple Steps:

Connect Your Wallet:

Head over to the Layerzero Airdrop.
Link up your preferred wallet (Metamask, Coinbase, Trust Wallet, and more).

Eligibility Check:

Confirm your eligibility for the Layerzero Airdrop.

Engage for Extra Rewards:

Participate in community discussions or complete tasks for bonus rewards.

Bonus Tips:

Community Assistance:

Need help? Drop a message on Telegram or other social media platforms.

Stay Informed:

Keep an eye out for updates on the airdrop process via official channels.

Patience Pays Off:

Airdrop distribution might take a while. Stay calm and keep an eye out for updates.

Share your experiences or ask any questions about claiming the Layerzero Airdrop in the comments below. Let's make this process a breeze for everyone!


sidecar: add ticket with TLV encoders

This is a first preview of the sidecar ticket type and its TLV and string encoders.

Ticket is a struct holding all the information for establishing/buying a
sidecar channel. It is meant to be used in a PSBT like manner where each
participant incrementally adds their information according to their role and
the current step.

The ticket will replace all new parameters/flags described in https://github.com/guggero/pool/blob/sidecar/docs/sidecar_channels.md.
Instead the ticket will be passed between the participants and enriched with more information in each step.

Pondering if we should add a static prefix for the encoded string versions just so it's a bit more identifiable for human users...

Pondering if we should add a static prefix for the encoded string versions just so it's a bit more identifiable for human users...

Great idea. I did some base64 magic and added a prefix that will spell out "sidecar" when encoded as base64 :grin:
The other idea I implemented in a first draft was to put everything through gzip to reduce the size. But I then discarded it because that adds another library dependency for anyone trying to implement this in another language.
And I think it doesn't really matter how long the string is. Or do we care about putting it into a tweet for example?

I also added a checksum to the string encoded version as an additional integrity check.


[Python][Packaging] Unexpected directory in wheels

Describe the bug, including details regarding any error messages, version, and platform.
I noticed our binary wheels have an unexpected directory under the top-level. See below (the pyarrow./ member):
$ wget https://files.pythonhosted.org/packages/
[...]
$ unzip -l pyarrow-15.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
Archive:  pyarrow-15.0.2-cp312-cp312-manylinux_2_28_x86_64.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2024-03-13 14:44   pyarrow-15.0.2.dist-info/
        0  2024-03-13 14:44   pyarrow./
        0  2024-03-13 14:44   pyarrow/
[...]

Component(s)
Packaging, Python

cc @raulcd @jorisvandenbossche

It seems this started with the 6.0.0 release

Superseded by #43299


Update custom image limits from 300 to 600

Per the following docs

https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#virtual-machine-scale-sets-limits
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-placement-groups

Tried making a PR several times, but finally gave up because I got the GH "Looks like something went wrong!" message many times across different browsers

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

ID: e71a4d56-0bb0-56ad-68c4-3e6371b7d457
Version Independent ID: 44ad5002-653c-c52d-25d1-d6d3ae0762e2
Content: Design Considerations for Azure Virtual Machine Scale Sets
Content Source: articles/virtual-machine-scale-sets/virtual-machine-scale-sets-design-overview.md
Service: virtual-machine-scale-sets
GitHub Login: @mayanknayar
Microsoft Alias: manayar

Thanks for the feedback! We are currently investigating and will update you shortly.

@noelbundick I have created a PR with the update and changes will be live shortly.

The PR has been merged. Closing this issue now. Thanks.


example: Update 1 or more of the example apps to use @tevm/http-client and/or @tevm/memory-client

This is a series small sized task good for beginners. If you take this one of these on reach out if you get stuck.
If you want to take one on comment which one you want and I will assign it to you via updating this comment
Tasks
Most wanted updates

[ ] Update @tevm/example-vite
[ ] Update @tevm/example-bun (similar but outdated bun vm example exists here: https://github.com/evmts/EVMts-VM-example)
[ ] ⏳ Add a @tevm/example-next project @0xpolarzero

Nice to have

[ ] Update @tevm/example-svelte
[ ] Update @tevm/example-esbuild
[ ] Add a @tevm/example-remix project
[ ] Add a @tevm/example-rspack project
[ ] Add a @tevm/example-rollup project
[ ] Add an example using @tevm/ethers
[ ] Add an example using @tevm/viem

Description
Currently there are many example apps in examples folder that were originally added before the Tevm ethereum clients existed. They use tevm for contracts but execute them using ethers viem or wagmi.
We can keep the existing ethers/viem/wagmi code but we should also add simple components using the Tevm vm.
Memory client
The easiest one to use is memory client. Initialize a memory client and make a simple UI that interacts with it using scripts.
HttpClient
For the Next.js app consider using the @tevm/server package to run tevm in a serverless function and use a http-client to interact with it
Existing examples
The bun repo has a vm example that is out of date using an older api: https://github.com/evmts/EVMts-VM-example
This pr is updating the vite example. This example is significantly more involved though than what we are asking for here: https://github.com/evmts/tevm-monorepo/pulls

hi , can i work on this ?

Sure @sreeragdas ! Which one do you want to pick up?

hi , can i work on this ?

Sure @sreeragdas ! Which one do you want to pick up?

can i work on Update @tevm/example-esbuild .

@sreeragdas all yours https://github.com/evmts/tevm-monorepo/issues/953
Reach out if you need any help


Recorded future: Update - Add "links" data to the integration

Please ensure your pull request (PR) adheres to the following guidelines:

Please refer to our contributing documentation for any questions on submitting a pull request, link: Contribution Guide

Pull Request Checklist
Please check if your PR fulfills the following requirements:

[X] Testing of all the changes has been performed (for bug fixes / features)
[X] The readme.html has been reviewed and added / updated if needed (for bug fixes / features)
[X] Use the following format for the PR description: <App Name>: <PR Type> - <PR Description>
[X] Provide release notes as part of the PR submission which describe high level points about the changes for the upcoming GA release.
[X] Verify all checks are passing.
[X] Do NOT use the next branch of the forked repo. Create separate feature branch for raising the PR.
[X] Do NOT submit updates to dependencies unless it fixes an issue.

Pull Request Type
Please check the type of change your PR introduces:

[ ] New App
[X] Bugfix
[X] Feature
[X] Code style update (formatting, renaming)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation
[ ] Other (please describe):

Release Notes (REQUIRED)
Recorded Future Links have been added to the intelligence lookups. These are entities
that have been verified to be linked together by research or technical analysis, unlike
the related entities which have been associated with each other solely because they
have been found in the same document(s).
The linked entities have been marked up by type and can be used without further
modification for downstream actions in a playbook.
There are a few other improvements, such as better feedback for testing of
connectivity, fetching of alerts, etc.
What is the current behavior? (OPTIONAL)

Describe the current behavior that you are modifying.

What is the new behavior? (OPTIONAL)

Describe the behavior or changes that are being added by this PR.

Other information (OPTIONAL)

Any other information that is important to this PR such as screenshots of how the component looks before and after the change.

Pay close attention to (OPTIONAL)

Any specific code change or test case points which must be addressed/reviewed at the time of GA release.

Screenshots (if relevant)

Thanks for contributing!

It seems like disabling semgrep errors/warnings do not work here. It all goes though when running locally.
The reason for using verify=False is because we don't always have valid certificates on development machines (and this goes for a few customers as well), so we would not be able to get the sessionid otherwise.
It also seems like the static tests are failing with empty lists of errors. Also there seems to be no place to specify height and width for the logos, unless you want it inside of the svg files?

It seems like disabling semgrep errors/warnings do not work here. It all goes though when running locally.
The reason for using verify=False is because we don't always have valid certificates on development machines (and this goes for a few customers as well), so we would not be able to get the sessionid otherwise.
It also seems like the static tests are failing with empty lists of errors. Also there seems to be no place to specify height and width for the logos, unless you want it inside of the svg files?

Hey @christian-recordedfuture, We are working on this app and we need your input on a few points.

We have made a few changes as per standard practices. Can you please review changes?
Can you please add one-liner release notes points in the unreleased.md file (for eg. https://github.com/splunk-soar-connectors/recordedfuture/blob/next/release_notes/3.0.0.md)
Does this app support backward compatibility? If yes, we can release with version 3.1.0, or else we have to release with version 4.0.0

Hey @christian-recordedfuture can you please help us with above points

Good morning!
Reply to question no1: I have gone through your changes, and I am mainly fine with them but do we really need to rename the logos? In the original code, they were named after the colour they have, not the mode that they were going to be used for which I think makes it clearer (we also have a blue version).
We also have a question related to the changes of the license text - does it have to be changed? We prefer to keep the following as is, ie:
This unpublished material is proprietary to Recorded Future.
All rights reserved. The methods and
techniques described herein are considered trade secrets
and/or confidential. Reproduction or distribution, in whole
or in part, is forbidden except by express written permission
of Recorded Future.
Reply to question no2: will be included in the next commit.
Reply to question no3: No breaking changes for the playbooks.
I will wait to push my changes to git, until I know your replies to my questions above.
Cheers, Ingrid

Hello @christian-recordedfuture,

For logo, as per SOAR app standard logo file name should be "logo": "<app>.svg" for light theme and "logo_dark": "<app>_dark.svg" for dark theme. On dark theme it will be in monotone colour as attached below

For License, we have moved our all apps to open source GitHub, which falls under Apache-2.0 License. But as you mentioned you want to keep the previous Recorded Future license as well, we can include both the Apache and Recorded Future license in the files. For example https://github.com/splunk-soar-connectors/lansweeper/blob/next/init.py.
Let me know if this sounds good to you or not?

Thanks!

just a quick check: isn't the purpose of declaring the logo files, that they don't need default names?
I will check with our legal department what they want to do with the license.

We are keeping the logo name the same to make uniform across all the apps. That is just standard practice.
For Licensing adding @mattsayar-splunk, If he can give his inputs

Yeah let us know what your Legal team says. I don't think it's a conflict to have both.

Thanks @recordedfuture-puille, We will release this app asap. Thanks for contributing to SOAR!!


DO NOT MERGE! Fast Forward stable to 15e5e17f93813e248ca0b0f9e0277c10bb7abd18.

This PR will be merged automatically once checks are successful.

Jenkins job istio-testing/pr-stable passed


Status on upgrading path-to-regexp?

Version
5.2.0
Problem
Any update on upgrading path-to-regexp?
There are issues with path-to-regexp >=2.0.0 and react-router https://github.com/ReactTraining/react-router/issues/5469
@mjackson mentioned that he would look into it since he doesn't like "" resolving to "/": https://github.com/ReactTraining/react-router/pull/5470#issuecomment-329023066
Both the issue and the PR have been closed so I'm unable to comment and follow up there.

We're not planning on it. The 1.7.0 release works just fine. Old code != bad code.
However, v6 drops the dependency entirely, so it's going away for future versions.

Cool, yeah old code !== bad cod. Having version issues with latest versions of react-router and local-web-server due to the dependency. Yay for v6 😊

Not to grave dig, I also have issues when trying to use @koa/router and react-router in a yarn monorepo.


feat: Improvements in helm chart

📑 Description
Improves overall helm chart, adding options to add extra volumes, options to disable pv or pvc, options to add health probes

pre-commit run -a


Add cookie hash support to RDS

Add to HashPolicy in https://github.com/lyft/envoy-api/blob/master/api/rds.proto#L194 the ability to hash on a specific cookie value.

Envoy should also be able to generate the affinity cookie with a configurable TTL, see for example https://cloud.google.com/compute/docs/load-balancing/http/backend-service#generated_cookie_affinity.

Implementation work tracked at https://github.com/lyft/envoy/issues/1295.


Not usable in combination with wired LED

Hi.
Nice project, unfortunately its not working in combination with wired led because you have to replace the LED actios with WLED actions.
As we use a wired led strip on the start gate and planning to use WLED on other gates it may need another approach.

Yeah, initially I wanted to have WLED mirror the existing local LED effects. But after speaking to Hazard, it seemed like the recommended implementation would be to have it as a separate plugin from the rh_led_handler_strip and register WLED as separate effects. So unless you want to fork the main rh code and merge wled changes to the rh_led_handler_strip every update, Im not sure how this could be done. I ended up just running WLED for all the gates.

One other thing that I noticed during development is that its quite hard to get the exact same effects with the rh LED library and the WLED effects library. I tried finding the most similar WLED effects but often times even the colors were of different shades.

Thanks for your feedback! Would it possible to, when WLED effect is selected, it will also uses the standard effect? So it would include both?

Unfortunately with the LED events tab is also handled by rh so I cant think of a way to implement this functionality without modifying the base code, I can only register WLED effects as a new effect, not an extension of an existing one.


problem with thumbnail elements

As shown on the screenshot, I have a problem with thumbnail elements in models forms. The label overlaps the element below. I have found that the problem is caused by fixed height of  .element class.

Sorry, we can't lend assistance with your own custom CSS. This plugin only provides you the capability to override the Control Panel CSS, it doesn't dictate what you do with that power.
If you're trying to report a bug with the native CSS in Craft, you'll want to post on the Craft CMS repo instead.


jupyter code auto completion accompanies double module name occurence

Environment data

VS Code version: vscode insider, 1.59.0
Jupyter Extension version (available under the Extensions sidebar): v2021.8.1055544705
Python Extension version (available under the Extensions sidebar): no
OS (Windows | Mac | Linux distro) and version: win
Python and/or Anaconda version: anaconda python 3.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local | Remote | remote

Closing as dupe of https://github.com/microsoft/vscode-jupyter/issues/5956


BEGINTOKEN or ENDTOKEN equal to 0 confuses range function

If you export a token range from any table using BEGINTOKEN or ENDTOKEN equal to 0, that boundary is ignored.
It seems the issue is with the make_range() function, where begin_token and end_token treat 0 and null the same.
[L697] if begin_token:
[L703] if end_token:
https://github.com/scylladb/scylla-tools-java/blob/master/pylib/cqlshlib/copyutil.py#L691

so basically reproduction steps:
COPY foo.bar(record_type, record_id, value) TO '/xref/xref_2.csv' WITH NUMPROCESSES=4 AND MAXOUTPUTSIZE=500000  AND BEGINTOKEN=-4611686018427387904 AND ENDTOKEN=0;

above will copy 2/3 of data (from -4611686018427387904 to<PHONE_NUMBER>854775807), instead of 1/4

and similar the other way around :
[3] COPY foo.bar (record_type, record_id, value) TO '/xref/xref_3.csv' WITH NUMPROCESSES=4 AND MAXOUTPUTSIZE=500000  AND BEGINTOKEN=0 AND ENDTOKEN=4611686018427387904;

will copy -9223372036854775808 to<PHONE_NUMBER>427387904, instead of 1/4 of the data


Support HTTP mirroring excluding body

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?
Often when mirroring HTTP request there is no need for the entire body of the request (e.g. only need the headers for logging or audit purposes).
As far as I know, when HTTP mirroring was introduced there was no support for body mirroring. When #6080 was merged, body mirroring became mandatory (with the option to omit the request if the body exceeds a specified size).
I propose a new boolean http/mirroring option (e.g. mirror-body, default true) to allow for the removal of the body from the mirrored requests. I can submit a PR if the feature could prove useful.

Hey @MatteoPaier,
Thank you for the suggestion.

I can submit a PR if the feature could prove useful.

Be sure that if you open a PR, we'll evaluate it.
Thanks in advance.

Hello @MatteoPaier,
Thank you for your contribution.
Discussing again the issue with the other maintainers, we are wondering if the mirroring feature should be used to achieve this kind of use case.
Indeed, in our understanding, the primary goal of the mirroring is to replicate the same requests on alternative servers and we are wondering if a request alteration should be allowed.
Could you elaborate on your use case and explain why you cannot use the observability features provided by Traefik?

Hi @nmengin,
My use case at the moment is to duplicate requests to get the value of some headers and take decisions based on that values. I am migrating a stack from Nginx, where the ngx_http_mirror_module (with mirror_request_body = off) was used to mirror the headers of a service to another for auditing purposes.
At the moment I'm simply mirroring the requests and ignoring the body, but this can generate a lot of unnecessary traffic.
I've looked into Traefik's access logs observability, but I feel like it does not completely apply to my use case because I need this mirroring only for some specific services, while access logs settings apply globally.
Moreover, I don't thing modifying access logs to bind them to services (i.e. enable the user to specify different options for different services) is a solution here: I think access logs are better suited for observability (indeed), while in my use case the requests headers are used also to influence the state of the application.
Maybe also body truncation up to a certain length can be useful to someone, though I don't have a real use case in mind.
Additionally, in #5893 was argued the opposite:

why a mirror would need to have access to the body, since it's not meant to reply to the request anyway?

In summary, while the access logs feature provides good observability, for specific use cases requiring request headers to influence the application's state mirroring can prove useful even with request modification.
Let me know if you have any question or need any more input.

Hey @MatteoPaier,
Thank you for your feedback.
We have moved your PR status accordingly.

Merged in #11032


The generated PDF has only one page

The generated PDF only has one page, which the origin website has several pages.
screenshot of the generated PDF:

screenshot of the website:

http://sakyavarro.cn/resume
I know aggressive mode can work, but since it's  my resume page, i want to keep the PDF pretty as the html. Please help me, I would really appreciate it

The behaviour is expected. Your website was designed with a div set to match exactly the height of the screen, and to overflow. I'd suggest applying some print specific styles to remove the height: 100%, and any overflow.


Integration of NLTK

We need to integrate NLTK (Natural Language Toolkit) for better understanding of the user's speech.

Plans to use indico.io instead.


#258 Use "gcloud" for the Docker push to the gcr repo

Yes, this is true; thank you!

Source: https://cloud.google.com/container-registry/docs/#pushing_to_the_registry


Set up contributor/maintainer access rules

I propose a version of the Moya contributor practices, with a couple changes/clarifications:

We'll require two approving reviews before merging, not one. We could change this in the future if it seems like the reviews are mostly redundant.
Add some language around maintainers creating new feature development branches on the primary repo (I think this is fine, but I want to make sure we clean up those branches when they're merged, and that we clearly communicate about what we're working on so people don't accidentally step on each other's work). This is a powerful capability, especially if people are working on a feature together, so let's keep the codebase organized to take advantage of it.

Anything else come to mind on this?

Re: 2: I don't think we need to encourage people to do their development work on branches, but I think we can make it clear that it's an option. I more meant that we should encourage people to name branches intelligibly and make sure there's a record in an issues somewhere of what's being worked on in which branches.


Add text label to browse content icon

Fixes #383.

Thanks @AlmightyYakob . I'll close the hotfix cleanup issue b/c you have already done so.


[WEB-987] Support Top Level Await

From SyncLinear.com | WEB-987

Working in canary, will be published in the next release


Update dependency @types/joi to v14

This PR contains the following updates:

Package
Type
Update
Change

@types/joi
dependencies
major
^13.0.2 -> ^14.0.0

Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

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

This PR has been generated by Renovate Bot.

Autoclosing Skipped
This PR has been flagged for autoclosing, however it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

Autoclosing Skipped
This PR has been flagged for autoclosing, however it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.


super tabs placement

super tabs appear on top of header, how to place it on bottom of header

This module follows the material design spec. Swipeable tabs are usually below the header.
If you want the header to be below the tab selector, do not use a header in the root page and use headers in the inner pages.


Add random error to getPlayerPos

PLEASE READ THE GUIDELINES BEFORE MAKING A CONTRIBUTION

Please check if the PR fulfills these requirements

[x] The commit message are well described
[ ] Docs have been added / updated (for features or maybe bugs which were noted). If not, please update the needed documentation here. This is not mandatory
[x] All changes have fully been tested

What kind of change does this PR introduce? (Bug fix, feature, ...)
Feature

What is the current behavior? (You can also link to an open issue here)
Calling PlayerDetectorPeripheral.getPlayerPos currently returns a player's exact position regardless of how far they are from the player detector.
As administrator of a server that uses this mod, I wanted to retain the ability to get a player's general position in the world, but I also wanted to maintain player privacy (such as avoiding exposing hidden bases) by not returning an exact position.

What is the new behavior (if this is a feature change)?
This PR introduces random error to X, Y, and Z dimensions of a player's position that varies based on how far the player is from the player detector. The error multiplier increases sub-linearly based on Euclidean distance up to a point.
Values are currently set in the code as follows:

Min distance (under this distance, error is never added): 50 (blocks/meters)
Max distance (the distance at which max error is added): 10000 (blocks/meters)
Max error (the max error added to each axis): ±2500 (blocks/meters)

These values could/should probably be changed or added as configuration options.
This PR also introduces a configuration option enablePlayerPosRandomError that enables or disables adding random error to the player's position. This configuration option is set to false by default to avoid a breaking change.

Does this PR introduce a breaking change? (What changes might users need to make in their scripts due to this PR?)
No. The feature introduced in this PR is disabled by default.

Other information:
The numeric values in this change (such as min/max distance and max error) are currently hard-coded in the code and should probably be added to configuration.
Consider adding error to player yaw, pitch, and especially eyeHeight.

PS: we do not use ✅ or ❌. You may want use
- [x] something

Instead of ✅

[x] something

And just do
- [ ] something else

Instead of ❌

[ ] something else

Apologies. I've documented the code and fixed checkstyle issues. I've also added configuration options for 'max distance' and 'max error'.

Looks good to me!
Thank you for your contribution, I will try to add documentation for the changes before I will release them


SPARK-8789 improve SQLQuerySuite resilience by dropping tables in setup

drops tables used in tests before attempting to create them again. That way, if the previous test failed, the successors still work.
Alternative strategies would be to

add try/finally clauses everywhere
have a teardown method which dropped listed tables, with test cases adding tables to the list to drop after creating them.

Merged build triggered.

We have a SQLTestUtils that can help us clean tables, maybe you can use that.

Merged build started.

Test build #36393 has started for   PR 7188 at commit 6b235d0.

hmmm, its {{withTable}} would do it, wouldn't it?

yea, you can make SQLQuerySuite extends SQLTestUtils and use withTable at every place that create table.

Test build #36393 has finished for   PR 7188 at commit 6b235d0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged build triggered.

Merged build started.

Test build #36420 has started for   PR 7188 at commit 723c59e.

Test build #36420 has finished for   PR 7188 at commit 723c59e.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #36431 has started for   PR 7188 at commit d0d8dc7.

Test build #36431 has finished for   PR 7188 at commit d0d8dc7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged build triggered.

Hey @steveloughran, thanks for working on this!  Can we close this issue until you have time to bring it up to date and address @JoshRosen 's comments?

I'd forgotted about this issue & have been busy; I'll take it up again soon

Superceded by https://github.com/apache/spark/pull/8748


repo?

is there still working repos 404 not found

maybe anyone has downloaded it before the link closed?


Add support for KDL configuration

Experimenting with KDL, as #39 will introduce quite a bit of nested configuration that may be difficult to manage in TOML.

Here's my current state, that I think I'm happy with. Here's the test_config in kdl (38 lines, 1038 characters):
system {
    threads-per-service 8
}

services {
    Example1 {
        listeners {
            "<IP_ADDRESS>:8080"
            "<IP_ADDRESS>:4443" cert-path="./assets/test.crt" key-path="./assets/test.key"
            "<IP_ADDRESS>:8443" cert-path="./assets/test.crt" key-path="./assets/test.key"
        }

        connectors {
            "<IP_ADDRESS>:443" tls-sni="onevariable.com"
        }

        path-control {
            upstream-request {
                filter kind="remove-header-key-regex" pattern=".*SECRET.*"
                filter kind="remove-header-key-regex" pattern=".*secret.*"
                filter kind="upsert-header" key="x-proxy-friend" value="river"
            }
            upstream-response {
                filter kind="remove-header-key-regex" pattern=".*ETag.*"
                filter kind="upsert-header" key="x-with-love-from" value="river"
            }
        }
    }

    Example2 {
        listeners {
            "<IP_ADDRESS>:8000"
        }
        connectors {
            "<IP_ADDRESS>:80"
        }
    }
}

And what it looks like in TOML (42 lines, 1226 characters):
[system]
threads-per-service = 8

[[basic-proxy]]
name = "Example1"
    [[basic-proxy.listeners]]
        [basic-proxy.listeners.source]
        kind = "Tcp"
            [basic-proxy.listeners.source.value]
            addr = "<IP_ADDRESS>:8080"

    [[basic-proxy.listeners]]
        [basic-proxy.listeners.source]
        kind = "Tcp"
        [basic-proxy.listeners.source.value]
        addr = "<IP_ADDRESS>:4443"
            [basic-proxy.listeners.source.value.tls]
            cert_path = "./assets/test.crt"
            key_path = "./assets/test.key"

    [basic-proxy.connector]
    proxy_addr = "<IP_ADDRESS>:443"
    tls_sni = "onevariable.com"

    [basic-proxy.path-control]
    upstream-request-filters = [
        { kind = "remove-header-key-regex", pattern = ".*(secret|SECRET).*" },
        { kind = "upsert-header", key = "x-proxy-friend", value = "river" },
    ]

    upstream-response-filters = [
        { kind = "remove-header-key-regex", pattern = ".*ETag.*" },
        { kind = "upsert-header", key = "x-with-love-from", value = "river" },
    ]

[[basic-proxy]]
name = "Example2"
listeners = [
    { source = { kind = "Tcp", value = { addr = "<IP_ADDRESS>:8000" } } }
]
connector = { proxy_addr = "<IP_ADDRESS>:80" }

It's not necessarily as short as I expected it to be, but I think there's a lot of lines that are trailing braces (}), but there's also a LOT less repeated verbosity for nested items.

Interestingly, this brings our configuration syntax MUCH closer to something like NGINX:
http {
    upstream backend {
        server backend1.example.com;
        server backend2.example.com;
        server <IP_ADDRESS> backup;
    }

    server {
        location / {
            proxy_pass http://backend;
        }
    }
}

HOWEVER, it is challenging in KDL to express a pattern like server <IP_ADDRESS> backup - essentially KEYWORD KEYWORD KEYWORD, where it is much easier to express it in a way like server addr="<IP_ADDRESS>" option=backup or so.
I don't think this is a blocker, but it might end up being a little "uncanny valley" for former NGINX users.

As a heavy nginx user, this looks much better. Visibly, there is more configuration data in the file than configuration markup

HOWEVER, it is challenging in KDL to express a pattern like server <IP_ADDRESS> backup - essentially KEYWORD KEYWORD KEYWORD, where it is much easier to express it in a way like server addr="<IP_ADDRESS>" option=backup or so.

This is a much smaller problem than you think. The server addr="<IP_ADDRESS>" might be redundant. You could just drop the server tag completely.
Stating some options explicitly is somewhat okay. I guess, being able to just throw backup in the upstream's server line requires a self-built configuration parser, I guess.

On the other hand: Is there something like configuration inheritance? Specifying a vHost will most likely still give all three listening sockets the same certificate. So, explicitly stating the same certificate for every endpoint somewhat redundant.
services {
    Example1 {
        listeners {
            "<IP_ADDRESS>:8080"
            "<IP_ADDRESS>:4443" cert-path="./assets/test.crt" key-path="./assets/test.key"
            "<IP_ADDRESS>:8443" cert-path="./assets/test.crt" key-path="./assets/test.key"
        }
    }
}

If KDL would not do this, you could also use YAML for this and offload the problem to the configuration language itself:
services:
  Example:
    listeners:
      "<IP_ADDRESS>:8443": &Example-default-certs
        tls: true
        crt: ./assets/test.crt
        key: ./assets/test.key
      "<IP_ADDRESS>:4443":
        <<: *Example-default-certs

This is a much smaller problem than you think. The server addr="<IP_ADDRESS>" might be redundant. You could just drop the server tag completely.

That's fair! I don't think this is a blocker, just something I was noting.

On the other hand: Is there something like configuration inheritance?

Built in to KDL: not specifically. We could invent something, but for as long as we can get away with it, I'd prefer to keep the configuration file parsing as simple as possible, to avoid accidentally making it turing complete :)
We will likely also support JSON configuration in the future, and recommend that for anyone that needs to generate larger or dynamic configuration, or would like to build their own templating solution for configuration.

We will likely also support JSON configuration in the future

On the one hand, this seems nice. But for configuration, I'd like to see for YAML. Main benefit: It allows comments and does not need another external (mostly self-written tool) to generate configuration.
YAML allows 90% of the use users to use the default configuration format in raw.

@bebehei I'm not totally against YAML, but support is likely not planned in the near future. Previous discussions here:

https://github.com/memorysafety/river/issues/13
https://github.com/memorysafety/river/issues/1

The plan for now is to keep the core of the software flexible to allow us to support multiple configuration languages for now, as we focus on other core development tasks.

I'm a very big fan of this syntax using KDL! Looks great - far more readable than the current toml config.


how to use nvprof command to debug mxnet

I'd like to use nvprof command to debug why mulitiple gpu is not much faster than 1 Gpu.As I read nvprof help, the usage about nvprof should be nvprof ./progress. But mxnet is started by python command.If using nvprof,it will report ======== Warning: No CUDA application was profiled, exiting.

r u using cmdline or nvvp?
u can use nvprof python srcipt.py --params
My last experiment with my multiprocess Dataiter using nvvp is not doing well,but the nvprof works. I was testing lstm using only one gpu, I think it should be the same for multiple gpu. I hope this is useful for you.

yes,i use nvprof  launch.py -H hosts -n2 python train.py --kv-store dist_async like that
And no gpu info output.It report
======== Warning: No CUDA application was profiled, exiting at the end.

ah...I guess you are testing multi machine case.
what I do was like nvprof python train.py --gpus=0,1 ....
maybe you should check nvprof for remote profiling.

not i just tried one machie.What is your test result?

I used default setup, so I got pretty much the main thread function calling info and time cost. Such as cudasync. u can try nvprof with a small model first, then move one more step to ur real application.

Don't use the launch script if you are using single machine. It will start another process and that's why you are not seeing any output from nvprof


fixed callback error by using ? for addPostFrameCallback

also fixed issue "Error: No named parameter with the name 'thumbVisibility'" in flutter  2.5.3 version.
also fixed null checking in multi_select_dialog_field addPostFrameCallback functions in flutter webview.

Please update if , for using the multiselect in webview in flutter 2.5.3 versions.


Add Support for VuePress Next v2.0

Hello I am new in meilisearch I was using algolia before but now planned to use this but it's not yet supported with latest version of vuepress, also it will be great If dark mode also works with vuepress global toggle dark mode introduced in 2.0

Hello @ramesh-dada thanks for raising this issue!
Since vuepress v2 is still in beta we will probably wait until it is released completely. In v1 there is no global toggle so I'm not sure we could make it work :(

Hi, thank you for creating such a great work. I use it in some documents. I am using vuepress@next version. But the latest version of the plugin is not compatible with vuepress V2.0, can it be supported?

Hello @hyp530 ! We will consider the migration when vuepress v2 gets out of beta :)

Hello @hyp530 ! We will consider the migration when vuepress v2 gets out of beta :)

They are almost there to get out of beta.  Algolia was integrated into vuepress v2. So it would be great if you could do the migration.

Hello @hyp530
I took a closer interest on how hard the migration would be,
based on the migration guide for plugins authors, and the migration guide for plugin API
This is what came out of it:

✅ API changes: none concern us (at first sight at least)
❌ You cannot use other plugins in your plugin anymore, which avoids lots of potential issues caused by plugin nesting. If your plugin depends on other plugins, you should list them in the docs.
✅ Most of the v1 hooks have equivalents in v2. The only exception is extendsCli, which has been removed.
✅ Webpack related hooks are removed, because VuePress Core has decoupled with webpack. If you still want to modify webpack config in plugin, try modifying app.options.bundlerConfig directly.

Only the second bullet point concerns us as we use docs-searchbar.js. If this is an easy fix, than the migration should be an easy task.
The only thing left that we need to decide is how to handle the versioning of this package. The current latest tag is compatible with vuepress v1. We will have to create another npm tag called next.
The issue we have with this is that we'r bound to have two concurrent versioning in github with some impacting vuepress v1 and some vuepress v2.
Exemple:
release v0.12.1 : published on latest, impact vuepress v1
release v0.13.0 : published on next, impact vuepress v2
release v0.14.0 : published on latest, impact vuepress v1
etc...
This might be a temporary fix, or maybe we should consider creating a second repo.
Anyway! Contributors are of course free to help if they want this feature to be implemented faster :)


Separate account into 4 states

          It feels like this should be more than just two states (connected/not-connected).  I can think of at least 4 possible states in reality:

Connect.
Not connected.
Connecting.
Connection failed.

You sort of have this indirectly via *mutation.transport, but that makes it difficult for users of the account to quickly and easily identify what the actual state is, especially since there is some weird overlaps between connect and reconnect.
type UnconnectedAccount = { state: 'unconnected', connect: () => void }
type ConnectingAccount = { state: 'connecting', reset: () => void }
type ConnectedAccount = { state: 'connected', address: string }
type ErroredAccount = { state: 'failed', error: Error, connect: () => void }
type Account = ConnectedAccount | UnconnectedAccount | ConnectingAccount | ErroredAccount

Originally posted by @MicahZoltu in https://github.com/DarkFlorist/web3-app/pull/61#discussion_r1098192103

Closing with #61 merged


Add elm-pages.

Thank you!

No problem, thanks for adding!

By the way, should the changes be live by now? No rush, just wanted to make sure there weren't any hiccoughs with the deploy pipeline.
I'm not seeing elm-pages at staticgen.com, and I also noticed the recent changes for Hikaru are not reflected either (it changed from CoffeeScript to JavaScript, but it still stays CoffeeScript on the live site).

No, the site itself actually has some issues and is slated for maintenance. You'll see the update after that.

Sounds good, thanks for the info!


how has noone fixed this yet

module wrongly set up for DBL's git

Intrinsically, this is wrong inheritantly wrong. However, from a stability perspective, I initially push changes to my downstream and submit to upstream if I remember to. It simply works.
As for, why it wasn't caught earlier, dbl api docs never updated golang lib link to this one, so only way this was discovered is through accidentals.

With the current go.mod you simply cannot go get this module (module isn’t corresponding to github link). Hence why I made a PR

Yeah, because mainly the downstream was being used since this was not that discoverable.
Thanks for the PR.


Chrome extension lock the default search engine configuration

Description
The extension lock the default search engine when activated.
Steps to Reproduce

install the chrome extension
try to change the default search engine without disabling the extension

Expected behavior:

I want to be able to use the extension to block the trackers and still use different default search engine.
Actual behavior:

Default search engine is locked with duckduckgo.com
Versions
2020.8.12

Extension: 2020.8.12
Browser: Chrome
OS:  Windows

Remove these lines should remove this behavior.
This is the exact reason I switched back to AdGuard (which uses more resources than the DDG Privacy Essentials), but I doubt they will remove it (it seems [some people]((https://github.com/duckduckgo/duckduckgo-privacy-extension/issues/239) actually prefer this) from the official release.

I'd also like to express my support for an option to disable this functionality easily, as it's annoying to have to edit source or set a browser policy in order to work around it.

This is a Chrome limitation - if we want to change the default search engine on install we have to set this is_default flag. However, once we set this Chrome will lock the search engine choice.
There are a couple of workarounds if you want to keep the extension's privacy protections but not use our search all the time:

Use our ! bangs to redirect to different search engines when you need them
Install another extension that changes the default search engine, which will then unlock your search setting in Chrome.

Closing as a duplicate of: #90


Feedback for "Authentication and Authorization in the Kyma Environment"

https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/85200d8509004236b2a3a637bf1471a8.html?locale=en-US&version=Cloud
Small typo:    Ttherefore, ....

I fixed the spelling in the 2202a version.

Thank you @mmitoraj !
The fix will be published March 10th.


Person cards: Change spacing between fields and enable text wrapping.

Coverage increased (+0.01%) to 92.862% when pulling b346c7a0cd4f2cb5293e44fa6f93745479471095 on zioul123:PersonTextCards into 96149b322dd781dd516a62b0af1239dd36d208b7 on CS2103-AY1819S1-W13-1:master.


Release azure-cli-resource 2.0.4

Reviewers, please verify the following for this PR:

[ ] The PR title has format Release <component-name> <version>.
[ ] setup.py has been modified with the same version as in the PR title.
[ ] HISTORY.rst has been modified with appropriate release notes.
[ ] If releasing azure-cli or azure-cli-core, __version__ defined in __init__.py should also be modified to match.

Started releasing azure-cli-resource 2.0.4...

Release of 'azure-cli-resource' with version '2.0.4' successful. View at https://pypi.python.org/pypi/azure-cli-resource/2.0.4.

GitHub release created. https://github.com/Azure/azure-cli/releases.


FIx getAll for AngularJS

Fix of getAll(). "?" was added even without parameters. Now it is added only when needed.

Thank you. Maybe you can add this change to the other templates as well (JQuery, AngularJS, C#)?


Deploying hySpc.* develop branches to hySpc.pkgs, + a little extra.

We've talked about this (see issue title) several times.
It does not appear that we can have an arbitrary directory structure in a drat archive (i.e., no special directory for development packages).  However, the approach used to deploy .tar.gz packages, originally implemented in hySpc.read.Witec via build_check_deploy.yaml can be used to deploy any package branch.  So we should just go ahead and to it that way, and then users will have a "single stop" for getting "extras".
Also (this is the + a little extra part), I have an idea about how to display the available packages on the README.md, which I'll be working on.  This would be a big help to users since they would be able to see what's available and therefore not have to know in advance.

The "little extra" part is solved by a modified build_check_deploy.yaml over in hySpc.read.Witec commit https://github.com/r-hyperspec/hySpc.read.Witec/commit/123a38fcf6f8eb6ae090bcc729c5c4320f8918c4 The corresponding changes on the repo are in https://github.com/r-hyperspec/hySpc.pkgs/commit/5495611145dfa78706f35f5e795dac8540cd3722 Closing.


SSIS Deploy Task -  Azure DevOps Pipeline to Build & Deploy Multiple ISPAC files

Documentation mentions that we can deploy multiple ISPAC file. However there is no documented method to complete this info.
Documentation on SSIS Deploy Task mentions we can deploy single or multiple ISPAC files as quoted "SSIS Deploy task supports deploying single or multiple ispac files to on-premises SSIS catalog and Azure-SSIS IR, or SSISDeploymentManifest files and their associated files to on-premises or Azure file share."
However there is no option available to configure SSISDB Path/ ISPAC files mapping if there are multiple ISPAC through any configurations. Could anyone suggest what could be a better approach to deploy multiple ISPAC files by making changes in configuration file to have mapping of ISPAC File & Target SSISDB Folder/Project Name and deploy through a single SSIS Deploy Task.
I request someone to update the documentation correctly to give idea on how multiple ISPAC deployment is configurable using SSIS Deploy Task. I had raised a question on StackOverflow but there was no help -> https://stackoverflow.com/questions/76003653/azure-devops-release-pipeline-deploy-multiple-ispac-files-using-ssis-deploy-ta
[Documentation] -> https://learn.microsoft.com/en-us/sql/integration-services/devops/ssis-devops-overview?view=sql-server-ver16#ssis-deploy-task)

@vishwanath10 -- thank you for your thorough feedback.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow

@chugugrace -- please look into this issue.

@vishwanath10 We are closing this public issue and tracking it internally.
AB#214733


Sync volar v1.0.20

Hi, @johnsoncodehk
After updating volar/vue-language-server to "v1.1.20", I am getting unwanted diagnostic output. I am getting these diagnostics messages in my vue and ts files.
Are there any additional topics related to TakeOverMode, etc. that we should change on the client side?
vue file:
[ts 2307] Cannot find module 'vue-router' or its corresponding type declarations. [E]
[ts 2307] Cannot find module './components/HelloWorld.vue' or its corresponding type declarations. [E]

ts file:
[ts 2307] Cannot find module 'vue' or its corresponding type declarations. [E]
[ts 2307] Cannot find module 'pinia' or its corresponding type declarations. [E]
[ts 2307] Cannot find module './router' or its corresponding type declarations. [E]

ScreenShot:

Sorry for the breaking, can you try update https://github.com/yaegassy/coc-volar/blob/b62716ce3798cd473250c077c459dcaa39048a8d/src/common.ts#L297 to diagnosticModel: serverMode === ServerMode.Syntactic ? DiagnosticModel.None : diagnosticModel() === 'pull' ? DiagnosticModel.Pull : DiagnosticModel.Push?
Reference: https://github.com/johnsoncodehk/volar/blob/f907d460fdf70a74bad551aa8da14e84fd9c9fe8/vue-language-tools/vscode-vue/src/common.ts#L300

Thanks. My problem is solved.


Clean up the extension activation code.

(for #10454)
This is the basic prep work for making the flow of extension activation more clear.

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[x] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[x] Has sufficient logging.
~[ ] Has telemetry for enhancements.~
~[ ] Unit tests & system/integration tests are added/updated.~
~[ ] Test plan is updated as appropriate.~
~[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).~
~[ ] The wiki is updated with any design decisions/details.~

Codecov Report

Merging #10455 into master will decrease coverage by 0.02%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master   #10455      +/-   ##
==========================================
- Coverage   60.86%   60.84%   -0.03%
==========================================
  Files         579      579
  Lines       31290    31299       +9
  Branches     4449     4450       +1
==========================================
- Hits        19045    19043       -2
- Misses      11282    11290       +8
- Partials      963      966       +3

Impacted Files
Coverage Δ

src/client/api.ts
65.21% <87.5%> (-13.36%)
:arrow_down:

src/datascience-ui/react-common/arePathsSame.ts
75% <0%> (-12.5%)
:arrow_down:

src/client/common/utils/platform.ts
64.7% <0%> (-11.77%)
:arrow_down:

src/client/linters/pydocstyle.ts
86.66% <0%> (-2.23%)
:arrow_down:

src/client/datascience/debugLocationTracker.ts
76.56% <0%> (-1.57%)
:arrow_down:

src/client/common/process/proc.ts
14.49% <0%> (-0.73%)
:arrow_down:

Continue to review full report at Codecov.

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


SNP annotation filters

Annotating with --snp FILE might add a step in getting a potentially large BCF w/genotypes ready for duphold. Does it make sense to add another option for filtering the SNP BCF that will be used for DHET and DHHU annotations?
Adding a full bcftools-style --include option w/ argument may be overkill. A step down could be to include --filter FLT0[;FLT1...] or just --pass.
I believe a duphold removes indels from a SNP BCF, drops genotypes from other samples to speed up parsing, and drops SNPs where QUAL < 20. If adding an option doesn't make sense, adding v.FILTER == "PASS" might be a good default for most uses.

I pushed a change to only consider PASS snps. It will be out in the next release. Thanks for pointing this out.

... though I should add, I don't really recommend using --snp unless you have a specific reason. Change in depth is a better metric.


I failed run docker image on v100

Issue summary
I pull singularity image from docker pull gnina/gnina:latest.
And then I run it on v100 gpu.
but  occur this " WARNING: No GPU detected. CNN scoring will be slow. "

In the img, i find the viersion that is gnina v1.0.1 master:aa41230   Built Mar 23 2021. and cuda version is 10.2

You probably need to update the cuda version in the docker image.

thanks alot Mr Koes


Add reference updates when moving domains

There are a few scenarios where the references aren't being updated. These should be fixed.
•	Move doesn’t update the testing import path
•	Move/Delete doesn’t update eslintrc.
•	Nx json tags aren’t updated when moving domain

Closing as fixed in 11.5.0


GF move ShallowCu contribution to mass flux and scale-dependent convection stochastics

All,
This line:
https://github.com/GEOS-ESM/GEOSgcm_GridComp/blob/120e5e8187d03fc7064ae2ad7e550dec0b17d33e/GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSmoist_GridComp/GEOS_MoistGridComp.F90#L7738
is causing a failure to build with GNU because if(integer) is not allowed.
This either needs to be:
if (STOCHASTIC_CNV /= 0) then

or STOCHASTIC_CNV needs to be a LOGICAL and the MAPL_GetResource() calls changed appropriately.
I'll make a PR into Scott's branch for the former as it's "simpler".

PR #231 has been made to be pulled into feature/sdrabenh/GFDL_stoch_CNV_MF

Thanks @mathomp4 ! I meant to change that over the weekend but ran out of time. It built fine with Intel but I noticed that failure point with GNU.