text:
todo_app_sqlite build error (CSR only)

Hi there, Leptos looks pretty interesting... I'm trying out some of the examples/, and they're mostly working for me.
I was able to get todo_app_sqlite working with the Server Side Rendering with cargo-leptos. However, when I tried to build/run todo_app_sqlite with the Client Side Rendering (i.e., with trunk serve --open), it's telling me that "index.html" is missing (see below).
I'm pretty new to Leptos, so I'm not sure what to expect. I wasn't sure if this was perhaps a documentation oversight, as I'm noticing that examples/todo_app_sqlite_axum and examples/todo_app_sqlite_viz both specifically state that they "cannot be built as a trunk standalone CSR-only app. Only the server may directly connect to the database."... Is todo_app_sqlite an exception (i.e., can todo_app_sqlite "talk" to the database?)?
I did a fresh install of rust/cargo/leptos today, here are my versions:
cargo 1.70.0-nightly (0e474cfd7 2023-03-31)
trunk 0.16.0
∴ trunk serve --open
Error: error getting canonical path to source HTML file "index.html"

Caused by:
    No such file or directory (os error 2)

∴ ls -a1
.
..
.gitignore
Cargo.lock
Cargo.toml
LICENSE
Makefile.toml
README.md
Todos.db
dist
migrations
public
src
style.css
target

This example just shouldn't have that section of the README. It's an example of how to integrate server functions (running a SQL database on the server) so it doesn't make any sense to run on the client only.

authors: gbj jasonsydes

repo: leptos-rs/leptos


text:
fix: update leptos dependencies paths to the workspace

Thank you for Leptos!
Just a tiny update of the dependency path to Leptos from the examples/todo-app-sqlite-axum so that all of the examples build successfully

Ahh thanks!

source: gharchive/pull-request

authors: TurboTobias gbj

license: MIT

license_type: permissive

license_source: github-api


text:
feature: add class option to Html component

allows you to set class on the Html component.
do not like line 95, but is was done to fix a compile error, not sure how to resolve it

Oh could you also please run cargo fmt before you push again? The CI runs cargo fmt --check first thing.

Thanks — the APIs for the HTML bit are slightly finicky. Your version would render something like <html lang="Some(TextProp)" dir="None" class="None"> I took the liberty of fixing it up! I think this should be good to go once it passes tests. Thanks for the contribution.

authors: gbj polarmutex


text:
code is inactive due to #[cfg] directives: feature = "ssr" is disabled (inactive-code)

What could be the way to actually activate certain features during development? Is it possible via local configuration?
I tried Helix/Neovim with rust analyser and in both got:

code is inactive due to #[cfg] directives: feature = "ssr" is disabled

Thank you! also it's possible to add default = ["ssr"] to [features] in Cargo.toml

source: gharchive/issue

repo: leptos-rs/start-axum

license: Unlicense


text:
Convert readthedocs link for their .org -> .io migration for hosted projects

As per their blog post of the 27th April ‘Securing subdomains’:

Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.

The link on the Github repo description also needs updating.

repo: lepture/flask-oauthlib

license_source: bigquery


text:
docs: Fix simple typo, comparision -> comparison

There is a small typo in flask_wtf/csrf.py.
Should read comparison rather than comparision.

Codecov Report

Merging #404 into master will increase coverage by 0.94%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
+ Coverage   98.73%   99.68%   +0.94%
==========================================
  Files          18       18
  Lines         949      949
  Branches       74       74
==========================================
+ Hits          937      946       +9
+ Misses         12        3       -9

Impacted Files
Coverage Δ

flask_wtf/csrf.py
98.1% <ø> (ø)
:arrow_up:

flask_wtf/form.py
100% <0%> (+2.73%)
:arrow_up:

flask_wtf/i18n.py
100% <0%> (+7.14%)
:arrow_up:

tests/test_i18n.py
100% <0%> (+10%)
:arrow_up:

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 dc78630...9fb9057. Read the comment docs.

repo: lepture/flask-wtf


text:
Request: please consider tagging versions

Hello, please consider tagging released versions on this repo. Currently it is hard to find what version of the source in this repo corresponds to what version on NPM when building source packages for various Linux distros. Tagging this repo would allow us to easily pin to a specific tag instead of having to try and figure out what commit to pin to. On a related note, NPM doesn't provide an RSS or Atom feed for versions, while GitHub does for its releases making it much easier to discover updates and bump packages.
Thanks for your time!

Especially when things break, now with 1.5.1 to 1.6.0 where cli arguments seemingly have no effect on how clean-css is invoked.

authors: Bouke SamWhited

repo: less/less-plugin-clean-css


text:
Lettuce bug(RedisCommandTimeoutException) in spring-boot-autoconfigure 2.3.10

Redis version:4.0 mode:Standalone
springboot-data-redis:2.3.9.REALESE
lettuce version:5.3.7.REALESE
The lettuce is default redis client. Autoconfigure in LettuceConnectionConfiguration may be has a bug like this
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 1 second(s) at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70) at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41) at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44) at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42) at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:275) at org.springframework.data.redis.connection.lettuce.LettuceSetCommands.convertLettuceAccessException(LettuceSetCommands.java:520) at org.springframework.data.redis.connection.lettuce.LettuceSetCommands.sMembers(LettuceSetCommands.java:245) at org.springframework.data.redis.connection.DefaultedRedisConnection.sMembers(DefaultedRedisConnection.java:791) at org.springframework.data.redis.core.DefaultSetOperations.lambda$members$10(DefaultSetOperations.java:214) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:228) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188) at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:96) at org.springframework.data.redis.core.DefaultSetOperations.members(DefaultSetOperations.java:214) at org.springframework.data.redis.core.DefaultBoundSetOperations.members(DefaultBoundSetOperations.java:152)
This Exception is occasional use RedisTemaple or StringRedisTemplate
Use Jedis can be solved but not the best.

Can you attach a thread dump? Likely, a thread is blocked so Lettuce cannot decode the Redis response.

That is Minimal probability。config code look this
spring.redis.host = xxxxxxxxxx.redis.rds.aliyuncs.com
spring.redis.port = 6379
spring.redis.password = xxxxxxx
spring.redis.timeout = 1000
spring.redis.lettuce.pool.min-idle = 100
spring.redis.lettuce.pool.max-active = 100
spring.redis.lettuce.pool.max-idle = 100
spring.redis.lettuce.pool.max-wait = 1500

@Bean
    public LettuceConnectionFactory redisConnectionFactory(LettuceClientConfiguration clientConfiguration,RedisProperties properties) {

        RedisStandaloneConfiguration configuration = new RedisStandaloneConfiguration();
        configuration.setHostName(properties.getHost());
        configuration.setPort(properties.getPort());
        configuration.setPassword(RedisPassword.of(properties.getPassword()));

        return new LettuceConnectionFactory(configuration, clientConfiguration);
    }

    @Bean
    LettuceClientConfiguration lettuceClientConfiguration(ObjectProvider<LettuceClientConfigurationBuilderCustomizer> builderCustomizers,
                                                          RedisProperties properties){

        GenericObjectPoolConfig<?> genericObjectPoolConfig = new GenericObjectPoolConfig<>();
        genericObjectPoolConfig.setMaxIdle(properties.getLettuce().getPool().getMaxIdle());
        genericObjectPoolConfig.setMinIdle(properties.getLettuce().getPool().getMinIdle());
        genericObjectPoolConfig.setMaxTotal(properties.getLettuce().getPool().getMaxActive());
        genericObjectPoolConfig.setMaxWaitMillis(properties.getLettuce().getPool().getMaxWait().toMillis());

        SocketOptions socketOptions = SocketOptions.builder().keepAlive(true).tcpNoDelay(true).connectTimeout(properties.getTimeout()).build();

        LettuceClientConfiguration.LettuceClientConfigurationBuilder builder = LettucePoolingClientConfiguration.builder()
                .commandTimeout(properties.getTimeout())
                .shutdownTimeout(properties.getLettuce().getShutdownTimeout())
                .clientOptions(ClientOptions.builder().socketOptions(socketOptions).build())
                .clientResources(DefaultClientResources.create())
                .poolConfig(genericObjectPoolConfig);

        builderCustomizers.orderedStream().forEach((customizer) -> customizer.customize(builder));

        return builder.build();
    }

At the same time. i hava 8 times commonds to execute

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

repo: lettuce-io/lettuce-core


text:
nvim用のハイライトグループを取り除く

if has('nvim')
    " nvim用のハイライトグループを設定
endif

理想がこんな感じ

let has_nvim = has('nvim')
if has_nvim | call s:h(...) | endif

という形に落ち着いた。
一応nvimにも対応しやすいよう逃げ道を残した。


text:
使用CFProxy访问网页不稳定

问题描述
首先非常感谢大佬提供的安装脚本，非常受用，但是在使用的过程遇到了一些问题，想请教下，我用的是 windows10系统，使用以下配置信息，利用CFProxy代理访问经常出现打不开网页的情况，过来一段时间又能访问，还有一个问题就是google每次都跳验证，按照脚本设置走wrap白名单也解决不了，另外利用DirectVPS任何网页都访问不了，查找了很多相关资料都没有解决，想请教下大佬，这个是VPS的问题还是说我设置的问题呢，打扰啦
VPS主机信息：
厂商：racknerd
LocationSan Jose, CA (Test IP: 192.210.207.88)
Operating SystemUbuntu 18.04 with Docker Preinstalled
CPU Cores1 CPU Core (Included)
软件版本
系统: windows10
shadowsocks: 4.4.1.0
gost版本: gost 2.11.5
关键配置
参考https://github.com/lewangdev/gost-install.ipynb/issues/3进行配置

直连 vps 的 ip，请问能ping同服务器么？
也可以通过在浏览器里面 访问这个地址来验证，看看能不能打开：
https://{your_domain}:443/ws
或者
https://{your_ip}:443/ws

感谢回复
可以ping通，从ping的数据来看，丢包率和速度都还行
https://{your_domain}:443/ws、https://{your_ip}:443/ws这两个我都试了，都是显示Bad Request

显示 Bad Request 那说明都是 ok 的。
不应该有丢包，如果有丢包，说明受到了干扰吧，丢包率低于 20% 的话，可以在服务器开启 BBR 来改善。
另外可以考虑优选 Cloudflare ip，找一个您当地连接比较快的IP

感谢回复
优选 Cloudflare ip之后如何进行设置呢，目前还发现一个问题，CFProxy访问Google，Google貌似识别到的ip还是我racknerd主机的IP，Cloudflare 没有进行隐藏，是不是我哪里设置出了问题

参考上面的CloudflareSpeedTest设置。

优选 Cloudflare ip之后如何进行设置呢

那应该是 Google 的流量没有走 warp, 添加一下 https://ipinfo.io/ ，然后访问看看 ip 有没有变化

目前还发现一个问题，CFProxy访问Google，Google貌似识别到的ip还是我racknerd主机的IP，Cloudflare 没有进行隐藏，是不是我哪里设置出了问题

访问https://ipinfo.io/ 查看了，IP还是主机那个，没有变化，我已经按jupyter脚本第14条设置了，貌似没有生效，这个应该如何进行调整呢

