text:
update workflow

update workflow to the latest code

g++ 9.0下，用./xrepo.sh install workflow报这个错误：
StringUtil.cc:(.text+0x24c): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
g++ 4.8下可以正常安装。同时，g++ 9.0也可以正常编译workflow。

带上 -vD 再试试，贴下编译详情
xrepo install -vD -j1 workflow
目前看错误，是 libstdc++ 的库问题，多半还是工具链问题。
先看下错误详情，确认下 是 on_test 的问题，还是 on_install 阶段库自身的cmake编译问题

error: ...ke/repositories/xmake-repo/packages/w/workflow/xmake.lua:41: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:264: /opt/rh/devtoolset-9/root/usr/bin/ld: /home/xiehan/.xmake/packages/w/workflow/v0.9.10/1e0e8b105e5e4c80b49040c2101f6994/lib/libworkflow.a(StringUtil.cc.o): in function StringUtil::url_decode(std::string&)': StringUtil.cc:(.text+0x24c): undefined reference to std::__throw_out_of_range_fmt(char const*, ...)'
/opt/rh/devtoolset-9/root/usr/bin/ld: /home/xiehan/.xmake/packages/w/workflow/v0.9.10/1e0e8b105e5e4c80b49040c2101f6994/lib/libworkflow.a(DnsTaskImpl.cc.o): in function ComplexDnsTask::message_out()': DnsTaskImpl.cc:(.text+0x1bb): undefined reference to std::__throw_out_of_range_fmt(char const*, ...)'
collect2: 错误：ld 返回 1
看看这个信息有没有用？

感觉是我自己环境的一些问题。我们这边先查一下，搞不定再请教。

我gcc 10 和clang14用xrepo install都是没问题的

authors: Barenboim SkyTeamWater waruqi

repo: xmake-io/xmake-repo


text:
Document XMAKE_STATS

xmake collects stats by cloning an empty repo
https://github.com/xmake-io/xmake/blob/79acd86359c71f749b6990b24335bfe2c338f95b/xmake/actions/build/statistics.lua
but this behavior is not documented anywhere. It is enabled by default and could be disabled by setting an environment variable XMAKE_STATS=false which is not documented either (I found it by looking into the source code).
I understand that the current implementation (cloning an empty github repo) could hardly expose any information or do harm to users, but I simply do not want any network traffic that I do not need, especially that I'm not aware of.
My suggestion is that xmake.io should let users know what happens and how to disable it because it is not expected by most users.
Another thought is that xrepo is a better place for collecting stats. No one would be surprised that npmjs.com, crates.io(rust) or conan.io show download/search/query stats.
I do think xmake is a good and modern alternative tool for cmake and hope it become popular among c/c++ communities, while collecting information is rather a sensitive and controversial behavior that might do more harm than good in the future.

There is currently no better way to count the usage of xmake. Statistics using xrepo are not accurate, and many users do not use packages. In addition, all dependent packages currently installed by xrepo are directly accessed original URLs, and I cannot count their download information.
Currently, I only use github traffics to count them, which will not reveal user privacy. In addition, a clone of an empty project uses very little traffic.
Of course, users have the right to disable them, so I provide XMAKE_STATS to disable this behavior.
I will update the document in the next few days and clearly explain its purpose and how to disable it.
The purpose of adding this statistic is to let me know the approximate user growth of xmake so that I can have enough confidence to continue to maintain it.
In the future, if there is a better way to count it, or when there are enough users, I feel that it is no longer needed. I will remove it.

I have added it in documents. https://xmake.io/#/guide/configuration?id=xmake_stats

source: gharchive/issue

authors: hg-zt waruqi

repo: xmake-io/xmake

license_type: permissive

license_source: github-api


text:
Error and xmake freeze during project configuration with glfw package: cannot remove directory Unknown Error (145)

Xmake Version
2.9.5
Operating System Version and Architecture
Windows 11 23H2 22631.4037
Describe Bug
5/5 reproduce:

Remove .xamke directory: C:\Users\Y\AppData\Local\.xmake
Configure the project xmake f -p mingw -y and see error:

checking for architecture ... x86_64
checking for mingw directory ... C:\Program Files\mydevtools\MinGW-w64
updating repositories .. ok
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33812
  => download https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz .. ok
  => download https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz .. ok
  => install glfw#1 3.4 .. failed

cannot remove directory C:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw_1\3.4\installdir.failed\logs\install.txt
  => install glfw 3.4 .. failed

cannot remove directory C:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw\3.4\installdir.failed\logs\install.txt
  => download https://github.com/xmake-mirror/python-windows/releases/download/3.12.3/python-3.12.3.win64.zip .. ok
  => install python 3.12.3 .. ok
  => download https://github.com/Dav1dde/glad/archive/v0.1.36.tar.gz .. ok
  => install glad v0.1.36 .. ok
error: install failed!

Very often the xmake f -p mingw -f hangs in the end at line => install python 3.12.3 .. ok. So, the only way to exit is to press Ctrl+C. It hangs even GitHub Actions for hours, so I need to cancel workflow manually.
Content of C:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw\3.4\installdir.failed\logs\install.txt:
cannot remove directory C:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\release Unknown Error (145)

Sometimes I see duplicated error messages. Maybe there is problem with multithreading?
  => install glfw#1 3.4 .. failed

cannot remove directory C:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw_1\3.4\installdir.failed\logs\install.txt
  => install glfw 3.4 .. failed

cannot remove directory C:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\release Unknown Error (145)
if you want to get more verbose errors, please see:
  -> C:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw\3.4\installdir.failed\logs\install.txt

Important notes:

If I run xmake f -p mingw -y for the second time - error is gone and configuration finished successfully
Issue is never reproduced if I add -vD or -v or -D options
Issue is reproduced only with mingw profile. With windows profile (msvc) - everything is fine
Sometimes I saw this issue on xmake 2.9.4 too

Expected Behavior
xmake f -p mingw -y finishes successfully.
Project Configuration
add_rules("mode.debug", "mode.release", "plugin.compile_commands.autoupdate", {outputdir = "build"})
set_defaultmode("debug")
set_targetdir("$(buildir)")

add_requires("glfw 3.4", "glad", "imgui v1.91.0", {configs = {glfw_opengl3 = true}})

target("opengl-app")
    add_packages("glfw", "glad", "imgui")
    add_files("main.cpp")

Additional Information and Error Logs
Issue is never reproduced if I add -vD options

try it again. xmake update -s dev

Fixed. Thank you.
Just in case, I still see duplicated  download ... glfw, install glfw#1 3.4 .. ok and install glfw 3.4 .. ok messages, but no errors anymore.
checking for architecture ... x86_64
checking for mingw directory ... C:\Program Files\mydevtools\MinGW-w64
updating repositories .. ok
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33812
  => download https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz .. ok
  => download https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz .. ok
  => download https://github.com/xmake-mirror/python-windows/releases/download/3.12.3/python-3.12.3.win64.zip .. ok
  => install glfw#1 3.4 .. ok
  => download https://github.com/ocornut/imgui/archive/refs/tags/v1.91.0.tar.gz .. ok
  => install glfw 3.4 .. ok
  => install imgui v1.91.0 .. ok
  => install python 3.12.3 .. ok
  => download https://github.com/Dav1dde/glad/archive/v0.1.36.tar.gz .. ok
  => install glad v0.1.36 .. ok

This is not a bug, you have two different configurations of glfw packages that need to be installed in your project.
add_requires("glfw 3.4", "glad", "imgui v1.91.0", {configs = {glfw_opengl3 = true}})

  -> glfw 3.4 [glfw_opengl3:y]

and from imgui.glfw
  -> glfw#1 3.4 [from:imgui]

authors: waruqi yh-sb


text:
中文文档中可能有一处错字

注：提问题时若使用不能用/没效果/有问题/报错此类模糊表达，但又没有根据下面的模板给出任何相关辅助信息的，将绝对不会有任何反馈。

描述问题
在文档 https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_files中

此接口使用方式跟add_installfiles接口几乎完全一样，都可以用来天剑安装文件，不过此接口仅用于安装头文件。 因此，使用上比add_installfiles简化了不少，默认不设置prefixdir，也会自动将头文件安装到对应的include子目录中。

期待的结果
可能应当为

此接口使用方式跟add_installfiles接口几乎完全一样，都可以用来添加安装文件，不过此接口仅用于安装头文件。 因此，使用上比add_installfiles简化了不少，默认不设置prefixdir，也会自动将头文件安装到对应的include子目录中。

这种你直接点右上角编辑帮忙改下呗 不用特地提issues

我改掉了

authors: SmartPolarBear waruqi


text:
xmake run -d 调试时报错

Note: If you use the fuzzy expressions such as 'can't use/no effect/problem/error', but don't give any relevant auxiliary information according to the template below, this issue will be not replied.

Describe the bug
按照例子里面的hello world运行了一遍
在调试时xmake run -d hello时会报错
Error output
xmake run -d hello
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/lomot/Code/c/hello/build/linux/x86_64/release/hello...(no debugging symbols found)...done.
error: execv(/usr/bin/gdb --args /home/lomot/Code/c/hello/build/linux/x86_64/release/hello) failed(-1)
(gdb) %

Related Environment

xmake version: v2.3.7+202010100456
os: Ubuntu 18.04.1 LTS
target platform: linux amd64

刚刚在mac上测试了一遍，一切正常

dev上已修，看下这个 https://github.com/xmake-io/xmake/issues/983

大概什么时候可以推到master呢

已经在master了

我刚刚从ppa里面重新安装了一遍，还是有同样的问题，是ppa源没有更新吗

我刚刚从ppa里面重新安装了一遍，还是有同样的问题，是ppa源没有更新吗

这个要发版才会更新，需要再等一段时间

了解了

authors: LomotHo waruqi


text:
How to update title of the child dynamically

Before submitting issues ...

Make sure you are using XLPagerTabStrip latest release or master branch version.
Make sure your Xcode version is the latest stable one.
Check if the issue was already reported or fixed. We add labels to each issue in order to easily find related issues. If you found a match add a brief comment "I have the same problem" or "+1".
Please do not use the issue tracker for personal support requests. Stack Overflow is a better place for that where a wider community can help you!

When submitting issues, please provide the following information to help maintainers to fix the problem faster:

Environment: XLPagerTabStrip, Xcode and iOS version you are using.
In case of reporting errors, provide Xcode console output of stack trace or code compilation error.
Any other additional detail such as example code that you think it would be useful to understand, reproduce and solve the problem.

any updates guys? need this urgently

I want to implement the same thing. @shadowTech827 any solution?

Hey @vaibhav-varshaaweblabs ,
For the above : I'am saving a track of the new cell and old cell and wrote a little complex logic to support my use case.
When setting up the Tabs:
changeCurrentIndexProgressive = {
[weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in
guard changeCurrentIndex == true else { return }
oldCell?.label.textColor = .black
newCell?.label.textColor = UIColor.themeRed()
print("oldCell: (String(describing: oldCell?.label?.text)) newCell: (String(describing: newCell?.label?.text))")
        if oldCell == nil {
            if (condition1){
                self?.currentCell = newCell
            }
        }else if newCell == nil{
            if (condition 2){
                self?.completedCell = oldCell
            }else{
                if self?.currentCell == nil {
                    self?.currentCell = oldCell
                }else{
                    self?.completedCell = oldCell

                }
            }
        }

Then updating the headers whenever needed
func updatetabHeaders()  {
var current : IndicatorInfoProvider!
var completed : IndicatorInfoProvider!
if (condition1){
current = viewControllers[0] as! IndicatorInfoProvider
completed = viewControllers[1] as! IndicatorInfoProvider
}else{
current = viewControllers[1] as! IndicatorInfoProvider
completed = viewControllers[2] as! IndicatorInfoProvider
}
    UIView.performWithoutAnimation({ [weak self] () -> Void in
        guard let me = self else { return }
        if self?.currentCell != nil {
            self?.configureCell((self?.currentCell)!, indicatorInfo: current.indicatorInfo(for: me))
        }
        if self?.completedCell != nil {
            self?.configureCell((self?.completedCell)!, indicatorInfo: completed.indicatorInfo(for: me))
        }
    })
}

In your Controller's IndicatorInfo function
Change the title as per your need:
Like in my case:
func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -> IndicatorInfo {
    if (tabTitle == nil){
        if condition 1{
            tabTitle = "Title1"
        }else{
            tabTitle = "Title 2"
        }
    }
    return IndicatorInfo(title : tabTitle!)
}

This solution may not be very good as it's a work around for my use case. When come to more tabs it will become complex as tracking the tabs will be too complex (i.e new cell and old cell)
P.S if any other solution do let me know. Thanks in advance

This answer did not work for me as the ViewControllers are not initialized yet until the users advances to the page.  It works for updates to the first tab, but any subsequent tabs do not have values.
So, the first tab has the title var set, but the others just have the initial value.
Maybe I am doing something wrong, but I have tried several approaches and all of them seem to have invalid values until the tab is selected.
Any help would be appreciated!!

Thank you @Bo-Bogdan for the answer! Awesome!

@Bo-Bogdan Thanks for the awesome answer, but the tab width doesn't fit update based on new text, any idea?

@Bo-Bogdan Thanks for the awesome answer, but the tab width doesn't fit update based on new text, any idea?

Hi jackylcs86 You found the solution??

My solution inspired by @Bo-Bogdan
`func notifyParent(){
if let parentVC = self.parentVC {
        if let selectedTabVC = parentVC.viewControllers.first(where: {$0 is SelectedTabViewController}) as? SelectedTabViewController {
            let selected = viewModel.selectedStudents.count
            if selected > 0 {
                selectedTabVC.itemInfo = IndicatorInfo(title: "Selected Students(\(selected))")
            } else {
                selectedTabVC.itemInfo = IndicatorInfo(title: "Selected Students")
            }
            parentVC.buttonBarView.reloadData()
        }
    }
}`

authors: LilMoke aneudysamparo jackylcs86 mansuu shadowTech827 vaibhav-varshaaweblabs vdphong

repo: xmartlabs/XLPagerTabStrip

license: mit

license_source: bigquery


text:
25/7 Frontend - Tackling User Feedback on Nav

Left dashboard menu on navigation has been feedbacked to contain too many elements, suggested to only keep the important functional pages. The routing could be better if the landing page was the feedback page based on user feedback.

Users also feedbacked that the UI/UX can be improved by adding a subtitle to let people know of the significance of the numbers

Closed with rectification of user feedback

repo: xmlew/UniMod

license: MIT


text:
BREAKING CHANGE: Move swift GRPC into its own package

Trying to bring in our protos without needing to worry about all the deps of GRPC.

Why do we need Swift GRPC at all? Don't we get all that from Rust now?

@neekolas You're completely right, thanks for the review.

closing per lack of resources for this.  If we need it, please feel free to re-open.

source: gharchive/pull-request

authors: nakajima neekolas tuddman

repo: xmtp/proto


text:
🛑 Espo is down

In a2e5abc, Espo (https://espo.xoinstein.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Espo is back up in d5bc330 after 13 minutes.

repo: xoinstein/site-status


text:
how to check for exact CppType in the compilation?

Hello,
this seems like a newbie question however I can't seem to find a way to check for the exact CppType in any location.
suppose I have a function and the return type is "Unsigned int"
the function.ReturnType is CppType and that Cpptype is an abstract class that based on the type other classed implement it like CppPrimitiveType etc.
my question is that In the VS2019 debugger I can see that the "Kind" field is there however it's not public and I don't want to use reflection to get the value. how can I know which primitive type I'm dealing with? like how can I compare it with CppPrimitiveType members or CppPrimitiveKind members to see exactly what primitive that is?

Never mind i found it.
for anyone else having this issue. you should check the TypeKind and based on that cast the obj to appropriate subclass


text:
Hyperledger Besu RPC API <-> Expedition

Hello !
I am running a Hyperledger Besu node and I would like to use the RPC API offered Besu for Expedition. Sadly I am not able to do this.
Details:
Using my own project: Hyperledger Besu Node
Besu Version: v21.10.2
Expedition Version: Just did built it yesterday via the Dockerfile
Potential Issue
I guess this incomparability/not working is because for example the response from ethercluster.com is a simple one line and the Besu API response is a formatted answer.

Or is there any other issue I am missing
Thanks!
BTW: How can I change the Progress Bar and stats colour ?  Thanks!

Update pics as link was lost

Was solved, Cors Problem. :|

authors: DRIgnazGortngschirl MrMarioMichel

repo: xops/expedition


text:
BUG-使用阿里云modelscope的jupyterlab环境，启动qwen-chat-pytorch-1_8b报错404

Describe the bug
启动命令：xinference-local -H 0.0.0.0 -p 9901  --log-level=debug
硬件环境：2080TI 22G + ubuntu22.04-cuda12.1.0-py310-torch2.1.2-tf2.14.0-1.12.0
错误详细：Server error: 500 - [address=0.0.0.0:39523, pid=3003] Response details: 404 page not found, Request id: 451ca6eba0dd45718a867a36385c2d22
To Reproduce
To help us to reproduce this bug, please provide information below:
1.使用modelscope环境或者自己部署魔搭docker镜像：registry.cn-hangzhou.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda12.1.0-py310-torch2.1.2-tf2.14.0-1.12.0
2.启动命令：xinference-local -H 0.0.0.0 -p 9901  --log-level=debug
3.在xinference ui中启动xinference-local -H 0.0.0.0 -p 9901  --log-level=debug
4. 部署qwen-chat-pytorch-1_8b时，UI报错：Response details: 404 page not found,
5. 日志报错：ERROR - Authentication token does not exist, failed to access model /root/.xinference/cache/qwen-chat-pytorch-1_8b which may not exist or may be                 private. Please login first.

@thinkclaves @leeeex https://github.com/xorbitsai/inference/issues/1112 参考这个issue，跟你的镜像有关，modelscope镜像是有一些配置在里面的，导致你无法下载模型。

repo: xorbitsai/inference


text:
0.10.3版本无法下载m3e以及其他embedding模型

用xinference下载模型
$ XINFERENCE_MODEL_SRC=modelscope xinference-local --host 0.0.0.0 --port 9997
$ xinference launch --model-name m3e-base --model-type embedding
环境：python 3.11.7, torch 2.3.0+cu121, accelerate 0.30.0 transformers 4.40.1
BUG：
2024-05-07 10:43:22,621 xinference.core.supervisor 1310838 INFO     Xinference supervisor 0.0.0.0:47308 started
2024-05-07 10:43:22,653 xinference.core.worker 1310838 INFO     Starting metrics export server at 0.0.0.0:None
2024-05-07 10:43:22,655 xinference.core.worker 1310838 INFO     Checking metrics export server...
2024-05-07 10:43:24,332 xinference.core.worker 1310838 INFO     Metrics server is started at: http://0.0.0.0:42279
2024-05-07 10:43:24,333 xinference.core.worker 1310838 INFO     Xinference worker 0.0.0.0:47308 started
2024-05-07 10:43:24,334 xinference.core.worker 1310838 INFO     Purge cache directory: /root/.xinference/cache
2024-05-07 10:43:24,334 xinference.core.utils 1310838 INFO     Remove empty directory: /root/.xinference/cache/text2vec-base-chinese-sentence
2024-05-07 10:43:29,246 xinference.api.restful_api 1310743 INFO     Starting Xinference at endpoint: http://0.0.0.0:9997
2024-05-07 10:43:54,464 xinference.model.utils 1310838 INFO     Use model cache from a different hub.
2024-05-07 10:43:55,345 xinference.core.worker 1310838 ERROR    Failed to load model m3e-base-1-0
Traceback (most recent call last):
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/worker.py", line 697, in launch_builtin_model
await model_ref.load()
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 227, in send
return self._process_result_message(result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
raise message.as_instanceof_cause()
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 659, in send
result = await self._run_coro(message.message_id, coro)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 370, in _run_coro
return await coro
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/api.py", line 384, in on_receive
return await super().on_receive(message)  # type: ignore
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 558, in on_receive
raise ex
File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.on_receive
async with self._lock:
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.on_receive
with debug_async_timeout('actor_lock_timeout',
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 524, in xoscar.core._BaseActor.on_receive
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/model.py", line 239, in load
self._model.load()
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/embedding/core.py", line 142, in load
self._model = SentenceTransformer(self._model_path, device=self._device)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 221, in init
self.to(device)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1159, in convert
return t.to(
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 312, in _lazy_init
raise DeferredCudaCallError(msg) from e
^^^^^^^^^^^^^^^^^
torch.cuda.DeferredCudaCallError: [address=0.0.0.0:42911, pid=1311306] CUDA call failed lazily at initialization with error: device >= 0 && device < num_gpus INTERNAL ASSERT FAILED at "../aten/src/ATen/cuda/CUDAContext.cpp":50, please report a bug to PyTorch. device=, num_gpus=
CUDA call was originally invoked at:
File "", line 1, in
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 274, in main
code = _serve_one(child_r, fds,
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 313, in _serve_one
code = spawn._main(child_r, parent_sentinel)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 131, in _main
prepare(preparation_data)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 246, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "", line 291, in run_path
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/home/local/anaconda3/bin/xinference-local", line 5, in
from xinference.deploy.cmdline import local
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 38, in
_install()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 35, in _install
install_model()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/init.py", line 17, in _install
from .llm import _install as llm_install
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/init.py", line 19, in
from .core import (
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/core.py", line 23, in
from ...core.utils import parse_replica_model_uid
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/init.py", line 15, in
from .model import ModelActor
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/model.py", line 47, in
from ..device_utils import empty_cache
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/device_utils.py", line 17, in
import torch
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/init.py", line 1478, in
_C._initExtension(manager_path())
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 238, in
_lazy_call(_check_capability)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 235, in _lazy_call
_queued_calls.append((callable, traceback.format_stack()))
2024-05-07 10:43:55,411 xinference.api.restful_api 1310743 ERROR    [address=0.0.0.0:42911, pid=1311306] CUDA call failed lazily at initialization with error: device >= 0 && device < num_gpus INTERNAL ASSERT FAILED at "../aten/src/ATen/cuda/CUDAContext.cpp":50, please report a bug to PyTorch. device=, num_gpus=
CUDA call was originally invoked at:
File "", line 1, in
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 274, in main
code = _serve_one(child_r, fds,
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 313, in _serve_one
code = spawn._main(child_r, parent_sentinel)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 131, in _main
prepare(preparation_data)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 246, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "", line 291, in run_path
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/home/local/anaconda3/bin/xinference-local", line 5, in
from xinference.deploy.cmdline import local
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 38, in
_install()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 35, in _install
install_model()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/init.py", line 17, in _install
from .llm import _install as llm_install
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/init.py", line 19, in
from .core import (
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/core.py", line 23, in
from ...core.utils import parse_replica_model_uid
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/init.py", line 15, in
from .model import ModelActor
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/model.py", line 47, in
from ..device_utils import empty_cache
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/device_utils.py", line 17, in
import torch
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/init.py", line 1478, in
_C._initExtension(manager_path())
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 238, in
_lazy_call(_check_capability)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 235, in _lazy_call
_queued_calls.append((callable, traceback.format_stack()))
Traceback (most recent call last):
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/api/restful_api.py", line 731, in launch_model
model_uid = await (await self._get_supervisor_ref()).launch_builtin_model(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 227, in send
return self._process_result_message(result)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
raise message.as_instanceof_cause()
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 659, in send
result = await self._run_coro(message.message_id, coro)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 370, in _run_coro
return await coro
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/api.py", line 384, in on_receive
return await super().on_receive(message)  # type: ignore
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 558, in on_receive
raise ex
File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.on_receive
async with self._lock:
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.on_receive
with debug_async_timeout('actor_lock_timeout',
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.on_receive
result = await result
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/supervisor.py", line 850, in launch_builtin_model
await _launch_model()
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/supervisor.py", line 814, in _launch_model
await _launch_one_model(rep_model_uid)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/supervisor.py", line 796, in _launch_one_model
await worker_ref.launch_builtin_model(
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 284, in __pyx_actor_method_wrapper
async with lock:
File "xoscar/core.pyx", line 287, in xoscar.core.__pyx_actor_method_wrapper
result = await result
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/utils.py", line 45, in wrapped
ret = await func(*args, **kwargs)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/worker.py", line 697, in launch_builtin_model
await model_ref.load()
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 227, in send
return self._process_result_message(result)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/context.py", line 102, in _process_result_message
raise message.as_instanceof_cause()
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 659, in send
result = await self._run_coro(message.message_id, coro)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/backends/pool.py", line 370, in _run_coro
return await coro
File "/home/local/anaconda3/lib/python3.11/site-packages/xoscar/api.py", line 384, in on_receive
return await super().on_receive(message)  # type: ignore
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 558, in on_receive
raise ex
File "xoscar/core.pyx", line 520, in xoscar.core._BaseActor.on_receive
async with self._lock:
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 521, in xoscar.core._BaseActor.on_receive
with debug_async_timeout('actor_lock_timeout',
^^^^^^^^^^^^^^^^^
File "xoscar/core.pyx", line 524, in xoscar.core._BaseActor.on_receive
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/model.py", line 239, in load
self._model.load()
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/embedding/core.py", line 142, in load
self._model = SentenceTransformer(self._model_path, device=self._device)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 221, in init
self.to(device)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1173, in to
return self._apply(convert)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 779, in _apply
module._apply(fn)
[Previous line repeated 1 more time]
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 804, in _apply
param_applied = fn(param)
^^^^^^^^^^^^^^^^^
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1159, in convert
return t.to(
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 312, in _lazy_init
raise DeferredCudaCallError(msg) from e
^^^^^^^^^^^^^^^^^
torch.cuda.DeferredCudaCallError: [address=0.0.0.0:42911, pid=1311306] CUDA call failed lazily at initialization with error: device >= 0 && device < num_gpus INTERNAL ASSERT FAILED at "../aten/src/ATen/cuda/CUDAContext.cpp":50, please report a bug to PyTorch. device=, num_gpus=
CUDA call was originally invoked at:
File "", line 1, in
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 274, in main
code = _serve_one(child_r, fds,
File "/home/local/anaconda3/lib/python3.11/multiprocessing/forkserver.py", line 313, in _serve_one
code = spawn._main(child_r, parent_sentinel)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 131, in _main
prepare(preparation_data)
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 246, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/home/local/anaconda3/lib/python3.11/multiprocessing/spawn.py", line 297, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "", line 291, in run_path
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/home/local/anaconda3/bin/xinference-local", line 5, in
from xinference.deploy.cmdline import local
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 38, in
_install()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/init.py", line 35, in _install
install_model()
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/init.py", line 17, in _install
from .llm import _install as llm_install
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/init.py", line 19, in
from .core import (
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/model/llm/core.py", line 23, in
from ...core.utils import parse_replica_model_uid
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/init.py", line 15, in
from .model import ModelActor
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/core/model.py", line 47, in
from ..device_utils import empty_cache
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/xinference/device_utils.py", line 17, in
import torch
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/init.py", line 1478, in
_C._initExtension(manager_path())
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 238, in
_lazy_call(_check_capability)
File "/home/local/anaconda3/lib/python3.11/site-packages/torch/cuda/init.py", line 235, in _lazy_call
_queued_calls.append((callable, traceback.format_stack()))

新建了一个虚拟环境可以了。不知道之前是什么问题导致的。


text:
🛑 Design Swan is down

In 164c7da, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 119 ms

Resolved: Design Swan is back up in 6cacc58.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

In 28a7c14, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 101 ms

Resolved: Design Swan is back up in 44a10f6.


text:
🛑 Design Swan is down

In 872a99f, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 154 ms

Resolved: Design Swan is back up in c1f64b1 after 1 minute.


text:
🛑 Design Swan is down

In 09c7f06, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 79 ms

Resolved: Design Swan is back up in f0a725c after 34 minutes.


text:
🛑 Design Swan is down

In ef3738b, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 112 ms

Resolved: Design Swan is back up in 6ea2f06.


text:
🛑 Design Swan is down

In 7e79d6c, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 127 ms

Resolved: Design Swan is back up in b3de63e after 18 minutes.


text:
🛑 Design Swan is down

In dc921ee, Design Swan (https://www.designswan.com) was down:

HTTP code: 500
Response time: 127 ms

Resolved: Design Swan is back up in 591e1df after 19 minutes.


text:
[Toolbar] Disabling the title shadow seems impossible

I've tried to setting the shadow settings in the global theme, on a custom centerElement, and in a style prop like:
<Toolbar centerElement={this.props.title} style={{titleText: styles.title}} {...this.props} />

...

const styles = StyleSheet.create({
  title: {
    // color: 'white',
    color: '#222222',
    fontSize: 24,
    textAlign: 'center',
    textShadowColor: 'white',
    textShadowRadius: 0,
  }
});

All other styles set except the shadow.

Did you try to play with elevation?

No. Do tell.

I just try to set textShadow prop and all works fine:
        const style = {
            toolbar: {
                titleText: {
                    textShadowOffset: { width: 3, height: 3 },
                    textShadowRadius: 1,
                    textShadowColor: 'black',
                },
            },
        };
...
        <Toolbar
            centerElement={'tasks'}
            leftElement="menu"
            style={style.toolbar}
        />

Turn the shadow off now.

               titleText: {
                    textShadowOffset: { width: 3, height: 3 },
                    textShadowRadius: 0,
                    textShadowColor: 'black',
                },

It seems the issue is in passing in a style from StyleSheet.create. That doesn't seem to work for the shadow.
import React from 'react';
import {StyleSheet} from 'react-native';

import {Toolbar} from 'react-native-material-ui';

export class EBToolbar extends React.Component {
  static propTypes = {
    title: React.PropTypes.string.isRequired,
  };

  render() {
    return (
      <Toolbar centerElement={this.props.title} style={{titleText: styles.title}} {...this.props} />
    );
  }
}

const styles = StyleSheet.create({
  title: {
    color: 'white',
    fontSize: 24,
    textAlign: 'center',
    textShadowColor: 'red',
    textShadowRadius: 0,
  }
});

It seems the shadow is either 1) attached to something else, 2) isn't a shadow rather something else [looks more like a glow].

Works fine for me with StyleSheet too...
I test it in Android. Do you use iOS?

Yes, I'm on iOS right now. If you turn off your toolbar bg color (transparent), do you still see the same thing?

const style = StyleSheet.create({
    container: {
        backgroundColor: 'transparent',
    },
    titleText: {
        color: 'red',
        textShadowOffset: { width: 3, height: 3 },
        textShadowRadius: 2,
        textShadowColor: 'black',
    },
});

const style = StyleSheet.create({
    container: {
        backgroundColor: 'transparent',
    },
    titleText: {
        color: 'red',
        textShadowOffset: { width: 3, height: 3 },
        textShadowRadius: 0,
        textShadowColor: 'black',
    },
});

Weirdness. If I set the bg to a color, the glow is gone. It has to be something handled by default in this library or elsewhere.
If I set the bg to white, it removes the glow. -_-
          toolbar: {
            container: {
              backgroundColor: 'white',
              height: 50
            },
            titleText: {
              color: '#222222',
              fontSize: 24,
              textAlign: 'center',
              textShadowRadius: 0,
            }
          }

authors: NewOldMax johncblandii

repo: xotahal/react-native-material-ui


text:
fix removal of startstreaming event listener when using MME

typo in startstraming

Merged, thanks!

authors: dbussert xqq


text:
🛑 Xstatic is down

In 57e8e74, Xstatic (https://www.xstatic.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xstatic is back up in df3559c after 4 minutes.

repo: xstaticwebdev/upptime


text:
🛑 Xstatic is down

In 68af35c, Xstatic (https://www.xstatic.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Xstatic is back up in 12701e7 after 19 minutes.


text:
Organize folders by title instead of by bundle

It would be great to have the option to not create folders for each bundle and instead create them based on the title of the thing.
Instead of Downloaded Library/Purchase Name/Item Name/downloaded_file.ext you'd just get Downloaded Library/Item Name/downloaded_file.ext.
Right now you can end up downloading the same files twice if you have the same content in multiple bundles.

After downloading, I got 50 duplicate files, wasting 7.5GB (as shown by fdupes -rm .). After removing the duplicates (fdupes -rdN .), the size went down from 45GB to 38GB.
The current directory structure is wasteful: using 20% more space (and 20% more download, and 20% more time) than it would have if the directories were shallower to a single level.

Alternatively the directory layout could remain the same and the downloads could be de-duped by the sha in the library JSON. When the same file is present in other bundles/titles it could hard linked (when supported) to the first copy.

I'd also prefer such a flat structure and also some metadata, like checksums, day of purchase if available, the bundles it was "retrieved" by (as a replacement for the changed structure) etc. The .cache.json could be used for this (maybe renamed to hb_repository.json or so). An option to reuse already existing data downloaded to transform the "repository" fast would be nice.

I wish there was a template string naming configuration parameter. Something customizable, so we can each organize how we please.
My preference would be: "$bundle/$format/$itemName.$format"
Humble Book Bundle- Cybersecurity by Wiley/epub/Threat Modeling.epub
Humble Book Bundle- Cybersecurity by Wiley/epub/Social Engineering.epub
Humble Book Bundle- Cybersecurity by Wiley/pdf/Threat Modeling.pdf

authors: Pfeil cbirdsong darylf denilsonsa greedy


text:
tensorflow.python.framework.errors_impl.DeadlineExceededError: Timed out waiting for notification

Hi,
I have downloaded this code and am able to successfully run the demo.py file. I am getting the above mentioned error while trying to run the train.sh file as "./scripts/train.sh -gpu 0 -image_set train -log_dir ./log/". Is someone else also getting the same error? I am running it on a GEForce RTX 2080 Ti  with a single GPU

I got the same error: I was able to solve it by updating the following line:
https://github.com/xuanyuzhou98/SqueezeSegV2/blob/9f02049466fd369398a94de091ca8d7e4fb6ae81/src/train.py#L128
Try increasing the timeout_in_ms in this line.

authors: AryaPhilip ML-enthu


text:
它来了，它来了，power bi的5月更新带着“字段参数”向你走来了 - 学谦PowerBI

http://powerbipro.cn/2022/05/16/它来了-它来了-Power-BI的5月更新带着-字段参数-向你走来了/
Every failure is leading towards success.

断了多少人的财路


text:
weakly-supervised methods learning error

When using the code below
"
from deepod.models.devnet import DevNet
clf = DevNet()
clf.fit(X_train, y=semi_y) # semi_y uses 1 for known anomalies, and 0 for unlabeled data
"
At this part
"clf.fit(X_train, y=semi_y)"
"Float division by zero" error occurs
How can I resolve the above error?
I put a two-dimensional array in the "x_train" variable, and a list of zeroes in the "y" variable because they are all normal data.

DevNet is a weakly supervised model that uses partially labeled anomalies, please see its  original paper for more detail. therefore, if your input contains normal data only, it cannot work properly.
---- Replied Message ----
| From | @.> |
| Date | 08/10/2023 22:14 |
| To | @.> |
| Cc | @.***> |
| Subject | [xuhongzuo/DeepOD] weakly-supervised methods learning error (Issue #25) |
When using the code below
"
from deepod.models.devnet import DevNet
clf = DevNet()
clf.fit(X_train, y=semi_y) # semi_y uses 1 for known anomalies, and 0 for unlabeled data
"
At this part
"clf.fit(X_train, y=semi_y)"
"Float division by zero" error occurs
How can I resolve the above error?
I put a two-dimensional array in the "x_train" variable, and a list of zeroes in the "y" variable because they are all normal data.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

I tried putting the label in both 0,1, but the same error occurs.

Please check your input X_train, is there a all-zero feature? We do not add strict input check in DeepOD.
DevNet passed my test (you can see testing script in deepod/test/test_devnet.py).
| |
Hongzuo Xu
|
|
@.***
|
---- Replied Message ----
| From | @.> |
| Date | 8/10/2023 22:58 |
| To | @.> |
| Cc | Hongzuo @.> ,
@.> |
| Subject | Re: [xuhongzuo/DeepOD] weakly-supervised methods learning error (Issue #25) |
I tried putting the label in both 0,1, but the same error occurs.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

repo: xuhongzuo/DeepOD


text:
Develop

add more tests

Pull Request Test Coverage Report for Build 28

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+5.0%) to 94.167%

Totals

Change from base Build 25:
5.0%

Covered Lines:
226

Relevant Lines:
240

💛  - Coveralls

authors: coveralls xujiajun

repo: xujiajun/gorouter


text:
点击磁贴及磁贴后台均无法刷新

问题描述
寻空0.x版本的时候开始使用的是侧载版，磁贴刷新无问题，寻空更新到1.03，导入0.x的数据后，卸载了0.x版，才发现点击磁贴及磁贴后台均无法刷新（0.x版的磁贴能正常刷新），于是又下载了商店版，卸载了侧载版，同样还是不行，只好使用了寻空小组件，终能正常刷新，但更新1.21之后，点击磁贴及磁贴后台均无法刷新，寻空小组件亦是如此
更新一下 寻空小组件后台能刷新，但大约半小时才刷新一次，不像之前刷新较快
复现步骤
添加磁贴后点击磁贴不会刷新，等待很长时间后磁贴也不会刷新，重新添加磁贴才能刷新
截图

系统版本
Windows 10 专业版 21H2
寻空版本
1.21
日志
log_20220913_114446.txt
备注
No response

虽然和你的情况可能不一定一致，不过我通常是寻空无法联网（比如我压根就没联网）的时候会报不知道这样的主机

authors: Darklighture Patrick-Ze

repo: xunkong/xunkong


text:
关于多账号保存切换文件名或扩展名太长的问题

问题描述
切换账号提示文件名或扩展名过长。过程是这样的，以前没用过寻空，一直用的胡桃工具箱，前几天重装了系统（笔记本自带原版系统，Windows11 家庭版 22H2）,然后就发现了问题，寻空提示文件名过长，胡桃提示未开启长路径（此时都只添加了几个账号做测试），胡桃的情况是一个都打不开，寻空是国服提示文件名长问题，云原神切换正常。然后我就开始折腾长路径的问题，修改了注册表，策略组等方法都试过，甚至怀疑是PowerShell版本问题也替换过，始终都解决不了。最后索性重装了，为了怕是因为其他软件或者运行库版本的问题造成的，重装后都尽量不装新库。重装过后，添加国服和云原神几个账号测试，都一切正常。此时装的是ReviOS（封装的一个Windows11专业版 22H2）。我就开始大量添加账号，因为我是个代肝嘛，手上很多资源号，想着一次输入完以后方便切换。问题就出现了，当我添加了账号到70多个的时候，就出现文件名过长的问题了。我是在添加到账号075的时候无意中发现的，我点切换启动账号就出错误提示了，心里一凉，以为又要重装了（但是我确实不知道问题出在哪啊，还以为是新装的什么软件冲突了），结果我发现前面的账号并没有问题，还是可以正常切换。为了测试，我又下载了胡桃工具箱，也不提示长路径问题，说明应该不是未开启长路径的原因（为了保险，我又策略组注册表都检查开启了一遍）。重启后问题依旧，就是前面的账号可以正常切换，后面的就不行。
复现步骤
正常切换的账号国服5个，云原神70个（下面有图）第70个（编号069）就不行了
尝试删除添加账号，排序69以后都不行，68能正常。
截图

系统版本
Windows 11 22H2 专业版
寻空版本
1.3.7.0
日志
log_20230429_203813.txt
log_20230429_190850.txt
log_20230429_185924.txt
log_20230429_185303.txt
log_20230429_114158.txt
备注
No response

https://www.it1352.com/2251331.html
感觉这个有点参考价值。当然我也不太清楚具体账号保存切换的实现方式，感觉有点想不通啊，为什么前面几十个就没问题，到了一定数量就有问题，照理说路径长度应该都是一样的啊。

https://www.it1352.com/2251331.html
感觉这个有点参考价值。当然我也不太清楚具体账号保存切换的实现方式，感觉有点想不通啊，为什么前面几十个就没问题，到了一定数量就有问题，照理说路径长度应该都是一样的啊。

这场面我真没见过.jpg
因为寻空使用了 msix 的安装方式，不能直接读写注册表，所以使用了 PowerShell 绕过这个限制。即便如此，也不适合用来保存大量账号，建议你寻找其他的工具。

工具我自己改写了一个支持云原神的版本，用的文本方式保存数据，应该不会有这个问题。我只是很纳闷，为什么会出现这么神奇的BUG，没想明白原理。估计原神存多了也会出现这个，没测试过（要手动再输这么多次账号受不了）。

authors: Leeiiiii Scighost


text:
Unable to run openutau on linux

Acknowledgement

[X] I have read Getting-Started and FAQ

🐛 Describe the bug
Unable to run openutau on linux
ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_a52.c:1001:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty.
   at Avalonia.Media.FontManager..ctor(IFontManagerImpl platformImpl) in /_/src/Avalonia.Base/Media/FontManager.cs:line 37
   at Avalonia.Media.FontManager.get_Current() in /_/src/Avalonia.Base/Media/FontManager.cs:line 59
   at Avalonia.Media.Typeface.get_GlyphTypeface() in /_/src/Avalonia.Base/Media/Typeface.cs:line 87
   at Avalonia.Rendering.Composition.Compositor.get_DiagnosticTextRenderer() in /_/src/Avalonia.Base/Rendering/Composition/Compositor.cs:line 58
   at Avalonia.Rendering.Composition.Compositor.CreateCompositionTarget(Func`1 surfaces) in /_/src/Avalonia.Base/Rendering/Composition/Compositor.Factories.cs:line 17
   at Avalonia.Rendering.Composition.CompositingRenderer..ctor(IRenderRoot root, Compositor compositor, Func`1 surfaces) in /_/src/Avalonia.Base/Rendering/Composition/CompositingRenderer.cs:line 53
   at Avalonia.Controls.TopLevel..ctor(ITopLevelImpl impl, IAvaloniaDependencyResolver dependencyResolver) in /_/src/Avalonia.Controls/TopLevel.cs:line 188
   at Avalonia.Controls.WindowBase..ctor(IWindowBaseImpl impl, IAvaloniaDependencyResolver dependencyResolver) in /_/src/Avalonia.Controls/WindowBase.cs:line 55
   at Avalonia.Controls.Window..ctor(IWindowImpl impl) in /_/src/Avalonia.Controls/Window.cs:line 223
   at Avalonia.Controls.Window..ctor() in /_/src/Avalonia.Controls/Window.cs:line 214
   at OpenUtau.App.Views.MainWindow..ctor() in /home/runner/work/OpenUtau/OpenUtau/OpenUtau/Views/MainWindow.axaml.cs:line 47
   at OpenUtau.App.App.OnFrameworkInitializationCompleted() in /home/runner/work/OpenUtau/OpenUtau/OpenUtau/App.axaml.cs:line 34
   at Avalonia.AppBuilder.SetupUnsafe() in /_/src/Avalonia.Controls/AppBuilder.cs:line 307
   at Avalonia.AppBuilder.Setup() in /_/src/Avalonia.Controls/AppBuilder.cs:line 291
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 219
   at OpenUtau.App.Program.Main(String[] args) in /home/runner/work/OpenUtau/OpenUtau/OpenUtau/Program.cs:line 41
zsh: IOT instruction (core dumped)  ./OpenUtau

Explains how to reproduce the bug
1 download and unzip OpenUtau-linux-x64-0.1.158.22.zip
2 double click or run in terminal
3 then double-clicking does not have any antisense, and the prompt crashes when running in the command line
OS & Version
Arch Linux / Linux 6.1.39-2-lts x86_64 rolling n/a
Logs
No log found

Setting LANG to C solves the problem.

Here is a solution from steamtools Avalonia font manager patch

The latest version is functioning properly.

repo: xunmengshe/OpenUtau


text:
adding torrent announce list configuration via convict

note that the default trackers are those from create-torrent.
resolves #25

Cool! Thanks for the pr!

authors: rigelk xuset

repo: xuset/planktos


text:
如何自定义接收数据类型?

OkSocket  接收数据不是框架定义的header+body的类型会报错，请问怎么解决？可以自定义接收类型吗?

okay. But please share how to send header and share formate or sample of header and payload which accept current code.

authors: tej-mpc tydqcjj

repo: xuuhaoo/OkSocket


text:
Recognize Chromium status

How can I recognize the status of Chromium?
For example if Chorium is open or closed

+1

repo: xvrh/puppeteer-dart


text:
Add information about API key to README

This is a very impressive application. However, when I started playing with it, I was thrown by the fact that it didn't build without an API key.
In terms of usability, it might be better if there were some dummy stories you could view first. Then you would be more motivated to obtain the API key and see real data.

Hi @garthgilmourni Thanks for the feedback. Yes, I think a mock service would be beneficial to get started 👍 I'll open an issue to work on this

authors: garthgilmourni xxfast

repo: xxfast/NYTimes-KMP


text:
🛑 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is down

In 27f4686, 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) ($SECRET_SITE_TW) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🇹🇼 边缘节点-台湾 (EdgeNode-Taiwan) is back up in 2804ce9.


text:
Some error occur with Eltwise

I try to convert vggface2 model to caffe from this page.
from facenet_pytorch import InceptionResnetV1
model = InceptionResnetV1(pretrained='vggface2').eval()
The code like this:
`import torch
from torch.autograd import Variable
from torchvision.models import resnet
import pytorch_to_caffe
from facenet_pytorch import InceptionResnetV1
if name=='main':
name='VGGFace2'
# For a model pretrained on VGGFace2
model = InceptionResnetV1(pretrained='vggface2').eval()
input=torch.ones([1, 3, 512, 512])
pytorch_to_caffe.trans_net(model, input, name)
pytorch_to_caffe.save_prototxt('{}.prototxt'.format(name))
pytorch_to_caffe.save_caffemodel('{}.caffemodel'.format(name))`
And the error occurs:

bn_scale12 was added to layers
repeat_1.0.branch2.2.relu
relu12 was added to layers
140330631542496:relu_blob12 was added to blobs
repeat_1.0
cat1 was added to layers
140330631542816:cat_blob1 was added to blobs
repeat_1.0.conv2d
conv:  cat_blob1
conv13 was added to layers
140330631542736:conv_blob13 was added to blobs
mul1 was added to layers
140330631543136:mul_blob1 was added to blobs
WARNING: CANNOT FOUND blob 140330856145392
Traceback (most recent call last):
File "/home/songdc/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/songdc/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/songdc/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/main.py", line 45, in
cli.main()
File "/home/songdc/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/songdc/.vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("main"))
File "/home/songdc/miniconda3/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/home/songdc/miniconda3/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/home/songdc/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/songdc/Downloads/PytorchToCaffe/VGGFace2_pytorch_2_caffe.py", line 14, in
pytorch_to_caffe.trans_net(model, input, name)
File "/home/songdc/Downloads/PytorchToCaffe/pytorch_to_caffe.py", line 786, in trans_net
out = net.forward(input_var)
File "/home/songdc/miniconda3/lib/python3.7/site-packages/facenet_pytorch/models/inception_resnet_v1.py", line 288, in forward
x = self.repeat_1(x)
File "/home/songdc/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home/songdc/miniconda3/lib/python3.7/site-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/home/songdc/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home/songdc/miniconda3/lib/python3.7/site-packages/facenet_pytorch/models/inception_resnet_v1.py", line 65, in forward
out = out * self.scale + x
File "/home/songdc/Downloads/PytorchToCaffe/pytorch_to_caffe.py", line 583, in _mul
bottom=[log.blobs(input), log.blobs(args[0])], top=top_blobs)
File "/home/songdc/Downloads/PytorchToCaffe/Caffe/layer_param.py", line 33, in init
self.bottom.extend(bottom)
TypeError: None has type NoneType, but expected one of: bytes, unicode

When I check the paras, in self.name=self.param.name=name, the name = mul1, in self.type=self.param.type=type, the type = Eltwise, why does the error occur?
Thank you!

When I run the example resnet_pytorch_2_caffe.py, some error occur.

vgpool
ave_pool1 was added to layers
139698226003392:ave_pool_blob1 was added to blobs
fc
fc1 was added to layers
139698226002672:fc_blob1 was added to blobs
WARNING: CANNOT FOUND blob 139698226003712

It runs to the last layer fc, TypeError: None has type NoneType, but expected one of: bytes, unicode
OS: Ubuntu 16.04
python 3.5
pytorch 1.2
torchvision 0.4

The error occur with code out = out * self.scale + x ， it can not correctly treat '+'.
def forward(self, x):
    x0 = self.branch0(x)
    x1 = self.branch1(x)
    x2 = self.branch2(x)
    out = torch.cat((x0, x1, x2), 1)
    out = self.conv2d(out)
    out = out * self.scale + x
    out = self.relu(out)
    return out

I have solve the error by modify  out = out * self.scale + x to out = x + torch.mul(self.scale, out).

repo: xxradon/PytorchToCaffe


text:
Taskfile

Description

This PR:

Adds a Taskfile to make it easier to build clp_ffi_py
Refactors the docs Taskfile so that it can be called from the main Taskfile.
Applies our latest guidelines for Taskfiles to the docs tasks.

NOTE: This PR requires task v3.35.1 for the latest bug fixes.
Validation performed

Validated building each artifact from a clean state:
task clean && task
task clean && task wheel
task clean && task docs:site

Validated repeated builds of each artifact-generating task did not result in the artifact being regenerated:
task clean && task wheel && task wheel
task clean && task docs:site && task docs:site

Validated that after running task docs:site, changing any of the following files triggered a rebuild of just the docs:

docs/conf/conf.py
docs/src/index.md
docs/tasks.yml

Validated that after running task wheel, changing any of the following triggered a rebuild of the wheel:

clp_ffi_py/__init__.py
src/clp (the version of the clp submodule)
src/clp_ffi_py/error_messages.hpp
Taskfile.yml

Validated that after running task docs:site, changing any of the following files from the previous step triggered a rebuild of the wheel and the docs.

Validated task clean && task docs:serve built and served the site.

Workflow failures unrelated to the present PR. They'll be addressed in another PR.

Title: ?
Add a main `Taskfile` to make it easier to build clp_ffi_py; Refactor the docs `Taskfile` to make it callable by the main Taskfile. (#46)

It seems we do not checksum all build/dist artifacts. e.g.,

I did intentionally leave out the .tar.gz, but that is probably not a good idea since the .tar.gz can be used to build the package from source. Added the .tar.gz.

In fact, hashing of the *.whl file does not seem correctly handled.

Huh, strange. I would've expected task to checksum the file properly by itself. Anyway, switched to the explicit md5 checksum.

authors: junhaoliao kirkrodrigues

repo: y-scope/clp-ffi-py


text:
Recommendations are not ordered properly

Recommendations are not ordered properly
e.g.
bg-* classes should be sorted first

The order of completion items is based on the value sortText returned by language server.
I don't know if you can change the behavior you expect in the coc.nvim itself, e.g. in the settings, but try to find the settings.
        {
            "label": "border-gray-50",
            "kind": 16,
            "documentation": "rgb(249, 250, 251)",
            "sortText": "00003537",
            "data": {
                "projectKey": "{\"folder\":\"/Users/yaegassy/_Dev/vim/check-coc-extension/tailwindcss-check\"}",
                "originalData": [
                    "border-gray-50"
                ]
            },
            "textEdit": {
                "newText": "border-gray-50",
                "range": {
                    "start": {
                        "line": 10,
                        "character": 16
                    },
                    "end": {
                        "line": 10,
                        "character": 17
                    }
                }
            }
        },
  // ...snip
        {
            "label": "bg-inherit",
            "kind": 21,
            "documentation": null,
            "sortText": "00005112",
            "data": {
                "projectKey": "{\"folder\":\"/Users/yaegassy/_Dev/vim/check-coc-extension/tailwindcss-check\"}",
                "originalData": [
                    "bg-inherit"
                ]
            },
            "textEdit": {
                "newText": "bg-inherit",
                "range": {
                    "start": {
                        "line": 10,
                        "character": 16
                    },
                    "end": {
                        "line": 10,
                        "character": 16
                    }
                }
            }
        },
`

We have no plans to add custom sorting to coc-tailwindcss3 at this time, so we will be closing this issue. It may be worthwhile to submit a feature request to the language server itself.

authors: IBugraGezer yaegassy


text:
Refatorization of App.java

Logic is unchanged to previous version. I have hope that this version is a little easier to read.

CLA is valid!

Thanks. I will merge your request once I get time to test the changes.

Merged. Also identified one bug inside method shutdown.

authors: kaching88 xrao yahoocla


text:
Tablemanager "Datenergebnis editieren" ausblendbar machen

Es gibt keine Möglichkeit, den Button "Datenergebnis editieren" oberhalb der Listenansicht einer Tabelle für Redakteure auszublenden. Ich hatte gerade den Fall, dass ein Redakteur den gesamten Datenbestand geschreddert hat. Ich fände eine Checkbox gut, die den Button an/ausschaltet - Default aus.

Feature Massenbearbeitung an der Tabelle deaktivieren müsste reichen, oder nicht? (Hatten es doch schon in Slack davon). Vielleicht sollte man den Button "Datenergebnis editieren" auch anders bezeichnen, denn ein Kunde von mir hat auch schon aus 100 Personen in einer Tabelle 100 Müllers gemacht ;)

An der Tabelle im Table Manager, dort, wo du auch Import/Export und Suchfunktion anhaken kannst.

Wo?

Du hast recht, ich habe mich getäuscht. Massenlöschung blendet nur den Button "löschen" am Datenergebnis aus. Bearbeiten ist aber genauso gefährlich...
Dann schließ ich mich mal deinem Issue an.

Ich auch! Kunde hat 5000 Datensätze zersägt!

authors: IngoWinter alexplusde tyrant88


text:
Auto redirect

Beim verschieben oder umbenennen eines Artikels können automatisch 301er Redirects erstellt werden.
Die Konfiguration wurde erweitert, sodass pro Domain festgelegt werden kann ob automatische Redirects angelegt werden sollen oder nicht. Optional kann die Dauer angegeben werden, für die die Redirects aktiv sind.

kannst du wegen der conflicts schauen ? .. dann +bernehme ich das gerne. Entschuldige das späte reagieren.

ping

ping

Mega coole Erweiterung Wolfgang! Ich freue mich darauf, wenn sie endlich online ist. Baue das gerade bei mir ein und bin am Testen. Hier das Ergebnis:

In der lib/de_de.lang gibt es bei der Übersetzung "yrewrite_auto_redirect" einen Schreibfehler: bei "augeschaltet" fehlt das "s" von "aus...". @dtpop: Wolfgang, da habe ich dir einen Pull Request in deinen Branch gemacht.
Die Anpassungen an die update.php Datei fehlen. @dtpop: Wolfgang, da habe ich dir einen Pull Request in deinen Branch gemacht.
Wenn im Feld "Anzahl Tage, bis automatische Redirects inaktiv gesetzt werden." eine 0 eingetragen wird, wird kein automatischer Redirect angelegt.
Das Feld expiry_date hat bei mir immer den Standardwert '0000-00-00'.
Alte, schon vor der Änderung erstellte redirects funktionieren nicht mehr. Spannend ist, dass meine Domain die ID 1 hat, bei neuen Redirects in der Spalte domain_id den Wert 11 eingetragen bekommen. Nur wenn ich die alten Redirects auf den Wert 11 ändere, funktionieren sie!?
Wenn eine URL angepasst wird, wird korrekt eine Weiterleitung eingerichtet. Wenn danach die Änderung rückgängig gemacht wird gibt es 2 Weiterleitungen in der Weiterleitungsliste. Der veraltete Eintrag wird nicht korrekt entfernt.

Wolfgang, Grüße an dich von deinem Lörracher Nachfolger ;-)

Meinen vorherigen Kommentar musste ich anpassen, da ich einen Übertragungsfehler gemacht hatte. Sorry!

Noch ein paar Tests:

Beim Löschen eines Artikels gibt es einen Fatal Error. Hier der Fix mitsamt Pull Request in @dtpop deinen Branch: https://github.com/dtpop/redaxo_yrewrite/pull/4.
Beim Löschen einen Artikels werden die Weiterleitungen nicht gelöscht, sondern für den Fall dass es mehrere Sprachen gibt sogar noch Weiterleitungen angelegt.

Nachtrag: alle von mir gemeldeten Bugs sind mit Pull Requests an @dtpop gefixt. Alles SEHR gründlich getestet.

Sobald das Wolfgang übernommen hat, übernehme ich das auch .. habe ihn schon angeschrieben - ist wohl unterwegs.

Danke Wolfgang!

Danke Euch :)

Vielen Dank an alle Beteiligten! Ein Traum wird wahr :-)

authors: TobiasKrais alexwenz dergel dtpop skerbis


text:
test(useResizeObserver): enhance test coverage

Closes #1054
Description
This teste is that useResizeOver returns rect correctly when used on a component with useResizeOver's ref.
Additional Information
Since global.ResizeObserver is mock, I confirmed that Rect refers to the value of ResizeObserverEntry.contentRect

I'll send out the PR again because the difference has become too large.

repo: yamada-ui/yamada-ui


text:
Update package.yaml

When using stack install, the library field is causing this error Error while parsing $.library.dependencies - expected Array, Object, or String, encountered Null

issue #20

authors: CedricLeong p-alik

repo: yamadapc/hpack-convert


text:
Multigraph?

is it possible to change the main Dijkstra algorithm to search multigraphs? Most probably yes, but what are the changes required because the edges are added to a HashMap?

You can insert auxiliary nodes yourself, connected by a zero-cost edge.
A -----> B
 \______/

Becomes:
A ---> A1 ---> B
\             /
 \---> A2 ---/

Where the edges from A to A1 and from A to A2 have zero cost. The other edges have the same cost as before.

repo: yan-qi/k-shortest-paths-java-version


text:
Parsing additional Swift 4 features

This pull request addresses few issues that are related to Swift 4 changes which are unfortunately missed during initial implementations.
Fixes #69
Fixes #70
Fixes #71
Fixes #72

Codecov Report

Merging #73 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage    96.2%   96.22%   +0.01%
==========================================
  Files         149      149
  Lines       10626    10734     +108
  Branches      787      792       +5
==========================================
+ Hits        10223    10329     +106
- Misses        384      386       +2
  Partials       19       19

authors: codecov-io ryuichis

repo: yanagiba/swift-ast


text:
Distributed DDL ALTERs not working on ReplicatedMergeTree?

(version 1.1.54358)
Are ALTER queries on ReplicatedMergeTree not supported via distributed DDL?
When I try to do something like this on a ReplicatedMergeTree
alter table x on cluster y drop partition z;

(or if I try to add a column)
I end up with the error (on all nodes)

trying: Table logs_shard is replicated, but shard #9 isn't replicated according to its cluster definition

However, everything appears to be setup correctly - all the data are correctly replicated and queries are working fine, so I don't know what is wrong in this case.
<shard>
    <replica>
        <host>NODE1</host>
        <port>9000</port>
        <user>user</user>
        <password>password</password>
    </replica>
    <replica>
        <host>NODE2</host>
        <port>9000</port>
        <user>user</user>
        <password>password</password>
    </replica>
</shard>

    <yandex>
        <macros>
            <shard>04</shard>
            <replica>NODE1</replica>
        </macros>
    </yandex>
...
    <yandex>
        <macros>
            <shard>04</shard>
            <replica>NODE2</replica>
        </macros>
    </yandex>

And the DDL looks something like
CREATE TABLE db1.table_shard on cluster cluster (
date Date,
site String,
value Float64)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/db1/table_shard/{shard}/', '{replica}')
PARTITION BY toString(date)
ORDER BY (date, site) SETTINGS index_granularity = 8192

You should add <internal_replication>true</internal_replication> to the cluster definition. Like that:
https://github.com/yandex/ClickHouse/blob/bf1c4d156a72f915a78428dbc8c5493eaba67db2/dbms/tests/integration/test_distributed_ddl/configs/config.d/clusters.xml#L7

@ludv1x Thanks for the reply! So now I get a different error, but only on some nodes...

Code: 164, e.displayText() = DB::Exception: Received from XXXXXXXX:9000, 10.110.208.170. DB::Exception: Cannot execute query in readonly mode., e.what() = DB::Exception

Which is odd as I am logged in as a user with admin permissions

Didn't you see also the following message?
https://github.com/yandex/ClickHouse/blob/08170d0d779b12eff05777e12f3d6b086e54ae02/dbms/src/Interpreters/DDLWorker.cpp#L239
Check that part of your config.xml and your profile:
    <distributed_ddl>
        <!-- Path in ZooKeeper to queue with DDL queries -->
        <path>/clickhouse/task_queue/ddl</path>

        <!-- Settings from this profile will be used to execute DDL queries -->
        <!-- <profile>default</profile> -->
    </distributed_ddl>

My config.xml looks like that already.
I did not see that message - some nodes gave the "Cannot execute query in readonly mode" - others did not (it looked successful).
My default user is read-only and I set the admin username and password in <remote_servers> I am logged in via the admin user when I run the command. Could this be fixed in #2202?

authors: filimonov jpiper ludv1x

repo: yandex/ClickHouse


text:
All statements in "case" are executed

83b6f0483a5c :) select case when mycol like '%-%-%' then toDate(mycol) else toDate('2000-01-01') end from (select 'error' as mycol from system.numbers limit 10);
SELECT multiIf(mycol LIKE '%-%-%', toDate(mycol), toDate('2000-01-01'))
FROM
(
SELECT 'error' AS mycol
FROM system.numbers
LIMIT 10
)
Received exception from server (version 1.1.54380):
Code: 33. DB::Exception: Received from localhost:9000, ::1. DB::Exception: Cannot read all data.
0 rows in set. Elapsed: 0.067 sec.

It looks like the above query will still try to evaluate toDate(mycol) even if its "when" condition is not matched. Same happens when the query is formulated with a plain "if". This on ClickHouse 1.1.54380.
Cheers

Duplicate: #1562 #2385 #1768 #1816
AFAIK the task is taken some time ago, so i hope it will be changed soon.
Workarounds are possible, try function toDateTimeOrZero / parseDateTimeBestEffort

Let's continue tracking that issue in #1562

authors: andrea-s filimonov


text:
Client build on Mac failing with Undefined symbols for architecture x86_64: mainEntryClickHouseODBCBridge

With checkout of stable on macOS Mojave and attempting to  build client only:
cmake .. -DENABLE_CLICKHOUSE_ALL=0 -DENABLE_CLICKHOUSE_CLIENT=1 -DCMAKE_CXX_COMPILER=`which g++-8` -DCMAKE_C_COMPILER=`which gcc-8`

or

cmake .. -DENABLE_CLICKHOUSE_ALL=0 -DENABLE_CLICKHOUSE_CLIENT=1 -DCMAKE_CXX_COMPILER=`which g++-8` -DCMAKE_C_COMPILER=`which gcc-8` -DENABLE_EMBEDDED_COMPILER=0 -DUSE_INTERNAL_LLVM_LIBRARY=0

Build fails at linking with:
[3441/3476] Linking CXX executable dbms/programs/clickhouse
FAILED: dbms/programs/clickhouse
: && /usr/local/bin/ccache /usr/local/bin/g++-8  -fdiagnostics-color=always  -pipe -msse4.1 -msse4.2 -mpopcnt  -fno-omit-frame-pointer  -Wall  -Wnon-virtual-dtor -Wextra -Werror -O2 -g -DNDEBUG -O3  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.13 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openssl/lib dbms/programs/CMakeFiles/clickhouse.dir/main.cpp.o  -o dbms/programs/clickhouse  dbms/libclickhouse_common_io.a dbms/src/Common/StringUtils/libstring_utils.a dbms/programs/client/libclickhouse-client-lib.a dbms/src/Functions/libclickhouse_functions.a libs/consistent-hashing/libconsistent-hashing.a libs/consistent-hashing-sumbur/libconsistent-hashing-sumbur.a contrib/libfarmhash/libfarmhash.a contrib/libmetrohash/libmetrohash.a contrib/murmurhash/libmurmurhash.a contrib/base64-cmake/libbase64.a dbms/src/AggregateFunctions/libclickhouse_aggregate_functions.a dbms/libdbms.a dbms/src/Dictionaries/libclickhouse_dictionaries.a dbms/src/Parsers/libclickhouse_parsers.a dbms/src/Common/Config/libclickhouse_common_config.a dbms/src/Common/ZooKeeper/libclickhouse_common_zookeeper.a dbms/src/Dictionaries/Embedded/libclickhouse_dictionaries_embedded.a dbms/libclickhouse_common_io.a dbms/src/Common/StringUtils/libstring_utils.a libs/libcommon/libcommon.a contrib/cctz-cmake/libcctz.a contrib/boost-cmake/libboost_filesystem_internal.a libs/libmemcpy/libmemcpy.a libs/libwidechar_width/libwidechar_width.a contrib/libcpuid/libcpuid.a contrib/lz4-cmake/liblz4.a contrib/zstd-cmake/libzstd.a contrib/double-conversion/libdouble-conversion.a libs/libpocoext/libpocoext.a contrib/poco/Data/libPocoData.a contrib/re2/libre2.a contrib/re2_st/libre2_st.a contrib/cityhash102/libcityhash.a contrib/boost-cmake/libboost_system_internal.a libs/libcommon/libapple_rt.a contrib/poco/NetSSL_OpenSSL/libPocoNetSSL.a contrib/poco/Util/libPocoUtil.a contrib/poco/XML/libPocoXML.a contrib/poco/JSON/libPocoJSON.a contrib/poco/Crypto/libPocoCrypto.a contrib/libbtrie/libbtrie.a contrib/poco/MongoDB/libPocoMongoDB.a contrib/poco/Net/libPocoNet.a contrib/poco/Foundation/libPocoFoundation.a -ldl contrib/capnproto/c++/src/capnp/libcapnpc.a contrib/capnproto/c++/src/capnp/libcapnp.a contrib/capnproto/c++/src/kj/libkj.a -lpthread contrib/librdkafka-cmake/librdkafka.a contrib/zlib-ng/libz.a contrib/ssl/ssl/libssl.a contrib/ssl/crypto/libcrypto.a /usr/local/opt/readline/lib/libreadline.a /usr/lib/libtermcap.dylib contrib/boost-cmake/libboost_program_options_internal.a && :
Undefined symbols for architecture x86_64:
  "mainEntryClickHouseODBCBridge(int, char**)", referenced from:
      (anonymous namespace)::clickhouse_applications in main.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

passing -DENABLE_ODBC_BRIDGE=0 seems to have no effect.

d9bc934b7d808878f06e37ed80c17d6efeca86f3

Relates #235

authors: filimonov kmatt proller


text:
Dependabot config

https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates

Peer PR for ch-backup repo: https://github.com/yandex/ch-backup/pull/117

Tip: For package managers such as pipenv and poetry, you need to use the pip YAML value. For example, if you use poetry to manage your Python dependencies and want Dependabot to monitor your dependency manifest file for new versions, use package-ecosystem: "pip" in your dependabot.yml file.

https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem

authors: Alex-Burmak aalexfvk

repo: yandex/ch-tools


text:
Is there any way to provide IN clause?

Didn't find any way to put a list for IN clause.
where id in (?)
Driver always accepts list as array and result is always where id in ([1,2,3])

Fixed in https://github.com/blynkkk/clickhouse4j

repo: yandex/clickhouse-jdbc


text:
🛑 Google is down

In 82a0729, Google (https://google.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Google is back up in d6e1a3e.

repo: yangchuansheng/upptime


text:
🛑 Google is down

In 377625a, Google (https://google.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Google is back up in cc0bafb after 6 minutes.


text:
🛑 gcr.io Mirror is down

In c8788ce, gcr.io Mirror (https://gcr.icloudnative.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: gcr.io Mirror is back up in 3f0d9e3.


text:
无法下载'com.github.yangjie10930:EpMedia:v0.9.5'

大佬有空看看

检查下网络？

maven { url 'https://jitpack.io' } 加上了吗

谢谢关心，是我的AS昨天发烧了，今天卸载重装Ok。

Failed to resolve: com.github.yangjie10930:EpMedia:v0.9.5

遇到同样问题了，尝试了很多办法都不行


text:
💰 define to use arrowsquid and update final price

kek

cc @yangwao

repo: yangwao/Grants-Program


text:
polygon点拖拽后path数据没有更新

使用版本
请填写使用版本：2.0.3
问题描述
目前我通过v-for实现动态添加el-amap-polygon，但是遇到一个新问题，在地图中编辑了之后，data里的path并没有更新

如图，经过拖拽，地图中有5个点，但是polygon中path只有四个点（还是初始值），并没有更新，
ps：想通过getPath手动修改path值，之前我用原生高德地图的时候有个方法getPath，但是在这个组件库封装了之后不知道在哪里使用getPath

如果是编辑的时候path问题的话，vue3可以给path加v-model，不然就是通过组件的$$getInstance获取原生对象再获取路径

我获取了原生对象，打印了路径，但是原生对象的path并没有更新，如下图，我新增了一个点，函数pointUpdate被调用，打印了原生对象的path，但是只有四个点

如果是编辑的时候path问题的话，vue3可以给path加v-model，不然就是通过组件的$$getInstance获取原生对象再获取路径

在界面中对el-amap-polygon中点的编辑并没有引起path值的改变

问题已解决，在地图中修改了点之后path没有更新，但是可以通过e.target.getPath()可以获取到经纬度，再将对应的经纬度输入到path中

authors: bleemyoung yangyanggu

repo: yangyanggu/vue-amap


text:
Value {"checkAttributes":true,"indentLogicalExpressions":true} should NOT have additional properties.

Error:
Configuration for rule "react/jsx-indent" is invalid:
	Value {"checkAttributes":true,"indentLogicalExpressions":true} should NOT have additional properties.

Configuration copied from .eslintrc.yml:
rules:
  react/jsx-indent:
    - error
    - 4
    - checkAttributes: true
      indentLogicalExpressions: true

Versions copied from package.json:
"eslint": "5.16.0",
"eslint-plugin-react": "7.14.3",

Documentation: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md

Oh and yes, the stack trace could help:
Configuration for rule "react/jsx-indent" is invalid:
	Value {"checkAttributes":true,"indentLogicalExpressions":true} should NOT have additional properties.

    at validateRuleOptions (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-validator.js:133:19)
    at Object.keys.forEach.id (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-validator.js:176:9)
    at Array.forEach (<anonymous>)
    at validateRules (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-validator.js:175:30)
    at Object.validate (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-validator.js:262:5)
    at loadFromDisk (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-file.js:544:19)
    at Object.load (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config\config-file.js:587:20)
    at Config.getLocalConfigHierarchy (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config.js:240:44)
    at Config.getConfigHierarchy (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config.js:192:43)
    at Config.getConfigVector (A:\Dev\Proj\EstCare\front\node_modules\eslint\lib\config.js:299:21)

The stack trace could help:
Configuration for rule "react/jsx-indent" is invalid:
	Value {"checkAttributes":true,"indentLogicalExpressions":true} should NOT have additional properties.

    at validateRuleOptions (<path-to-proj>\node_modules\eslint\lib\config\config-validator.js:133:19)
    at Object.keys.forEach.id (<path-to-proj>\node_modules\eslint\lib\config\config-validator.js:176:9)
    at Array.forEach (<anonymous>)
    at validateRules (<path-to-proj>\node_modules\eslint\lib\config\config-validator.js:175:30)
    at Object.validate (<path-to-proj>\node_modules\eslint\lib\config\config-validator.js:262:5)
    at loadFromDisk (<path-to-proj>\node_modules\eslint\lib\config\config-file.js:544:19)
    at Object.load (<path-to-proj>\node_modules\eslint\lib\config\config-file.js:587:20)
    at Config.getLocalConfigHierarchy (<path-to-proj>\node_modules\eslint\lib\config.js:240:44)
    at Config.getConfigHierarchy (<path-to-proj>\node_modules\eslint\lib\config.js:192:43)
    at Config.getConfigVector (<path-to-proj>\node_modules\eslint\lib\config.js:299:21)

It seems it does not like the indentLogicalExpressions property. Without it there is no error.

I'm not really sure - that option is definitely in v7.14.3.
Can you try with a normal .eslintrc file instead of a yaml config?

I got this same error when using a normal .eslintrc file as well.

Can you share the contents of that one? :-) reading yaml is tricky.

Same here with "react/jsx-filename-extension": [1, { allow: "as-needed" }], per the documentation https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md#allow-default-always
> pname@0.1.0 eslint /Users/me/www/pname
> eslint . --ext .js,.jsx,.ts,.tsx

Oops! Something went wrong! :(

ESLint: 7.9.0

Error: .eslintrc.js:
	Configuration for rule "react/jsx-filename-extension" is invalid:
	Value {"allow":"as-needed"} should NOT have additional properties.

    at validateRuleOptions (/Users/me/www/pname/node_modules/eslint/lib/shared/config-validator.js:144:19)
    at /Users/me/www/pname/node_modules/eslint/lib/shared/config-validator.js:199:9
    at Array.forEach (<anonymous>)
    at validateRules (/Users/me/www/pname/node_modules/eslint/lib/shared/config-validator.js:196:30)
    at validateConfigArray (/Users/me/www/pname/node_modules/eslint/lib/shared/config-validator.js:324:9)
    at CascadingConfigArrayFactory._finalizeConfigArray (/Users/me/www/pname/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:476:13)
    at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/me/www/pname/node_modules/eslint/lib/cli-engine/cascading-config-array-factory.js:287:21)
    at FileEnumerator._iterateFilesRecursive (/Users/me/www/pname/node_modules/eslint/lib/cli-engine/file-enumerator.js:431:49)
    at _iterateFilesRecursive.next (<anonymous>)
    at FileEnumerator.iterateFiles (/Users/me/www/pname/node_modules/eslint/lib/cli-engine/file-enumerator.js:287:49)

@asumaran that's because that change hasn't been released yet. View the docs on the tag matching the version of the plugin you're using instead. Here's the latest: https://github.com/yannickcr/eslint-plugin-react/blob/v7.20.6/docs/rules/jsx-filename-extension.md
(Same applies to https://github.com/yannickcr/eslint-plugin-react/blob/v7.14.3/docs/rules/jsx-indent.md as in the OP, altho the config is supported in that version, so I'll leave the issue open)

authors: anddero asumaran dcholth ljharb

repo: yannickcr/eslint-plugin-react


text:
Could not auto fix react/jsx-indent problem

144:17  error    Expected indentation of 14 space characters but found 16  react/jsx-indent
code:
            <Breadcrumb.Item>
                <Link to="/">山西省</Link>
            </Breadcrumb.Item>

and: .eslintrc
{
  "extends": "eslint-config-airbnb",
  "parser": "babel-eslint",
  "rules": {
    "spaced-comment": [1],
    "no-unused-vars": [1],
    "no-empty": [1],
    "react/wrap-multilines": [1],
    "react/no-multi-comp": [1],
    "no-constant-condition": [1],
    "react/jsx-no-bind": [1],
    "react/prop-types": [1],
    "arrow-body-style": [0],
    "react/prefer-stateless-function": [1],
    "semi": [1],
    "no-param-reassign": 0,
  },
  "ecmaFeatures": {
    "experimentalObjectRestSpread": true
  }
}

package.json:
  "scripts": {
    "lint": "eslint --ext .js,.jsx src",
    "lintf": "eslint --ext .js,.jsx src --fix",
  }

All package related to eslint in devDependencies in package.json:
    "eslint": "^2.7.0",
    "eslint-config-airbnb": "^9.0.1",
    "eslint-plugin-import": "^1.8.1",
    "eslint-plugin-jsx-a11y": "^1.3.0",
    "eslint-plugin-react": "^5.1.1",

After running npm run lintf, the error shows and the code stays the same. --fix dit not auto fix react/jsx-indent.
Any Ideas?

Most rules in general don't have autofixers, so that's not a surprise.
This seems like it might be a bug with components referenced off an object (ie, with a dot).

Yes, but in https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md it says that could be fixable

Ah, good point.
@rrandom can you try the same example but use English (specifically, ASCII) text as the element contents? I'm wondering if it's a unicode code point issue (versus code units)

@ljharb Sadly, the same. Could not fix.
import React, { PropTypes } from 'react';

const Routes = ({ history }) => {
  return (
  <div>Hello, world! </div>
  );
};
export default Routes;

even with single file
.\node_modules\.bin\eslint src\routes\index.jsx --fix

  3:19  warning  'history' is defined but never used                     no-unused-vars
  5:3   error    Expected indentation of 4 space characters but found 2  react/jsx-indent

✖ 2 problems (1 error, 1 warning)

It is the jsx-indent-props rule that is fixable, not the jsx-ident rule (yet)

This may be fixed now...

authors: kentcdodds ljharb rrandom yannickcr


text:
Rule proposal: jsx-no-undef-props

This rule enforces that no props have the value undefined. In React, these props will not be passed down to the instance of the component, so just suggest to the user to leave off the prop instead of passing undefined as its value.
Not sure if this is wanted or needed, but I thought it could be useful! Don't be afraid to say you think it's stupid though 😝

This seems like it adds a little value when the prop value is solely the literal undefined - but it wouldn't be able to catch any variables whose contents were undefined, and the conditional case seems like a useful way to conditionally specify a prop.

Yeah that was kind of the point to check for literally undefined - this was more for newcomers to React to say you don't need to pass down an undefined prop that you've maybe defined in propTypes. I can see, also, that this conflicts with #611 which I think is more valuable, anyway.

I don't see how it conflicts with #611 - that's checking for unused propTypes within the same component file, at the definition site, while this one checks for undefined props at the rendering site.
We already have a rule that checks for literal true, so I think it's helpful to have one for literal undefined as well.

Ah you're right I misunderstood - it would only conflict if someone defined a prop in propTypes and then weirdly just passed it down with undefined as a value, but I don't think that's much to worry about. I'll update to just check for the literal undefined.

LGTM

@evcohen this seems like a bad merge - can you force push to the branch and update the PR in-place?

@ljharb what the heck just happened, i rebased against master 😢

@evcohen I think it needs a rebase, NOT a merge, so as to reduce the 56 commits included in this PR to a more manageable number

@ljharb as soon as i get a few mins i will rebase and squash

authors: evcohen ljharb


text:
出现闪退问题， java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.yanzhenjie.nohttp.rest.Request.isCanceled()' on a null object reference

E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-2                                                                      Process: com.niucha.zuoy, PID: 21139                                                                      java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.yanzhenjie.nohttp.rest.Request.isCanceled()' on a null object reference                                                                          at com.yanzhenjie.nohttp.rest.AsyncRequestExecutor$RequestTask.run(AsyncRequestExecutor.java:58)                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)                                                                          at java.lang.Thread.run(Thread.java:818)

看错误应该是你传了一个null request进去。

@yanzhenjie 这个是我的问题，不好意思

authors: richfuns yanzhenjie

repo: yanzhenjie/NoHttp


text:
[ENHANCEMENT] Update all the versions!

Update ember to 2.5.0
Update ember-cli to 2.5.0 (ran ember init)
Remove unused dependencies
Updated to use more es6 style syntax
Fix tests by removing bind-attr

Thanks @seawatts! I left some comments, above. If you can address those, I think we can merge. Probably good for @chrislopresto to have a look too.

Fixed up by https://github.com/yapplabs/ember-wormhole/pull/53

authors: chrislopresto lukemelia seawatts

repo: yapplabs/ember-wormhole


text:
Tried this for 2 days. Sadly if didn't even notify me once

I noticed this app didn't even notify me once when the slots got opened. I subscribed to telegram alerts to know the availability. I received many alerts from telegram and this app didn't pick any of that. It didn't notify me at all.
These are the following steps that  I followed :

Went to https://yashwanthm.github.io/cowin-vaccine-booking/, fed phone number, otp and selected my beneficiary and booking preferences.
Filled the needed details and clicked on track button.
I fed the otp to the app whenever it prompted me to.

May I know if I am doing anything wrong.
On what basis does your app selects the slot while booking

@rrrrravichandra3  You might be stuck with caching issue.
Try changing the tracking mode. There's a check box to toggle this.
Hope this helps.

repo: yashwanthm/cowin-vaccine-booking


text:
iOS Safari表示時のフォントサイズを修正

close https://github.com/yasslab/railsguides.jp_web/issues/1175
画像のように、表のフォントがずれてしまう問題があったので修正しました。

本番環境の方で確認したところ、たしかに表の中の改行によってずれていますね。右と左で別のtableタグなので、CSSで高さを合わせるのは難しいです。
なので、Gemfile
Gemfile.lock	 の
 を削除するなどの対処が必要ですね。
他の表はズレが発生していないので（例：下のリンク）、別のissueで対応するとよいかと考えています。いかがでしょうか？
https://railsguides.jp/getting_started.html#第2のモデルを追加する

他の表はズレが発生していないので（例：下のリンク）、別のissueで対応するとよいかと考えています。

良いと思います🙆♀✨

レビューありがとうございます！マージしますね✅
改行の崩れについてのIssueを作りました→ https://github.com/yasslab/railsguides.jp_web/issues/1178


text:
Change into a proper daemon

This is a fiddly one.
We need to start as root, then fork a child (using the correct daemonisation incantations). The child will then drop privileges and serve on port 53. The parent will remain as root and listen for a SIGCHLD. When it receives a SIGCHLD it performs the cleanup activity that can only be performed by root - for example, iptables changes and /etc/resolv.conf changes.
This is partially implemented.

Now we're using a different mechanism to hook into the dns resolution process, this is no longer a problem, and it is successfully running as the correct user.

repo: yaybu/minidns