使用QwenLM/vllm-gptq运行Qwen-14B-Chat-Int4报错：ValueError: The input size is not aligned with the quantized weight shape. This can be caused by too large tensor parallel size.

问题1

我使用QwenLM/vllm-gptq中的Dockerfile构建的镜像，运行Qwen-7B-Chat-Int4正常
运行Qwen-14B-Chat-Int4时，使用一张显卡--tensor-parallel-size 1可以正常运行，改为--tensor-parallel-size 2后就报错，完整报错如下：

[root@localhost qwen-vllm-gptq]# docker logs --tail 50 qwen-vllm-gptq
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/vllm/entrypoints/openai/api_server.py", line 644, in <module>
    engine = AsyncLLMEngine.from_engine_args(engine_args)
  File "/workspace/vllm/engine/async_llm_engine.py", line 486, in from_engine_args
    engine = cls(parallel_config.worker_use_ray,
  File "/workspace/vllm/engine/async_llm_engine.py", line 269, in __init__
    self.engine = self._init_engine(*args, **kwargs)
  File "/workspace/vllm/engine/async_llm_engine.py", line 305, in _init_engine
    return engine_class(*args, **kwargs)
  File "/workspace/vllm/engine/llm_engine.py", line 108, in __init__
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/engine/llm_engine.py", line 191, in _init_workers_ray
    self._run_workers(
  File "/workspace/vllm/engine/llm_engine.py", line 737, in _run_workers
    self._run_workers_in_batch(workers, method, *args, **kwargs))
  File "/workspace/vllm/engine/llm_engine.py", line 714, in _run_workers_in_batch
    all_outputs = ray.get(all_outputs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/auto_init_hook.py", line 22, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/worker.py", line 2624, in get
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(ValueError): ray::RayWorker.execute_method() (pid=3235, ip=<IP_ADDRESS>, actor_id=dd8867d41533e08f642f105d01000000, repr=<vllm.engine.ray_utils.RayWorker object at 0x7f1263e857e0>)
  File "/workspace/vllm/engine/ray_utils.py", line 31, in execute_method
    return executor(*args, **kwargs)
  File "/workspace/vllm/worker/worker.py", line 72, in load_model
    self.model = get_model(self.model_config)
  File "/workspace/vllm/model_executor/model_loader.py", line 90, in get_model
    model = model_class(model_config.hf_config, linear_method)
  File "/workspace/vllm/model_executor/models/qwen.py", line 240, in __init__
    self.transformer = QWenModel(config, linear_method)
  File "/workspace/vllm/model_executor/models/qwen.py", line 199, in __init__
    self.h = nn.ModuleList([
  File "/workspace/vllm/model_executor/models/qwen.py", line 200, in <listcomp>
    QWenBlock(config, linear_method)
  File "/workspace/vllm/model_executor/models/qwen.py", line 151, in __init__
    self.mlp = QWenMLP(config.hidden_size,
  File "/workspace/vllm/model_executor/models/qwen.py", line 51, in __init__
    self.c_proj = RowParallelLinear(intermediate_size,
  File "/workspace/vllm/model_executor/layers/linear.py", line 501, in __init__
    self.linear_weights = self.linear_method.create_weights(
  File "/workspace/vllm/model_executor/layers/quantization/gptq.py", line 116, in create_weights
    raise ValueError(
ValueError: The input size is not aligned with the quantized weight shape. This can be caused by too large tensor parallel size.

问题2

提问时，必须增加参数"stop": ["<|endoftext|>","<|im_end|>","<|im_start|>"],才能正常返回结果，否则会一直输出直到最大tokens，这样是正确的使用方式吗？

我也遇到了问题一

For issue 1, it is expected due the model architecture of Qwen-14B-Int4. 13696 (intermediate size)/128 (group size in GPTQ) = 107, which cannot be dispatched to 2 or more cards.
For issue 2, as stated in README, please use FastChat+vLLM, since vLLM itself does not support the generation configurate of Qwen1.0 by default.

This is the official solution provided by QWEN，https://qwen.readthedocs.io/zh-cn/latest/quantization/gptq.html


Add Scheduler automatic switching function

Description

To address potential issues with Scheduler failures during P2P downloads, this project aims to implement an automatic switching feature at the Peer node. When a Scheduler encounters an issue and cannot properly handle downloads, the Peer node will switch to other Scheduler nodes using a hash ring to continue the download, thereby preventing download failures and improving success rates.
Requirements

Scheduler Availability Check During Peer Registration: Ensure that the Scheduler is available during the Peer node registration process.

Automatic Scheduler Switching: If the current Scheduler is unavailable, automatically switch to another Scheduler node until a usable Scheduler is found.

Feature Development: Complete the development of the automatic switching logic and Scheduler availability detection.
Testing: Implement unit tests and end-to-end (E2E) tests to ensure the reliability and stability of the feature.

Related Issue

https://github.com/dragonflyoss/client/issues/551

Motivation and Context

Please refer to the following document link for detailed instructions

https://www.yuque.com/baimo/fv9qk8/ghfsq8uldrer2p7r

Screenshots (if appropriate)

Please refer to conventional commits and change the commit messages. @PoloDyBala


Overflow when casting from REAL to INT results in "Invalid TypeId -1"

Consider the following statements:
CREATE TABLE t0(c0 REAL);
INSERT INTO t0(c0) VALUES<PHONE_NUMBER>0);
SELECT t0.c0 ::INT FROM t0; -- Error: Conversion: Invalid TypeId -1

It is somewhat unexpected that the conversion results in an error Invalid TypeId -1, which seems like an internal error message to me. I would expect a truncation or a message explaining that an overflow occurred. I found this based on commit 3f0eb5134512c6097805998ccc5eb44476534736.

Fixed this in 7905e332b02cd069c238c0ea878afdf4cf8c0419, this was actually an exception being thrown while throwing the correct exception  as REAL was not a valid type there :)


postJSON - Content-Type: 'application/json'

Hi Rob,
I thought about other things that people ran into and thought of this recent support ticket.  Again, great job on this library, it's helped people get up and running with JS and OAuth really quickly.  Well written GitHub docs by the way. I was able to get my example running in < 10 minutes while watching TV :)
The users are basically sending/retrieving JSON through a REST API.  Somebody was trying to use OAuth.postJSON to send up some JSON but it wasn't working for him.  I think it's because StackMob expects the header 'Content-Type': 'application/json'.  postJSON seems to call OAuth.post which in turn doesn't set that header.
I hence had him do this, since it looked like the postJSON was a convenience wrapper to stringify the json object.
oauth.request( {
method : 'POST',
headers: { 'Content-Type': 'application/json' },
url : ..., //your url
data: JSON.stringify(yourobject), //it looks like postJSON is simply a convenience wrapper that converts your object to a string via JSON.stringify
success: function(data) { console.debug(data); }, //again, using chrome console to view output
failure: function(data) { console.error('fail'); console.debug(data); }
});
Would you be able to punch a hole into post/postJSON to pass in headers - and/or should the headers for postJSON have "application/json" by default?
Erick

Erick, thinking about this, you are right. Given that we are sending json the header should be set appropriately.  Ill look at patching this now

Awesome.  Thanks Rob!

Erick, could you give this version ago and let me know if it works for you? http://cl.ly/BqSL
I really need to write a better test suite for v2

Works!
Sorry for not getting back to you earlier - got swept up in a project
On Tue, Nov 15, 2011 at 1:27 PM, Rob Griffiths <
<EMAIL_ADDRESS>
wrote:

Erick, could you give this version ago and let me know if it works for
you? http://cl.ly/BqSL
I really need to write a better test suite for v2

Reply to this email directly or view it on GitHub:
https://github.com/bytespider/jsOAuth/issues/26#issuecomment-2751598


Segmentation fault in Julia 1.3 RC-5 when running chains in parallel

I receive the following error when running a custom model with Turing #master and Julia 1.3.0 rc-5:
      From worker 2:
      From worker 2:    signal (11): Segmentation fault
      From worker 2:    in expression starting at none:0
      From worker 2:    jl_lookup_generic_ at /buildworker/worker/package_linux64/build/src/gf.c:2251 [inlined]
      From worker 2:    jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2301
      From worker 2:    jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1631 [inlined]
      From worker 2:    jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:627
      From worker 2:    #_#3 at /home/dfish/.julia/packages/Turing/B22xC/src/Turing.jl:72
      From worker 2:    Model at /home/dfish/.julia/packages/Turing/B22xC/src/Turing.jl:72 [inlined]
      From worker 2:    VarInfo at /home/dfish/.julia/packages/Turing/B22xC/src/core/RandomVariables.jl:183 [inlined]
      From worker 2:    Sampler at /home/dfish/.julia/packages/Turing/B22xC/src/inference/hmc.jl:306
      From worker 2:    Sampler at /home/dfish/.julia/packages/Turing/B22xC/src/inference/hmc.jl:304 [inlined]
      From worker 2:    #sample#2 at /home/dfish/.julia/packages/Turing/B22xC/src/inference/Inference.jl:163
      From worker 2:    _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2141 [inlined]
      From worker 2:    jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2305
      From worker 2:    sample at /home/dfish/.julia/packages/Turing/B22xC/src/inference/Inference.jl:162
      From worker 2:    #51 at /home/dfish/.julia/dev/ACTRModels/src/Utilities/Turing Utilities.jl:4
      From worker 2:    unknown function (ip: 0x7f69888db436)
      From worker 2:    _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2141 [inlined]
      From worker 2:    jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2305
      From worker 2:    jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1631 [inlined]
      From worker 2:    jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:627
      From worker 2:    #108 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Distributed/src/process_messages.jl:294
      From worker 2:    run_work_thunk at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Distributed/src/process_messages.jl:79
      From worker 2:    macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Distributed/src/process_messages.jl:294 [inlined]
      From worker 2:    #107 at ./task.jl:333
      From worker 2:    _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2135 [inlined]
      From worker 2:    jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2305
      From worker 2:    jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1631 [inlined]
      From worker 2:    start_task at /buildworker/worker/package_linux64/build/src/task.c:659
      From worker 2:    unknown function (ip: 0xffffffffffffffff)
      From worker 2:    Allocations: 55810977 (Pool: 55802976; Big: 8001); GC: 50

I have no idea what role Turing might play and I will need some time to find a MWE (plus I cannot currently share my code). In either case, I wanted to put this on the radar of the Turing team in case you have ideas for a MWE. The following seems to work:
using Distributed
addprocs(4)
@everywhere using Turing

@everywhere @model model(y) = begin
    μ ~ Normal(0,1)
    for i in 1:length(y)
        y[i] ~ Normal(μ, 1)
    end
end

y = rand(Normal(0, 1), 10)

reduce(chainscat, pmap(x->sample(model(y), NUTS(1000, .85), 2000), 1:4))

The main difference that I can identify at this point is that the problematic model has a custom distribution.

This is indeed weird but without additional information, it will be hard to help. I think it is worth running the Turing tests on this version of Julia to see if any test there triggers the same error.

Yeah. My apologies for not being able to identify the source of the problem yet. Since it seems to be a serious error, I want to report it sooner rather than later.
I can verify that my logpdf function evaluates correctly on all processors. So it does not appear to be isolated exclusively to that code.
I ran the tests but did not identify anything that seemed to be related to the segmentation fault. I attached the test output here:
test.txt
There were several errors in the test that traced, which could have halted the code before it could produce the segmentation fault. So unfortunately, the tests are somewhat ambiguous.
Over the next couple days I will continue searching for a MWE that I can share.

I traced the problem back to a convenience function I have been using for quite some time without problems.
using Distributed
addprocs(4)
@everywhere using Turing

@everywhere @model model(y) = begin
    μ ~ Normal(0,1)
    for i in 1:length(y)
        y[i] ~ Normal(μ, 1)
    end
end

y = rand(Normal(0, 1), 10)

function wrapper(model, config, Nsamples)
    return reduce(chainscat, pmap(x->sample(model, config, Nsamples), 1:4))
end
config = NUTS(1000, .8)
Nsamples = 2000
#this works
reduce(chainscat, pmap(x->sample(model(y), config, Nsamples), 1:4))

#This fails
wrapper(model(y), config, Nsamples)

I have not yet produced this error using simpler analogs that exclude Turing. Do you have any ideas?

Could it be related to the fact that you're using global variables in one case but not in the other? There's a section about global variables in the documentation of parallel computing: https://docs.julialang.org/en/v1/manual/parallel-computing/#Global-variables-1

Thanks. I'll have to read into that in more detail later. My initial thoughts are (1) usually scoping problems have a message like " x not defined on worker 2" and (2) this has been working on other versions of julia including 1.2.0. I think that is a good lead. So I'll see if anything in 1.3.0 could have changed the behavior.

P.S. Here is one of my attempts to create an analog without Turing. Is this missing anything important?
using Distributed
addprocs(4)

#sample analog
@everywhere function f1(f2, x)
    println("hi")
    return f2(x)
end

#model analog
@everywhere f2(x) = x + 2

function wrapper(fun, x, N)
    pmap(x->f1(fun, x), 1:N)
end

N = 5
#An input to pass to f1, then to f2
x = 3
wrapper(f2, x, N)

I suspect there is some problem with the serialization or deserialization since I get error messages such as       From worker 2:    unknown function (ip: 0xffffffffffffffff) if I try to run your Turing example above on Julia 1.3.0 rc5.
However, the following seems to work:
function wrapper(model, y, config, Nsamples)
    return reduce(chainscat, pmap(x->sample(model(y), config, Nsamples), 1:4))
end

wrapper(model, y, config, Nsamples)

Interestingly, the following also works:
let model=model(y)
    reduce(chainscat, pmap(x->sample(model, config, Nsamples), 1:4))
end

Thanks @devmotion.  I will use your first solution for the time being.
Do you think this is a problem with Turing?

Honestly, I don't know. I played around with your example a bit and tried to reproduce or fix it, but I haven't managed to condense it to a simpler example that clearly shows what's causing these issues.


[JDK21] Permanently disbale RedefinePreviousVersions

RedefinePreviousVersions tests Hotspot specific cmd line options which
are not supported in OpenJ9:
-Xlog:redefine+class+iklass+add=trace,redefine+class+iklass+purge=trace

RedefinePreviousVersions is permanently disabled for OpenJ9 since the
above options are not supported by OpenJ9.
Related:

https://github.com/eclipse-openj9/openj9/issues/18046
https://github.com/eclipse-openj9/openj9/issues/18038
https://github.com/ibmruntimes/openj9-openjdk-jdk21/pull/34

Signed-off-by: Babneet Singh<EMAIL_ADDRESS>

@llxia @LongyuZhang Requesting your review.


feat: Adds operators for datetime and span policy expression primitives

Resolves #401
Adds comparison and basic arithmetic operators for DateTime and Span policy expression primitives.
To handle comparing Spans without erroring or needing to provide a datetime for each span, Spans must now not include years or months as units. Spans may include weeks as units, even though jiff normally has issues with comparing raw Spans with weeks, because we convert all weeks to seven 24-hour days during parsing.

Some of the span comparisons got lost when I made some changes before pushing. Will go put those back in tomorrow. Leaving this as a drat until then.


[network] after adding a folder mapped to a SharePoint library, Code editor doesn't work (at all)

Not sure this is the right place to ask that.
Do you guys have any update on this issue?
https://code.visualstudio.com/Issues/Detail/18573
This is currently a blocker for my SharePoint plugin, as I can't open project folders (which are network folders on SharePoint sites)

Duplicate of #218


Onchange events not working on Linux

These Watir tests that use onchange scripts are failing for phantomjs on Linux, but pass on Mac. I'm not sure why the javascript interaction would be different between the platforms.

I had 1.9 installed on the Mac. When I upgrade to to 2.0 it fails there as well. So this is a 1.9 -> 2.0 regression.

The same is happening on Windows as well for us. We have a text box on which when you enter some text an ajax call is made to retrieve matching results from which you can select one. We are able to automate this with IE, Firefox and Chrome driver, but it fails with Ghost driver. On further investigation we found that even with ghost driver the ajax calls are still being made to the server, but these calls do not contain the data entered in the text box, so we are guessing it's an issue with the javascript implementation of Ghost driver.


Feature Request : REFRESH event for ActiveRecord

Hi,
use case : a behavior is attached to an ActiveRecord model and registers to all apropriates events (AFTER_FIND, AFTER_INSERT, AFTER_UPDATE) so to be able to maintain its internal state aligned with the owner model attributes.
the problem : no event is fired when refresh() is called and the behavior is not notified, it can't maintain a consistent internal state.
One solution could be to fire an EVENT_REFRESH when the AciveRecord is refreshed.
thank you

It sounds OK to me. @yiisoft/core-developers thoughts?

there is an afterFind event triggered on the record that is used for the refresh. But sure, that one is not very helpful. agree to add it.

Why afterFind event is not enough?

we could trigger afterFind again on the same record but maybe there is a case where it makes a difference.

we could trigger afterFind again on the same record

It is triggered already inside BaseActiveRecord::findOne():
https://github.com/yiisoft/yii2/blob/master/framework/db/BaseActiveRecord.php#L960

Although, no: indeed no event will be triggered for the record being refreshed.

It is fine to add extra event here.

@raoul2000 would you like to work on a pull request?

I've never contributed but I'll be glad to start.
So if you agree a call to refresh() will trigger an EVENT_AFTER_REFRESH event

Yes, please do it.


npm install error with redux-segment on Windows (no such file or directory redux-segment-842b1341\Icon)

Not sure if this was related to #28 , but when I run npm install --save redux-segment on Windows 2012, npm failed with the following error.
Running npm install --save https://github.com/rangle/redux-segment.git seems to work, but this could be problematic for Windows users when they first install this without using a fully qualified git hub reference.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "redux-segment"
npm ERR! node v5.3.0
npm ERR! npm  v3.5.3
npm ERR! path C:\frontend\node_modules\.staging\redux-segment-842b1341\Icon
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open

'pm ERR! enoent ENOENT: no such file or directory, open 'C:\frontend\node_modules\.staging\redux-segment-842b1341\Icon
'pm ERR! enoent ENOENT: no such file or directory, open 'C:\frontend\node_modules\.staging\redux-segment-842b1341\Icon
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\frontend\npm-debug.log

+1

Have the same error :(


Unable to interact with titlebar or window chrome of editor

Godot version:
ff59c56 mono x64
OS/device including version:
Windows 10 x64
Issue description:
The titlebar and window chrome (including the close/minimize/maximize buttons and the edges of the window used to resize the window) are sometimes impossible to interact with. When this situation happens, the window cannot be moved via the titlebar, the titlebar buttons do not show hover effects and cannot be clicked, and the window cannot be resized.
Whenever Godot is exhibiting this behavior, opening up a different window and then going back to the editor seems to fix it temporarily. On the other hand, clicking anywhere in the editor causes this to happen once again.
Steps to reproduce:
The issue is intermittent, and I'm not actually sure what causes this. Once it starts happening, I can reproduce the effect 100% of the time (see above) as long as the editor isn't closed. Upon a fresh start of the editor, the issue disappears and I'm not sure what causes it to happen again.

This still happens in 3.0.6 for me:
https://youtu.be/wL2k_mHxkxI

I am experiencing this, and it just started happening after I tried to use horizontal scroll. v3.2.2.stable.official.

@binbitten Are you still around?

I'm positively certain that this piece of code is a or the culprit:
https://github.com/godotengine/godot/blob/80a8a36ca19f9d2bc9fad83f671d732ea339a93f/platform/windows/display_server_windows.cpp#L2461-L2471
The pressrc-counter will cause trouble as it depends on events always being correctly fired. If and when it gets out of "sync" the mouse capture won't be released. I'm not quite sure of the snippet's intended functionality; it seems rather pointless, but it sure needs to be implemented another way. This will also fix #33928.

Is this still happening in Godot 4?


[Migrated] An error occurred (IllegalLocationConstraintException) during zappa deploy

Originally from: https://github.com/Miserlou/Zappa/issues/1398 by mcmonster
See https://github.com/Miserlou/Zappa/issues/569
I also experienced this issue when attempting to deploy following the out-of-the-box README commands. Zappa's deploy procedure is obfuscating the cause of the issue, namely that my bucket name is not unique. It would be nice if Zappa would suggest this as a possible issue source when the deploy command is ran.

stale migrated issue, closing.


EAGLE-758: Add tuple log for spout & alert bolt

Without tuple log for spout & alert bolt, it is hard to troubleshoot event missing issue, we don't know whether the spout/alert process issue or no event come.

Overall, we really don't suggest to print per-event log anywhere for any big data application.

For requirements "spout/alert process issue or no event come", please refer to storm metrics.

:-1:

storm metrics cannot provide metrics base on group by, etc. You are correct, we cannot enable the per-event log in everywhere, I will add a config to enable/disable the per-event log. The default value is disabled.

@RalphSu @haoch I add switch for per-event log, could u please review - https://github.com/apache/incubator-eagle/pull/633?


Update README.md

Hi,
I improved some of the grammar in the README file as I went through it.
Thanks for the great plugin!

Hi,
thanks for fixing it. Sorry for all mispellings and other mistakes.
Regards,
David


Fix issue #303 and update resources to schema v4.16.0

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Update Soundux to 0.2.3

We require libpipewire-0.3-dev to compile it since this version. This is not available in Ubuntu 20's repositories so users might have to a PPA for it. Is there any way to display a message before installing it to inform the users?

The workflow looks like it succeeded but it actually failed installing. That's because it runs with Ubuntu 20.04 (see Unable to locate package libpipewire-0.3-dev)

Then you should figure out what went wrong. When the package is updated, give it about 5 minutes then run pacstall -Up to upgrade

As I said it's because it runs with Ubuntu 20.04 (and doesn't have the PPA installed).
It builds fine in my Ubuntu 21.04 VM. It also works in my Ubuntu 20.04 VM with the PipeWire PPA installed.

What about libpipewire-0.2-dev? Or is it 0.3 only?

What about libpipewire-0.2-dev? Or is it 0.3 only?

We require 0.3. It won't work with 0.2
You can install libpipewire-0.3 on Ubuntu 20.04 with a ppa (ppa:pipewire-debian/pipewire-upstream)

Unrelated but I think you have to tweak something in your workflow to actually fail because as you can see here it failed but the workflow is Successful

Could you compile with a flag to not use piperwire 0.3 then install as a ppa with the postinst funcrion?

Could you compile with a flag to not use piperwire 0.3 then install as a ppa with the postinst funcrion?

That would completely disable pipewire support for us we need pipewire 0.3 at compile time

Not sure if this is good practice but I think we could add the PPA inside the prepare hook

I can add a ppa function later, but I think doing that is better for now

Merge?

I'll do a quick test inside a VM

But before the build so it works

No, it doesn't work because the PPA has to be added before trying to install libpipewire-0.3-dev

Sorry. You could install it during the prepare function

It builds correctly now. If those changes are okay with you it is ready to merge.

I added a ppa system to pacstall. I'll change your scripts to use the new things

I added and tested a pacstall dependency system where you can use other pacscripts as dependencies. Do you want me to update the script?

I added and tested a pacstall dependency system where you can use other pacscripts as dependencies. I added the pipewire pacscript that is version 0.3.27. Do you want me to update the script?

If everything works, yes please :D

Your change breaks the package

The pipewire-git package does not provide the required development headers.
Off-topic: Why is it even named git when it doesn't compile from master? I'm used to that from Arch packages

Any progress?


Add Statement::getExtendedSQL()

it returns a UTF-8 string containing the SQL text of prepared statement with
bound parameters expanded

Coverage decreased (-0.4%) to 96.033% when pulling ce450996954b32801bfcb44d3e21627dd6d7dd83 on os12:master into 81913790f23a721719700af205ff3b48df6a119c on SRombauts:master.

Hi @os12, thank you for your contribution!
I wasn't even aware of this api.
Would you mind adding at least a basic test in the corresponding unit tests, so that coverall and I are happy?
(if you don't I will, no worries)
Cheers!

Sure, just added a minimal test.

Thank you very much


MINOR: Added scripts to automate Vagrant setup for system tests

Updated testing README accordingly.

@ewencp @gwenshap
Hopefully this starts to make system test setup a little more out-of-the-box

thats awesome! I'm still testing it, but looks awesome :)

@granders Found a couple of minor issues, but otherwise worked fine for me. That said, I had a bunch of stuff installed already so I'm not sure about the vagrant and plugin install parts...

@gwenshap @ewencp
Added a few small modifications per feedback.

@gwenshap @granders Looks good to me now.


Logistical Transporters not inserting into machines

So it's easiest to use the attached picture below to understand the issue, but basically, LT's won't insert into the Bio-Generators I have setup. While I am inclined to think it is an issue with the Bio-Generators, there is also a possibility that it is something to do with the LT's, as I was setting up something with Applied Energistic Inscribers using the LT's to move items around, and the tubes stopped working.
Some questions you might have, and their answers:

Is the Crushing Factory (pushing the Bio Fuel) properly configured?

Yes, further confirmed by the fact that other Bio-Generators are getting Bio Fuel pushed to them

Have you tried breaking and re-placing the Bio-Generators?

Yes

Have you tried disconnecting the other machines?

Yes, I tried running the tube to only the front of the machine, and then to the top of the machine, bypassing the others. The only thing I noticed was that when I ran the line to the top of the machine, it didn't solve the issue, but the Bio-Generator above the LT line did still accept/get sent Bio Fuel

Version: Mekanism 1.7.10 <IP_ADDRESS>
Not sure how to reproduce, but it appears that restarting the server "resets" it to make it work again.

This should be fixed v8.1.9, which should be coming soon.


ARROW-10509: [C++] Define operator<<(ostream, ParquetException) for clang+Windows

@github-actions submit conda-win-vs2017-py37

@github-actions crossbow submit conda-win-vs2017-py37

@github-actions crossbow submit conda-win-*

This has been broken in the latest nightly builds of the r-arrow conda packages on Windows.

@github-actions autotune everything

Sorry for the close/open noise but otherwise Github Actions doesn't seem to start here.

@github-actions autotune everything

The test failure is unrelated, will merge.


100% CPU usage and no result for some .o files

I have an object file from an archive. When scanning with telfhash the CPU goes to 100% and no result is printed.
The file unistd.o comes from the archive libamanda.a which can be found in this package:
https://debian.pkgs.org/10/debian-main-amd64/amanda-common_3.5.1-2+b2_amd64.deb.html
unistd.zip
I have added it to a ZIP file you can find in this issue.
The output from readelf -Wa is:
$ readelf -Wa unistd.o
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          112 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           64 (bytes)
  Number of section headers:         6
  Section header string table index: 5

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL<PHONE_NUMBER>000000<PHONE_NUMBER>00 00      0   0  0
  [ 1] .text             PROGBITS<PHONE_NUMBER>000000<PHONE_NUMBER>00 00  AX  0   0  1
  [ 2] .data             PROGBITS<PHONE_NUMBER>000000<PHONE_NUMBER>00 00  WA  0   0  1
  [ 3] .bss              NOBITS<PHONE_NUMBER>000000<PHONE_NUMBER>00 00  WA  0   0  1
  [ 4] .note.GNU-stack   PROGBITS<PHONE_NUMBER>000000<PHONE_NUMBER>00 00      0   0  1
  [ 5] .shstrtab         STRTAB<PHONE_NUMBER>000000<PHONE_NUMBER>2c 00      0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  l (large), p (processor specific)

There are no section groups in this file.

There are no program headers in this file.

There is no dynamic section in this file.

There are no relocations in this file.

The decoding of unwind sections for machine type Advanced Micro Devices X86-64 is not currently supported.

No version information found in this file.

This PR https://github.com/trendmicro/telfhash/pull/16 fixes this issue.

Thanks for reporting, @armijnhemel. Indeed, @ostefano's #16 fixed it. 🙌


Assets error when running make

# github.com/danfragoso/thdwb/mustard                                                                                ../go/src/github.com/danfragoso/thdwb/mustard/tree.go:18:30: undefined: assets.DownChevron                                             ../go/src/github.com/danfragoso/thdwb/mustard/tree.go:19:31: undefined: assets.RightChevron                                            Makefile:11: recipe for target 'run' failed                                                                                make: *** [run] Error 2

Sorry for the delayed answer, can you give more info about the environment where this bug was found?
Operating System, Shell, Make and GO versions?

OS - Ubuntu-18.04 (WSL)
Shell - Bash
Make - 4.1
Go - go1.10.4

I'm getting this error too

I have the images, but the functions aren't in the assets module.

It seems like bundleAssets has to run.

And it worked (aside from it showing in bottom quarter, that's a HiDPI issue)! I may make a PR converting the assets from the bundler into using Go's embed package.

Made a PR - https://github.com/danfragoso/thdwb/pull/29
Also, when running make build, you won't get this error, I just got it because I used the go build command.

Thanks for taking the time to work on this issue!

Cool!


adding artifactId to CreateArtifact

Description of the change
adding artifactId to CreateArtifact
Type of change

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

@maximelb same smoke test failed but artifact upload passed, can you smash merge on this one for me if you approve it


user mavencentral instead of jcenter and upgrade several google lib v…

Use mavencentral

@bevzaanton It looks like you've maintained this repo in the past.. could you merge this PR?
Or adjust the merge settings?
Would rather not have to fork 🙃


Implemented Tower of Hanoi using Recursive Function in C

solved issue #490 : Implemented Tower of Hanoi using Recursive Function in C

Thanks for contributing!


Cache directory exists in rar

The cache is local to one RAR execution, just like the file existence cache.
(times below are relative to all RAR invocations on a Roslyn build)
Before:

After:

Second commit is a code cleanup change that makes everything hard to read.

It does not appear to do much for small projects. Memory regresses a bit due to the new cache. MVC (which has the most dependencies) shows the most improvement.
Evaluation: Time (ms)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:white_check_mark:
yes
94.1869 -> 93.2235 (-1.023%)

DotnetWebProject
:red_circle:
yes
136.5201 -> 137.3331 (0.596%)

DotnetMvcProject
:white_check_mark:
yes
162.1589 -> 161.0449 (-0.687%)

Picasso
:red_circle:
yes
764.3207 -> 772.244 (1.037%)

SmallP2POldCsproj
:red_circle:
yes
134.3707 -> 134.7648 (0.293%)

SmallP2PNewCsproj
:white_check_mark:
yes
248.9259 -> 247.9689 (-0.384%)

Generated_100_100_v150
:red_circle:
yes
1587.1591 -> 1654.5322 (4.245%)

LargeP2POldCsproj
:ok_hand:
no
2218.4311 -> 2225.9235 (0.338%)

roslyn
::ok_hand:
no
9476.6876 -> 9456.8238 (-0.21%)

Evaluation: Memory (bytes)

Test
Overall
Significant δ
Value

DotnetConsoleProject
::ok_hand:
no
5092541 -> 5091959 (-0.011%)

DotnetWebProject
::ok_hand:
no
6767842 -> 6767323 (-0.008%)

DotnetMvcProject
:ok_hand:
no
7609519 -> 7610707 (0.016%)

Picasso
:red_circle:
yes
33896346 -> 33896596 (0.001%)

SmallP2POldCsproj
:ok_hand:
no
6107809 -> 6107889 (0.001%)

SmallP2PNewCsproj
::ok_hand:
no
10552626 -> 10552606 (0%)

Generated_100_100_v150
::ok_hand:
no
140411454 -> 140411333 (0%)

LargeP2POldCsproj
:ok_hand:
no
83130160 -> 83131688 (0.002%)

roslyn
::ok_hand:
no
395717476 -> 394570870 (-0.29%)

Build: Time (ms)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:white_check_mark:
yes
23.2288 -> 23.034 (-0.839%)

DotnetWebProject
::ok_hand:
no
28.176 -> 28.1249 (-0.181%)

DotnetMvcProject
:white_check_mark:
yes
31.5316 -> 31.1843 (-1.101%)

Picasso
:white_check_mark:
yes
4556.6159 -> 4525.992 (-0.672%)

SmallP2POldCsproj
:red_circle:
yes
199.2638 -> 200.814 (0.778%)

SmallP2PNewCsproj
::ok_hand:
no
177.5466 -> 177.449 (-0.055%)

Build: Memory (bytes)

Test
Overall
Significant δ
Value

DotnetConsoleProject
:ok_hand:
no
1165536 -> 1165785 (0.021%)

DotnetWebProject
:ok_hand:
no
1311429 -> 1311690 (0.02%)

DotnetMvcProject
:red_circle:
yes
1482301 -> 1485413 (0.21%)

Picasso
:ok_hand:
no
194396412 -> 195396448 (0.514%)

SmallP2POldCsproj
:white_check_mark:
yes
8185164 -> 8180674 (-0.055%)

SmallP2PNewCsproj
:ok_hand:
no
7258168 -> 7260618 (0.034%)

Could using this with RAR be a problem in case of parallel builds with common output directories or shared assembly directories?

File existence and directory enumerations were already being cached per RAR call, so I don't think this would aggravate things more.


Add example .nvmrc file to docs

I was pretty confused about how to create the .nvmrc file. I know it's really simple but for some reason the instructions confused me, so I'm probably not the only one.

I just found it hard to tell what was going on. I doubt I'm the only one,
its a very strange way to explain how a file should be created.
On Jul 22, 2017 6:45 PM, "Jordan Harband"<EMAIL_ADDRESS>wrote:

@ljharb commented on this pull request.
In README.md
https://github.com/creationix/nvm/pull/1581#discussion_r128908364:

@@ -329,6 +329,13 @@ You can create a .nvmrc file containing version number in the project root dir

For example, to make nvm default to the latest 5.9 release for the current directory:
+.nvmrc file:
There's many ways to create a file and add content to it; it's critical
that there be no trailing whitespace, including a trailing newline; the
command allows it to be precisely conveyed, with zero possibility of error.
You don't need to know what the command does, you just need to run it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/creationix/nvm/pull/1581#discussion_r128908364, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGUm6rCE9UCel4vTjpnBBUwPbBv4ag2dks5sQqW8gaJpZM4Ofv57
.

Thank you for the feedback! I'm totally down to improve the documentation - but I don't think an extra redundant instruction will do it. Do you have any ideas how we could preserve the command, but explain better what it's going to do?

I made #1673 with proposed wording changes. @ljharb

Closing due to #1673. Thanks to you both for contributing!

Thanks!


API: added strict argument to has_terminal_stop() method

[NEW] if seq / align length not divisible by 3, raises an exception
[CHANGED] deprecated allow_partial argument
[NEW] .has_terminal_stops() is being deprecated for
.has_terminal_stop(), because it returns True if a single
sequence has a terminal stop.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1103 unchanged lines in 18 files lost coverage.
Overall coverage remained the same at 91.538%

Files with Coverage Reduction
New Missed Lines
%

.nox/test-3-9/Lib/site-packages/cogent3/evolve/likelihood_function.py
1
96.45%

.nox/test-3-9/Lib/site-packages/cogent3/maths/scipy_optimize.py
3
84.87%

.nox/test-3-10/lib/python3.10/site-packages/cogent3/core/sequence.py
26
94.68%

.nox/test-3-10/Lib/site-packages/cogent3/core/sequence.py
26
94.68%

.nox/test-3-11/lib/python3.11/site-packages/cogent3/core/sequence.py
26
94.68%

.nox/test-3-11/Lib/site-packages/cogent3/core/sequence.py
26
94.68%

.nox/test-3-8/lib/python3.8/site-packages/cogent3/core/sequence.py
26
94.6%

.nox/test-3-8/Lib/site-packages/cogent3/core/sequence.py
26
94.6%

.nox/test-3-9/lib/python3.9/site-packages/cogent3/core/sequence.py
26
94.6%

.nox/test-3-9/Lib/site-packages/cogent3/core/sequence.py
26
94.6%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
235609

Relevant Lines:
257388

💛  - Coveralls


Client side exception in feed page

Description :
I noticed that if we go on feed page and go down and click on more 3 times it will show a client-side expectations occur.

@rithviknishad Hey, rithvik I want to take this issue

This issue is linked with issue #248. I have been researching different ways to solve this issue and found that it cause by unauthorized access to the github's api.

Me and Rithvik already discussed this issue and we reached a solution, Implementation in progress


Fix a typo in indexeddb

Just a missing letter.
https://github.com/crate-ci/typos

Thanks @szepeviktor!

Glad to contribute to a scientific project.


how to update cell value

Hey, I have 3 column in gird,
ex: column A, column B, column C
column C =  column A * column B
I want to update value in Column C, by call updateitem, but error
Uncaught RangeError: Maximum call stack size exceeded
How can I set cell value when Update Item
Tks

can you provide a JsFiddle?

sorry for late
Here my link
https://jsfiddle.net/kirknino/1bf8zp6z/43/
tks
2017-05-10 15:20 GMT+07:00 Mauro Rulli<EMAIL_ADDRESS>
can you provide a JsFiddle?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tabalinas/jsgrid/issues/771#issuecomment-300410656,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQK1NUrf2ZtTKdw-YYTaLL9Kb83raN8Mks5r4XNrgaJpZM4NU-_J
.

From my very limited experience with jsGrid I would think what you're after is an itemTemplate for your Total column. Something roughly like:
{
  name: "Total",
  type: "number",
  width: 50,
  title: "Total",
  editing: false,
  inserting: false,
  itemTemplate: function(value, item) {
      // Probably want to add rounding and error checking on this and maybe even some nice formatting
      return item.Quantity * item.Price * (1 + item.VAT / 100);
  }
}

This, however, seems to conflict with the fact that you are allowing the user to enter and store (in the array) the total value even though you say you want it to be calculated. So maybe you need an extra field definition like CalcTotal with the above settings, using the editing and inserting properties appropriately.
I suppose that if you wanted to update an internal stored total value you could also use the onItemInserted and/or onItemUpdated callbacks on the grid too. Something like:
  // other grid options...
  // pageButtonCount: 5,
  // ... blah blah
  onItemUpdated: function(args) {
    args.item.Total = args.item.Quantity * args.item.Price * (1 + args.item.VAT /100);
  }

Don't know how you'd get that to update on the grid though - but then you shouldn't be showing it anyway.
Like I said, I'm new to this. But I like it so far.

@tanvan81, for fields with calculated values, as @shunty-gh proposed, define itemTemplate and don't specify type property, so it's going to be readonly (https://jsfiddle.net/yg3d12yL/)


[test] Update reference values of G2G [1] check

Update reference value of G2G using the average of last 14 timings in /project/g110/reframe/perflogs/kesch/cn/G2GMeteoswissTest_1.log, as discussed in CSCS RT #36752.
See http://jenkins-mch.cscs.ch/view/ReFrame/job/reframe-kesch-production-daily.

Codecov Report

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

@@          Coverage Diff           @@
##           master    #939   +/-   ##
======================================
  Coverage    91.7%   91.7%
======================================
  Files          79      79
  Lines       10486   10486
======================================
  Hits         9616    9616
  Misses        870     870

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 319c5be...91745da. Read the comment docs.


links css edited

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Sorry, I'm new to GitHub. I don't know how can I remove files from commit. Any help would be good. Thanks

Sorry, I'm new to GitHub. I don't know how can I remove files from commit. Any help would be good. Thanks

I think because yours has just updated the version numbers on lines 3 and 9, if you change them back to what they were and commit the changes the file will remove itself from the PR as there will no longer be any differences.

@git-devansh how are you getting on with this?

Hi @git-devansh since there are still unresolved conflicts in this file I’m going to close this pull request. Please feel free to make new separate pull requests for your profile and the css issue if you want to and don’t hesitate to reach out for help either here or in discord if you’re unsure of how to do something.

Thank you I will try to do it


[WebView] WebView types missing

Description
WebView has no proper flowtypes.
Reproduction Steps and Sample Code
Environment

react-native: 0.43.4
flow-bin: 0.40.0

import WebView
use it
attempt to access props or exposed functions
observe that props and exposed methods (injectJavaScript, for example) are not covered by flow.

// @flow
import React, {PureComponent} from 'react';
import {WebView, View, Button} from 'react-native';
import htmlTemplate from './template.html';

export default class TestComponent extends PureComponent {
  webview: ?WebView = null;

  handlePress = () => {
    const {webview} = this;
    if (webview) {
      const script = "alert('sup :3')";
      webview.injectJavaScript(script);
    }
  };
  render() {
    <View>
      <Button onPress={this.handlePress}>
        Press me!
      </Button>
      <WebView
        ref={(webview: WebView) => {
          this.webview = webview;
        }}
        source={htmlTemplate}
      />
    </View>;
  }
}

Solution
Add missing flowtypes to WebView.
Additional Information

React Native version: 0.43.4
Platform: both
Development Operating System: MacOS
Dev tools: N/A

Would you consider sending a PR to add these types?

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.


Add support for AWS managed prometheus

Add support for remote writing to managed prometheus for persisting the metrics data after the test environment is destroyed.

On speaking with Silvio it may be better to use memir


When loading from XAML only recursing controls on first TabItem

Suppose a simple tab control window (gui.xaml):
<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="MainWindow">
    <TabControl>
        <TabItem Header="Tab1">
            <Grid>
                <Button Name="button1" Content="Button1"/>
            </Grid>
        </TabItem>
         <TabItem Header="Tab2">
            <Grid>
                <Button Name="button2" Content="Button2"/>
            </Grid>
        </TabItem>
    </TabControl>
</Window>

When loaded with Show-UI's -XAML parameter, button2 is not accessible.
Example gui.ps1:
Show-UI -Xaml $PSScriptRoot\gui.xaml -On_Loaded {
	Add-EventHandler $button1 Click {
	    write-host "Button 1 was pressed!!!"
    }
	Add-EventHandler $button2 Click {
		Write-Host "Button 2 was pressed!!!"
	}
}

Output:
PS C:\Users\Tough> C:\data\working\tests\gui.ps1
Error in On_Loaded Event Handler on Window
At line:10 char:19
+     Add-EventHandler $button2 Click {
+                      ~~~~~~~~
The argument is null. Provide a valid value for the argument, and then try running the command again.

Confirmed. In fact, I'm sure this affects any code that tries to dig through a tabcontrol the child items, because I'm using the VisualTreeHelper instead of the LogicalTreeHelper so we only see the controls that are visible (and thus, not the ones in the hidden tab).
It's probably a breaking change to switch, but I think I might do it anyway, because I can't think how anyone could have written code that depends on the visual tree behavior.


Fixed a couple of things, details in commits

And here we go, ma 3rd pull request.
Somehow these bois cant automatically merge and I don't know why.
I just added and change a couple things, mainly to fix derpibooru.
It works now. (at least for me)

There was a bug in post.js were this.rating would be undefined, [...]
That was because I forgot to add a [0] after <Regex>.exec(string) so it was trying to use an array and would just crash
Should be fixed in 78990e82a0d7cfdcbbe219acf9f4b2dabd8b1238 (aka v1.2.1) which changes a line you also changed

When I get time I'll look over how the boorus deal with credentials and see if we can just use apiKey instead so it's clearer


leave-to class is not removed when transition ends when using v-show and being immediately canceled

Version
3.2.6
Reproduction link
sfc.vuejs.org/
Steps to reproduce
1、use v-show
2、dynamic set show true/false
3、when leaveCancel hook called. leave-to class cannot remove
What is expected?
The element should cancel the animation and stay visible
What is actually happening?
The element disappears and stays hidden

https://2x.antdv.com/components/slider/#components-slider-demo-basic

like this.   we have a tooltip when click slider bar.  when i click other point, tootip will hide, then show again.

https://2x.antdv.com/components/slider/#components-slider-demo-basic

like this. we have a tooltip when click slider bar. when i click other point, tootip will hide, then show again.

Which the tooltip should not hide when you keep clicking /moving on other points.

Which the tooltip should not hide when you keep clicking /moving on other points.

@dsonet
It doesn’t matter, whether it’s hidden or not, it’s reasonable.   I’m just giving a scenario

I have the same problem where the mutation of the property that is being used for the visibility state happens through a WebSocket message.


renderToReadableStream and Suspense runs async component twice

What version of Hono are you using?
next
What runtime/platform is your app running on?
Deno
What steps can reproduce the bug?
Use the following components
const AsyncThing = async () => {
    console.log("Async start");
    await new Promise(resolve => setTimeout(resolve, 1000))
    console.log("Async end")
    return
Async thing

}

export const Home = () => {
    console.log("Home")
    return

Hey på deg!

        <Suspense fallback={
Loading...
}>
            <AsyncThing />
        </Suspense>

}

Then use renderToReadableStream on Home component
const stream = renderToReadableStream(Home());

What is the expected behavior?
I expect a console output like this
Home
Async start
Async end

Indicating that the async component was ran only once.
What do you see instead?
Instead I see
Home
Async start
Async end
Async start
Async end

Indicating that the async component is ran twice.
Additional information
When returning this as a stream the request takes ~2s to finish, instead of the expected ~1s.

It seems to work as expected when changing
        promise.then(async () => {
          return `<template>${await childrenToString(children)}</template>


If the top-level element is a CHOICE, no instance should be required

Currently, the Decode and DecodeWithOptions methods require an object to be passed where the decoded data will be put in place.
However, if the top-level element is a CHOICE, the instance should be created by using the context.
I don't know the implementation well, but if you don't have time to take a look at this, please let me know, I could give it a shot.
F.e.
Fulfillment ::= CHOICE {
  preimage PreimageFulfillment ,
  prefix PrefixFulfillment,
  threshold ThresholdFulfillment,
  rsaSha256 RsaSha256Fulfillment,
  ed25519 Ed25519Fulfillment
}

It can be solved by passing an &interface{}.
Define the CHOICE with the subtypes for the choice entries, then just do this:
var obj interface{}
remainingBytes, err := asn1context.DecodeWithOptions(encodedObject, "choice:fulfillment")

// then probably something like
switch obj.(type) {
case PreimageFulfillment:
    //...
}


New version

Hello,
I would like to congratulate the project and would also like to know if it has a forecast for a new version? Is it possible to create subdirectories?
Thanks!

Yes, it is possible to create subdirectories.
A new version will be available when it is done, I think that will be the case next year.
You are welcome to check out the live demo.

This issue will be closed because I'm not actively working on Lychee anymore. The repository of Lychee will stay available, but the main development continues under the Lychee Organisation. A fork maintained by the community. Important issues have been migrated. Feel free to re-add your issue(s) when necessary.


[Feature]: Support Mixtral-8x22B-v0.1

🚀 The feature, motivation and pitch
Do we support running Mixtral-8x22B-v0.1 now? It takes very long for compiling on my side.
https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1
Alternatives
No response
Additional context
No response

vLLM should be able to support it as-is without modification. I have heard report people successfully running it. The out of the box performance should be ok but there are rooms for improvement on tuning the MoE kernels. cc @pcmoritz @richardliaw if your team have bandwidth to help tune.

Can confirm https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1 already works on latest PyPI release.
I've created https://github.com/vllm-project/vllm/pull/4002 to add the configs for the moe kernels - feel free to test them out.

It is working now. vLLM is so good, although it requires more GPU memory than the normal one. Thank you very much for the help!!!

Hi guys,
For the mixtral X8 models, do you know if the VLLM implementation supports the full sparse matmul optimization designed for MoE models, like the original white paper:
https://arxiv.org/pdf/2401.04088
has specified.  More specifically, using the recommended MEGABLOCKS sparse matrix computation described here:
https://arxiv.org/pdf/2211.15841
in the form of Blocked Compressed Sparse Row method ?
Does the VLLM implementation have everything enabled for sparse matmul optimization, or would it need additional infrastructure steps to enable it, or would it not be possible to work with it in the exact manner that MEGABLOCKS parallel optimization has specified?
We have not been able to find sufficiently specific documentation anywhere in VLLM to make this clear. Would appreciate any information you guys can furnish.
Best


Torch implemantation of the fast gradient method

Hi!
Thanks for that great library!
It seems like the torch implementation assumes that the given model had been trained with cross-entropy loss, line 80 at  torch/attacks/fast_gradient_method.py.
In the TF version(as in the paper) one can specify the loss function, line 46 at tf2/attacks/fast_gradient_method.py and in the Function signature.
Thanks!

Hi Amir,
Thanks for pointing this out. Indeed, it would be much better if the loss function is included in the function signature as done in the TensorFlow implementation. Would you like to send a PR addressing this?

Sure :)

Hey, @tejuafonja  is this issue still open? I would like to work if that's the case

Hi @Kkuntal990, yes it is. Please feel free to send a PR anytime : )

Hello, I've implemented a fix for this here: https://github.com/cleverhans-lab/cleverhans/pull/1222


42c2fad41140256195d9eac27fc2cc9fd0976dbe

So I'm not completely sure what issue you are proposing here. I checked the commit 42c2fad41140256195d9eac27fc2cc9fd0976dbe, but I didn't find any issue there.

So I'm going to close this for now. @deborah1999 if you wanna follow up on this issue, just comment here.


Closure-based speculative parsing API

This is a (very early draft of a) potential fix for the speculative parsing issues in #720 and #721. It introduces a new API for speculative parsing. The speculate method takes a FnOnce(ParseStream) -> Result<T>, and returns an Option<T>, only advancing the ParseStream if the inner parse succeeds.
The primary difference between this method and fork/advance_to is the interaction with the unexpected attribute. The forked ParseStream is checked for unexpected errors before determining whether the speculative parse succeeded. The introduction of a closure scope helps ensure that nested ParseBuffers have been dropped before the check occurs, which helps with issue 2 in #721.
I also introduce a speculate_peek method (all names super bikesheddable) which also checks unexpected errors, but does not advance_to if the inner parse succeeds.
Example
A number of fork() callers have been changed in the 2nd commit, including the Visibility::parse_pub method which caused #720. The implementation now looks as follows:
let pub_token = input.parse::<Token![pub]>()?;

match input.speculate(|ahead| {
    let content;
    let paren_token = parenthesized!(content in ahead);

    if content.peek(Token![crate])
        || content.peek(Token![self])
        || content.peek(Token![super])
    {
        Ok(VisRestricted {
            pub_token,
            paren_token,
            in_token: None,
            path: Box::new(Path::from(content.call(Ident::parse_any)?)),
        })
    } else {
        Ok(VisRestricted {
            pub_token,
            paren_token,
            in_token: Some(content.parse()?),
            path: Box::new(content.call(Path::parse_mod_style)?),
        })
    }
}) {
    Some(restricted) => Ok(Visibility::Restricted(restricted)),
    None => Ok(Visibility::Public(VisPublic { pub_token })),
}

Known Problems

The function boundary can encourage too much to be parsed speculatively. For example, in the previous "example" code, the path field in pub(in FOO) should not be parsed speculatively, however performing the parse outside of the speculate call would be much more verbose.
It may be possible to add a ahead.nonspeculative(|ahead| ...) helper if the input & return types of the speculate  are custom wrapper types. Alternatively, a ahead.commit() (ahead.stop_speculating()?) method could also be used to halt speculation, and make errors produced after that point trigger a "real" error rather than a speculation one by setting a flag on the forked ParseBuffer. (The commit() would have to be ignored if an unexpected flag had already been set to ensure the parse recovers in that scenario)
Either of these approaches would require changing the return type to Result<Option<T>>, which should be OK.

It's fairly common to perform a series of peek checks while speculating, and then return a dummy error (which will be ignored) if they fail. It might be worthwhile to use a different error type so these are easier to write & read.

Documentation needs a lot of updating. The current docs are largely copy-pasted from advance_to.

Breaking Changes
I wanted to add this new method to the parse::discouraged::Speculative extension trait, as it fills the same role as the existing advance_to method. That extension trait is not Sealed, meaning it is technically possible for downstream crates to implement it for local types.
In this patch stack I change this trait to be Sealed, and add new methods to it. This is technically a breaking change.

I didn't realize that token::* doesn't implement Copy unless the clone-impls feature has been enabled. I suppose I'll need to remove the dependency on pub_token being Copy at some point.
It also appears that some nightly changes broke the rustc tests (I think)

The Rc-chain option fixes the issue with advance_to discarding the error, but doesn't provide a way for non-internal code to query the error state of the unexpected value. To fix #720, which doesn't use advance_to yet, we'd need to either expose ParseBuffer::check_unexpected or an API which uses it, like this one, as well.

For #720 I think I'd like Visibility::parse_pub to do its own is_empty check. This is a quirk of visibility syntax. It's speculating into the parentheses and needs to encode the fact that pub ( crate ) vs pub ( crate ... ) makes a difference.

Closing in favour of #723.


[SPARK-24529][BUILD][test-maven][FOLLOW-UP] Set spotbugs-maven-plugin's fork to true

What changes were proposed in this pull request?
Set spotbugs-maven-plugin's fork to true, otherwise will throw exception when make distribution:
./dev/make-distribution.sh --name SPARK-24529  --tgz  -Phadoop-2.7 -Phive -Phive-thriftserver -Pyarn -Phadoop-provided

exception:
...
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [  8.753 s]
[INFO] Spark Project Tags ................................. SUCCESS [  9.334 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 12.029 s]
[INFO] Spark Project Local DB ............................. SUCCESS [ 13.641 s]
[INFO] Spark Project Networking ........................... FAILURE [10:10 min]
[INFO] Spark Project Shuffle Streaming Service ............ SKIPPED
[INFO] Spark Project Unsafe ............................... SUCCESS [ 16.415 s]
[INFO] Spark Project Launcher ............................. SKIPPED
[INFO] Spark Project Core ................................. SKIPPED
[INFO] Spark Project ML Local Library ..................... SKIPPED
[INFO] Spark Project GraphX ............................... SKIPPED
[INFO] Spark Project Streaming ............................ SKIPPED
[INFO] Spark Project Catalyst ............................. SKIPPED
[INFO] Spark Project SQL .................................. SKIPPED
[INFO] Spark Project ML Library ........................... SKIPPED
[INFO] Spark Project Tools ................................ SUCCESS [  8.750 s]
[INFO] Spark Project Hive ................................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] Spark Project YARN ................................. SKIPPED
[INFO] Spark Project Hive Thrift Server ................... SKIPPED
[INFO] Spark Project Assembly ............................. SKIPPED
[INFO] Spark Integration for Kafka 0.10 ................... SKIPPED
[INFO] Kafka 0.10 Source for Structured Streaming ......... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SKIPPED
[INFO] Spark Avro ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:29 min (Wall Clock)
[INFO] Finished at: 2018-07-16T21:39:46+08:00
[INFO] Final Memory: 61M/885M
[INFO] ------------------------------------------------------------------------
Timeout: sub-process interrupted
[ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.3:spotbugs (spotbugs) on project spark-network-common_2.11: Execution spotbugs of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.3:spotbugs failed: Timeout: killed the sub-process -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :spark-network-common_2.11
org.apache.tools.ant.ExitException: Permission ("java.lang.RuntimePermission" "exitVM") was not granted.
        at org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:194)
        at java.lang.Runtime.exit(Runtime.java:107)
        at java.lang.System.exit(System.java:971)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:358)
Exception in thread "main" org.apache.tools.ant.ExitException: Permission ("java.lang.RuntimePermission" "exitVM") was not granted.
        at org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:194)
        at java.lang.Runtime.exit(Runtime.java:107)
        at java.lang.System.exit(System.java:971)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:364)
Timeout: sub-process interrupted

How was this patch tested?
manual tests

Test build #93114 has started for PR 21785 at commit 9d87160.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1013/
Test PASSed.

Test build #93114 has finished for PR 21785 at commit 9d87160.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93114/
Test PASSed.

@wangyum, I think we better test the build against maven by adding [test-maven] in the PR title.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1036/
Test PASSed.

Test build #93149 has started for PR 21785 at commit 9d87160.

cc @kiszk

Test build #93149 has finished for PR 21785 at commit 9d87160.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93149/
Test FAILed.

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1040/
Test PASSed.

Test build #93154 has started for PR 21785 at commit 9d87160.

Now, I am checking make-distribution.sh in my environment. If my memory is correct, the error in spark-sql_2.11 or spark-catalyst_2.11 was a motivation to stop forking of spotbugs.

Test build #93154 has finished for PR 21785 at commit 9d87160.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93154/
Test FAILed.

retest this please

Test build #93161 has started for PR 21785 at commit 9d87160.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1047/
Test PASSed.

Merged build finished. Test PASSed.

+1 I saw this with my build. I reported on the other PR.

In my environment, make-distribution.sh works well without fork.
...
 SUCCESS [  3.749 s]
[INFO] Spark Project Tags ................................. SUCCESS [ 19.141 s]
[INFO] Spark Project Sketch ............................... SUCCESS [ 24.832 s]
[INFO] Spark Project Local DB ............................. SUCCESS [ 19.311 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 53.422 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 30.715 s]
[INFO] Spark Project Unsafe ............................... SUCCESS [ 33.014 s]
[INFO] Spark Project Launcher ............................. SUCCESS [ 22.917 s]
[INFO] Spark Project Core ................................. SUCCESS [32:29 min]
[INFO] Spark Project ML Local Library ..................... SUCCESS [01:15 min]
[INFO] Spark Project GraphX ............................... SUCCESS [01:24 min]
[INFO] Spark Project Streaming ............................ SUCCESS [04:32 min]
[INFO] Spark Project Catalyst ............................. SUCCESS [14:08 min]
[INFO] Spark Project SQL .................................. SUCCESS [12:10 min]
[INFO] Spark Project ML Library ........................... SUCCESS [04:59 min]
[INFO] Spark Project Tools ................................ SUCCESS [ 16.323 s]
[INFO] Spark Project Hive ................................. SUCCESS [08:14 min]
[INFO] Spark Project REPL ................................. SUCCESS [  7.546 s]
[INFO] Spark Project YARN Shuffle Service ................. SUCCESS [ 17.865 s]
[INFO] Spark Project YARN ................................. SUCCESS [ 59.089 s]
[INFO] Spark Project Hive Thrift Server ................... SUCCESS [ 38.509 s]
[INFO] Spark Project Assembly ............................. SUCCESS [  1.320 s]
[INFO] Spark Integration for Kafka 0.10 ................... SUCCESS [ 46.277 s]
[INFO] Kafka 0.10 Source for Structured Streaming ......... SUCCESS [ 27.301 s]
[INFO] Spark Project Examples ............................. SUCCESS [ 44.678 s]
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SUCCESS [  7.238 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:09 h (Wall Clock)
[INFO] Finished at: 2018-07-17T16:23:18+09:00
[INFO] Final Memory: 78M/1967M
[INFO] ------------------------------------------------------------------------
...

Test build #93161 has finished for PR 21785 at commit 9d87160.

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

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93161/
Test PASSed.

@kiszk What is your environment? My environment is:
Java HotSpot(TM) 64-Bit Server VM 1.8.0_151-b12 on Mac OS X 10.12.6

@wangyum my environment is
$ java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu<IP_ADDRESS>-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

I got the same error in my Mac. I understand that the motivation of forking is this solution.
Unfortunately, I cannot access my Mac until this weekend. For now, let me retest again.

retest this please

Test build #93198 has started for PR 21785 at commit 9d87160.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1070/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93198/
Test PASSed.

@kiszk, let me just push this in since it fixes an actual issue and the build passes; however, please make a followup if you see something else to fix.

Merged to master.

@HyukjinKwon @wangyum  thank you.
If there is no error in amp build infra, I think that this is a better way.

@HyukjinKwon @wangyum  thank you. I took a vacation.
If there is no error in amp build infra, I think that this is a better way.


[Typo] update some out-dated links from pytorch clip_grad_value_

What does this PR do?

Fixes #8532 8532
Does your PR introduce any breaking changes ? If yes, please list them.

Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)
[ ] Did you list all the breaking changes introduced by this pull request?

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 😃

If the link like this looks better than this link, please tell me. I'll fix them.


Cleanup "hello-world" image in build tests

An attempt to fix the randomly TestPullVerified (which seems to be dependent on the fact that "hello-world" does or does not exist a test execution time).

LGTM

nice LGTM


Text not justified on iOS Safari when using "ng-bind-html"

bug
When injecting html content using ng-bind-html, the CSS property text-align: justify does not work on Safari (iOS and Mac OSX). The text is align on the left.
To reproduce it, inject a string containing html text embeded in a <p> block, set the text-align CSS attribute to justify, inject this string into the HTML page using ng-bind-html then run the page on safari.
The text should be justified (it is on android and desktop chrome).
This bug occured with Angular 1.4.0 on iOS and Mac OSX Safari explorers.

Can't reproduce in this plnkr: http://plnkr.co/edit/LLPPNngfgfTfvUL51MUQ on ios 9.2 on iPad 2 simulator. Please provide a demo that shows the problem.

Closing due to lack of feedback.


Fix typos in TestAPI messages

Fixed a couple typos in the messages you see for failing tests. One of them was throwing me off.
I also improved the () consistency between messages (by making the choices that required the fewest changes). Let me know if a different choice would be clearer.

Looks good, thank you!


How can i block postman request ??

Hello,
I'm using Nelmio wit api platform,
And i try to block all the request execpet from specific servor,
My probleme is that i can still do request with postman, i set the allow origin but post man can still call it.
Thank alot
Paolo
nelmio_cors:
    defaults:
        origin_regex: true
        allow_origin: [ 'http://blabla.com*$']
        allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
        allow_headers: ['Content-Type', 'Authorization']
        expose_headers: ['Link']
        max_age: 3600
    paths:
        '^/': ~

is postman running on the same domain.. ie localhost? or has this been tested in a environment other than local?


Misalignment of [md-ink-bar] element for Stretched Tabs on browser's window resize

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Highlighter [md-ink-bar] should invalidate position on window resize
What is the current behavior?
Frozen [md-ink-bar]. Please see attached image.
What are the steps to reproduce?

Browse demo application from material2
Navigate to tabs  (Especially for Stretched Tabs section)
Resize browser

Which versions of Angular, Material, OS, browsers are affected?
According to up to date sources of material2
Is there anything else we should know?

Some different issue https://github.com/angular/material2/issues/3048


TC7 Requirements

WW48: Machine is being reimaged to fix msr-safe issues.  Also waiting for BIOS upgrade.  Most of the test content is done and needs to be tested when these issues are resolved.


Development/memory view

Created rex::BlobView which is a view over a blob, but doesn't own the memory it contains

I would have added conversion to a regular blob as well, like it's possible with a string_view -> string
But we can always add it when we need it.


Added Binary Search in Java

Thanks for helping us build up our knowledge base!
What kind of pull request hav you brought us today?
Pull Request Type

[x] Sample Program Documentation
[ ] Language Documentation
[ ] Project Documentation
[ ] Other (explain below)

Notes
Feel free to share any details you feel are relevant.

Okay! Everything looks good. I should mention that the program you covered is different from the program that is actually in the repo. Take a peek here: https://sampleprograms.io/projects/binary-search/java/


Installation media not pulling DNS configuration

For whatever reason, I cannot get the live CD to pull a DNS configuration from the router. Other devices have no problem, and I was able to manually re-link the /etc/resolv.conf to a file with a manual configuration, but I cannot for the life of me figure out what the issue is.
/run/systemd/resolve/stub-resolv.conf reads only the loopback, while ./resolve/resolv.conf reads the correct source (upstream router).
This could be an issue on my end - this is an IT essentials class, and one of my students chose Chimera for their PC. We have DNS based filtration school-wide, and the router (downstream) for my classroom is telling everything to use the proper upstream DNS. Any assistance is appreciated!

Changed from unbound dns to dnsmasq.


The Waf log to ELK

Can i set waf automations log to ELK for weekly security report ??
we want to know block by which rule from which ip to which host

Thanks for the question. Here is a blog about how to analyze waf logs using ElasticSearch: https://aws.amazon.com/blogs/security/how-to-analyze-aws-waf-logs-using-amazon-elasticsearch-service/. You can also build a custom dashboard to view WAF cloudwatch metrics: https://docs.aws.amazon.com/solutions/latest/aws-waf3-security-automations/appendix-e.html

Hi aijunpeng
i use aws-waf-security-automations that have use Amazon Kinesis Data Firehose delivery stream to that s3 bucket

if i have build custom log to  elasticsearch will it influence aws-waf-security-automations other function?(ex: Lambda log parser)

The aws-waf-security-automations solution processes the WAF logs stored in that S3 bucket therefore you shouldn't change it. Instead you can use a lambda to load logs from S3 to ES. Your lambda can be triggered when a WAF log file is inserted into S3.


Background of input elements in dark mode does not stand out

Thanks for making this library, it's incredibly helpful to have a consistent background when using Plotly figures! I'm currently noticing an issue where the background of input elements is the same as the container background when using dark backgrounds. If I remove the custom dash-bootstrap-templates CSS, the background of the input returns to white for contrast. In the image below, the input element is followed by a select element to show the difference.

from dash import Dash
import dash_bootstrap_components as dbc

dbc_css =<EMAIL_ADDRESS>app = Dash(__name__, external_stylesheets=[dbc.themes.DARKLY, dbc_css])

app.layout = dbc.Container(
    [
        dbc.Input(placeholder="Test", class_name="mt-3"),
        dbc.Select(class_name="mt-3", options=[{
            "label": "Sample", "value": "sample"
        }]),
    ],
    fluid=True,
    class_name="dbc"
)

if __name__ == "__main__":
    app.run_server(debug=True)

It looks like line 64 of the stylesheet is causing this, is it intentional?
/* Use this classname for dcc.Input */
.dbc input:not([type=radio]):not([type=checkbox]) {
  color: var(--bs-body-color) !important;
  background-color: var(--bs-body-bg) !important;
}

Hi @zachies
Thanks for your kind words, and I'm glad you find this library useful. :slightly_smiling_face:
In some previous versions of the DARKLY theme, the inputs (including the dbc.Input and dbc.Select)  were dark, so this was done to make the dcc.Input and dcc.Dropdown match the dbc input components.  I think it has changed recently which complicates matters.  The goal is to make this stylesheet work with all themes and all versions of Bootstrap 5 stylesheets.
I'll look into making additional releases that match various versions of the bootstrap stylesheets.  In the meantime, I'd recommend copying the stylesheet and placing it in the assets folder rather than using it as an external stylesheet.  Then you can customize it as you like.
If you are not using dcc components such as dcc.Input,  dcc.Dropdown, or the DataTable, then you may not need to include this stylesheet at all.   It's also possible to fine-tune where the  class_name="dbc" is applied.  Instead of using it on the outer container of the app layout, you could apply it only to certain dcc and DataTable components.
Note that the figure templates are independent - in fact you can even use these Bootstrap themed figure templates without using the dash-bootstrap-components library.

Thanks! I tried using a local stylesheet and it seems to be working.


/Claimlist command isn't showing newly created Admin claims

Hello,  using the build compiled as of 4/20/2018.  I created an admin claim, I then typed /claimlist.  The newly created claim doesn't appear in the list.

Did you click to filter by "ADMIN" as by default it only shows you your own claims. Also it will only show you claims in the overworld without a world specified.

Yes, I clicked on that and other various ones to try and get the list to populate, it didn't.

Admin claims are not owned by a single player which is why they will not show up in "OWN" tab. Click on the "ALL" tab and it will show up fine.


[Feature Request] lxc config show -a

Description:
I imagine a flag -a for lxc config show, that will show all configuration information, including the configuration applied by profiles.
This would save one (or even multiple) steps, when someone wants to see all configuration of a container or vm.

That's what lxc config show --expanded does.

Thank you.
But its a bit bulky, is there a shorter one?
If not, could that be implemented?

https://github.com/lxc/lxd/pull/7425


tabs: update alignment section on usage tab

Auto-width and Grid aware tabs guidance
Update the Alignment section on the Usage tab to include the following:

[ ] Add initial guidance about when to use grid aware tabs. Ref issue #13351
[ ] Think about whether to add do/don't guidance and imagery.
[ ] See if we need to revisit any current images/content and if we could expand on them to make the information more clear.
[ ] Take off informational inline notification, this has been implemented.

i


pen-testing of Serial

Spam Serial with

rapid inputs
non existing jobs
whitespaces
too long strings

Applied usage from FR2 dev shows that core jobs need to be protected from being accessed by the CLI. Right now, calling jescore core crashes the system.

Thanks to __MAX_JOB_ARGS_LEN_BYTE, no more than this value can be printed. Fix it. Also, successive calls to jesprint() fail because job requests are overridden.


Fix Term_Frequency

The term_frequency function is currently implemented incorrectly. Example:
>>> s = pd.Series(["Text Text of doc one", "Text of of doc two", "Aha hi bnd one"]).pipe(hero.tokenize)
>>> s
0    [Text, Text, of, doc, one]
1      [Text, of, of, doc, two]
2           [Aha, hi, bnd, one]
dtype: object

Old implementation of term frequency returns:
  term_frequency
             Aha      Text       bnd       doc        hi        of       one       two
0       0.000000  0.142857  0.000000  0.071429  0.000000  0.071429  0.071429  0.000000
1       0.000000  0.071429  0.000000  0.071429  0.000000  0.142857  0.000000  0.071429
2       0.071429  0.000000  0.071429  0.000000  0.071429  0.000000  0.071429  0.000000

New version returns:
  term_frequency
            Aha   Text  bnd  doc    hi   of   one  two
0           0.00  0.4  0.00  0.2  0.00  0.2  0.20  0.0
1           0.00  0.2  0.00  0.2  0.00  0.4  0.00  0.2
2           0.25  0.0  0.25  0.0  0.25  0.0  0.25  0.0

We can see that the old version simply did count for each document and then divided each count value by the total number of terms across all documents (the .sum() in the old code). That does not make sense for term_frequency. The new version will also do count, but then divide the count values of each document by the number of terms in that document to produce the correct term frequencies. Of course, that's the same as L1-Normalizing every row, so that's how we implemented it 🚥 .
Note: only so many lines changed as this builds upon the DocumentTermDF (see #156)

now, this branch is based on the master branch again and is ready for review/merge 🥇 🌵

Looks good and it has been merged. What would be nice ( probably to be done in a separate PR) is to have more friendly and funny doctest text content (instead of "Aha", "Text"). One idea, for instance, is to use famous sentences saif by movie Superheroes. Here are a few examples:

I have the power!
Flame on!
HULK SMASH!
Holy ____ Batman!
I am the vengeance, I am the night, I am BATMAN!
I am GROOT.
I’m going ghost!
I am the law!
SPOOOON!!!

Opinions?

Added an issue for that, see #189

Great idea, I have already started to use Hero related text examples in the Docs and Tutorials I am working on.


Add Multipart tests to JS Axios Codegen

PR Description
Added Posts Test 4-9 for multipart form testing for JS Axios Codegen.
Related Issues

Closes #278

Checklist

[x] I have gone through the contributing guide
[x] I have run the tests (flutter test) and all tests are passing

Added/updated tests?

[x] Yes

Have you manually verified whether POST 4- POST 9 generated code are working correctly?

Refer https://github.com/foss42/apidash/pull/286#issuecomment-1994811511


Check type CropperProps with more optional keys

Please check and update type CropperProps keys to optional like style, classes, minZoom, maxZoom, ... to easy in typescript.
Thanks.

Could you please detail what the issue is with these props?
If you know what to do, could you please open a PR?


GH-40500: [C++] Ensure using bundled FlatBuffers

Rationale for this change
We'rebundling FlatBuffers and generated files by FlatBuffers. If we use system FlatBuffers that is different version of bundled one, we got a build error.
What changes are included in this PR?
Use arrow::flatbuffers as the first link library to prioritize bundled FlatBuffers than system FlatBuffers.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

GitHub Issue: #40500

+1


Revert ctest --test-dir change from Android pipeline.

These are running on devices that we have not yet updated CMake on, so the --test-dir flag is ignored, resulting in
Test project /var/lib/buildkite-agent/builds/IREE-LAB-RPI4-Pixel6Pro-1-ray-1008524145-1/iree/iree-test-android
No tests were found!!!

(full logs: https://buildkite.com/iree/iree-test-android/builds/6350)
Partial revert of https://github.com/google/iree/pull/9253, noticed at https://github.com/google/iree/pull/9372#discussion_r891685626. It's a shame that No tests were found!!! does not come with a failure exit code :/

Going to ignore the cmake_bazel_linux_x86-swiftshader_tensorflow_integrations failure, that looks transient (ConnectionResetError: [Errno 104] Connection reset by peer, full logs)


How can I use webcam as input?

Do you support the use of a webcam as an input tool?

@RealBBakGosu As of July 2019, we support only camera for mobile android through Android cameraX api. See all the mobile android examples particularly hello android
https://mediapipe.readthedocs.io/en/latest/hello_world_android.html
For webcam, this is something we will be looking into. If you like to contribute a calculator to use OpenCV functionality to import the video through a webcam you can write a calculator and import the below header files into your opencv_videolivecapature_calculator.cc
https://github.com/google/mediapipe/blob/master/mediapipe/framework/port/opencv_core_inc.h
https://github.com/google/mediapipe/blob/master/mediapipe/framework/port/opencv_highgui_inc.h
https://github.com/google/mediapipe/blob/master/mediapipe/framework/port/opencv_video_inc.h

@mgyong but is there any example or documentation to write a custom calculator?

Please find our desktop + webcam examples here

Also this: https://mediapipe.readthedocs.io/en/latest/calculator.html.

Please find our desktop + webcam examples here

Hello, the link is broken. Do you mind to update the link? Thanks


Cannot invoke "Object.getClass()" because "leftObject" is null

Describe the bug
Processor script with tag script_calculate_time_flow_start_ns in pipeline logs-goflow2.sflow-0.1.1 failed with message Cannot invoke "Object.getClass()" because "leftObject" is null
I'm seeing this error when the logs reach elastic index. I'm unable to find relevant code to understand how to fix the error.
To Reproduce
Steps to reproduce the behavior:
Note: I'm seeing this error only when I run with -produce=raw, with -produce=sample no output is generated.
Command: goflow2 -format json -listen "sflow://:6343?queue_size=1" -mapping /etc/goflow2/mapping.yaml -transport.file /var/log/sflow/goflow2/goflow2.log -produce raw
mapping.yaml
# File: /etc/goflow2/mapping.yaml
formatter:
    fields: # list of fields to format in JSON
        - type
        - time_flow_start_ns
        - sampler_address
        - sequence_num
        - in_if
        - out_if
        - src_addr
        - dst_addr
        - etype
        - proto
        - src_port
        - dst_port
        - src_vlan
        - dst_vlan
        - sampling_rate
        - bytes

Expected behavior
To get output without errors using -produce=sample
Captures
If applicable, add output (JSON, protobuf), packet captures and device configuration.
Sampler device:

Brand: [e.g. Cisco, Juniper, Arista, Mikrotik] Cisco
Model: [e.g. MX, QFX] NXOS
Version: [e.g. 22] 9000v
Estimated flow traffic: [e.g. 5000 samples per second] 20 samples per second

GoFlow2:

Version: [e.g. v2.0.0] 2.2.1
Environment: [e.g. Kubernetes, Docker, Debian package] Debian
OS: [e.g. Linux Ubuntu Server 23.04] Ubuntu 24.04

Additional context
Trying to setup https://www.elastic.co/guide/en/integrations/current/goflow2.html

Hello @abhi1693,
Thank you for reporting. This looks like an elastic bug.
Could you send me a line of JSON that would trigger the issue?
And/or a packet capture?


Consider namespacing the examples dotnet tool

It would be nice to namespace the dotnet tool examples like dotnet-errata-examples to prevent possible collisions and make it clearer what it is (without having to look at the description field). Cheers!!

@ericsampson Not sure I understand what you mean to be honest. Could you elaborate?

Ah ok thanks!


Issue in 2019.3 with Python tool as first tool in workflow

A custom tool I'm developing has an optional input defined in the XML file, so that the user could override the data that would normally come from that input connector using the HTML inputs. However, running the workflow with this custom tool as the 'first' tool in a data stream causes the debug workflow to end without processing the python main.py.

As you can see from the image, the first inv debug run completes even though there is a pdb.set_trace() in the code, and the "ToolId ..." output is missing.
The second inv debug run is after I updated the debug workflow to include an Text Input tool before the custom tool, and you can see that it stops at the trace point and allows me to inspect the code objects to confirm behavior is as expected.
To create this test tool, I simply copied the ExampleBatchTool into a new tool, renamed all the files, updated the places where the name is referenced in the code, and created a simple debug workflow. I've attached a ZIP of the YDMD and YXI files.
TestOptionalInput.zip

Re-reading my comments above I realized that I left out something important ...
The additional change I made to the ExampleBatchTool project was to change the XML file to make the input connection optional: Optional="True". Hopefully that was clear from the attached files, but just wanted to make sure! :)


'rs-capture RealSense error calling rs2_pipeline_wait_for_frames(pipe:0xa03c70): Frame didn't arrive within 15000' question in intel realsenseT265

Required Info

Camera Model
intel realsenseT265

Firmware Version
<IP_ADDRESS>1

Operating System & Version
Raspbian GNU/Linux 10 (buster)

Kernel Version (Linux Only)
5.10.103-v7l+

Platform
Raspberry Pi

SDK Version
v2.50.0

Language
c,cpp

Segment
Robot/others

Issue Description
hello, recently I used intel realsense T265 in Raspberry Pi. but when I tried to start the camera, like rs-capture or  ./rs-test, sometimes it didn't work and always displayed an error like the following:
RealSense error calling rs2_pipeline_wait_for_frames(pipe:0x860a70):
Frame didn't arrive within 15000.
I have no idea about this error. sometimes it worked pretty well,but this mistake happened a lot of times.
and when I used the command 'realsense-viewer', there was another error :
ERROR [2749363264] (http-downloader.cpp:143) Download error from URL: https://librealsense.intel.com/Releases/rs_versions_db.json, error info: Timeout was reached.
I was not sure if the two errors were related. How can I solve this problem?
pi@raspberrypi-asensio:~ $ rs-capture
RealSense error calling rs2_pipeline_wait_for_frames(pipe:0x1116d70):
    Frame didn't arrive within 15000\

pi@raspberrypi-asensio:~/test/test/pose/build $ ./rs-test
x = 0.444 y = 0.479 z = 0.344metersRealSense error calling rs2_pipeline_wait_for_frames(pipe:0x5ef590):
    Frame didn't arrive within 1500

Hello, I meet the problem too. Have you fixed it now?


add some default samples

added; we can iterate on the included samples, and how they're included.


Fix FutureWarning: The provided callable...

Fixes this deprecation:
dask/dataframe/tests/test_groupby.py::test_aggregate_median[disk-keys1-spec1]: FutureWarning: The provided callable <function median at 0x7f4189befe20> is currently using SeriesGroupBy.median. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass 'median' instead.
Related to https://github.com/dask/dask/issues/10347

[x] Tests added / passed
[x] Passes pre-commit run --all-files

Thank you!


[2.9] Bump helm CLI to v3.13.3

Changes between v3.12.3 and v3.12.3 removes from the helm binary:
<EMAIL_ADDRESS>
GHSA-7ww5-4wqc-m92c: containerd allows RAPL to be accessible to a container
GO-2023-2412: RAPL accessibility in github.com/containerd/containerd

<EMAIL_ADDRESS>
GHSA-6xv5-86q9-7xr8: SecureJoin: on windows, paths outside of the rootfs could be inadvertently produced
GO-2023-2048: Paths outside of the rootfs could be produced on Windows in github.com/cyphar/filepath-securejoin

<EMAIL_ADDRESS>
GHSA-232p-vwff-86mp: Docker Swarm encrypted overlay network may be unauthenticated
GHSA-33pg-m6jh-5237: Docker Swarm encrypted overlay network traffic may be unencrypted
GHSA-6wrf-mxfj-pf5p: Docker Swarm encrypted overlay network with a single endpoint is unauthenticated
GHSA-jq35-85cj-fj4p: /sys/devices/virtual/powercap accessible by default to containers

<EMAIL_ADDRESS>
GHSA-45x7-px36-x8w8: Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin
GO-2023-2402: Man-in-the-middle attacker can compromise integrity of secure channel in golang.org/x/crypto

<EMAIL_ADDRESS>
GHSA-2wrh-6pvc-2jm9: Improper rendering of text nodes in golang.org/x/net/html
GHSA-4374-p667-p6c8: HTTP/2 rapid reset can cause excessive work in net/http
GHSA-qppj-fm5r-hxr3: HTTP/2 Stream Cancellation Attack
GO-2023-1988: Improper rendering of text nodes in golang.org/x/net/html
GO-2023-2102: HTTP/2 rapid reset can cause excessive work in net/http

<EMAIL_ADDRESS>
GHSA-2wrh-6pvc-2jm9: Improper rendering of text nodes in golang.org/x/net/html
GHSA-4374-p667-p6c8: HTTP/2 rapid reset can cause excessive work in net/http
GHSA-qppj-fm5r-hxr3: HTTP/2 Stream Cancellation Attack
GO-2023-1988: Improper rendering of text nodes in golang.org/x/net/html
GO-2023-2102: HTTP/2 rapid reset can cause excessive work in net/http

@prachidamle and @recena adding both of you in the hope that you can point someone from your teams to quickly review this. Ideally it should be a trivial bump, but even minor version bumps in Helm might contain important changes in terms of behavior.


iOS developers would like an easy onboard to Flutter, and map their knowledge to Flutter

Developers with a lot of iOS development experience would like to know how to map their current understanding/knowledge to Flutter.
What concepts are similar? Different? What's new in Flutter? If they knew how to do X in iOS, how do they do it in Flutter?

Flutter for iOS Developers was launched some time ago. Closing.