你用的哪个端口？notebook 里面 443 端口是直连，2083 才走warp 的。

对的，都是显示Bad Request，说明配置没问题。可以看下 2083 的日志，看看有什么线索

感谢，找到问题了，是因为cloudflare-warp配置有问题，导致的Wrap访问失败，修改下文件描述符就行，具体教程参考https://github.com/lewangdev/gost-install.ipynb/issues/23

小白一枚，问一下大佬，这个优选IP是配置在我的电脑上呢，还是配置在VPS上面

小白一枚，问一下大佬，这个优选IP是配置在我的电脑上呢，还是配置在VPS上面

自己电脑上

authors: Djackey Maxwell-Walker lewangdev


text:
linux客户端

请问在linux客户端下怎么配置呢？我是
gost -L=127.0.0.1:LOCAL_PORT -F=wss://USERNAME:PWD@SERVER_IP:SERVER_PORT，但失败了

服务器端是没问题的，windows和ios都能连上，linux客户端是ubuntu

发现是gost下错版本了。顺便给大家一点经验：
在客户端：
export http_proxy=http://localhost:LOCAL_PORT
export https_proxy=http://localhost:LOCAL_PORT
export ALL_PROXY=socks5://localhost:LOCAL_PORT
然后
set http_proxy
set https_proxy
就可以啦


text:
Plugin syntax doesn't work with when using ExtractTextPlugin with multiple instances.

See https://github.com/webpack/extract-text-webpack-plugin

There is also an extract function on the instance. You should use this if you have more than one ExtractTextPlugin.

There is no way to get access to the plugin instance until after config.resolve().

I believe the docs show how the extract function can be used in the loader section?

It doesn't work when you have multiple instances of the extract text plugin. E.g. you want to extract different styles into different output files.

I'd suggest using the merge method as a workaround for something like this. I need to think about what the best approach is for something like this. I'm not 100% happy with the plugin interface. It feels clunky. I've not had the need for multiple instances of ExtractTextPlugin yet.

license: mit


text:
Distributed Cache

Utilizes an appropriate caching strategy to cache translated data based on frequency and perhaps other parameters
Unit Tests

This is fully implemented as a cache, but could be brought back from the dead if we would prefer to use Memcached later down the road.

repo: lewismc/iPReS


text:
Token validation service

Hi,
Is there an existing service that we can call to verify if the token is valid/expired or not?
Thanks
e.g.
class MyTokenService
{
   public function verify(Request $request)
   {
      $token = $request->header->get('authorization');
      $isValid = $this->someLexikService->isTokenValid($token); // Something like this
      ....
   }
}

@BentCoder
actually by default all request with bearer authentication will validate automatically, if you have configured this library. But you can see more detail on code

Hello @nipeharefa ,
I want to check if the Token is valid/expired before creating a new token. If my client sending me a token which is expired, I want to create a new one without making him to send a new api call to create a token. So how can I check if the token which my client has sent me in a api call is valid or not?
Or what if client want to check if the token id valid or not with an api call?
Thank You,
Ashish Shah

Hello @nipeharefa ,
I want to check if the Token is valid/expired before creating a new token. If my client sending me a token which is expired, I want to create a new one without making him to send a new api call to create a token. So how can I check if the token which my client has sent me in a api call is valid or not?
Or what if client want to check if the token id valid or not with an api call?
Thank You,
Ashish Shah

@ashish8488 You can decoded token, look at exp or expired.
But i recomended to use refresh token flow, please look at https://github.com/gesdinet/JWTRefreshTokenBundle

@nipeharefa ,
Thank you.

Closing as explained, thanks @nipeharefa

authors: BentCoder ashish-russmediatech ashish8488 chalasr nipeharefa

repo: lexik/LexikJWTAuthenticationBundle


text:
Simplifies easeOutQuint by using pow instead of $0 * $0 for 5 times.

While I was compiling LTMorphingLabel as a carthage dependency on CircleCI (using Swift 5), I had an error on this line:
The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
By using pow, I made the expression a bit simpler but with the same meaning.

Merged. Thanks.

authors: JeanAzzopardi lexrus

repo: lexrus/LTMorphingLabel


text:
Accessing raw data in ISnmpData

The extension ToBytes provided in SnmpDataExtension does this, but it apparently includes the data-type bytes too. For instance, for an IPAddress datatype it returns 6 bytes instead of 4.
It would be nice if ISnmpData interface expose a function like GetRaw to let the user access the underyling raw bytes without type.

For instance for value of 255.255.0.0 I get:
{ 0x40, 0x04, 0xFF, 0xFF, 0x00, 0x00 }
Apparently 0x40 is type for IpAddress and 0x04 specifies value length. As a workaround one could ignore the first two bytes.

It is not a standard API yet, but some ISnmpData derived types have a GetRaw method, which exposes the raw bytes.

There is no plan to fix the API for current 9.x/10.x releases.
I am investigating Microsoft's latest API additions (Span and System.IO.Pipelines), so the next major release 11.x should contain significant API surface changes, where GetRaw is very likely to be exposed as part of ISnmpData.

authors: lextm nickaein

repo: lextm/sharpsnmplib


text:
fix(store): the db path must be fixed

Due to CI and other tools' requirement

@rwadowski I am removing the path configuration for sqlite because it may violate some installation combinations. We still want the path default to the data dir. Do you have any concerns about this change?

@rwadowski I am removing the path configuration for sqlite because it may violate some installation combinations. We still want the path default to the data dir. Do you have any concerns about this change?

ok

authors: ngjaying rwadowski

repo: lf-edge/ekuiper


text:
Add CPU pinning support into Pillar

Add support for the CPU Pinning feature into Pillar.
EVE gets the only boolean parameter from a Controller (PinCpu) and handles it correspondingly: it populates the data structures that store information about the CPUs used by Applications and then transforms it into parameters for containerd and QEMU.
The structures that store information about the CPUs used by Applications are added to Domain Context, as to persistent storage of information.
EVE redistributes the CPUs between the Applications in the case of an Application creation and deletion. On an Application restart EVE just reassigns to the Application the CPUs used before the Application restart.
For the details, look at the comments in the code and the commit messages.
The main logic is implemented on the Domain Manager level.

Fixed the Yetus errors

Fixed some of the comments from @giggsoff

The test process is described here: https://docs.google.com/document/d/1EAf1Oxyn6PWc64caqlXbO791tvOV2HiMRMUwwU1IM4E/edit?usp=sharing

Aff fixes for comment from @giggsoff.
Also, fix the signature of the assignCPUs function.

Fixed the comments from @milan-zededa, rebased on master.

Removed the getHostCpus function, and use hyper.GetHostCPUMem() instead.

Rebased on master.
Use containerd/cgroups instead of handcrafted manipulation of cgroups files.

Fix a Yetus error

@eriknordmark I added a commit with all the necessary fixes that we have discussed (CPU Allocator, set cgroups in do(in)Atcivate(), adding an extra channel). Take a look, please. If the code is fine, I'll rework the commit history.
And I will still have to add a fix for the init.d/010-eve-cgroup script.

Fix the Yetus errors

The rest of Yetus errors are not to be fixed

Read reserved CPUs number from kernel args.

Use RWMutex for the CPUAllocator operations.

Recreated the commit history.

That
That?

I'm testing the changes with the DomainStatus now... Just FYI.

Moved the CPUs allocation to doActivate() instead of handleCreate/handleModify()

Fix Yetus errors in the Channels naming.

Do not change DomainConfig in Domain Manager.

A bug was found.... Need to check.

Fix cpumask on VM deactivation

Add fixes for comments from @giggsoff

Doesnt the allocation of the cpus happen in the activate function? I
thought it was moved there from the create function. In that case the
allocation and free should match as long as activation errors are handled
the same as for the adapters.
On Fri, Nov 4, 2022, 20:37 Petr Fedchenkov @.***> wrote:

@.**** commented on this pull request.
In pkg/pillar/cmd/domainmgr/domainmgr.go
https://github.com/lf-edge/eve/pull/2888#discussion_r1014409115:

	// Strange situation. Should be investigated if happens.

	log.Warnf("Failed to find the DomainConfig corresponding to a DomainStatus (%s)", vmStatus.DisplayName)

Sorry, seems the code is outdated, and I cannot remeber the context.
But as I can see in case of delete of DomainConfig we will go into
handleDelete and will run doInactivate
https://github.com/lf-edge/eve/blob/1844bc4b5a825fd33a06b7630136a6cbc6e3797d/pkg/pillar/cmd/domainmgr/domainmgr.go#L2149
only if status.Activated set. If status.Activated not set (for example we
stop the domain and decide to delete it), we will not call
ctx.cpuAllocator.Free function.
—
Reply to this email directly, view it on GitHub
https://github.com/lf-edge/eve/pull/2888#discussion_r1014409115, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AGNLQWB47WPXXBGTMGONACTWGVQZFANCNFSM6AAAAAARPJWVZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Doesnt the allocation of the cpus happen in the activate function? I
thought it was moved there from the create function. In that case the
allocation and free should match as long as activation errors are handled
the same as for the adapters.

@eriknordmark , yes, the allocation of CPU is moved to the doActivate() function. Should I fix something relating it now?

@eriknordmark , yes, the allocation of CPU is moved to the doActivate() function. Should I fix something relating it now?

Sorry I was confused by an email thread (on the gmail phone app) which was in reverse order so I thought there was still something outstanding there.
The only issues to look at is the VmConfig vs DomainStatus, and the yetus issues I pointed out earlier today.

The only issues to look at is the VmConfig vs DomainStatus, and the yetus issues I pointed out earlier today.

Ok. I'm now testing the implementation, where we parse DomainStatus alone with DomainConfig to create the xen*.cfg file.  Will take a look at the import issues as well.

Fixed the import syntax, rebase on master

Fixed the import syntax, rebase on master

I can't tell why it is complaining. Looking….
But there are also very opinionated exhaustruct golangcilint failures; can you please add exhaustruct to the disable list in ./pkg/pillar/.golangci.yml to have those go away.

Fixed the import syntax, rebase on master

I can't tell why it is complaining. Looking….
But there are also very opinionated exhaustruct golangcilint failures; can you please add exhaustruct to the disable list in ./pkg/pillar/.golangci.yml to have those go away.

Ok, will do that now.

Disable the structure field initialization checks.

