text:
Issue with multiple file validation

Hey, I'm having trouble with validating a wtforms.MultipleFileField field.
Creating a form field like so:
not_important = wtforms.MultipleFileField("Multiple file test",[FileRequired("File required"), FileAllowed(['csv'], ".csv file required")]) doesn't really work. After passing one or more files to the respective field, the validation returns "File required" error.
But the multi-dict of request.files shows that all files are read correctly.
Sample:
ImmutableMultiDict([('not_important', <FileStorage: 'Headline_all_test.csv' ('application/vnd.ms-excel')>)]
So basically the issue is - flask requests reads files passed, but the form.validate_on_submit() errors out telling me, that no file has been passed.
BTW - found this fresh SO thread pertaining to the same issue: https://stackoverflow.com/questions/59734277/filerequiredvalidator-doesnt-work-when-using-multiplefilefield-in-my-form

Hi, I am the OP from the StackOverflow question. I had tried this approach which seems to work for now.
`"""
Validation Class for RoomUpload
"""
class MyRoomValidator(object):
def init(self, message=None):
if not message:
message = u"You need to upload the images with the category as well"
self.message = message
def __call__(self, form, field):
    print(len(form.roomImage.data))
    print((form.roomTypeSelect.data))
    if (not form.roomImage.data and  form.roomTypeSelect.data == -1) or(form.roomImage.data and  form.roomTypeSelect.data == -1) or (not form.roomImage.data and  form.roomTypeSelect.data != -1):#check for all possible combinations
        raise ValidationError(self.message)

class RoomUpload(FlaskForm):
"""
This is meant for the sub-form for room details upload
containing the details for room and its subtype
roomImage:Upload the room image
roomTypeSelect:The subcategory for room category

The Form will only be submitted if the images  are uploaded and
the RoomType will be selected
"""
def validate_roomTypeSelect(form, field):#Inline Validator to ensure if default choice is not chosen
   print(field.data)
   if field.data == -1:
        raise ValidationError('Need to Select Room Type')
def validate_roomImage(form,field):
    for roomFile in field.data:
        print(roomFile.filename)
        if  isanImageFile(roomFile.filename) == False:
            raise ValidationError("Error!!! Not an Image File ")
roomImage = MultipleFileField(u"Room",validators=[MyRoomValidator(),FileAllowed],id = "roomImage")
roomTypeSelect= SelectField("Room Type",choices=roomTypes,coerce=int,id="roomTypeSelect")
roomSubmit = SubmitField("Upload the images  of the room")`

and associated with this function route:
@app.route('/upload_room_image',methods=['GET','POST']) def upload_room_image():     roomupload = RoomUpload()     if request.method == 'POST' and roomupload.validate():         saveImageWithSubCategory(roomupload,roomupload.roomImage)         return (redirect(url_for("upload_image")))#redirect to upload sucess page, request.url is temporary make a sucess.html     else:         return(roomupload.errors)

I think there is already an issue #337 about this problem and also a PR #338 by @greyli to solve this, but some how hasn't been merged yet. 😢

I'm having the same issue, any work around?

I'm having the same issue, any work around?

I think you can create your own field and validation by copy the code from PR #338.

I will try to implement what David recommended late this month as an alternative to #338.

I've uploaded validators for the wtforms.fields.MultipleFileField on my Github: https://github.com/damianpawlikowski/flaskwtf-boost. I may add it as PyPI tomorrow if there will be an interest.
Validators:
flaskwtf_boost.validators.FilesRequired
Allows you to set minimum and maximum count of required files, and forcing required param on the field if necessary.
flaskwtf_boost.validators.FilesAllowed
Same as flask_wtf.file.FileAllowed - works for list of an extensions and UploadSet(Note: use pip install Flask-Reuploaded or there may be an issues).
flaskwtf_boost.validators.FilesSize
Allows you to set minimum and maximum size for an independent file and minimum, maximum total size for an all uploads.
I've used it in the project sometime ago. You may just copy flaskwtf_boost.validators.py file somewhere in your project, for examples to the utils.py and import them and it should work.
Damian

@greyli Glad to here any progress in the future. Hope you are doing well. Now I just copy your old code and create my own field and validation as suggested by @HenriqueLin .

We really need this feature in flask wtforms, Any updates as to potentially when this could be updated please?
@greyli  @HenriqueLin @robscott95

Fix released in v1.2.0

authors: HenriqueLin anshumankmr azmeuk damianpawlikowski greyli iROCKBUNNY khanfarhan10 robscott95 snunzi

repo: wtforms/flask-wtf


text:
Data not visible / horizontal cut

GUI

horizontal scrollbar added

source: gharchive/issue

repo: wttech/gradle-config-plugin

license_type: permissive

license_source: github-api


text:
Clarification needed on subgraph naming and labeling for different environments

Hi,
I am currently playing with the federated graph system and trying to understand how to organize multiple projects and environments.
From the documentation, I understand you can have multiple subgraphs with different environments (dev or prod), but it is not working as I expected.
Scenario:
I have a Federated Graph called Animal with two subgraphs (Cat and Dog). Both of these subgraphs are labeled env=development and I want to promote these in a production environment.
Issue:
I attempted to create a new Federated Graph named Animal-Prod labeled env=production. However, I encountered an issue where I couldn't create subgraphs under Animal-Prod with the same names (Cat and Dog) but with the label env=production.
Questions:

Is it a system constraint that prevents creating subgraphs with the same name across different federated graphs, even if they have distinct labels? is the intention to have Cat-dev and Cat-prod
What is the recommended approach for promoting subgraphs from a development environment to production, ensuring that both versions coexist?

Any guidance or clarification on this would be greatly appreciated.

Hello @oerhahon.

You are correct as in we check that subgraphs have a unique name despite having different labels. Since we work with labels which canbe anything given the context we do not have a concept of promoting a graph.
Since you want both versions to coexist, the recommended approach would be to have subgraphs with different names and labels.

Thanks for the clarification.

authors: oerhahon thisisnithin

repo: wundergraph/cosmo


text:
🐛 [GitPod] Network error in graphiql when trying to load schema

Bug description

How to reproduce

https://gitpod.io/#https://github.com/wundergraph/wundergraph
go to gitpod /app/main/graphql
try to open the docs explorer

Expected behavior
docs explorer should show the schema
WunderGraph information
https://gitpod.io/#https://github.com/wundergraph/wundergraph
Environment & setup
https://gitpod.io/#https://github.com/wundergraph/wundergraph
WunderCtl Version
https://gitpod.io/#https://github.com/wundergraph/wundergraph

@hinogi, please retry. The examples have been involved a lot. It works on my end.

authors: StarpTech hinogi

repo: wundergraph/wundergraph


text:
fix: produce JSONPatch patches with removals in the right order

Add a small wrapper around github.com/mattbaird/jsonpatch which fixes
the removal order by sorting consecutive remove operations

Motivation and Context
This caused a problem every time a live query deleted multiple entries at the end
of the list at the same time.

Marketing Changelog
Live Queries now work with bulk deletions

Checklist

[ ] run make test
[ ] PR title must follow conventional-commit-standard
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added
[ ] commit message and code follows the Code of conduct

Would it not make sense to fork the upstream, provide a fix, and use our fork until it's merged?

Would it not make sense to fork the upstream, provide a fix, and use our fork until it's merged? I think someone mentioned it already: mattbaird/jsonpatch#30
So we can open a PR and help them improve their lib.

As discussed, we've added integration tests and replaced the library with another one.

source: gharchive/pull-request

authors: fiam jensneuse


text:
需要升级七牛云OSS，并迁移现有数据

RT，gitee图床已经做了 防盗链，pity需要自己的图床/oss。

已迁移，但历史数据暂时没时间弄了。

repo: wuranxu/pity


text:
美的美居设备无法添加成功 | Can't get available token for this device

HA版本
No response
集成版本
0.5.5
之前可正常使用的集成版本
None
设备类型及型号
None
使用的App
美的美居
问题详细描述
说明
问题现象： 从用户角度来看， 有的设备能够添加成功，而有的设备却无法添加成功
目前大量使用美的美居的设备无法在当前midea_ac_lan中添加成功，github也存在大量此类重复的issue/bug，为了方便跟踪这个问题，同时说明当前问题原因及状态，单独创建一个新的issue，来统一跟踪此问题，同时，关闭其他此类重复的issue，避免影响其他问题。
问题背景
目前看应该主要是美的美居app中添加的新设备存在此问题，海外使用msmart app的设备应该暂时无此问题。如有非此情况的，也可以说明，感谢
无法添加的一些原因

无法添加的设备，均使用美的v3通讯协议，也只有v3协议的设备才需要token，例如旧的v2协议的设备是不需要token的。
发现设备时，仅做了设备类型探测，而不会去实际控制设备，因此检测显示设备是【支持】，但是真正去添加设备时，需要使用一个【有效的token】去连接设备并控制设备，而目前却不能获取到这个真正能够控制设备的【有效的token】，所以就只能禁止添加设备了。
当前midea_ac_lan中使用的是局域网控制设备的方案，基于Midea IoT设备的v1 API来实现，而[美的美居]目前使用的是v2 API，并且通过云端来控制设备，而不是局域网控制方案。
被控制的美的IoT设备正常应该是既能通过局域网控制，也能通过云端控制，但是美的美居相关v1 API功能不可用，都使用v2 api走云端控制。
以上信息可能也并不完全准确，也可能是美的新款设备的v1 api相关的token获取方式修改或者调整了，但是问题的根源还是没有一个可以控制设备的有效token，没有这个有效的token是无法通过局域网来控制设备的。
受影响的可能主要是一些新款的设备和型号，后续可能会越来越多。

错误的操作

大量无法添加成功的用户，强行将自己v3协议的IoT设备降级为midea_ac_lan的旧版本，手工修改为v2协议，尝试强制添加该设备，认为设备添加成功就可以控制和使用，然而在使用v2协议添加成功以后，再到github来给我们报各种issue和bug，浪费双方的大量debug时间和精力，这是不可能成功控制设备的。因此新版midea_ac_lan添加设备时会强制校验设备协议和实际选择的协议，直接禁止此类手工修改v3设备为v2协议来添加的错误行为。如果设备使用的是v3协议，禁止使用v2协议去添加，因为这样是不会有任何效果的。就好比一个人在讲英语，你非要用中文和他沟通。

可能的解决方案

尝试通过个人开发者名义联系美的官方，美的答复不提供个人开发者支持，仅接受企业对企业形式的二次开发和技术支持。
v2 API必须通过美的官方，需要申请license以及授权，才能使用，因此并不能像v1 API来自由使用
或者有其他兼容v1 API的方案，目前暂未有此类信息或渠道
其他问题的可能原因讨论或分析，可以通过Discord Chat群组聊天来在线快速沟通，或者通过当前issue跟踪

重复issue处理
由于目前暂时还不能很好的解决问题，但是github存在大量类似的issue，因此，统一将此类issue关闭，duplicate到这个汇总后的issue，方便统一管理和维护issue，同时不影响其他非token问题的issue跟踪和处理。
同时，已经被close的issue，您也可以继续在之前提交的issue上面发送新的update或消息，仍然会收到提醒的，只不过不会显示在open的issue列表里面而已
其他可能的问题原因分析
从开发者角度：目前从软件层面，无法确认该问题的具体原因，因为API未公开
可能的原因更多还是设备的硬件模块或软件功能确实是存在差异的， 例如：

拆解IoT设备硬件，确认对应的硬件控制模块信息，确认设备硬件信息是否存在差异
如果硬件无差异，可能是考虑软件版本的差异，例如软件升级等等，或者说软件降级到旧版固件来解决，但是这些目前都尚未有明确的信息和环境来对比验证。
以上操作，都需要有足够强大的实际动手能力和操作能力，如果有条件的用户或开发者，可以通过Discord Chat群组聊天来在线沟通
美的美居app使用MIMT抓包方案也尝试过，客户端有加密，设备控制功能会不可用，旧版未尝试，但是美居使用的是v2 api，所以可能不一定有意义
欢迎Github大佬们提供其他思路或者可能的解决方案，或者有美的官方开发者渠道的，也可以提供协助和支持，感谢。

The logs
No response

设备型号是否支持是怎么判断的，比如想买一个美的的洗衣机，但不确定是否支持。

不知道通过微信抓包的方式是否可行，我的海尔热水器是通过电脑端微信小程序抓包实现的，由于不是技术专家，暂时没有能力实现，只是简单提供思路

midea Bathroom Master y5w，无法添加进midea ac lan，其他的设备都没有问题。

能不能直接利用美的美居从云端控制呢？

Hello, is there anything we can do to help with this issue? Just got a new front loader washer, but I'm getting this error, using the SmartHome app...

能不能直接利用美的美居从云端控制呢？

这个原则上是可以的，实际可能和当前的模式有点不一样，因为当前的控制协议都是走局域网，所以，即使直接走云端，可能也是需要单独做，另外，云端的token之类也可能面临类似问题，美的服务器正常会验证当前的app客户端.

Hello, is there anything we can do to help with this issue? Just got a new front loader washer, but I'm getting this error, using the SmartHome app...

most of the current issue is meijucloud and not smarthome.
could you help to submit a new issue with the detail debug log?
then we can check and confirm it.

Hello, is there anything we can do to help with this issue? Just got a new front loader washer, but I'm getting this error, using the SmartHome app...

most of the current issue is meijucloud and not smarthome.
could you help to submit a new issue with the detail debug log? then we can check and confirm it.

Hi, thanks for the suggestion! I have open the issue #395 and attached the logs.

直接挂国外的节点就可以登录了

直接挂国外的节点就可以登录了

理想很美好，但现实并非如此。
因为代码里很早就是这么干的，但是只有部分设备在海外服务器可以获取，并非所有设备都有海外版，所以这些压根不在海外销售的设备，相关数据在海外服务器是根本获取不到的。

我的是用着好好的 突然不能用了 难道是因为更新了美居 app 么

authors: Haaooo lynnliuy pizh-github redhatme songyang-cmd sunnoy viny182 wuwentao

license: MIT


text:
Great Package

Hey Wouter,
great package, glad I found this.
I'm working on something similar, actually mapping all properties to the specific SnakType.
Let's get in touch.
https://t.me/martinwi22
Martin

Hello,
Thanks for the prase.
I have a similar project that is aimed at using the wiki data properties.
https://github.com/wvanderp/wikidata-properties
You can use it as inspiration or as is.
-wvdp

authors: mshd wvanderp

repo: wvanderp/iwf


text:
Query for updating resource

Is it possible to use a Query for updating a resource?
We use one type of resource with multiple endpoints.
I'm using a subclassed Router. However there's no real way of identifying which type of request we wish to achieve within URLForResourceType as only ResourceType is passed.

URLForQuery constructs a url with the given resource url. I don't see why it shouldn't be possible to construct a url from a resource.URL for POST request as well as a PATCH

Could you explain your use case for this? Also, what do you mean with "I don't see why it shouldn't be possible to construct a url from a resource.URL for POST request as well as a PATCH"?

Hey @wvteijlingen thanks for response.
Here's some logic from Operation.

private func updateResource() {
	let URL: NSURL
	let method: String
	let options: SerializationOptions

	if isNewResource {
		URL = router.URLForResourceType(resource.resourceType)
		method = "POST"
		options = [.IncludeToOne, .IncludeToMany]
	} else {
		URL = router.URLForQuery(Query(resource: resource))
		method = "PATCH"
		options = [.IncludeID]
	}

    return UIColor(hexString: "#2e3a47")!

If I'm updating an object the URL is generated from URLForQuery which constructs the URL either using the query's url (resource url) or by the routers URLForResourceType.
This is great for being able to specify the endpoint we wish to update the user to, i.e:
updateUser.username = self.usernameView.text
updateUser.URL = NSURL(string: "api/v1/my/user")
SpineSingleton.spine.save(updateUser).onSuccess { (user) in

However we wish to use different endpoint for different POST requests.
As an example currently:
let user = User()
user.email = self.emailValidationView.text
user.password = self.passwordValidationView.text
user.URL = NSURL(string: "api/v1/registrations")
SpineSingleton.spine.save(user).onSuccess { (responseUser) in

if we are signing up with email, or a second option signing up with Facebook auth token:
let user = User()
user.accessToken = token
user.URL = NSURL(string: "api/v1/registrations/facebook")
SpineSingleton.spine.save(user).onSuccess { (user) in

This is a little patch to temporarily I'm using currently:
if isNewResource {
    if let URLString = resource.URL?.absoluteString {
        URL = NSURL(string: URLString, relativeToURL: router.baseURL)!
    } else {
        URL = router.URLForResourceType(resource.resourceType)
    }
    method = "POST"
    options = [.IncludeToOne, .IncludeToMany, .OmitNullValues]
} else {
    URL = router.URLForQuery(Query(resource: resource))
    method = "PATCH"
    options = [.IncludeID, .OmitNullValues]
}

Hmm I see. The problem here is that a Resource's URL property contains the identifying URL for that specific resource instance. So setting user.URL = NSURL(string: "api/v1/registrations") won't work, since that URL is not the URL of the user itself.
The cleanest way to solve this would be to create a Registration resource. We'll need to add better customisation options in the Router for building POST URLs. You can then override those and return api/v1/registrations/facebook where needed.

@wvteijlingen I did attempt to create a Registration resource the issue I then had was the response resource type matches the saved resource type generic. Which isn't so bad if Registration subclasses User. But then it proved to be more complex when updating the user's attributes & saving.

@wvteijlingen what if I were to introduce URLForResource as an alternative or replacement for URLForResourceType?

I think we can add a URLForResource method that returns either the URL property of the given resource if it exists, or uses URLForResourceType to construct a url otherwise.

@wvteijlingen otherwise out of curiosity if I were to go with creating a Registration resource, would it be possible for the callback object to be of the matching type of network request response?:
let registration = Registration()
registration.email = self.emailValidationView.text
registration.password = self.passwordValidationView.text
SpineSingleton.spine.save(registration).onSuccess { (user) in
    if user is User {
        print("Success creating user with id",user.id)
    }

It is my understanding that given the use of BrightFutures, the callback should match the provided generic?
Would it be valid to assume removing the generic would allow for returning different object type?
public func save(resource: Resource) -> Future<Resource, SpineError> {
    let promise = Promise<Resource, SpineError>()

Currently it seems that the assumption is the response is always of the type the save is.
Given my above example of saving a Resource of type Registration, then returns a network response with an object of type users. The ResourceFactory correctly instantiates an object of the response object type, but then the following fails:
SpineSingleton.spine.save(registration).onSuccess { (response) in
    if response is User {
        print("response is User")
    }
    if response is Registration {
        print("response is Registration")
    }

Just FYI. I've made modifications to Operation Failable to allow passing the deserialized resource as the success result & Spine's save() to also pass this to the Promise completion. Let me know if this is something you think should be as part of Spine as an option & I'll create a PR.

Older versions of Spine didn't use generics for returned resources. This allowed the response resource type to differ from the request type. But without the generics, I had to cast every response resource to the correct class. This cluttered the code a lot and it was error prone because it kinda bypasses the Swift type system. So while I get your specific use case I don't feel like removing these generics any time soon.

Understood @wvteijlingen. Perhaps introducing an additional save function which doesn't use generics could be possible. Either that or the ability to use our own operations within our project as mentioned #96 could be a solution. Seems a shame to maintain our own fork to enable us to resolve this issue.

Unfortunately the JSON:API spec is not entirely clear on whether the response type must be the same as the request type. I'm assuming though that it should be, and that this specific case will not happen often. I think a better way to model your API would be to return a Registration that contains a link to the created user.
I don't think this small case justifies extending the API with another save method, sorry.

authors: markst wvteijlingen

repo: wvteijlingen/Spine

license: mit

license_source: bigquery


text:
Unable to set maximumImagescount to 1 in Android

Set to >= 2 is ok, if set to 1, in android, the following error message appears: "Get Picture Error: Cannot call method 'getPictures' of undefined".  My javascript code is as follow:
function MeBtnGetPicture() {
try {
window.imagePicker.getPictures(
function (results) {
for (var i = 0; i < results.length; i++) {
alert('Image URI: ' + results[i]);
}
}, function (error) {
alert('Error: ' + error);
}, {
maximumImagesCount: 1,
width: 100
}
);
} catch (err) {
alert("Get Picture Error:" + err.message);
}
}

Sorry, wrong information!  It can be set to 1.  The real problem is: everytime I build the solution, this function fail at the N + 1 built but succeed at the N + 2 built.

repo: wymsee/cordova-imagePicker


text:
语音识别出错后就卡死了

在唤醒后我没有说话，于是什么都识别不到，然后wukong又说：”刚刚没听清，能再说一遍吗？“我还是没说话，什么也没识别到，就卡死了，无法进入下一轮的唤醒。
错误出现在悟空让我再说一遍后，他还是没有识别到的情况下，才会卡死。
以下是日志：
2023-04-01 10:46:23,132 - robot.Player - Player.py - doPlay - line 110 - INFO - 播放完成：/home/pi/wukong-robot-master/static/beep_hi.wav
2023-04-01 10:46:26,080 - robot.Player - Player.py - playLoop - line 90 - INFO - 开始播放音频：/home/pi/wukong-robot-master/static/beep_lo.wav
2023-04-01 10:46:26,961 - robot.Player - Player.py - doPlay - line 110 - INFO - 播放完成：/home/pi/wukong-robot-master/static/beep_lo.wav
2023-04-01 10:46:27,464 - robot.ASR - ASR.py - transcribe - line 125 - INFO - baidu-asr 语音识别出错了: recognition error.

新的TTS播放子线程和activeMode有冲突。这里先废弃掉activeMode了。主干已修复。

好的，感谢。这样解决也行。

repo: wzpan/wukong-robot


text:
Improved modal detection

Trying to push this view controller onto a navigation stack that's already being presented causes a 'Done' button. This new method only puts on a done button if the FSImageViewerViewController is the only view controller in the navigation stack.

Hi @harlanhaskins,
i think this could lead to problems, if you use a a other presentation style, or?
Best,
Felix

Hi x2on,
I'm not sure the modalPresentationStyle will affect this...
Right now, I'm using FSImageViewerViewController inside a modal that was presented using UIModalPresentationStyleOverCurrentContext.
This only checks to make sure it's the only thing in the navigation hierarchy before presenting the 'Done' button vs. back button.

Wouldn't it be better to check if presentingViewController  exists and the style is UIModalPresentationFullScreen or UIModalPresentationStyleOverCurrentContext and your change?

That's a good point -- I can make that change

Any news?

Totally forgot! I updated the PR.

The travis build is broken - i will have a look at it.

Any chance we can merge this?

Could you please merge current master into your branch?

I was running across this as well. A done button would be incorrectly presented in certain circumstances. After making this change, the issue has gone away. Has this change been successfully merged into master?

Any news about merging?

Oh, my apologies. I'll do this later today!

authors: harlanhaskins iamroberthood x2on


text:
Campath Integration

Live modifying of ingame campath.
Create a campath ingame or C4D
Modify the campath live in C4D without any import/export
Have Fun And Record Your Clip

Could you elaborate on how you would like the campath to be transposed into Cinema 4D, are you thinking each campath keyframe get's mapped into Cinema 4D, or are you think every individual point of the full campath is mapped into Cinema 4D (giving better accuracy to the ingame campath but making it more difficult to edit).

thought about each campath keyframe get|s mapped into C4D, but that's abit inaccurate
so idk we have to think about something

Feel free to reopen once you figure out exactly the feature you'd like

authors: Devostated xNWP

repo: xNWP/HLAELiveLink


text:
GetServicesAsync() returns extra services on Android

Hi Guys!
I have noticed on Android devices the GetServicesAsync() call returns 4 services for my device when there are only 2.   Is there a documented difference between Android and iOS I am missing?  I get the correct number on my iPad.
Steps to reproduce

On an Android device just call GetServicesAsync() after finding the device.

Expected behavior
2 services should be returned.
Actual behavior
4 services are returned.  I ignore the first 2 and use the last 2 which seem to be the right ones.  Not sure what those first 2 "services" are?
Crashlog
Nothing crashes.  The driver seems to work well with the work around!, but I'm wondering how compatible it will be in the field?  I have seen it on 2 devices- one Android 7.0 and one I think Android 9.0.  It appears all Android devices are working that way?
Configuration
Visual Studio 2019 Community
Plugin.Ble 2.1.1
Masscom TK-E10C (API 24) Android 7.0
Pixel 3a Android version 10
iPad Air iOS 12.4.5
will hear from more Android users soon!
Work around code below -
    var services = await myDevice.GetServicesAsync();

        if ((Device.RuntimePlatform == Device.iOS && services.Count == 2) ||
            (Device.RuntimePlatform == Device.Android && services.Count == 4))            // we should have 2 services for some reason Android shows 4
        {

            if (Device.RuntimePlatform == Device.iOS )
            {
                var firstChars = await services[0].GetCharacteristicsAsync();

                var secondChars = await services[1].GetCharacteristicsAsync();

                myWriteChar = firstChars[0];

                myNotifyChar = secondChars[0];                              // should I assume it will always be the second characteristic???

            }
            else
            {
                var firstChars = await services[2].GetCharacteristicsAsync();

                var secondChars = await services[3].GetCharacteristicsAsync();

                myWriteChar =
                    firstChars[0];

                myNotifyChar = secondChars[0];                              // should I assume it will always be the second characteristic???

            }

Thanks you for your support!
Brett

Hi @bapgobears,
I'm the friendly issue checker.
It seems like (100.00 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!

authors: bapgobears smsissuechecker

repo: xabre/xamarin-bluetooth-le


text:
Add support for extended control of Personal Access Tokens

Upstream of https://github.com/gitlabhq/terraform-provider-gitlab/issues/622.
API's:

https://docs.gitlab.com/ee/api/users.html#create-a-personal-access-token
https://docs.gitlab.com/ee/api/personal_access_tokens.html

Currently Personal Access tokens can only be created using the user connector in go-gitlab. I am proposing a new connector be added to manage these tokens as well and not only be able to create tokens.

@timofurrer and/or @svanharmelen As I was going through and coding this I noticed that because the personal access token management is split across API Endpoints the PersonalAccessToken struct is already declared in users.go. In going forth with this would it be better to abstract the struct into a common file, name the structs slightly different as to not have a naming collision and/or duplicated code (Create API passes back the token in the response for the users endpoint while subsequent lists of tokens do not have the token field) or something else that is not these 2 options.  If we were to go with the single struct option would the token then have omitempty added to the token attribute I assume?

repo: xanzy/go-gitlab


text:
translation

The theme looks awesome but can you translate the README in english and move the actual one to README.zn.md

I translated it with GoogleTranslate, if you think there is a syntax error, please provide feedback.😊

The translation looks pretty good, I'm actually impressed for a Google translate translation. It is pretty udnerstandable. Thx.

authors: noraj xaoxuu

repo: xaoxuu/hexo-theme-material-x


text:
toc中当前所在标题没有颜色

问题：我的toc没有像下面这样，滚到相应的标题会变颜色

示例网址：https://www.seviche.top/blog/ux4/

浏览器：Chrome

报错： 报错里面有jquery的网址很奇怪，不知道是哪里设置出了错 （我没有改过_config.stellar.yml里jquery的路径

我的_config.stellar.yml设置：
######## Stellar info ########
stellar:
  version: '1.6.1'
  homepage: 'https://xaoxuu.com/wiki/stellar/'
  repo: 'https://github.com/xaoxuu/hexo-theme-stellar'

######## head tags ########
open_graph:
  enable: true
  twitter_id: # for open_graph meta

######## Sidebar ########
sidebar:
  logo:
   # avatar: '[https://raw.githubusercontent.com/sevichee/obsidian-image/main/img202201280038578.png](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)'
    title: '[config.title](/)' # you can set html tag like: '[<img no-lazy height="32px" src="xxx"/>](/)'
  menu:
     post: '[btn.blog](/)'
     wiki: '[系列](/wiki/)'
     notes: '[便笺](/links/)'
     more: '[关于](/about/)'
  # Sidebar widgets
  widget_layout:
    index: [welcome, recent] # for home/wiki/categories/tags/archives/404 pages
    page: [welcome, toc] # for pages using 'layout:page'
    post: [toc, repo_info] # for pages using 'layout:post'
    wiki: [toc, repo_info, wiki_more] # for pages using 'layout:wiki'
  widgets:
    # Recent update
    recent:
      layout: recent
      rss: /atom.xml # npm i hexo-generator-feed
      limit: 5 # Count of posts
    # TOC (valid only in layout:post/wiki)
    toc:
      layout: toc
      list_number: false
      min_depth: 2
      max_depth: 5
      fallback: recent # Use a backup widget when toc does not exist.
    # welcome
    welcome:
      layout: markdown
      title: 欢迎 :D
      content: | # support markdown
        书签：[About Coding](https://airtable.com/shrpftxf6JgRomP2X/tblEvtThXHNBMQ8lW/viwSXGTALloahC10H)
        站内： [友链](/friends) ｜ [留言](/board)

######## Main ########
breadcrumb:
  home: home # config.title / config.author / home or custom content

######## Article ########
article:
  # 如果没有指定封面，是否根据 tags 作为关键词搜索封面？
  auto_cover: false # search from https://source.unsplash.com/
  # 如果没有指定 excerpt 和 description，将自动取多长的内容作为文章摘要？
  auto_excerpt: 200
  # 分类颜色
  category_color:
    '新闻稿': '#DA0F47'

  # 文章许可协议
  license: '本文采用 [署名-非商业性使用-相同方式共享 4.0 国际](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议，转载请注明出处。'
  # 分享
  share:  [wechat, weibo, email, link]
  # 相关文章，需要安装插件 (for layout: post)
  # npm i hexo-related-popular-posts
  related_posts:
    enable: false
    max_count: 5
    auto_cover: false # 如果没有封面就根据 tags 作为关键词搜索封面，开了此项将不会自动从文章中提取首张图片作为封面了。

######## Comments ########
comments:
  service:  beaudar #, utterances, valine, twikoo
  beaudar:
    repo: sevichee/beaudar
    issue-term: pathname
    issue-number:
    theme: preferred-color-scheme
    label:
    input-position: top # top/bottom 评论框位置
    comment-order: desc # desc 排序
    keep-theme: # true/false
    loading: false
    branch: main

######## Footer ########
footer:
  license: '[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)'

######## Tag Plugins ########
tag_plugins:
  # {% note text %}
  note:
    default_color: '' # light, dark, red, orange, yellow, green, cyan, blue, purple
  # {% checkbox %}
  checkbox:
    interactive: false # enable interactive for user
  # {% quot %}
  quot:
    default: # 可以自行配置多种图标方案
      prefix: https://s2.loli.net/2022/01/04/vsTB5pGrIHfPxSj.png
      suffix: https://s2.loli.net/2022/01/04/NORdtjlAhifZSns.png
    hashtag:
      prefix: https://s2.loli.net/2022/01/04/UvHcsa73jQPnobq.png
  # {% emoji %}
  emoji:
    default: https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/qq/%s.gif
    twemoji: https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/svg/%s.svg
    qq: https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/qq/%s.gif
    aru: https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/aru-l/%s.gif
    tieba: https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/tieba/%s.png
  # {% image %}
  image:
    fancybox:  true #, false

######## JS Plugins ########
plugins:
  scrollreveal:
    enable: false
    js: https://cdn.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js
    distance: 8px
    duration: 500 # ms
    interval: 100 # ms
    scale: 1 # 0.1~1

  # https://fancyapps.com/docs/ui/fancybox/
  # available for {% image xxx %}
  fancybox:
    enable: true
    js: https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js
    css: https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css
    # 可以处理评论区的图片（不支持 iframe 类评论系统）例如：
    # 使用valine评论可以写: .vcontent img:not(.vemoji)
    # 使用twikoo评论可以写: .tk-content img:not([class*="emo"])
    selector: .swiper-slide img # 多个选择器用英文逗号隔开

  # swiper
  swiper:
    enable: true
    css: https://unpkg.com/swiper@6/swiper-bundle.min.css
    js: https://unpkg.com/swiper@6/swiper-bundle.min.js

style:
  darkmode: auto # auto / always / false
  theme:
    light: '#f8f9fa'
    dark: '#313438'
  animated_avatar:
    animate: auto # auto, always
    background: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.2/avatar/round/rainbow64@3x.webp
  codeblock:
    scrollbar: 4px

default:
  avatar: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/avatar/round/3442075.svg
  link: https://raw.githubusercontent.com/sevichee/obsidian-image/main/img202201272235750.svg
  cover: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/cover/76b86c0226ffd.svg
  image: https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.1/image/2659360.svg

我的_config.yml设置：
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Seviche
subtitle: 酸橘汁腌鱼|在学JavaScript
description: 前端/设计/读书
keywords:
avatar:  https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/android-chrome-512x512.png
author: Seviche
language: [zh-CN, en, zh-CN, zh-TW]
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://seviche.top
root: /
permalink: :title/
permalink_defaults:
pretty_urls:
  trailing_index: false # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: false # Set to false to remove trailing '.html' from permalinks

# Directory
source_dir: source
public_dir: public
# tag_dir: tags
# archive_dir: archives
# category_dir: categories
tag_dir: blog/tags
archive_dir: blog/archives
category_dir: blog/categories
wiki_dir: wiki
i18n_dir: :lang
skip_render:
  - assets/*

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ''
filename_case: 1
render_drafts: false
post_asset_folder: false
# marked:
#   prependRoot: true
#   postAsset: true
relative_link: true
future: true
highlight:
  enable: true
  line_number: false
  auto_detect: false
  tab_replace: '    '
  wrap: true
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: '  '

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -date

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

meta_generator: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: ll
time_format: HH:mm:ss
updated_option: 'date'

# Pagination
## Set per_page to 0 to disable pagination
per_page: 0
pagination_dir: page

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: stellar

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type:

inject:
  head:
    - <link rel="preconnect" href="https://fonts.googleapis.com">
    - <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    - <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
    - <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/apple-touch-icon.png">
    - <link rel="icon" type="image/png" sizes="32x32" href="https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/favicon-32x32.png">
    - <link rel="icon" type="image/png" sizes="16x16" href="https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/favicon-16x16.png">
    - <link rel="manifest" href="https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/site.webmanifest">
    - <link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/sevichee/obsidian-image@2.0/favicon/favicon.ico">
    - <meta name="theme-color" content="#f8f9fa">
########################### Plugins ###########################
# npm i hexo-generator-feed
feed:
  type: atom
  path: atom.xml
  limit: false
  content: true
  # icon: https://cdn.jsdelivr.net/gh/cdn-x/xaoxuu/avatar/rect-256@2x.png
  autodiscovery: true

# npm i hexo-related-popular-posts

# npm i hexo-neat
neat_enable: false

# npm i hexo-all-minifier
all_minifier: true

# npm i hexo-autonofollow
nofollow:
  enable: true
  exclude:
    - seviche.top

# https://github.com/ludoviclefevre/hexo-generator-seo-friendly-sitemap
sitemap:
  path: sitemap.xml
  tag: false
  category: false
  page_priority: 0.4
  post_priority: 0.6

相关的版本如下：
macOS: 12.2 (21D49)
Hexo: 6.0.0
hexo-cli: 4.3.0
node.js: 16.13.2
npm: 8.1.2
stellar: 1.6.1

你把安装的插件去掉看看

你把安装的插件去掉看看

还是不行

Hexo降到5.4.0看看

authors: sevichee xaoxuu

repo: xaoxuu/hexo-theme-stellar


text:
I need help with the below error.

Transaction sent: {}
(node:36641) UnhandledPromiseRejectionWarning: Error: Error broadcasting: signature verification failed; please verify account number (53298) and chain-id (thorchain-mainnet-v1): unauthorized
thorchain-rune coin

Please make sure your phrase is correct, that is a cryptographic related error when intitializing the client.

repo: xchainjs/xchainjs-lib


text:
Add gmail like shortcuts modal

Fixed in 63d5ed4a044b6068a8edfa9bb1311b63e292a467


text:
Refactor task definitions

Pulling xldeployServer, username and password into a base virtual task.
Note: Should not be merged before #4, as this duplicates the changes in https://github.com/demobox/xlr-xldeploy-plugin/commit/4c5fbb08ab88865beacf6d8bad4007c4d6e77c1c.

@bmoussaud @jdewinne Ping ;-)

@bmoussaud @jdewinne @mpvvliet Quick ping?

@jdewinne: Thanks! Now #4 is broken, though :-(

Oh, damn, now I see you asked for this, to merge #4 first :-(
Suggestions on how to fix?

authors: demobox jdewinne

repo: xebialabs-community/xlr-xldeploy-plugin


text:
Game Crash Forza Motorsport 2

game crashes after 1 lap and only solution using xenia canary build from 5 October 2022 50fce8b

game crashes after 1 lap and only solution using xenia canary build from 22 October 2022

This looks more like a question for Xenia Team.

game crashes after 1 lap and only solution using xenia canary build from 22 October 2022

This looks more like a question for Xenia Team. Not sure what my response should be considering you're using an old build of Xenia (Probably not installed using Xenia Manager).

i'm using newer build

for forza games needed build 50fce8b or 5 october 2022

Really don't understand what this has to do with Xenia Manager. From my POV you're using an old build for this game and you got an error. Xenia Manager would install eeb96f91a build.

Really don't understand what this has to do with Xenia Manager. From my POV you're using an old build for this game and you got an error. Xenia Manager would install eeb96f91a build.
i used that build and everything seems fine until i tried race when i got crash and later i tried again and again crash but before using xenia manager i played on this 50fce8b and no crashes

Now I understand you, but this has nothing to do with Xenia Manager. It installed the latest Xenia Canary version and it launched the game.

Now I understand you, but this has nothing to do with Xenia Manager. It installed the latest Xenia Canary version and it launched the game. If you have an issue with Xenia Manager, this is the place to submit issues.

now I think I need to be able to choose the build I need for the game

I'll add it on my TODO list, but don't expect it any time soon.

I'll add it on my TODO list, but don't expect it any time soon.

okay i will wait

repo: xenia-manager/xenia-manager


text:
[Feature] Automatic fall-back to a backup node

Example:
steem = Steem(node="ws://127.0.0.1:8090", backup_node="wss://steem.ws")

In this case, Piston will try to connect to a local node first.
If the local node is down, or of a local node goes down at a later time (while Steem instance is in use), it should automatically and quickly fallback to a backup node.
If the main node re-appears, it will be picked up and switched to slowly.
This way, we have 100% uptime guarantee on our long-running Steem instance.
Benefits

lower load and bandwidth usage on steem.ws
automatic redundancy for long-running, critical software, such as internal market-maker or witness price-feeds

Could you add this feature to piston.Steem as well?

Could you add this feature to piston.Steem as well?
It should have been inherently part of piston.steem.Steem() because it makes use of
this steemapi. But I had a bug in Steem().__init__() that I just fixed:

>>> from piston.steem import Steem
>>> Steem(node=["wss://localhost:8090", "wss://node.steem.ws"]).rpc.url
Lost connection to node during wsconnect(): wss://localhost:8090 (1/-1) Retrying
in 0 seconds
'wss://node.steem.ws'

authors: Netherdrake xeroc

repo: xeroc/python-steemlib


text:
Create desktop icon when install GUI

Create a desktop shortcut to the GUI, when installed. This have to work in the 3 OS platforms.
Also, could be added to the context OS menu a option to run KiCost (kicost -i %file --user) in CSVs and XML files.

Use #178 comments to modified the setup.py.

Created the post install file kicost_config.py for this goal.

repo: xesscorp/KiCost


text:
java.util.ArrayList cannot be cast to [B after thrown exception at RedisPubSub.onMessage

Reproduction code is following:
package redis.clients.jedis.tests;

import static org.junit.Assert.assertEquals;
import java.util.UUID;
import org.junit.Test;
import redis.clients.jedis.*;

public class PubSubTest {
    private static class PubSub extends JedisPubSub {
        @Override
        public void onMessage(String channel, String message) {
            throw new RuntimeException();
        }
    }

    @Test
    public void test() throws Exception {
        String channel = UUID.randomUUID().toString();

        try (Jedis jedis = new Jedis()) {
            PubSub pubsub = new PubSub();
            new Thread(() -> {
                try (Jedis j = new Jedis()) {
                    while (!pubsub.isSubscribed()) {
                        try {
                            Thread.sleep(100);
                        } catch (InterruptedException e) {
                            break;
                        }
                    }
                    j.publish(channel, "x");
                }
            }).start();

            try {
                jedis.subscribe(pubsub, channel);
            } catch (RuntimeException e) {
            }

            assertEquals("PONG", jedis.ping());
        }
    }
}

I got following error:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to [B
        at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:192)
        at redis.clients.jedis.BinaryJedis.ping(BinaryJedis.java:111)
        at redis.clients.jedis.tests.PubSubTest.test(PubSubTest.java:40)

@buzztaiki updates on this?

Closed for inactivity

authors: buzztaiki marcosnils

repo: xetorthio/jedis


text:
Hide files and subtrees without changes

Fixes https://github.com/xfbs/diff.rs/issues/44
Just had my first look at the project and put together this quick PR. Checks whether or not an entry has changes (added a helper function for this) and skips it when creating the tree if necessary. Please let me know if there is a more idiomatic way to tackle this.
Best regards!

Sounds like a good idea, thanks!
I know that some people use diff.rs just to browse crate contents, I think this might break those workflows.
What I would suggest is adding a small checkbox up top of the file tree, something like "[  ] hide unchanged". If that is activated, use this to hide unchanged files (basically replace the if ... with a if hide_unchanged && ... Then both workflows would work (and people could toggle it if they want to read another unchanged file, to get some context, for example).
How does that sound?

Sounds really good. I'll see if I can implement this tomorrow. I would keep the "hide unchanged" behavior activated by default. I think this should represent how it was before.

I think what we did before (which maybe achieved a similar effect) was to collapse folders by default. That would hide a lot of the files that didn't change. I don't think we had a feature to hide files that didn't change before (but I might be mistaken).
I took your PR as inspiration and added a button to toggle it. I'm not quite sure if it's a good default to hide unchanged files.
GitHub does that (when you look at a commit like this, it only shows the files that have changed).
I am just worried that this breaks the use-case for people using it to view just the contents of a crate (basically diffing a version with itself), because then it would just show zero files.
I think the default for the diff view could be to only show changed files, but if diffing a version against itself, it should default to showing all files. Then both use-cases are happy.
I'll leave the default to show all files for now, until we get the default-collapsed-folder feature back working, and later we can revisit it and see what makes sense?

authors: SwishSwushPow xfbs


text:
Utils.isJSON accepts some badly malformed JSON

This bug was discovered by editing the roles in the admin Config editor.
Go to http://localhost:3000/admin/general/config (not production)
Select roles and remove the opening curly brace. This is now obviously malformed JSON.

Hit Save. The app is now dead in the water.

You can see this same behavior on any other JSON config. Or you can edit the params on a monitor.
Here are some things I have tested:
Incorrectly accepts:
"hi": "lo" }
"hi", "lo", "foo", "bar"]
'hi' }]}]}]}]}]}]'
hi"]]}
"hi", "lo", "foo", "bar"
Correctly rejects:
["hi", "lo", "foo", "bar"
"hi
{"hi": "lo"

I believe I understand the problem now. It appears that JSON.parse() will return the first thing that is valid JSON. For instance, if the input string is [] [], it will parse this as an empty array.
Note that [] [] is not valid JSON. If the string starts with valid JSON, then it will be parsed as JSON even if the string as a whole is not valid JSON.

I have tested JsonSlurper, grails.converters.JSON, and org.grails.web.json.JSONTokener. All three seem to suffer from this problem.
We may need to pull in an additional dependency that strictly adheres to the JSON spec.

I found a useful test suite here:
http://www.json.org/JSON_checker/
Contains all sorts of malformed JSON.

repo: xh/hoist-core


text:
Adds support for app targeting for alert banners

Fixes #3587
Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[x] Caught up with develop branch as of last change.
[ ] Added CHANGELOG entry, or determined not required.
[x] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[x] Updated doc comments / prop-types, or determined not required.
[x] Reviewed and tested on Mobile, or determined not required.
[x] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

Looks great Don!   Happy to get your first PR in

authors: lbwexler minusleaf

repo: xh/hoist-react


text:
Update html5lib dependency version

This solves the issue of dependency conflicts with other packages and xhtml2pdf seems to work fine with all versions 1.x+. This is to fix issue #390 .

Coverage remained the same at 49.772% when pulling b9a7a0a487247673ee866a0e9f36525f0f0c0fad on overshard:master into 8ba3d8a6c3db8b7cc58b8626eb56a4af39eb5457 on xhtml2pdf:master.

authors: coveralls overshard


text:
聊天类型－卡片，如发送名片，红包

希望能新增卡片的聊天类型，如可以发送红包，名片。点卡片可以跳转到另一个界面，谢谢。

你好！如果有类似这样的需求才会去完善，暂时还没有，如果你可以PR过来，我们会考虑加上的！
Jack

发送名片。。好建议。

authors: alexliubj hanton xhzengAIB

repo: xhzengAIB/MessageDisplayKit


text:
chore: 使用 postcss-mobile-forever 进行屏幕适配，提升各端可访问性

xiangshu233 你好，我帮你添加了最近开发的插件，postcss-mobile-forever。这个插件主要用来限制视口单位的最大宽度，让视图居中展示在桌面端和横屏，得到比较好的访问效果。
这个插件也可以向 viewportWidth 传入函数，这样可以根据文件名动态设置设计稿宽度，有关视口转换的功能，基本和 postcss-px-to-viewport 一致，另外插件依赖 PostCSS 8，所以控制台不会警告版本问题。插件适合做渐进式屏幕适配，如果某一段适配好了，就可以传入 disableDesktop 和 disableLandscape 来关闭桌面端或者横屏的插件适配。
如果您觉得需要的话，欢迎试用～
下面是我在本地运行插件和项目的截图：

#1

牛逼，测试了没问题吧。我先合了，回头再看 @wswmsword

有问题随时提，我会及时修复的～


text:
本体运行的情况下，MaiDXR运行数分钟就会崩溃

RT，使用游戏版本为splash，不打开本体情况下正常工作（VR内亦可见），但是捕获本体画面数分钟后就会无响应。
并没有使用com0com，绑定com3+com5时会提示串口已占用，使用Launch Virtual Serial Port Driver Pro代替（貌似没有buffer space选项）
系统版本为win11 insider preview Build25967，MaiDXR版本v0.8

更新版本到9b12看看，可以在release里面找到链接，然后这个工具可以清理串口占用https://www.uwe-sieber.de/files/ComNameArbiterTool.zip


text:
精简版使用淘宝镜像源下载依赖报错

引入的这些依赖有的下载不到。。

淘宝镜像不稳定 并不是实时同步拉取npm包
所有换成npm源最稳
多看文档


text:
Bus error

Hi! I met a question about bus error using docker durring training. Someone online told me to modify num_workers to zero, but I do not know how to do this.
Here is the RuntimeError:
DataLoader worker (pid 20991) is killed by signal: Bus error. Details are lost due to multiprocessing. Rerunning with num_workers=0 may give better error trace.

The issue appeared when the model was saved at the end of iteration 5000. And I just fit the configuration in file "options/train/train_esrgen.json". Error occurred at Each time I operate to this point——validation.

I had same issue. @Dawsonpei Have you solved the problem？

authors: Dawsonpei geyuxi

repo: xinntao/BasicSR


text:
Resolve an overflow on left-shift cdef_dist_wxh_8x8

When svar*dvar is small or even zero and bit_depth > 8, the overflow results in taking the square-root of a negative number which yields NaN. This is cast to u64 as 1 << 63, causing overflow on unsaturated add later in cdef_dist_wxh.

Coverage increased (+0.7%) to 80.458% when pulling 96fab7c17f138e917a63b1b4699c9877ec529476 on barrbrain:fix-cdef-dist-overflow into 8a62a98fa37b97ee2b35de91dd00bcbf31ef883d on xiph:master.

authors: barrbrain coveralls


text:
feat: add buildin loaders for simplifying usage

I noticed you add a feature about using react/typescript loader to transform code. Nice feature.
Maybe could let loader more simplifier by removing babel or loaders script.
like this:
<!--
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script src="https://unpkg.com/inline-module/dist/loaders.js"></script>
-->
<script src="https://unpkg.com/inline-module/dist/core.js" setup></script>

core.js can scan type="inline-script" script automatically and can check whether import babel/react/typescript loader or not.
I pull a request to review, it's counting on you.

The idea is pretty well but users may prefer other CDN files such as https://cdnjs.com/libraries/babel-standalone. I think we should give more choices to users.

authors: AdvancedCat akira-cn

repo: xitu/inline-module


text:
Installation of oxuva==0.0.1

Hello,
Quick questions:
The Oxuva package in the file: environment.yml is supposed to be the long term tracking benchmark? Or is there another package with the same name?
Also when executing the cmd pip install oxuva==0.0.1, I get an ERROR indicating that there is no matching distribution for oxuva. Do you have any clues on how to install the package and is the package mandatory for THOR?
Thank you for your time and consideration!

hey,
it is actually not necessary, I deleted it from the requirements. Thanks for noticing :)

authors: UndecidedBoy xl-sr

repo: xl-sr/THOR


text:
Imguizmo issues since xmake.lua modification

Xmake Version
v2.6.9+HEAD.22ecc0156
Operating System Version and Architecture
Windows 11
Describe Bug
I'm using the ImGuizmo for a personnal project with xmake, and the module worked so far, until #1305 where it seems to get broked. Everything install, compile and run well, but i'm getting a runtime bug that only appear when ImGuizmo is getting compiled with a differents ImGui's binaries that are used on the project. I didn't changed anything on my xmake.lua before and after the bug, so I suppose that is because of #1305.
Here is my xmake.lua : link
Am I doing something wrong ?
Thanks
Expected Behavior
ImGuizmo should compile using same binaries as the imgui used in the project (since imgui is required to use ImGuizmo)
Project Configuration
No response
Additional Information and Error Logs
No response

Can you add -vD argument and reinstall them, then let me see the logs.
you can also check imgui version.

Also, if possible. Please provide a reproducible minimal example

The patch for #1305 is to improve the consistency of the versions of imguizmo and imgui and should not cause problems.

Sorry for the delay. I fixed it by updating both imgui and imguizmo.

authors: TNtube waruqi

repo: xmake-io/xmake-repo


text:
Fix no-op stringzilla config option.

Despite passing tests, there was a mistake which made my previous contribution functionally useless. This correction has been more thoroughly tested to work correctly.

bug fix in upstream
https://github.com/ashvardanian/StringZilla/issues/161
https://github.com/ashvardanian/StringZilla/issues/163


text:
Consider removing logging to parselog.txt from parser.py

Is your feature request related to a problem? Please describe.
Parselog.txt file created in the current working dir, but working directory could be read-only and it will cause unexpected errors.
Describe the solution you'd like
It's an unexpected behavior for python libs to create temporary or log files.
Describe alternatives you've considered
Remove completely default logging code from 'parser.py' code; for testing purposes, use it inside tests scripts only.

@ivbeg  hi, Ivan, thanks for opening the issue, good point, can you try version 0.26.5? I made log file optional with argument. By default it shouldn't be created.

will close it as fixed

authors: ivbeg xnuinside

repo: xnuinside/simple-ddl-parser


text:
Upload field not implemented

Hey hello how are you?
So what is the deal with the Assets field anyway?
Can somebody please explain how or what is happening and why.
			case Formerly_QuestionType::Assets:
				$folderId = 1;
				$allowedKinds = array("excel","image","pdf","text","word");
				if (craft()->config->exists(Formerly_ConfigSettings::SettingsGroupName))
				{
					if (array_key_exists(Formerly_ConfigSettings::UploadAssetFolderId, craft()->config->get(Formerly_ConfigSettings::SettingsGroupName)))
					{
						$folderId = craft()->config->get(Formerly_ConfigSettings::SettingsGroupName)[Formerly_ConfigSettings::UploadAssetFolderId];
					}
					if (array_key_exists(Formerly_ConfigSettings::AllowedKinds, craft()->config->get(Formerly_ConfigSettings::SettingsGroupName)))
					{
						$allowedKinds = craft()->config->get(Formerly_ConfigSettings::SettingsGroupName)[Formerly_ConfigSettings::AllowedKinds];
					}
				}
				$field->type = 'Assets';
				$field->settings = array(
					'useSingleFolder' 				=> '1',
					'sources'						=> array('folder:' . $folderId),
					'defaultUploadLocationSource'	=> '1',
					'defaultUploadLocationSubpath' 	=> '',
					'singleUploadLocationSource'	=> $folderId,
					'singleUploadLocationSubpath'	=> '',
					'restrictFiles'					=> '1',
					'allowedKinds'					=> $allowedKinds,
					'limit'							=> '1'
				);
				break;

lol I like your request - explain how or what is happening and why.
Can you describe your issue. How far along are you? Do you have an upload field on a form? Or is it that you don't know where to start?

haha yea I was kinda losing it. Long day yesterday.
I've got a form with an asset field. And that's where I get stuck.
What things do I need to configure?

@wiso1234 Goodmorning Vietnam!!
How was your weekend?

Hmm yeah you're right it doesn't work.
I remember when I wrote I was surprised I didn't need to implement the asset saving code, it just seemed to work because of the field setup. But now I can't get it to work on a new project. I'll have a bit of time tomorrow to try and get it working

ok please. I need to dive in to it as well, because I've got designs for a contactform and the specifications say that I need to add an uploadfield.

Ugh i worked it out after 3 hours of wading  through the  craft core. It
wasnt working because i didn't  have enctype="multipart/form-data" on my
form so of course it wasnt posting  the file. I added  that now it works
fine
See if thats your problem too
On 29/10/2015 1:53 AM, "Xander Smalbil" notifications@github.com wrote:

ok please. I need to dive in to it as well, because I've got designs for a
contactform and the specifications say that I need to add an uploadfield.
—
Reply to this email directly or view it on GitHub
https://github.com/xodigital/Formerly/issues/51#issuecomment-151870898.

I've update the sample form.html to add the extra attribute

Thanks it works!

Oh wait one moment.

repo: xodigital/Formerly


text:
Please do not import unittest

Great project!
Could you please do not import unittest framework in the library code?
https://github.com/xolox/python-humanfriendly/blob/1abbe85eb281fca17ae1cb769d0a23acdd2e1bd8/humanfriendly/compat.py#L68
Thank you!

This is fixed in version 10.0 that was just released.

authors: tomasz-sternumiot xolox

repo: xolox/python-humanfriendly


text:
xinference启动一段时间后embedding API访问异常"detail":"[address=0.0.0.0:37167, pid=193948] [Errno 5] Input/output error"

System Info / 系統信息
xinference, version 0.12.2.post1
CUDA Version: 12.4
Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece？

[ ] docker / docker
[X] pip install / 通过 pip install 安装
[ ] installation from source / 从源码安装

Version info / 版本信息
0.12.2.post1
The command used to start Xinference / 用以启动 xinference 的命令
source venv_xinference/bin/activate
XINFERENCE_MODEL_SRC=modelscope xinference-local --host 0.0.0.0 --port 9997
Reproduction / 复现过程

启动inference
launch embedding model bge-large-en-v1.5 and llm model mistral-instruct-v0.2
多个人本地启动自己的chatchat, 使用chatchat的过程中会反复调用embedding API, 一直是可以正常工作的
过一段时间后，基本过一天再访问embdding模型就会报错如下，UI上看embbding模型还是正常的
curl http://0.0.0.0:9997/v1/embeddings  -H "Content-Type: application/json"  -d '{
"input": "测试ebmeddings",
"model": "bge-large-en-v1.5"
}'
{"detail":"[address=0.0.0.0:37167, pid=193948] [Errno 5] Input/output error"}(venv_xinference)
重启xinference, 重新launch embedding model bge-large-en-v1.5 and llm model mistral-instruct-v0.2，又可以正常访问embedding API了

Expected behavior / 期待表现
要怎么解决这个一段时间后embedding API访问异常的问题？

See if the link could help: https://stackoverflow.com/questions/52376942/python-ioerror-errno-5-input-output-error

See if the link could help: https://stackoverflow.com/questions/52376942/python-ioerror-errno-5-input-output-error

Thanks, fixed the problem by using command nohup xinference-local --host 0.0.0.0 --port 9997 > nohup.out 2>&1 & instead of the riginal one like  xinference-local --host 0.0.0.0 --port 9997 &

repo: xorbitsai/inference


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 112 ms

Resolved: Design Swan is back up in f4f8ccd.

repo: xoryorz/upptime


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 81 ms

Resolved: Design Swan is back up in 4ae4b76 after 12 minutes.


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 85 ms

Resolved: Design Swan is back up in 981c8d3.


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 95 ms

Resolved: Design Swan is back up in e0ba597 after 33 minutes.


text:
🛑 Design Swan is down

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

HTTP code: 500
Response time: 83 ms

Resolved: Design Swan is back up in 7f135a2.


text:
placeholderTextColor support in searchable

It seems there's no way to customize the placeholderTextColor in the tooblar searchable.
Maybe this prop can be added to the searchable props?
Thanks

@valinaga , @aburai: You can help me with this problem: #289

repo: xotahal/react-native-material-ui


text:
mpegts 本身有支援身份認證的功能嗎

請問 mpegts 本身有支援身份認證的功能嗎？例如以 jwt, cookies 、header 的方式帶 token 、帳密的方式。
可以參考文件的哪一個章節，謝謝。

@yanhua1012

謝謝您的專業回覆，很具參考加值。我會改至 mpegts.js 討論。
另外能否請教，如果以 webSocket 的方式進行連線，
上述的 header 與 withCredential 仍有作用嗎？

Nope. The browser will determine whether cookies will be sent or not. We cannot control headers or cookies here.
https://github.com/xqq/mpegts.js/blob/master/src/io/websocket-loader.js#L54
For WebSocket, I'm not familiar with which situation the cookies will or won't be sent. Please investigate them by yourself.


text:
Flag users for invalid tokens, instead of checking it every time

At the time being, every time a new message occurs the clockify auth token is checked not only for absence, but also for online validity (via API). This means a call to Clockify + a call to the KV for every message, on average for no use at all.
I suggest we remove the check, and take any non null token as valid. If an exception occurs, we flag the user and ask it for a new token in some way

Duplicate of #59

repo: xtreamsrl/clockify-nlp-bot


text:
comment-/note/

https://xu-ux.github.io/note/#/?id=fire主页简介

欢迎大家在社区交流:wink:

repo: xu-ux/note


text:
单选、多选、highlight-current-row、getSelectRecords 使用有问题

问题描述 Describe the bug
请看GIT演示。

使用了 highlight-hover-row 和 单选方式时，点击行后，单选框选中，getSelectRecords() 获取到空数组。
使用了 highlight-hover-row 和 多选方式时，点击行后，复选框没有被选中，getSelectRecords() 获取到空数组；只有点击复选框选中后，才能使用此方法获取选中的数据。

重现问题的步骤 To Reproduce
请提供能重现问题的链接（jsfiddle、codepen、jsrun） Expected behavior
报错信息或截图 Error message or screenshots
期望的结果 Expected behavior
请填写以下版本信息 please complete the following information

browser: ?
vue: ?
vxe-table: ?

设计思路可能和我的使用思路不太一样。
我觉得单选多选，除了选中数据的数量不同外，其他都应该一致，比如点击行可以选中单选表格行，那么也应该选中多选表格行。
还有就是单选无法通过 getSelectRecords 获取到选中的数据，但是多选可以，应该不是我使用方法有问题。

是不一样，多选和单选是两种完全不一样的实现，单选应该用 getCurrentRow
具体看文档

多选可以配置 select-config 就能实现行点击

repo: xuliangzhan/vxe-table


text:
希望能够移动应用位置，不强制C盘

你的建议
我C盘分的比较小，老放C盘太容易红了

很遗憾，因为开发框架限制，无法做到。
UWP 默认可以移动到其他磁盘，而 WinUI3 默认不能，也没有给出允许移动的设置项。

repo: xunkong/xunkong


text:
苹果电脑Safari浏览器不能使用

https://xunleif2e.github.io/vue-lazy-component/demo/dist/index.html#/specific-viewport
官方案例报错
浏览器版本 12.0 (14606.1.36.1.9)


text:
Could not turn on it after disabling and after disabling apps doesn't have internet

If I switch this thing off, it won't switch back on unless I restart the computer. Mac os 14.0 m2
Error message: [PROXY] Error creating listener: listen tcp4 127.0.0.1:8080: bind: address already in use

Also, as soon as I switch it off, the internet stops working in other applications (safari, firefox, discord), it works only in chrome rebooting does not help. how do I get everything back again?

Have you managed to solve the problem? How did you do it?

Have you managed to solve the problem? How did you do it?

Manually by finding spoof-dpi process that uses port 8080(sudo lsof -i :8080), after that just kill it(sudo kill "PID")
After that if you don't want to use this anymore you can simply delete spoof-dpi folder

repo: xvzc/SpoofDPI


text:
multi-selection is not consistent

What platform were you using when you found the bug?

React Flow / Svelte Flow version: "@xyflow/react": "^12.0.3",
Browser and version:
OS and version:

Live code example
https://codesandbox.io/s/7kn7kv?file=/App.js&utm_medium=sandpack
Describe the Bug
clicking node while Meta key pressed (multi-selection mode) inconsistent behavior. While multi-selection mode is on, clicking after moving mouse subtly, it's unselection or selection gets jammed.
Steps to reproduce the bug or issue
in codesandbox
click node multiple times in multi selection mode.
Expected behavior
has to be consistent
Screenshots or Videos
https://github.com/user-attachments/assets/29bfcd67-ae3b-4767-9cf2-38e38e41ecb3
Additional context
No response

That is the new nodeDragThreshold at work. A click is not registered while moving the mouse. I suppose you are moving the mouse slightly while clicking.
However, fiddling around with your demo, especially with a higher threshold like 5, it is clear that a click is prevented even though the threshold has not been reached yet. We will investigate this!

Ok, I found out what's happening. The CSS for a focused node is the same as for a selected node. We might fix this in a default styling revamp in the future. I will leave this open for now.

I agree that it is a bit confusing that focused and selected nodes look the same but it was always like this and we won't change it (because it would be breaking). You can adjust the focused styles by overwriting:
.react-flow .react-flow__node:focus {
  box-shadow: none;
}

authors: moklick peterkogo pycraft114

repo: xyflow/xyflow


text:
今天更新后unit:get_height()报错

今天更新后unit:get_height()报错
[Error]: .../maps/EntryMap/script/y3\object\editable_object\unit.lua:1390: attempt to index a number value

#449

authors: ApolloHY sumneko


text:
事件 技能-建造技能释放前  会报错

事件 技能-建造技能释放前  会报错

具体是什么报错？来个截图

object_event.lua:120: attempt to index a nil value (local 'master')
stack traceback:
.../felling/maps/EntryMap/script/y3\game\object_event.lua:120: in upvalue 'get_master'
.../felling/maps/EntryMap/script/y3\game\object_event.lua:135: in function 'y3.game.object_event.event_notify'
.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:281: in function <.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:278> to gbk failed, e=not expecting type '<class 'LPMix.LuaError'>'
decode .../felling/maps/EntryMap/script/y3\game\object_event.lua:120: attempt to index a nil value (local 'master')
stack traceback:
.../felling/maps/EntryMap/script/y3\game\object_event.lua:120: in upvalue 'get_master'
.../felling/maps/EntryMap/script/y3\game\object_event.lua:135: in function 'y3.game.object_event.event_notify'
.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:281: in function <.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:278> to utf-8 failed, e=not expecting type '<class 'LPMix.LuaError'>'
encode .../felling/maps/EntryMap/script/y3\game\object_event.lua:120: attempt to index a nil value (local 'master')
stack traceback:
.../felling/maps/EntryMap/script/y3\game\object_event.lua:120: in upvalue 'get_master'
.../felling/maps/EntryMap/script/y3\game\object_event.lua:135: in function 'y3.game.object_event.event_notify'
.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:281: in function <.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:278> to gbk failed, e=not expecting type '<class 'LPMix.LuaError'>'
encode .../felling/maps/EntryMap/script/y3\game\object_event.lua:120: attempt to index a nil value (local 'master')
stack traceback:
.../felling/maps/EntryMap/script/y3\game\object_event.lua:120: in upvalue 'get_master'
.../felling/maps/EntryMap/script/y3\game\object_event.lua:135: in function 'y3.game.object_event.event_notify'
.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:281: in function <.../maps/EntryMap/script/y3\game\py_event_subscribe.lua:278> to utf-8 failed, e=not expecting type '<class 'LPMix.LuaError'>'
好像是编码问题。

最近大改过事件系统，更新看看？

已解决
---- 回复的原邮件 ----
| 发件人 | @.> |
| 发送日期 | 2024年11月11日 17:38 |
| 收件人 | y3-editor/y3-lualib @.> |
| 抄送人 | ApolloHY @.>,
Author @.> |
| 主题 | Re: [y3-editor/y3-lualib] 事件 技能-建造技能释放前 会报错 (Issue #504) |
最近大改过事件系统，更新看看？
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

@sumneko 另外再求助一下,投射物创建的时候可以设置单位的挂接点,但是如果使用对象池的话,没有办法重新为投射物设置挂接点了,只能设置point,可以提供这类办法吗?

@sumneko 另外再求助一下,投射物创建的时候可以设置单位的挂接点,但是如果使用对象池的话,没有办法重新为投射物设置挂接点了,只能设置point,可以提供这类办法吗?

用编辑器自带的投射物池功能，在物编里有个选项启用

我尝试过那个.好像并没有效果


text:
How to get bio?

How Can I Get Bio?
msg.from.bio
Same as This Bot:(https://telegram.me/getidsbot)

bot.onText(msg) => {
 console.log(msg)
}

Next you can call properties of msg and send them

I couldn't find anything about bio. Can you make a Screen shot?

What bio info you need?

I mean this bot got my bio, how?

I do not think the bot is using the official Telegram Bot API to retrieve that information. Could you ping the bot creators? They could divulge that info for us.

Yep, He Said:

Some html scraping magic

.
Maybe he did parsing html!

If you want to get the bio of an user you should use github.com/danog/MadelineProto

authors: 0leg5ergeev GochoMugo Neneone saeedhei

repo: yagop/node-telegram-bot-api