I suspect this will fix the goimport-ed yetus:
diff --git a/pkg/pillar/cpuallocator/cpuallocator.go b/pkg/pillar/cpuallocator/cpuallocator.go
index 6aa9b7eba..eb27e9970 100644
--- a/pkg/pillar/cpuallocator/cpuallocator.go
+++ b/pkg/pillar/cpuallocator/cpuallocator.go
@@ -7,7 +7,7 @@ import (
"fmt"
"sync"

  "github.com/satori/go.uuid"

  uuid "github.com/satori/go.uuid"

)
type cpusList struct {
diff --git a/pkg/pillar/cpuallocator/cpuallocator_test.go b/pkg/pillar/cpuallocator/cpuallocator_test.go
index 8cb834db8..c4f2e2922 100644
--- a/pkg/pillar/cpuallocator/cpuallocator_test.go
+++ b/pkg/pillar/cpuallocator/cpuallocator_test.go
@@ -6,7 +6,7 @@ package cpuallocator
import (
"testing"

  "github.com/satori/go.uuid"

  uuid "github.com/satori/go.uuid"
  "github.com/stretchr/testify/assert"

)
Seems like the linter(s) is/are confused by that go.uuid name, even though the go compiler can handle it!

Seems like the linter(s) is/are confused by that go.uuid name, even though the go compiler can handle it!

Thanks! Will try to fix now.

Add yetus fixes for the UUID imports.

There are still 3 issues with Yetus:

missing call in paralleltest
wrong package name of the test (???)
missing package comment in a file that has existed for a while

Let's not worry about those golangcilint and revive on old code here and now.

Ok, do I have anything else to fix now?

Ok, do I have anything else to fix now?

Nope, let's have the regression tests (Eden and ztests) run overnight.

Ok, do I have anything else to fix now?

Nope, let's have the regression tests (Eden and ztests) run overnight.

Ok, I got it, thanks! See the results in the morning.

Rebased on the new master.

authors: OhmSpectator eriknordmark

repo: lf-edge/eve


text:
Inifinite loop on empty buffer

code:
ubyte[] buf;
IFImage a = read_image(buf);

I fixed it changing the initial if in init_reader to:
ubyte init_reader(Reader* rc, Read io, ubyte[] buf)
{
    if (buf.length < 16) {
        return buf.length ? ERROR.lackdata : ERROR.nodata;
    }
...

Thanks, fixed in 5e10b54. It's okay for the buffer to be even one byte if io.stream is not present. So proper fix was:
    if (buf.length < 16) {
        if (io.stream) return ERROR.arg;
        if (!buf.length) return ERROR.nodata;
    }

authors: BorisCarvajal lgvz

repo: lgvz/imagefmt


text:
Warning: Failed prop type: Invalid prop children supplied to CardStack.

Getting this error
        <CardStack
          loop
          initialIndex={0}
          verticalSwipe={false}
          renderNoMoreCards={() => !loading && (
            <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
              <Text style={{ fontWeight: '700', fontSize: 18, color: 'gray' }}>No more cards :(</Text>
            </View>
          )}
          ref={swiper}
          style={{ flex: 1 }}
          onSwipedRight={onSwipedRight}
          onSwipedLeft={onSwipedLeft}
        >
          {!loading && cards.map((item, index) => (
            <Card key={item.id}>
              <CardItem
                hasActions
                imageUrl={item.imageUrl}
                name={item.title}
                description={item.description}
                score={item.score}
                swiper={swiper}
              />
            </Card>
          )}
        </CardStack>

@mrosendin did you find out what was causing this?

@mrosendin did you find out what was causing this?

No, I'm now using react-native-deck-swiper

I fixed by extending the type declaration and adding an optional children props

authors: Theeeus mrosendin

repo: lhandel/react-native-card-stack-swiper


text:
[rewrite] m.trust(undefined|null) throws error

:wave:
m.trust(undefined)
// or
m.trust(null)

throws
mithril.js:463 Uncaught TypeError: Cannot read property 'match' of undefined

in function createHTML(vnode)

Fixed in 65b4116666fa0fec9369cfdc44764342d004c35b

authors: lhorie simov


text:
e2e

Please briefly answer these questions:

what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)

what changes does this pull request make?

are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)

/retest

/retest

/retest

/retest

/retest

/retest

repo: liangyuanpeng/Xline


text:
兄弟6啊

兄弟6啊。。。

@liantian-cn 无法连击,只能单发? 求助!

@norlover
如果选择adv_mode的话，绑定射击键为方向键左键（代码83行可修改），取消左键绑定。
然后武器统一使用点射模式就可以了。

authors: liantian-cn norlover ylovern

repo: liantian-cn/logitech-pubg


text:
TimSort verification from run length

See https://bugs.openjdk.java.net/browse/JDK-8072909 and http://envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/ for more details, but the OpenJDK implementation has changed TimSort, as noted at http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/e276aa5b8a4b to fix an ArrayIndexOutOfBoundsException with worst case long arrays that relates to the number of invariant. I know this is minor, but so we're consistent with the JVM, this should probably be updated for consistency reasons as well.

Very interesting! Any chance you can send a PR? Keep in mind that OpenJDK is GPL, so it must not be used as a reference to copy the fix or any other code from. Code can be written yourself of course, come from Android (Apache 2, same as libgdx), or other compatible sources.

The Java TimSort bug repo linked in the blog post has Apache licensing, so I'm assuming the quoted fix in the blog post (to mergeCollapse()) is licensed in the same manner because of this change, so that's what I'll implement.

authors: NathanSweet cdomville

repo: libgdx/libgdx


text:
Fix FileHandle#map compatibility with GWT

https://github.com/libgdx/libgdx/pull/5259 doesn't work for me.
When compiling gdx-freetype-gwt I had to comment the part that used FileHandle.map() (https://github.com/intrigus/gdx-freetype-gwt/commit/93221646a8f56c37b6a3362558a8392189dec5ad#diff-11ed83df84f87aedd79b6b30b2c85b2aR93)

I think you are missing the ByteBuffer/FileChannel imports.

Yes, they are missing. Apart from that, I am surprised that this was not noticed before.

@MobiDevelop thanks for fixing it!

authors: MrStahlfelge PokeMMO intrigus


text:
cjxl crashes with --progressive_dc=2 -e 9

Describe the bug
Encoder crashes with the following assert:
../lib/jxl/dec_group.cc:245: JXL_ASSERT: r[i].IsInside({0, 0, dec_state->shared->dc->Plane(i).xsize(), dec_state->shared->dc->Plane(i).ysize()})
To Reproduce
cjxl wollerau.png wollerau.jxl --progressive_dc=2 -e 9
Environment

OS: ChromeOS
Compiler version: clang 11.0.1
CPU type:  x86_64
cjxl/djxl version string: JPEG XL encoder v0.7.0 dbe51c6 [AVX2,SSE4,SSSE3,Scalar]

I found this while trying to reproduce #1424, it may or may not be the same bug.

I've just successfully compressed an image with these settings using the latest GitHub artifacts. I think the issue should be fixed now.

Thanks for verifying, I am closing it now.

repo: libjxl/libjxl


text:
Wrong grayscale-16bits lossy encoding result

Using query.png (grayscale-16bits) - 250ko
cjxl query.png output.jxl -d 1.0
this command give 1ko very visually lossy result (approximately 1ko)

Closing this issue since it's a wontfix. Giving an almost-black image as input to lossy encoding will result in an almost-black output image, which is expected behavior. There being a lot of artifacts if you massively blow up the contrast in the near-blacks, is expected behavior and even desirable - the point of perceptually-optimized lossy compression is to have artifacts you cannot see, not to have no artifacts at all or to have mathematically uniform artifacts.

authors: jonsneyers sguinebert


text:
Chat example - global?

Hey guys, I started to play around with libp2p and tried the chat example. I realized, that the code works only in a local network. I tried to have a look if there is a way to do it over the internet, but haven't found anything.
I tried to discover a node using the CID.
Client A connects to some bootstrap nodes and outputs it's own CID.
'/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ',
  '/ip4/104.236.176.52/tcp/4001/p2p/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z',
  '/ip4/104.236.179.241/tcp/4001/p2p/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM',
  '/ip4/162.243.248.213/tcp/4001/p2p/QmSoLueR4xBeUbY9WZ9xGUUxunbKWcrNFTDAadQJmocnWm',
  '/ip4/128.199.219.111/tcp/4001/p2p/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu',
  '/ip4/104.236.76.40/tcp/4001/p2p/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64',
  '/ip4/178.62.158.247/tcp/4001/p2p/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd',
  '/ip4/178.62.61.185/tcp/4001/p2p/QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3',
  '/ip4/104.236.151.122/tcp/4001/p2p/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx'

I started a second client who also used the bootstrap nodes. I provided the CID of the client A to the findPeer function, but no result. Is there any other way on how to find peers knowing the CID? Or do I have to know their multiaddress?
Best :)

The chat example here is pretty basic. You might want to take a look at the more detailed example at https://github.com/libp2p/js-libp2p-examples/tree/hackfs. This branch in particular is for the recent HackFS and is designed to work on the public network.

That looks good :) Thanks.
In the recording, you spoke at the end about how to broadcast to a small set of peers in a network of millions. I didn't get if it already possible or not.
Is it actually possible to communicate with a small set of peers?

Closing as stale

authors: jacekv jacobheun maschad


text:
fix!: remove localPeer from secureInbound and secureOutbound

Description

Remove localPeer: PeerId first parameter from secureInbound and secureOutbound in ConnectionEncrypter

Requiring the local peer id in connection encryption appears to be historical cruft. The more current approach would be to have a ConnectionEncrypter be specific to a single peer id, passed in during instantiation in its Components.
Change checklist

[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[ ] I have added tests that prove my fix is effective or that my feature works

Blocked waiting for the next breaking change milestone

Depends on:

[ ] https://github.com/ChainSafe/js-libp2p-noise/pull/440

authors: achingbrain dhuseby wemeetagain


text:
[cluster_test] Add addl params to HealthCheckRunner::run()

Summary
HealthCheckRunner::run() now takes an additional parameter
affected_validators_set. If there are validators which failed which were not
part of the experiment, then HealthCheckRunner::run()
returns an Err with a string of all the unexpected
failures. Otherwise, it returns a list of ALL the failed validators.
HealthCheckRunner::run() now also takes a bool parameter: only_print_on_failure.
If this is set to true, messages are printed only when there are
failures. If this is set to false, messages are always printed
Closes #1244
Test Plan
Untested. Unable to run cluster-test on AWS.

@andll : I am not sure how to test this right now because I have issues with running cluster-test in my workspace..

@ankushagarwal what tag did you use to deploy your workplace? You should be able to use nightly_tested image to run cluster

I used the default values from facebook/dev.tfvars which had the nightly tag.
I just updated to use nightly_tested using terraform apply --var-file=facebook/dev.tfvars -var "image_tag=nightly_tested".
Let me check if that works.

Updated so that:

healthcheck is always printed when action is  --health-check
healthcheck is only printed on failures for every other scenario.

Was finally able to get my test cluster up and running and tested this by running the --health-check  action and the --run-once action.

I think there are some build failures still - could you fix them?

@bors-libra r=andll

:pushpin: Commit 11a4cf5 has been approved by andll

:hourglass: Testing commit 11a4cf5fc417a4b3027a6cea5d994491a7666959 with merge 13dafd95c6deffe8c36d20212d2c713eea478fa0...

@bors-libra r-

:sunny: Test successful - checks-circle_commit_workflow
State: approved= try=False

@andll Fixed CI failures. Please take a look.

@bors-libra r+

:pushpin: Commit 11a4cf5 has been approved by andll

:hourglass: Testing commit 11a4cf5fc417a4b3027a6cea5d994491a7666959 with merge c37e676f96ac09489a5bcf031dbcb46f576b8fa7...

:broken_heart: Test failed - checks-circle_commit_workflow

:sunny: Test successful - checks-circle_commit_workflow
Approved by: andll
Pushing c37e676f96ac09489a5bcf031dbcb46f576b8fa7 to master...

authors: andll ankushagarwal bors-libra

repo: libra/libra


text:
change type_tag_parser to pub

There's pub func parse_type_tags in type_tag_parser,
It's useful for developer to parse type tags in their third-party tools

Hey language folks, could you take a look at this. It seems pretty reasonable to me, but I know you're in an effort to straighten out your crates.

it looks fine to me, letting @vgao1996 comment on this

@bors-libra r=vgao1996

:pushpin: Commit af48ea2 has been approved by vgao1996

:hourglass: Testing commit af48ea2bb68ebef40f2721885b3bc6009c943c8f with merge 8df5779cac2f17fc93db654abbeb0f6ab3b73ab3...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: vgao1996
Pushing 8df5779cac2f17fc93db654abbeb0f6ab3b73ab3 to master...

authors: bors-libra dariorussi davidiw liangping vgao1996


text:
[stdlib][move-prover] Partial specs for LibraAccount + prover fixes

This provides some local specs for LibraAccount and turns verification on for the whole module (before this PR, it did not terminate). The fix for the termination problem is a smarter way to translate byte blob constants.
The local specification provided is for deposit, which is one of the more difficult ones. It required changes in FixedPoint32 and to add spec helper functions at various places.
This also removes assert_is_genesis and replaces it with assert(is_genesis(), 0).
More work on LibraAccount in follow up PR.
Motivation
Specs
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Existing tests
Related PRs
NA

:umbrella: The latest upstream changes (presumably b37d494bae8e2103fe4a6463509c7566548732fb) made this pull request unmergeable. Please resolve the merge conflicts.

This has quite a bit changed, put I plan to go ahead with Sam's approval  in order to not accumulate more merge conflicts.

@bors-libra r=sblackshear

:pushpin: Commit 10f556d has been approved by sblackshear

:hourglass: Testing commit 10f556d8f606cea90a911bc346d1b69419d9081f with merge 43b266874d2776239bcf3d04bcc8e55fe5af8432...

:boom: Test timed out

@bors-libra retry

:hourglass: Testing commit 10f556d8f606cea90a911bc346d1b69419d9081f with merge 99d8f5e7f67393a575e90e239d13f5c96f69ef15...

:boom: Test timed out

@bors-libra retry

:hourglass: Testing commit 10f556d8f606cea90a911bc346d1b69419d9081f with merge 6ed47435a76bfc84edae377df99c202242be2d1d...

:boom: Test timed out

@bors-libra retry

:hourglass: Testing commit 10f556d8f606cea90a911bc346d1b69419d9081f with merge 6ed2621c25f2197f112fb5a5f5abef5ce1ae8bef...

:boom: Test timed out

@bors-libra r=sblackshear

:pushpin: Commit 7b4a0b3 has been approved by sblackshear

:hourglass: Testing commit 7b4a0b37d2ceba1270457fb6bcbca9e4e9cc4cdb with merge 78269267f165719333734a5c6d62e02c6716a674...

:boom: Test timed out

@bors-libra retry

:hourglass: Testing commit 7b4a0b37d2ceba1270457fb6bcbca9e4e9cc4cdb with merge b2521e2061759e63786dc486b57d66262fdf2f78...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: sblackshear
Pushing b2521e2061759e63786dc486b57d66262fdf2f78 to master...

authors: bors-libra wrwg


text:
steelseries: fix regression in v2 led

Fixes #683
@danielfpferreira can you confirm this solves your issue?

got a bit confused at first, for next time please separate out whitespace fixes. Much easier to get to the gist of a patch that actually changes things. But otherwise, LGTM, thanks.

I didn't really notice, the editor I was using removed them automatically.

General advice: always use git add -p, never use git add -a. Feels annoying at first, but it does force you to re-review every bit you add to a commit and long-term makes life a lot easier - you can fix small things while working on longer patches and get them committed on the fly.

Hum... I never used -p. I usually just git add and git push. Thanks for the suggestion.

@FFY00 just tested it works fine thank you

force yourself to use git add -p for a few weeks exclusively. You probably won't go back to plain git add anymore*. Also, the sort-of counterpart to git add -p is git checkout -p where you can remove changes hunk-by-hunk from the tree. Play with it.

and at some point you'll get proficient at editing diffs directly which is also incredibly useful.

I don't think I have a problem with that, I just never needed to explicitly use this function so I din't even know it was there :laughing:.

authors: FFY00 danielfpferreira whot

repo: libratbag/libratbag


text:
[Xmb] Monochrome Satellaview assets mixed

https://github.com/libretro/retroarch-assets/blob/master/src/xmb/monochrome/Nintendo - Satellaview-content.svg and https://github.com/libretro/retroarch-assets/blob/master/src/xmb/monochrome/Nintendo - Satellaview.svg are mixed (content shows controller).

I believe the PR fixes this issue.  If you feel that's the case, please feel free to close the issue.  Let us know if there's anything else we can do for you!

Thanks! Glad I could help!

authors: baxysquare paradadf

repo: libretro/retroarch-assets


text:
win: fix c compiler error

int to be declared at beginning of function scope to satisfy c compiler.

Thanks! Landed in 764877f. For the record, this is no longer a compilation error with Visual Studio >= 2012.

Yeah, I'm still trying to convince the others to move on from VS 2008 :(

No worries, I also use it to compile pyuv for Python 2... Just making a note because not our CI nor myself use it regularly, so it slipped tests :-S

repo: libuv/libuv


text:
请问完成部署后如何修改bot token？

之前部署用的bot我想用在别的推送上，给serverstatus申请了一个新的bot，但是重新执行sss.sh并附带新参数后重新部署，还是推通过原来的bot推送，而不是通过新途径。尝试过重启主机，但是仍然不生效。请问如果想通过新api推送，有没有什么简便的方法呢？

更改bot.py文件，里面有发送内容。
在sss文件夹下执行，
docker-compose down && docker-compose build && docker-compose up -d

更改bot.py文件后，在sss文件夹下执行，
docker-compose down && docker-compose build && docker-compose up -d

authors: Nigel-NI lidalao ota1-letzgame

repo: lidalao/ServerStatus


text:
Format even more files with prettier

I was initially pretty conservative in #151 about the file globs used to select Prettier targets, because I didn't want nested node_modules directories in "packages/" getting traversed or anything like that. Seems fine though, because Prettier will ignore them by default.
Test plan: yarn format makes no further changes, yarn lint and yarn test are green.
Related: https://github.com/liferay/liferay-themes-sdk/issues/151

Just started reviewing :)

authors: julien wincent

repo: liferay/liferay-themes-sdk


text:
Initial work.

This PR contains the initial work on Liftbridge Operator, which comprises the initial iteration on the definition of the LiftbridgeCluster CRD, the scaffolding of the main application and the type definitions (and associated code generation step).

Thanks!

authors: bmcstdio tylertreat

repo: liftbridge-io/liftbridge-operator


text:
Can not "make install" - "Error 2"

Background
I am trying to install lnd on my Raspberry PI4. When running "make install" I get thrown out with
`pi@raspberrypi:~/code/lnd $ make install
Installing lnd and lncli.
GO111MODULE=on go install -v -tags="" -ldflags " -s -w -X github.com/lightningnetwork/lnd/build.Commit=v0.12.1-beta-dirty -X github.com/lightningnetwork/lnd/build.CommitHash=d233f61383f2f950aa06f5b09da5b0e78e784fae -X github.com/lightningnetwork/lnd/build.GoVersion=go1.11.6 -X github.com/lightningnetwork/lnd/build.RawTags=" github.com/lightningnetwork/lnd/cmd/lnd
github.com/lightningnetwork/lnd/build
github.com/lightningnetwork/lnd/lntest/channels
github.com/lightningnetwork/lnd/healthcheck
github.com/lightningnetwork/lnd/lnwallet/chainfee
github.com/lightningnetwork/lnd/peernotifier
github.com/lightningnetwork/lnd/lnrpc/autopilotrpc
github.com/lightningnetwork/lnd/lnrpc/chainrpc
github.com/lightningnetwork/lnd/batch
github.com/lightningnetwork/lnd/lnwallet/chanfunding
github.com/lightningnetwork/lnd/channeldb
github.com/lightningnetwork/lnd/lnrpc/signrpc
github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc
github.com/lightningnetwork/lnd/lnpeer
github.com/lightningnetwork/lnd/routing/chainview
github.com/lightningnetwork/lnd/invoices
github.com/lightningnetwork/lnd/chainntnfs
github.com/lightningnetwork/lnd/chanbackup
github.com/lightningnetwork/lnd/channelnotifier
github.com/lightningnetwork/lnd/chainntnfs/bitcoindnotify
github.com/lightningnetwork/lnd/chainntnfs/btcdnotify
github.com/lightningnetwork/lnd/lnwallet
github.com/lightningnetwork/lnd/chainntnfs/neutrinonotify
github.com/lightningnetwork/lnd/lnwallet
lnwallet/wallet.go:41:45: syntax error: unexpected _000, expecting comma or )
note: module requires Go 1.13github.com/lightningnetwork/lnd/chanfitness
make: *** [Makefile:145: install] Fehler 2
pi@raspberrypi:~/code/lnd $
`
Your environment

version of lnd
v0.12.1-beta
which operating system (uname -a on *Nix)
Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux

Steps to reproduce
I just make install
Expected behaviour
Installation
Actual behaviour
Error message as named above

You need to upgrade your Go version.

I installed go version go1.11.6 linux/arm from official distro. On which do I need to upgrade?

I'd recommend updating to 1.15.9, we usually track the last two major go release (so the past year or so of releases).

authors: AkumaNoTsubasa Roasbeef

repo: lightningnetwork/lnd


text:
[bug]: Cannot install via go get

Background
I'm trying to install lnd via go get command.
Your environment

which operating system (uname -a on *Nix)- Ubuntu 23.04
version of btcd, bitcoind, or other backend- btcd v0.23.4

Steps to reproduce
In terminal run go get github.com/lightningnetwork/lnd
Expected behaviour
lnd package is installed correctly.
Actual behaviour
During installation I'm getting this error:
github.com/lightningnetwork/lnd imports
	github.com/roasbeef/btcwallet/waddrmgr: github.com/roasbeef/btcwallet@v0.11.0: parsing go.mod:
	module declares its path as: github.com/btcsuite/btcwallet
	        but was required as: github.com/roasbeef/btcwallet

You need to specify a specific version. See https://github.com/lightningnetwork/lnd/issues/5907 and https://github.com/lightningnetwork/lnd/issues/4021.

authors: guggero liorwavebl


text:
Advertisement data not validated

Both the URL and Image URL must exist. There is no front-end validation for this. When only adding one of them the Tip can still be created
Nothing is displayed to the receiver when only adding a URL/image.

https://github.com/lightsats/lightsats/blob/main/app/pages/journey/congratulations.tsx

@Wenze thanks for reporting this! fix is up at https://lightsats.fly.dev/

authors: Wenze rolznz

repo: lightsats/lightsats


text:
Add a new FastParse Javascript parser

This task was given to me previously by the owner of the project @lihaoyi.
The parser will have take either of http://code.jquery.com/jquery-2.2.1.min.js and http://code.jquery.com/jquery-2.2.1.js, parse it into an AST, and pretty-print it the same way http://jsbeautifier.org/ does.
I'm adding the issue now, but I'm already thinking of doing by the end of the summer since I'm pre-occupied by the GSoC 16 program. Hope that's ok :dancer:

Out of curiosity, did you make any progress on this?  It would be interesting to see whether we could get some useful leverage from it...

authors: Kavignon jducoeur

repo: lihaoyi/fastparse


text:
The singularity package was renamed to apptainer

In fedora, singularity-3.8.7 was replaced with apptainer-1.0.3
https://singularity.hpcng.org/
https://apptainer.org/news/community-announcement-20211130
So the example should be renamed too, to reflect the reality.

SingularityCE has not been packaged as RPM, only from sylabs.io
https://sylabs.io/singularity/
https://docs.sylabs.io/guides/3.10/admin-guide/
If requested, it could be resurrected as an example (like e.g. centos stream)

Once the fedora package has been updated to 1.1.0, this PR replaces the experimental/apptainer.yaml example.
I believe that using Fedora is a better match than using Rocky, because of 1) download size 2) uses EPEL anyway

Currently there are problems with using tmpfs as /tmp, but a simple workaround is TMPDIR=/var/tmp
I will do a separate PR for this, once renamed... https://fedoraproject.org/wiki/Features/tmp-on-tmpfs

Once the fedora package has been updated to 1.1.0, this PR replaces the experimental/apptainer.yaml example.

How long will it take?
Shall we wait until that happens or shall we merge this PR now?

Shall we wait until that happens or shall we merge this PR now?

I think the only difference was that apptainer-suid was split into a separate package:
-    dnf install --enablerepo=epel-testing -y apptainer apptainer-suid
+    dnf install -y apptainer

I tried enabling the updates-testing, but seems like the package only made it to fc38 ?
https://src.fedoraproject.org/rpms/apptainer
But you could merge it now, and we could tweak it later perhaps. It doesn't change anything.
The previous example has the same end result, with a symlink /usr/bin/singularity -> apptainer

@AkihiroSuda note that this also a new feature, in the new release: i.e. rootless by default
https://apptainer.org/news/apptainer-1-1-0-20220927
It is still possible to use rootless, by using flags or by changing the apptainer.conf configuration:
allow setuid = no

If we are going to merge this now, shall we remove experimental/apptainer.yaml?

We need to wait until it has merged from "testing" into "stable", otherwise we need a similar workaround:
sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-038f1a2ce3

https://bodhi.fedoraproject.org/updates/FEDORA-2022-038f1a2ce3
But after that (1.1.0), we could provide one apptainer.yaml and one apptainer-rootful.yaml, like the others ?

@AkihiroSuda apptainer 1.1.0 has now been accepted in both Fedora and EPEL
https://src.fedoraproject.org/rpms/apptainer

Release
Stable version
Version in testing

Fedora 36
apptainer-1.1.0-1.fc36

Fedora 35
apptainer-1.1.0-1.fc35

Fedora EPEL 9
apptainer-1.1.0-1.el9

Fedora EPEL 8
apptainer-1.1.0-1.el8

The rootless example doesn't need squashfs anymore, since it uses squashfuse instead.

Added follow-up commits

authors: AkihiroSuda afbjorklund

repo: lima-vm/lima


text:
爱一帆打开视频一直加载不出来，还有就是爱一帆有了国际版网站，去广告对国际版没生效

简要描述该问题
问题重现步骤
重现该行为的步骤：

在哪个网页 '...'
做了什么 '....'
出现了什么问题 '....'
Gif广告/视频广告/图片广告/弹窗...

预期想要得到的结果
对您期望发生的情况的清晰简洁的描述。
页面截图
如果适用，请添加屏幕截图以帮助解释您的问题。
操作系统及浏览器（请填写以下信息）: 如没有则填无需填写

系统: [e.g. iOS/PC]
浏览器 [e.g. chrome, safari]
代理工具 [e.g. QuantmultX/Surge]
引用的重写/或模块链接 [e.g. https://limbopro.com/Adblock4limbo.conf / https://limbopro.com/Adblock4limbo.sgmodule ]
油猴脚本安装地址 [e.d. https://github.com/limbopro/Adblock4limbo/raw/main/Adguard/Adblock4limbo.user.js / https://greasyfork.org/scripts/443290-adblock4limbo/code/Adblock4limbo.user.js]

额外的背景信息
在此处添加有关该问题的任何其他上下文。

@xiaopanxsdadqwe 信息提供不足，暂无法判断问题所在

authors: limbopro xiaopanxsdadqwe


text:
Add ownership reference field and update related components in flow information

This pull request includes several changes to enhance the administrative information section of the flow pages. The changes involve adding a new field for the ownership of the data set and updating existing references to ensure consistency.

@linancn

repo: linancn/tiangong-lca-next


text:
Close decoded HttpRequest sooner if possible

Motivation:
If we are sure there will be neither content nor trailing headers in a
request, we do not need to send a streaming request to a Service but
just a closed one. This has the following advantages:

We can use FixedStreamMessage-based HttpRequest implementations later.
AbortedStreamException will never be instantiated when handling the
request.

Modifications:

Close the decoded HttpRequest if it is sure there will neither content
nor trailing headers.

Result:

Reduced instantiation of AbortedStreamException

/cc @anuraaga

repo: line/armeria


text:
fix: Modify omission of change to change ValidatorSet to VoterSet for marverick

Description
Corresponding to the omission of change from the validator set to the voter set during version upgrade work.
This commit change was not reflected.25fe25c
This PR is an additional modification of this PR #340

@tnasu

Could you also update CONTRIBUTING.md? Should it change in ./test/maverick/node?

CONTRIBUTING.md does not need to be changed.

If you're changing the code in consensus package, please make sure to replicate all the changes in ./test/maverick/consensus. Maverick is a byzantine node used to assert that the validator gets punished for malicious behavior.

It means that the code change in consensus package should be applied to this path ./test/maverick/consensus as well, so I think there is no problem with the previous #340 and current this PR.

Sorry for my misleading. I mean that I want to change the sentence to the below:

If you're changing the code in consensus or node package, please make sure to replicate all the changes in  ./test/maverick/consensus and ./test/maverick/node. Maverick is a byzantine node used to assert that the validator gets punished for malicious behavior.

@tnasu
OK. I will fix it.

repo: line/ostracon


text:
Added DOTA 2 to universal back_forward ignore list

Disable universal back_forward buttons for DOTA 2

Thank you!

authors: aramann lujjjh

repo: linearmouse/linearmouse


text:
Improve dashboard tags

Motivation
Right now it can be hard to find different dashboards because they're all in one folder
Proposal
Add tags to our dashboards to make them easier to find
Test Plan
Will update

Current dependencies on/for this PR:

main

PR #1596   👈

This stack of pull requests is managed by Graphite.

repo: linera-io/linera-protocol


text:
日付の設定

初心者です。
こちらの出勤時間と退勤時間を指定するのが可能ですが、日付を当日だけではなく、自分で決めれるように作りたいですが、どうしたらいいでしょうか。

初心者です。
こちらの出勤時間と退勤時間を指定するのが可能ですが、日付を当日だけではなく、自分で決めれるように作りたいですが、どうしたらいいでしょうか。


text:
建议更名

Change to 'bye to the f**k NetEase'

emmm
啊？？？

emmm
啊？？？

非常好听不是吗？

emmm
啊？？？

非常好听不是吗？

雀食
不过仓库名里不能有*啊（

emmm
啊？？？

非常好听不是吗？

~雀食~
不过仓库名里不能有*啊（

那就不挡了

名字不个性一些谁会注意到啊

就比如 thefuck 由于名字所以被人注意

:)

就比如 thefuck 由于名字所以被人注意

呃啊
这不太好罢（

就比如 thefuck 由于名字所以被人注意

呃啊 这不太好罢（

合适吗？实在太合适了！

就比如 thefuck 由于名字所以被人注意

呃啊 这不太好罢（

合适吗？实在太合适了！

改了，但是是描述
仓库名还是不随便改了，容易发生某些意想不到的事情（GitHub官方解释）

就比如 thefuck 由于名字所以被人注意

呃啊 这不太好罢（

合适吗？实在太合适了！

改了，但是是描述 仓库名还是不随便改了，容易发生某些意想不到的事情（GitHub官方解释）

ahhhhh

authors: Minemetero lingbopro

repo: lingbopro/auto-close-netease-popup


text:
The schema for puppet's metadata.json is applied on any file named metadata.json

What Versions are you running?
OS Version: Debian 10
VSCode Version: 1.43.1
Puppet Extension Version: 0.24.0
PDK Version: /
What You Are Seeing?
The schema for puppet's metadata.json is applied on any file named metadata.json, making it underline basically the whole file in yellow.

What is Expected?
Either:

The extension only applies the schema if it detects it is in a puppet module, by the surrounding folder names, though that is hacky.
The extension does not apply the schema, or does not attempt to validate the metadata.json file.
The extension gives a way to disable schema check for metadata.json files (and should be disabled by default).
The extension adds a new language "puppet-metadata-json" that can be, on behalf of the user, applied to these files.

How Did You Get This To Happen? (Steps to Reproduce)
Create any file named metadata.json, and put any valid JSON in it.
Output Log
/

Thanks for the bug report. You're correct this is not ideal.
VS Code applies json schema's based on filenames, and activates if the supplied conditions are met.  I'll have to figure out some way of doing this differently

Hi @Zezombye ,
Apologies, but this won't be fixed for the next release which is coming this Friday. The reason this is happening is that VS Code provides one configuration point for json valiadtion: https://github.com/lingua-pupuli/puppet-vscode/blob/master/package.json#L109. It is meant to apply that validation to any file that matches the name provided. Our extension activates if any of the following events occur: https://github.com/lingua-pupuli/puppet-vscode/blob/master/package.json#L62-L78. This means that if your editor is open and the current working directory matches any of those files, or if you ran any of those commands, it will validate any metadata.json file with our schema.
While we decide how to handle this in a future release, you can work around this behavior by temporarily disabling the extension in your workspace. This will prevent our validator from running on your json document.

Still important

Hi @Zezombye, I am sorry to say that we have to close this issue. VS Code does not provide us a way to prevent this from happening if the extension is activated.
The workaround is to either temporarily disable the extension in your workspace or to open different projects with other metadata.json files in VS Code windows that have not had the Puppet extension already activated.

authors: Zezombye jpogran

repo: lingua-pupuli/puppet-vscode


text:
[StorageQuota] Fix a string manipulation bug in HostnameHelper

Fix a string manipulation bug in hostname and add more logs.

Codecov Report

Merging #1724 (353aada) into master (7bbcc40) will decrease coverage by 58.31%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master    #1724       +/-   ##
=============================================
- Coverage     73.63%   15.31%   -58.32%
+ Complexity     9046     2102     -6944
=============================================
  Files           651      651
  Lines         50004    50008        +4
  Branches       6253     6254        +1
=============================================
- Hits          36818     7660    -29158
- Misses        11244    41908    +30664
+ Partials       1942      440     -1502

Impacted Files
Coverage Δ
Complexity Δ

.../com/github/ambry/server/mysql/HostnameHelper.java
0.00% <0.00%> (-77.78%)
0.00 <0.00> (-3.00)

...api/src/main/java/com/github/ambry/named/Page.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-3.00%)

.../src/main/java/com/github/ambry/router/Router.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-6.00%)

.../src/main/java/com/github/ambry/store/Message.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-3.00%)

...rc/main/java/com/github/ambry/quota/QuotaMode.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-1.00%)

...rc/main/java/com/github/ambry/rest/RestMethod.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-1.00%)

...c/main/java/com/github/ambry/commons/Criteria.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-6.00%)

...c/main/java/com/github/ambry/config/KMSConfig.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-1.00%)

...c/main/java/com/github/ambry/config/SSLConfig.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-1.00%)

...c/main/java/com/github/ambry/router/ByteRange.java
0.00% <0.00%> (-100.00%)
0.00% <0.00%> (-9.00%)

... and 507 more

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 7bbcc40...353aada. Read the comment docs.

authors: codecov-io justinlin-linkedin

repo: linkedin/ambry


text:
Removed avro dependency for StatsManager

Removed the dependency on Avro for StatsManager. Avro 1.4.1 is required for another component to function and downgrading to 1.4.1 is difficult since there is no convenient way of performing Avro code generation with 1.4.1. The data/model objects (StatsSnapshot, StatsHeader, and StatsWrapper) will become generic java classes.
For convenience, StatsManager will now serialize and publish the stats to JSON via Jackson's ObjectMapper (existing dependency). If needed in the future, we can also introduce our own serialization/deserialization.
./gradlew build && ./gradlew test success
coding style applied

Updated, ./gadlew build && ./gradlew test success on both Mac and Linux.


text:
Manually registered some UDFs

Based on the test result of latest 3 month production views, these UDFs need to be registered.
Tested on the affected views, which could be translated with this patch.

Could you please add comments as of why dynamic UDF resolution does not work with those functions? Are there things that we can fix there?

Reasons of the exceptions:
Unable to find org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initialize(): the UDFs are not generic UDF, cannot find initialize method.
Unable to call org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initialize(): there are many different reasons of this exception, the following 2 are reasons of affected views from latest 3 month views.

Argument type is union type, we converted it to struct, so there is a mismatch between the provided type and required type
Exception: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.toImmutableSet()Ljava/util/stream/Collector; while calling the initialize method, seems to be because the versions of guava are different.

Since only 3 views are affected by the above UDF exceptions, I don't think we should spend time fixing for them at present, as there are some more important issues to be fixed.

since this is a temporary fix, can we please create issue here and corresponding one in internally (in the team's backlog) to detail the observations, the temporary fix and if any hints for the long term/permanent fix (& link to this PR)?

authors: ljfgem shenodaguirguis wmoustafa

repo: linkedin/coral


text:
Drop 0.8 support

Closes #114

looks good

authors: jimmyhchan sethkinast

repo: linkedin/dustjs-helpers


text:
How do I disable local storage?

This is a great little toolkit. But the local storage feature is driving me crazy.
Can I force it to restart at the first step?
Or is there anyway to disable local storage and have the tour restart from fresh every time?

Yeah I tried that but it causes a console error and doesn't solve the problem.
I've abandoned this anyway as I discovered it doesn't work well on mobile.

repo: linkedin/hopscotch


text:
notifyService.notifyMail在litemall-wx-api模块无法发送邮件

notifyService.notifyMail("订单信息", "订单1111111已付款，请发货");
在litemall-core 测试类发送邮件正常，可以接收
在litemall-wx-api模块功能中调用  notifyService.notifyMail("订单信息", "订单1111111已付款，请发货");   不报错但接收不到邮件
随后在litemall-wx-api模块测试类 调用notifyService.notifyMail("订单信息", "订单1111111已付款，请发货");  也无法接收到邮件
没有报错内容，debug在两个模块notifyMail 方法内各项的值 也未发现区别   但在litemall-wx-api模块 执行就收不到邮件

是这个异步有问题  mailSender.send(message);     litemall-wx-api调用  @Async  notifyMail    mailSender.send(message);执行有问题

原因是主线程停止了

repo: linlinjava/litemall


text:
Render only first ipv4 address

To test, go to the Linode list page and make sure Linodes with one IPv4 address don't break rendering. Add an IPv4 address to a Linode and make sure only one IPv4 address is rendered for the Linode on the Linode list page.

Coverage remained the same at 82.402% when pulling 9b0788fc6327caacd65b8e798e1599d1903be72d on eatonphil:fix-ipv4-rendering into 963e3ac432c70d5bde0679ca19b171da475e06c1 on linode:release.

authors: coveralls eatonphil

repo: linode/manager


text:
API Request Tests

This is an in-progress attempt to add tests for methods that make API calls (most of them).  Right now, this is being done with sanitized JSON files being loaded as the API requests based on the URLs they would be accessed at.  I'm still tinkering with it at this point, but since #67 is adding some tests, I figured my efforts would be more visible if I made this a PR.

This should be ready to merge - I like the design and want to use it when implementing future endpoints.  More tests can be added going forward.

repo: linode/python-linode-api


text:
feat: add rule for 'space-round-inlinecode'

规则名称
行内代码之间需要增加空格
正确

你好 hello  世界
using a <script> tag

错误

你好hello世界
using a<script>tag

实现方案
找到 inlineCode，判断是否存在左右节点。
如果存在，判断该节点是否为 text 节点，如果是，继续判断是否为 ' ' 结尾（左节点）或者是否为 ' ' 开头（右节点）
如果不是 text 节点，则不通过（因为空格必然是 text 节点产生的）
有待商榷的地方
对于如下的案例：

fix 的结果有一定概率多一个空格，导致这个 test case 有概率失败。
应该是您当初写 fix 是采用了随机处理的方案，上面的案例如果先处理 inline code，会在左侧加一个空格，从而使最后的结果后面多一个空格，如果先删最后的标点，那么一切符合预期。

如果 inline code 里面是中文，也是需要空格吗。

如果 inline code 里面是中文，也是需要空格吗。

需要吧，我觉得此处没必要单独考虑中文 O(∩_∩)O，平时也几乎看不到这种情况。

如果 inline code 里面是中文，也是需要空格吗。

需要吧，我觉得此处没必要单独考虑中文 O(∩_∩)O，平时也几乎看不到这种情况。

还是的看一下那个规范，或者有一些其他的 lint 也是有这个规则的。因为之前理解的是中文和英文之间需要空格。

@hustcc
刚刚调研了下：
情况1：
inline-code 里面是英文，两边的中文有空格，这个应该没什么异议。

例如：你好 world 世界

情况2：
inline-code 里面是英文，两边的英文有空格

例如：so a.insert(0, x) inserts at the front of the list

vue

React

springboot

Python

情况3：
inline-code 里面有中文，这个实在找不到 qwq

@hustcc
我觉得也可以自定义选项。

spaceBetweenChinese(boolean)，inline-code 两边如果是中文，必须加入空格，这个默认可以为 true。

spaceBetweenEnglish(boolean)， inline-code 两边如果是英文，必须加入空格。

先关闭了。

authors: hustcc yuzhanglong

repo: lint-md/lint-md


text:
Temporal inference

Can we futher improve mAP or NDS of valset and testset, if we use temporal information during inference?Thanks!

Which specific temporal information are you referring to?

https://github.com/linxuewu/Sparse4D/blob/c48ecd2b020d7770faaa865f577eed28406b75e9/projects/configs/sparse4d_r101_H4.py#L24
During test time, we set seq_frame=0 by default, so we won't use temporal keypoint information.

During inference, instead of using multi-frame sampling, we employed sequential reasoning and stored the features of historical frames in the head. Therefore, we utilized temporal information in our approach.

https://github.com/linxuewu/Sparse4D/blob/main/projects/mmdet3d_plugin/models/sparse4d_head.py#L171

I got it, thanks for your reply.

authors: BaoWentz linxuewu


text:
Clarification on COCO Dataset Segmentation Groundtruth

Hello,
I've been exploring your repo and came across the COCO dataset segmentation ground truth. I observed that it's colored, and the pixel-level labels seem to be represented in multi-channels. I was wondering:
How this colored ground-truth was generated?
How do the colors in the segmentation gt correspond to class IDs?
Also, is there code here demonstrating how to evaluate COCO segmentation using this ground truth?
Thank you!

Hi, thanks for your interest!
You can use Image.putpalette() function in PIL to generate the colored mask, such as:
from PIL import Image
import numpy as np

im = Image.open("COCO2014/SegmentationClass/000000000009.png")
palette_coco = im.getpalette()

def colorful_coco(out, name, palette):
    arr = out.astype(np.uint8)
    im = Image.fromarray(arr)
    im.putpalette(palette)
    im.save(name)

The shape of the saved mask is (h, w) and represents class IDs for each pixel. It can be directly used for evaluation by reading with  Image.open(). The palette records color information for each class IDs and the multi-channels are not reflected on the output image. You can also manually set the  palette like others.

Can you provide a link to the color palette that works with the COCO dataset?

You can get the color palette for COCO dataset from any COCO image:
im = Image.open("COCO2014/SegmentationClass/000000000009.png")
palette_coco = im.getpalette()

or you can refer to the palette used in other repository like mmdetection.


text:
Setup with content URI "content://..."

Hello. I am really sorry, maybe I am duplicating old issues.
I am using JZVideoPlayerStandard with default setUp:
    mVideoPlayer.setUp(videoUrl, JZVideoPlayerStandard.SCREEN_WINDOW_NORMAL, name != null ?name : "");
    mVideoPlayer.startButton.performClick();

I want use this player with Android content uri like "content://..." but it is not working. Can't find something about this in wiki.
I will appreciate any help with this.
Again sorry for duplicating.

check android.media.MediaPlayer api， I put the uri into android.mediaMediaPlayer

authors: VitaliyShuba lipangit

repo: lipangit/JiaoZiVideoPlayer


text:
ProgressTimerTask内存泄漏

**什么jzvd版本
7.0.5
**是否和安卓版本有关系，什么版本
没关系
**是否和特定品牌的手机机型有关系，什么机型
与机型无关
**相关log是什么
**复现流程
视频重复播放
[**最好有截图或者视频说明情况]
Jzvd$ProgressTimerTask.this$0

是的，怎么解决，这个问题困扰多年

authors: ZHBoy lipangit


text:
Support for ES2015/JSX

The build for the following Webpack compiled project failed:
https://doclets.io/tf/pageflow-react/add-to-doclets
It contains both ES2015 code and JSX files. Is support for those features planned? JSDoc claims to support it.

Not sure about this. I'll have to investigate on it ...

This will definitely come. ES2015 and JSX are way too important to ignore !
Working on orga support now. This is next! @tf

I also tried running JSDoc locally and I can confirm that it is not a doclets specific problem. ES2015/JSX support in JSDoc appears to be a work in progress still. So feel free to close or keep it open as a reference point for others...

thanks for digging into it! maybe the parser can handle it but the default rendering does not work for es2015? i am extracting the "pure" data from jsdoc and doing the rendering etc myself. hope this jsdoc es2015 thing will clear up in the next time.

@tf thinking about switching to documentation.js . Any experience with it?

Played a bit with it. But not enough to offer any real insights here.
Sorry.
Gerhard Preuss notifications@github.com schrieb am Do., 24. März 2016,
12:54:

@tf https://github.com/tf thinking about switching to documentation.js
. Any experience with it?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/lipp/doclets/issues/54#issuecomment-200803120

@tf it seems some es2015 stuff is already working: https://doclets.io/crawlkit/crawlkit/v2.0.1#dl-CrawlKit
using classes, getters / setters etc.

esdoc aims to be a better JSDoc with proper support for ES2015

yes, esdoc might be a great choice for now.

I gave it another try and with the jsdoc version currently linked in the package.json (which references the same commit as master at the moment), ES2015 and also JSX work (example). :+1: So maybe this issue can be closed?
As for esdoc, I took a closer look and I'd be careful to switch. To me it looks like the project is basically maintained by one person who seems to be very busy at the moment. There even is a custom "owner: busy" batch right at the top the README :joy:

@tf Thanks for reporting that ES2015 with doclets.io works for you! As ES2015 support might be incomplete, I close this issue and suggest to open separate issues if something is missing/not working.

authors: felixfbecker lipp tf

repo: lipp/doclets


text:
[FR][client side] implemet direct remote table field assignment

as in https://github.com/jsnyder/luarpc/blob/master/test-client.lua#L53
Currently implemented as a setter function invocation which isn't elegant.

Done in my fork: https://github.com/ildar/tango

repo: lipp/tango


text:
Liquibase failed to start because no changelog

Search first

[X] I searched and no similar issues were found

Description
Please see the below details for issue.
Runtime Error:
Description:
Liquibase failed to start because no changelog could be found at 'classpath:/db/changelog/db.changelog-master.yaml'.
Action:
Make sure a Liquibase changelog is present at the configured path.
configure in application.properties.
#Liquibase config
spring.liquibase.enabled=true
spring.liquibase.change-log=classpath:db.changelog/changelog-master.xml
Pom.xml

org.springframework.boot
spring-boot-starter-parent
2.7.0

org.liquibase
liquibase-core

org.liquibase
liquibase-maven-plugin
4.3.2

Build Success. But while run the app facing the issue.
In source code, yaml is not available but still facing this issue. Tried so many solutions but not working at all.
Thanks for support the help in advance.
Steps To Reproduce
Intellij IDEA Version: 2023.1
Build the project: mvn clean install -DskipTests
Run the project using Intellij IDEA IDE
Expected/Desired Behavior
It should be run the application
Liquibase Version
4.3.2
Database Vendor & Version
No response
Liquibase Integration
4.3.2
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
MAC OS
Additional Context
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR (Thank you!)

At runtime, Spring Boot will look for your db/changelog/db.changelog-master.yaml in the application's classpath.
I'd say to first double-check that db/changelog/db.changelog-master.yaml exists in the jar file. Sometimes there is something off on your build process and the file isn't getting correctly included there.
If the file does exist in the jar file, does it help to remove the classpath: prefix from the path? Liquibase should be ignoring that, but maybe something is not ignoring like it should be?

authors: nikunjazilen nvoxland

repo: liquibase/liquibase


text:
TIME-X Test Hackathon: Finish test for SwitchEstimator

During the TIME-X test hackathon at TU Darmstadt, I started with writing a test for SwitchEstimator. A previous version of the test is available here. The file provides a combination of unit-tests and integration tests (?).

Here, it is checked when the event does occur exactly at the boundary (i.e., on a collocation node at the boundary) whether a restart is executed or not. When the event does occur on the boundary no restart should be executed since here the resolution of the numerical solution for a specific accuracy is already given.

Another test checks whether the adapt_interpolation_info does what it is supposed to do. This method is intended to adapt the interpolation x-axis t_interp with corresponding y-values state_function. Using quad_type='RADAU-RIGHT' leads to len(t_interp) = self.coll.num_nodes while len(state_function) = self.coll.num_nodes + 1. The reason is that the initial time L.time is not included here because it is no collocation node but can be used for the interpolation anyway. Hence, it should be added to t_interp in adapt_interpolation_info. For quad_type='LOBATTO', we have len(t_interp) = self.coll.num_nodes + 1 but len(state_function) = self.coll.num_nodes. Here, the initial time of the subinterval is also a collocation nodes, hence t_interp[0] = t_interp[1] and the first entry has to be removed.

[ ] quad_type='RADAU-RIGHT': After adding L.time to t_interp test
assert t_interp[0] == L.time.

In a third test SwitchEstimator is applied to a problem for different tolerances tol passed to the switch estimator. This tolerance is used to decide whether the event is already close to the boundary or if the value of the state function at the event does already satisfy the tolerance. Intuitively, the smaller tol is the smaller the event error could be expected.

For all these tests, a specific dummy problem ExactDiscontinuousTestODE is implemented. This class inherits from DiscontinuousTestODE is does nothing than returning the exact dynamics of the parent class:

eval_f returns the derivative of the exact solution u_exact,
solve_system returns the exact solution.

Since this class returns the exact dynamics, for switch estimation the event should be estimated in a very accurately way, i.e., the event to be found can be assumed to be very close to the exact event time t_switch_exact. Discussion with @brownbaerchen led to this idea. The question is: Does this dummy problem make sense to test the correct framework of SwitchEstimator?
For the test, also piecewise linear interpolation for SwitchEstimator is implemented, and first observations does indicate a very small rate of restarts as compared to Lagrange interpolation. This could be observed for number of collocation nodes $M=3,4,5$, but seems to be not true for $M=2$.
Final question(s) to this issue:

Are tests sensitive enough to throw errors if the switch estimator does not work correctly anymore after an update?
Do the tests provide an answer to the question of whether the switch estimator works well in a specifically intended sense?

The test I was suggesting is slightly different, actually. One source of error in the switch estimator is the polynomial interpolation. But you can remove this source of error when the interpolation is exact. That is the idea behind the polynomial_testequation. Maybe you can modify this class such that you can force it to have a root within some interval.
Then, you can setup a controller, but instead of doing the whole time-stepping, you can just execute the specific parts of the switch estimator that you want to test. I do a similar thing here. Now, the switch estimator has to find the "switch event" i.e. the root of the state function exactly. Does this make sense? Of course, a root of the state function is not the same as a root of the right hand side. So maybe you need to write a completely different test problem.
But to my understanding, the switch estimator would be well tested if you verify that for exact interpolation, the correct step size is chosen to very high accuracy and if you switch to Thibaut's interpolation, which is already tested. Ofc, if you do some other kind of interpolation, you would have to test that separately.

Note for myself: The choice of the finite difference (FD) approximation to approximate the derivative of the state function inherently influences the performance of the switch estimator. Battery models does not like centered FDs but backward ones, whereas for the discontinuous test problems centered FDs seem to be a good choice. It seems like that it does make a difference if the state function changes its sign from positive to negative or vice versa.

If I understand correctly, you are using the derivative of the state function in a Newton solver to find roots. But the state function is not smooth, is it? So if you are using a backward stencil you are maybe not including the non-smooth part? That would be my guess why centered stencils sometimes perform poorly.
If you want to be a bit fancy, you can use the generic FD framework inside pySDC to generate a suitable stencil for you. You can use this function and experiment with high order centered stencils, lopsided stencils or whatever.

If I understand correctly, you are using the derivative of the state function in a Newton solver to find roots. But the state function is not smooth, is it? So if you are using a backward stencil you are maybe not including the non-smooth part? That would be my guess why centered stencils sometimes perform poorly.
If you want to be a bit fancy, you can use the generic FD framework inside pySDC to generate a suitable stencil for you. You can use this function and experiment with high order centered stencils, lopsided stencils or whatever.

So would only be a note for myself, so thanks a lot for your comment! Yess that's true, the state function is not smooth so your comment might make sense for me! This inherently improves the performance of the switch estimator.

authors: brownbaerchen lisawim

repo: lisawim/pySDC


text:
Error loading the gem.

I added the gem to my gem file and bundled it. When i try to open up the console, I get the following error.
Gem Load Error is: superclass mismatch for class EmailValidator
I opened up the gem and commented line 2nd in lib/valid_email2.rb which says
require "email_validator" # Backwards-compatibility shim
then it works fine. Any idea why is this hapenning ?

What do you have in your gemfile?
It sounds like you already have a EmailValidator class defined elsewhere. Possibly in another gem

yes, I guess so. But what can be done for it. Right now, I have patched this in my lib directory and loading my gem from lib.

There's a gem called 'email_validator' which may be causing such conflicts. At least that's what's happening on my end.

We've actually already deprecated the global EmailValidator class in favour of a namespaced class in https://github.com/lisinge/valid_email2/pull/79.
I guess it's time to actually pull the trigger and remove it completely to get rid of these last errors like the one you are getting here.
I just have some things i want to get in before i push a new release but i will update here once a release have been pushed.

authors: grammakov lisinge utkarshrai003


text:
[@labs/react] support multiple children with multiple slots

Related to https://github.com/lit/lit/issues/2734
This PR supports multiple children by assigning them to multiple slots by wrapping them in a <div styles="display: contents">.
A client can provide a children map similar to how we account for events.
The syntax is as follows:
const BasicElementComponent = createComponent(
  window.React,
  elementName,
  BasicElement,
  basicElementEvents,
  displayName,
  { <react_children_property_name>: <slot_name> },
);

Which results in a children config like:
const BasicElementComponent = createComponent(
  window.React,
  elementName,
  BasicElement,
  basicElementEvents,
  displayName,
  {
    headIcons: 'head-icons',
    content: 'content',
    tailIcons: 'tail-icons',
  },
);

Tests are added to verify rendered elements are rendered with the correct slot names.

Ugh dumb thumbs, how do I cancel this review ;_;

Could I ask for why this is not being merged? Thank you.

authors: khanh-le-otsv taylor-vann

repo: lit/lit


text:
Fix DTO nested field renaming

Pull Request Checklist

[ ] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

By submitting this issue, you agree to:

follow Litestar's Code of Conduct
follow Litestar's Contribution Guidelines

Description
Currently nested fields cannot be renamed or excluded. This PR implements this behaviour.
Close Issue(s)

Hey @abdulhaq-e - I'd already made a start on the nested excludes, so I pushed that through in #1596.
Solution you are using here looks good to me for as long as we don't support nested rename_fields. Is there something you are waiting on before converting from draft?

Nope, all good, just wanted to check the approach first.

authors: abdulhaq-e peterschutt

repo: litestar-org/litestar


text:
Whether Objaverse dataset has been cleaned

hi, nice work!
I would like to know if you have cleaned the Objaverse dataset？

Hi, the current pretrained model uses the whole Objaverse dataset without clearning.

Thanks!

repo: liuyuan-pal/SyncDreamer


text:
Hardware.setSpeakerphoneOn() not working on iOS

Hardware.setSpeakerphoneOn() doesn't switch between speaker/earpiece. I tried it on an iPhone and it doesn't work. It works well on Android (also tried).
Flutter version:
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 21G115 darwin-arm, locale en-HU)
• Flutter version 3.3.2 on channel stable at /Users/janoskranczler/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision e3c29ec00c (2 weeks ago), 2022-09-14 08:46:55 -0500
• Engine revision a4ff2c53d8
• Dart version 2.18.1
• DevTools version 2.15.0
Plugin version: 1.1.4
OS: iOS
OS version: 16.0.2

okay, let me check.

Thank you! Actually, I debugged and I think I found an issue and also a solution:
https://github.com/flutter-webrtc/flutter-webrtc/issues/1098

Audio management for iOS on flutter-webrtc looks a bit confusing. I am trying to simplify and solve these problems.

fixed https://github.com/livekit/client-sdk-flutter/releases/tag/v1.1.6

hey @janoskranczler, I got confused and forgot to update the dependency for flutter-webrtc, I should update it tomorrow (there are some other PRs that need to be tested and verified together) and release a new version。

Got it! Thank you!

fixed https://github.com/livekit/client-sdk-flutter/pull/190,  will publish a new version to pub today

@cloudwebrtc Great news! Thank you!

@cloudwebrtc I've tested it and it doesn't work. I'm not sure, but I think the problem is that there was no new pod released for this change:
https://github.com/livekit/client-sdk-flutter/blob/main/ios/livekit_client.podspec#L3

The change happens in flutter-webrtc, you can try running
flutter clean && flutter pub get
and
rm ios/Podfile.lock && pod install

@cloudwebrtc I've tested it with your recommended changes, but it still has not worked on my project. It worked with the example app and I debugged what is the difference and found that when I started a meeting with muted microphone then the speaker/earpiece change will not work. I created a branch for a modified LiveKit example app, which could help to reproduce the error:
https://github.com/janoskranczler/client-sdk-flutter/commit/3f31d8a3042f86045ed156b67a901e8e719a43fe

Also, I forgot to mention you can only reproduce the error on a physical device. I don't know why but it can't be reproduced on the simulator.

You can reproduce the error if you start the modified example app and start changing the speaker/earpiece with the new button. You should see the following error messages every time when you change to speaker:
[as_client]     AVAudioSession_iOS.mm:2370  Failed to set category, error: -50
Port override failed due to: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"

Yes, I reproduced the issue you described, but the reason is
When we turn off the microphone, we will switch to AVAudioSessionCategoryPlayback mode, this mode does not support Earpiece/Loudspeaker switching, the sound will be fixed in the Loudspeaker
If we still need to switch the Earpiece/Loudspeaker in playback-only mode, we must switch the mode to AVAudioSessionCategoryPlayAndRecord, but the side effect is that the privacy prompt will inform the user that we are using a microphone, even if we do not actually collect data from the microphone, this time to the user cause anxiety.

What do you suggest, how could I fix this issue? I couldn't find a suitable workaround for this yet.

First we should get the current Audio Deivce state
enum AudioTrackState {
none,
remoteOnly,
localOnly,
localAndRemote,
}
https://github.com/livekit/client-sdk-flutter/blob/main/lib/src/track/audio_management.dart#L111
When in localOnly, localAndRemote (recordAndPlay), it is possible to switch the earpiece/speaker, while in remoteOnly (playback), we cannot set setSpeakerOn
When in remoteOnly(playback) mode, there are two processing methods

Ignore the setSpeakerOn operation and let iOS handle it automatically. At this time, the mic privacy indicator will not light up.

Modify RTCAudioSession and change the category to AVAudioSessionCategoryPlayAndRecord, then setSpeakerOn/Off will become effective, but the mic privacy indicator will be on.

It depends on whether the user holds the handset to his ear when he is not talking.

What do you mean by option 1? Could the user still control the speaker/earpiece switch from the interface?

in option1, The speaker/earpiece should not be able to switch manually, but it should be possible to switch between wired headphones/Bluetooth and the speaker

@cloudwebrtc I think it could be solved if you could set the port override here:
https://github.com/livekit/client-sdk-flutter/blob/84b9ef130fedafa1eeed9cf82689649183a69b85/lib/src/track/audio_management.dart#L21
Currently, the NativeAudioConfiguration could set category, categoryOptions and mode, but not port override:
https://github.com/livekit/client-sdk-flutter/blob/56aeacc291af3e6ab8a32128263798e5734abc03/lib/src/support/native_audio.dart#L71
If I could set the port override here LiveKit could control the audio category between playback and playAndRecord category and also it could be overridden with port override by a user.

Meanwhile, I found that you can set the portoverride or the defaultToSpeaker option only on playAndRecord category and this won't help with the microphone issue either.
I still do not understand why the microphone will still be used when I disable the microphone.

@janoskranczler if you are using playAndRecord, the underlying stack will have to acquire record permissions. On iOS, the WebRTC stack activates the recording stack in that mode.
This is the dilemma:

if you are in playAndRecord, then it will allow you to playback to defaultToSpeaker, but it will keep microphone indicator on
if you are in playback, it will not allow you to defaultToSpeaker. apple docs

@cloudwebrtc @davidzhao
Thanks for the explanation. I've collected 3 issues according to the mic and earpiece/loudspeaker problem:

There should be an option for the user to completely disable the track-based audio configuration in LiveKit:
https://github.com/livekit/client-sdk-flutter/blob/84b9ef130fedafa1eeed9cf82689649183a69b85/lib/src/track/audio_management.dart#L84-L83
I couldn't figure out why, but the loudspeaker switch only works after the microphone is initialized (at least once: setMicrophoneEnabled(true)). After the initialization, even if you turn it off the switch still works.
I will create a new issue for this one, but I've tested with the LiveKit example app (current main branch without any modification: https://github.com/livekit/client-sdk-flutter/commit/22a18d3e9cff352c56870aa723567777855bbf2b) and found that microphone indicator won't turn off after I mute the microphone.

I've updated my answer above.

@janoskranczler
Hi, Is there a solution?

I have also encountered this issue now. How can I fix it? Is there a suitable solution? The version is livekit_client: ^1.3.4, And this is my implementation (But it is not working for me):
      // The variable 'flag' is a Boolean defined during function calls
      LocalAudioTrack? track = room.localParticipant?.audioTracks.firstOrNull?.track;
      if (track != null) {
            track.mediaStreamTrack.enableSpeakerphone(flag);
      }
      roomClient.setSpeakerOn(flag);
      Hardware.instance.setSpeakerphoneOn(flag);

please try this branch https://github.com/livekit/client-sdk-flutter/pull/312

@cloudwebrtc I've seen that you merged the branch and I did try it but the speaker/earpiece change is still not working if the meeting is started with my microphone muted. If I unmute my microphone before the meeting starts then I can still mute it back and everything is working fine.

@janoskranczler do you mean that you've published a muted track?
Is this behavior reproducible with the included example app?

@davidzhao Yes, I can reproduce with the example app if I mute my microphone I can't switch between speaker and earpiece.

authors: cloudwebrtc coder-xb davidzhao janoskranczler std-s

repo: livekit/client-sdk-flutter


text:
Access token TTL does not work

Describe the bug
I have an access token, whose TTL is 5s. I connect to the room with that access token, and after 5s I turn off my network (to get into the reconnecting state), and since I am reconnecting with participant A, I kick him from the room and turn on my network back and he can reconnect successfully to the room, but token should be invalid at this time.
Server

Version: [1.6.1]
Environment: [e.g. local dev, EKS]
any other information about your deployment setup

Client

SDK: [e.g. js, ios]
Version: [2.0.10]

To Reproduce
Steps to reproduce the behavior:

two clients are connected to the room
One client turns off his network off
Remove the reconnecting participant from the room.
Turn the internet back on so removed participant is able to connect back

Expected behavior
Removed participant should not be able to connect back

This is expected. Tokens are refreshed with connected client automatically to ensure they can reconnect. docs

repo: livekit/livekit


text:
导入出错

Hi,
您尝试导入数据到 LeanCloud 平台上的应用 hugo-waline，结果如下:
任务编号: wayppv
导入 Class: Comment
成功: 0条
失败: 0条
错误信息在此下载：

Invalid date format, expect: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
……
如果导入成功，您应该可以在 leancloud.cn 的数据管理平台看到，否则请联系我们处理，谢谢。

The LeanCloud Team

改了下时间导出的格式，你可以再试试

@lizheming 时间格式，我处理好了，处理完了忘记保存代码了，没有提 PR ，还有个小问题 insertedAt 写成了 insertedAct

@eallion 收到，已处理~

authors: eallion lizheming

repo: lizheming/typecho-export-valine


text:
Refactor trim and winsorize functions

Can't do upper and lower bounds, Consider following new thresholding api.

fixed in #217

repo: ljchang/nltools


text:
feat: Torch conversion for ONNXIdentityOp

Added:

New torch conversion for Identity operator
Lit tests
Docstrings

We agreed in the helprack call that this operation disappears in ONNX-MLIR and this PR should be closed with "won't do".

authors: ljfitz vasantha-helprack

repo: ljfitz/onnx-mlir


text:
公众号建议

您好，长期阅读您深入浅出的博客文章，获益匪浅。
不知您是否有公众号？方便订阅和日常移动端阅读。
如果没有，小小建议您能开通一个，更大范围地传播您整理的知识精华。

有这方面意向，请问你的身份是？
Weihao Li notifications@github.com 于2019年3月27日周三 下午5:10写道：

您好，长期阅读您深入浅出的博客文章，获益匪浅。
不知您是否有公众号？方便订阅和日常移动端阅读。
如果没有，小小建议您能开通一个，更大范围地传播您整理的知识精华。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ljpzzz/machinelearning/issues/3, or mute the thread
https://github.com/notifications/unsubscribe-auth/AavvEoTJunDlvoicHF75vbbMhipgJqj8ks5vazVngaJpZM4cNR6g
.

你好，感谢建议。目前一是没有时间维护公众号，二是目前微信的公众号对LaTex公式的支持很不友好。我的文章基本是文字和数学公式混杂，转化成公众号文章所有的公式都得去贴图，不光费力而且贴图后公式阅读体验很差。
因此暂时不考虑。

如果作者的文章是直接的github上的markdown就完美了，可以fork，然后自己读的时候可以修改成自己的知识

authors: Lotrea ljpzzz xaxfan zsweet

repo: ljpzzz/machinelearning


text:
🛑 Goodmd total.good-md.com:5280 is down

In 826e678, Goodmd total.good-md.com:5280 (https://total.good-md.com:5280) was down:

HTTP code: 503
Response time: 1557 ms

Resolved: Goodmd total.good-md.com:5280 is back up in a21f960.

repo: lksjames/monitoring