text:
Osram Lightify e14 Tunable White lights do not toggle with transition correctly

Home Assistant release with the issue: 0.88.1

Last working Home Assistant release (if known): Unknown
Operating environment (Hass.io/Docker/Windows/etc.): Intel NUC - Ubuntu Server

Component/platform: light.osramlightify

Description of problem: I have some Osram Lightify e14 Tunable White lights. I can light.toggle them correctly. They "hard" turn on/off rather than with a quick fade like LIFX lights have. I wanted to replicate this by adding a transition:2 to the light.toggle service call.
The transition works correctly when toggling the lights off from an on state. However upon calling light.toggle immediately after, the light turns on to its dimmest state.
My theory is that the light.toggle --> on is turning on to the lowest brightness given by the transition mechanism rather than the original state from which the transition-to-off started.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Lights are paired via deconz:
            {
                "connection_class": "local_push",
                "data": {
                    "allow_clip_sensor": true,
                    "allow_deconz_groups": true,
                    "api_key": "",
                    "bridgeid": "",
                    "host": "xxx.xxx.xxx.xxx",
                    "port": xxxx
                },
                "domain": "deconz",
                "entry_id": "6bbc56b1f6ad4514a3b52058a442e201",
                "source": "user",
                "title": "deCONZ-00212EFFFF0329B9",
                "version": 1
            }

Traceback (if applicable):

Additional information:

Can you enable debugging for deconz and share logs when you do this.
I don't expect that there is anything to do with the integration. This is probably a limitation in either the light or in deCONZ.
To solve this you will probably need to create a more advanced automation that stores your previous brightness.

This is a confirmed issue with deCONZ. They are working on a fix.


text:
RFE: Support Helios KWL Modbus implementation

Please support the fancy Helios KWL implementation of Modbus. https://www.heliosventilatoren.de/mbv/kwl-modbus_gateway_82269_0714_d_e_f.pdf
They require that at first the desired variable is written into a register and with the subsequential read from the holding registers, the value is returned.
Setting of values looks similar, just enter the variable name = value, e.g. v00102=1 to set the fan to level 1.
helios.txt
Example:
Temperatur Zuluft = v00105
First step: Write this into the register after the payload has been encoded. The documentation about the number of registers to read is either wrong or I don't get it ;-)
builder = BinaryPayloadBuilder(endian=Endian.Little)
builder.add_string('v00105\0')
REGISTERS_TO_READ = 32
payload = builder.build()
client.write_registers(FIRST_REGISTER_ADDR, payload, skip_encode=True, unit=SLAVE_ID)

Second step: retrieve values:
result = client.read_holding_registers(FIRST_REGISTER_ADDR, REGISTERS_TO_READ, unit=SLAVE_ID)
print(BinaryPayloadDecoder.fromRegisters(result.registers, endian=Endian.Little).decode_string(REGISTERS_TO_READ))

Output:
homeassistant@homeassistant:~/.homeassistant/helios$ python helios.py
v00105=17.7

Working example file attached.

Updated version of my script. Python noob, please excuse 😄
#!/usr/bin/env python

from pymodbus.client.sync import ModbusTcpClient as ModbusClient
from pymodbus.constants import Endian
from pymodbus.payload import BinaryPayloadDecoder
from pymodbus.payload import BinaryPayloadBuilder
import logging
import argparse
import fcntl, sys, os
import re

SLAVE_ID = 180
FIRST_REGISTER_ADDR = 0x01

# testing modbus communication
def main(ip, variable, rtr):
    logging.basicConfig()
    log = logging.getLogger()
    log.setLevel(logging.ERROR)

    # stupid workaround to use the correct number of registers
    rtr = rtr + 3
    if rtr < 8:
	rtr = 8

    client = ModbusClient(ip, 502)
    client.connect()

    builder = BinaryPayloadBuilder(endian=Endian.Little)
    builder.add_string(variable + '\0')

    payload = builder.build()
    client.write_registers(FIRST_REGISTER_ADDR, payload,
                           skip_encode=True, unit=SLAVE_ID)

    result = client.read_holding_registers(
        FIRST_REGISTER_ADDR, rtr, unit=SLAVE_ID)

    output = BinaryPayloadDecoder.fromRegisters(result.registers,
                                             endian=Endian.Little).decode_string(rtr)

    # get rid of null bytes http://chase-seibert.github.io/blog/2011/05/20/stripping-control-characters-in-python.html
    output = re.sub(u'([\u0000])', "", output)
    print(output)

if __name__ == "__main__":
    pid_file = '/tmp/helios.pid'
    fp = open(pid_file, 'w')
    try:
        fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
    except IOError:
        # another instance is running
        sys.exit(1)
    fp.write(str(os.getpid()))

    parser = argparse.ArgumentParser(description = 'Helios KWL Modbus interface')
    parser.add_argument('ip', help='IP address of Modbus slave')
    parser.add_argument('registers', help='Number of registers to read. Can be obtained from the KWL documentation.')
    parser.add_argument('variable', help='Variable to read. If value should be set, append =value, e.g. v00102=1 to set fan to level 1.')

    args = parser.parse_args()
    main(args.ip, args.variable, int(args.registers))
    fp.close()
    os.unlink(pid_file)

Working with this sensor config:
# documentation: https://www.heliosventilatoren.de/mbv/kwl-modbus_gateway_82269_0714_d_e_f.pdf
- platform: command_line
  name: Betriebsart
  value_template: "{% if value.split ('=')[1] == '1' %}manuell{% elif value.split ('=')[1] == '0' %}automatisch{% endif %}"
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 5 v00101'
- platform: command_line
  name: Lüfterstufe
  value_template: "{{value.split ('=')[1]}}"
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 5 v00102'
- platform: command_line
  name: Temperatur Außenluft
  value_template: "{{value.split ('=')[1]}}"
  unit_of_measurement: '°C'
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00104'
- platform: command_line
  name: Temperatur Zuluft
  value_template: "{{value.split ('=')[1]}}"
  unit_of_measurement: '°C'
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00105'
- platform: command_line
  name: Temperatur Fortluft
  value_template: "{{value.split ('=')[1]}}"
  unit_of_measurement: '°C'
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00106'
- platform: command_line
  name: Temperatur Abluft
  value_template: "{{value.split ('=')[1]}}"
  unit_of_measurement: '°C'
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00107'
- platform: command_line
  name: Lüfter Zuluft RPM
  value_template: "{{value.split ('=')[1]}}"
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00348'
- platform: command_line
  name: Lüfter Abluft RPM
  value_template: "{{value.split ('=')[1]}}"
  command: '/home/homeassistant/.homeassistant/helios/helios.py helios.fritz.box 8 v00349'

Nevertheless it would be nice if there existed a better way of doing this.
Home Assistant is great 😃

Important fact: due to the fancy nature of the Helios KWL Modbus implementation, only one script at a time must be executed. Otherwise the values are overwritten in the register and hence wrong values retrieved. This is the reason for the locking mechanism in the python script - If this gets implemented into HA, this needs to be maintained as well!

I am also fine if this is closed and can be found here as a reference. Demand does not seem too high ;-)

source: gharchive/issue

repo: home-assistant/home-assistant

license_type: permissive

license_source: github-api


text:
device_tracker.ubus tracks unauthenticated and unassociated devices

Home Assistant release: 0.48.1
Python release: Python 3.4.2 (on Raspian)
Component/platform: device_tracker.ubus
Description of problem: Frequently new devices are tracked (to be home) and added to the known devices file even though these devices don't have the WiFi password and don't show up in OpenWRT's or LEDE's list of associated clients.
Expected: Only devices that are properly associated and authenticated with the WiFi router should be tracked.
Problem-relevant configuration.yaml entries and steps to reproduce:
device_tracker:
  platform: ubus
  host: 192.168.1.1
  username: root
  password: secret
  track_new_devices: yes
  interval_seconds: 12
  consider_home: 90

Add ubus device tracker to configuration
Be in an area with many wifis and devices
Wait for unassociated clients being tracked

Additional info:
Here's an example of the ubus traffic that shows one properly tracked device and one that should not be tracked.

{
    "data": {
        "clients": {
            "xx:xx:xx:xx:xx:xx": {
                "aid": 1,
                "assoc": true,
                "auth": true,
                "authorized": true,
                "ht": false,
                "mfp": false,
                "preauth": false,
                "vht": false,
                "wds": false,
                "wmm": false,
                "wps": false
            },
            "yy:yy:yy:yy:yy:yy": {
                "aid": 2,
                "assoc": false,
                "auth": false,
                "authorized": false,
                "ht": false,
                "mfp": false,
                "preauth": false,
                "vht": false,
                "wds": false,
                "wmm": false,
                "wps": false
            }
        },
        "freq": 2437
    },
    "objid": 2001901283
}

A simple solution should be to check if authorized and assoc are true.

Looking at the responsible code it seems that it just takes result['clients'].keys() without bothering to check if information per client first.

I haven't read the code from LEDE, not sure what does "assoc", "auth" and "authorized" means.
I am trying to add HTTPS support for LEDE/Openwrt ubus(maybe also on openwrt.luci).

The represent different levels of a client "being" in the WiFi. Home-assistant should check that they are true before adding the device to the list of clients. Otherwise, it will show also devices that just attempt to get into the WiFi.

This issue hasn't been fixed, yet. Or @fanthos have you been doing something?

Not fixed.
	"clients": {
		"xx:xx:xx:xx:xx:xx": {
			"auth": true,
			"assoc": true,
			"authorized": false,
			"preauth": false,
			"wds": false,
			"wmm": true,
			"ht": true,
			"vht": false,
			"wps": false,
			"mfp": false,
			"aid": 2
		},
		"yy:yy:yy:yy:yy:yy": {
			"auth": true,
			"assoc": true,
			"authorized": true,
			"preauth": false,
			"wds": false,
			"wmm": true,
			"ht": true,
			"vht": false,
			"wps": false,
			"mfp": false,
			"aid": 1
		}
	}

Only yy:yy:yy:yy:yy:yy has wpa key. We need to add the check of authorized or the tree value auth, assoc, authorized

authors: aarnaud fanthos grote


text:
Adding xy_color attribute support to deconz lights

Description:
Small fix to allow deconz lights to process xy_color updates. These type of updates are produced by homekit/homebridge.
Checklist:

[ * ] The code change is tested and works locally.

If the code communicates with devices, web services, or third-party tools:

[ * ] Local tests with tox run successfully.

Hi @ErnstEeldert,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

source: gharchive/pull-request

authors: ErnstEeldert homeassistant


text:
Map Alexa StepVolume responses to volume_up/down

Description:
It turns out I misunderstood which media_player services are available when a media player supports StepVolume. This PR maps the Alexa StepSpeaker messages to the volume_up and volume_down services.
Currently Alexa allows you to specify the number of steps but the media player  volume_up and volume_down services don't support this. For now I just look to see if the steps are +/- and call up/down accordingly.
Checklist:

[x] The code change is tested and works locally.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] Tests have been added to verify that the new code works.

Looks reasonable. Looks like perhaps just a flaky test; I've restarted the job.


text:
Homematic: Added possibility to define the data type for set_device_value

Description:
The Homematic CCU needs that we send the correct XML-RPC Data Type for setValue, but parsing the yaml will always return a string.
This example request will be ignored by CCU:
<?xml version="1.0"?>
<methodCall>
	<methodName>setValue</methodName>
	<params>
		<param>
			<value><string>INT0000001:1</string></value>
		</param>
		<param>
			<value><string>ACTIVE_PROFILE</string></value>
		</param>
		<param>
			<value><string>2</string></value>
		</param>
	</params>
</methodCall>

the value should be a int:
<?xml version="1.0"?>
<methodCall>
	<methodName>setValue</methodName>
	<params>
		<param>
			<value><string>INT0000001:1</string></value>
		</param>
		<param>
			<value><string>ACTIVE_PROFILE</string></value>
		</param>
		<param>
			<value><int>2</int></value>
		</param>
	</params>
</methodCall>

Homematic component uses pyhomematic and pyhomematic uses xmlrpc.client.ServerProxy, an as stated under https://docs.python.org/3/library/xmlrpc.client.html#xmlrpc.client.ServerProxy, python data types are converted into the correct XML-RPC Type.
I added an optional value_type parameter where you are able to define the desired data type. Supported data types are (I just used the same naming as XML-RPC Types):

boolean
dateTime.iso8601
double
int
string

Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#9512
Example entry for automation.yaml:
- alias: changeProfile
  trigger:
    - platform: time
      at: '00:00:05'
  action:
    - service: homematic.set_device_value
      data_template:
        address: 'INT0000001'
        channel: 1
        param: 'ACTIVE_PROFILE'
        interface: groups
        value_type: 'int'
        value: >
          {% if ((states('sensor.week_number')|default(0)|int) % 2) == 0 %}
          1
          {% else %}
          2
          {% endif %}

Checklist:

[ ] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[ ] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Hello @p0l0,
When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es).
The commits that are missing a linked GitHub account are the following:

29814b111449d74981cf452af13b3e946651e010 - This commit has something that looks like an email address (gitlab@softspain.com). Maybe try linking that to GitHub?.

Unfortunately, we are unable to accept this pull request until this situation is corrected.
Here are your options:

If you had an email address set for the commit that simply wasn't linked to your GitHub account you can link that email now and it will retroactively apply to your commits. The simplest way to do this is to click the link to one of the above commits and look for a blue question mark in a blue circle in the top left. Hovering over that bubble will show you what email address you used. Clicking on that button will take you to your email address settings on GitHub. Just add the email address on that page and you're all set. GitHub has more information about this option in their help center.

If you didn't use an email address at all, it was an invalid email, or it's one you can't link to your GitHub, you will need to change the authorship information of the commit and your global Git settings so this doesn't happen again going forward. GitHub provides some great instructions on how to change your authorship information in their help center.

If you only made a single commit you should be able to rungit commit --amend --author="Author Name <email@address.com>"

(substituting Author Name and email@address.com for your actual information) to set the authorship information.
If you made more than one commit and the commit with the missing authorship information is not the most recent one you have two options:

You can re-create all commits missing authorship information. This is going to be the easiest solution for developers that aren't extremely confident in their Git and command line skills.
You can use this script that GitHub provides to rewrite history. Please note: this should be used only if you are very confident in your abilities and understand its impacts.

Whichever method you choose, I will come by to re-check the pull request once you push the fixes to this branch.

We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community.
Thanks, I look forward to checking this PR again soon! :heart:


text:
[GL] ListAddItem sentences

Adding ListAddItem sentences, responses and tests for Galician.

gentle ping

It'd be nice to get this in for 2024 releases

This fell through the cracks of my notifications. Merged!

authors: cibernox svillar

repo: home-assistant/intents


text:
[FATAL tini (6)] exec python3 failed: Exec format error

Trying to get this running on Home Assistant Core 0.109.3
log says: "[FATAL tini (6)] exec python3 failed: Exec format error"
Any help?

Also trying to get it running on Home Assistant Core 109.3.
Any documentations or REST commands how to use this addon?

Hello to both of you @wimpie007 @pen96,
I still have to update to 0.109.3, I'll look into that later.
For the documentation, look at the cast_site here: https://github.com/eliseomartelli/ParentsHomeAutomation/blob/master/homeassistant/integrations/rest_command.yaml

oeps, i was mistaken...
'You are currently running version 0.108.3'

Updated to the latest version and I don't have this kind of issue.
Can you please send me the log like this?

Well, there is nothing more in the logs...
https://imgur.com/a/kn5XS0j

That's really strage, are you using portainer?

installing portainer as we speak! what do you want me to do?

@eliseomartelli
I'm running home assistant on a RPI4....
You probable not on a ARM device?

Any news about the ARM problems?

@wimpie007 I don't have an ARM device at hand to generate a docker image for arm devices, I need someone willing to help :)

arm device is not a problem here, but making the docker...

@eliseomartelli I have an ARM device and I managed to build the container and get it working. So I would be willing to help out what I don't understand is how the hassio addon integration with dockerhub works.

@carlba that's awesome!
The homeassistant supervisor reads config.json to see the architectures and pulls the image from docker hub. I think it should be possible to push different images for different architectures on docker hub.
I will look into that later, if you open a PR with the changes needed to get the build working on arm devices I'd be really grateful!

license: MIT


text:
Cannot add cameras in apple homekit

Describe The Bug:
after updating the plugin to version 1.0.0 my 4 cameras were still recognized in the homekit, but could no longer call up any data. I removed the cameras in the homekit, uninstalled and reinstalled the plugin, added only one camera to the test (see below). The json is error-free, no errors in the log, the plugin is loaded correctly according to the log, but the camera is not recognized in the homekit and cannot be found and added via camera accessories.
To Reproduce:
the error is permanent
Expected behavior:
the camera is recognized in the home kit as a new camera and can be added as a camera accessories
Logs:
no error in the log
Homebridge Config:
[
{
"name": "CamEingang",
"debug": true,
"videoConfig": {
"source": "-re -i rtsp://admin:password@192.168.0.19:554/Streaming/Channels/101",
"stillImageSource": "-i http://admin:password@192.168.0.19:82/streaming/channels/101/picture?"
}
}
]
this config worked without problems before the update
Environment:

Node.js Version:12.13.1
NPM Version:Hoobs 3.2.3
Homebridge Camera FFmpeg Version:1.0.0

Try adding this right before the "cameras" entry:
"videoProcessor": "/usr/bin/ffmpeg",

The entry was set, moved it in front of the camera entry, now I have the following entry in the log:
CamEingang is running on port 43385
But unfortunately the camera still doesn't show up in the homekit to add it
{
"platform": "Camera-ffmpeg",
"plugin_map": {
"plugin_name": "homebridge-camera-ffmpeg",
"videoProcessor": "/usr/bin/ffmpeg"
},
"cameras": [
{
"name": "CamEingang",
"debug": true,
"videoConfig": {
"source": "-re -i rtsp://admin:password@192.168.0.19:554/Streaming/Channels/101",
"stillImageSource": "-i http://admin:password@192.168.0.19:82/streaming/channels/101/picture?"
}
}

Maybe try renaming the cameras, then they should be "new" for HomeKit.

oh my god, that's it, thank you very much!

authors: normen tobihoby


text:
Please come back to update

I do love this project though I've never used it before

TypeError: Cannot read properties of undefined (reading 'sports_content')
Oops, NBA.getGamesFromDate() goes wrong.
Please run nba-go again.
If it still does not work, feel free to open an issue on https://github.com/xxhomey19/nba-go/issues


text:
Update math to correct show user deposits with scaled balance token

update sdk to latest to fix deposit amount for lenders, fix formatting of withdrawl after duplicate from merge

@bbroeking please see comment for lend page

authors: bbroeking bowtiedpyro

repo: honey-protocol/honey-frontend-solana


text:
运行blogcodes出错

下载ndk，设置ndk.dir，或者在settings.xml中关闭ndk那个module。

authors: hongyangAndroid liuyi-android

license_source: bigquery


text:
关于cookies持久化的问题

我在小程序中登录成功后，返回的信息

cookies 是一个集合，我应该拿着那个去做持久化呢，第一次做小程序的持久化，不太理解
header: {
'content-type': 'application/x-www-form-urlencoded',
'cookie': "SESSID=" + wx.getStorageSync("sessionid")
},
这里面传值的时候cookies不应该是一个具体的值吗，我应该传哪个，求指教

可以参考下这个 https://github.com/mtjsoft/wanandroid  ，已经上线的小程序~

他的这个我看下，也没有做cookies持久化，只是添加收藏后，把文章的id存在了本地，

那就有点尴尬了...小程序这块我不太熟悉。
顺手搜了一篇：
https://blog.csdn.net/DylanCat/article/details/78186427

嗯，谢谢了，我也是刚刚入手小程序，
这个搜到了，问题还是我截图的，登录成功后返回的是个集合，我该保存哪个，我把整个cookies都保存了，然后按照这个
header: {
'content-type': 'application/x-www-form-urlencoded',
'cookie': "SESSID=" + wx.getStorageSync("sessionid")
},传过去，
行不通

response返回的时候，cookie的key是SetCookies，格式大概是：

需要把这里面的cookie都存下来。
请求的时候带上，key是Cookies，值是key=value的形式，大概是：

中间需要做一下转化，值都是有的。
这里有个文章，我仔细看了下，应该没问题：
https://zhuanlan.zhihu.com/p/33586841

OK了，谢谢了，主要是取res.header['Set-Cookie']这里面的值，

大神，收藏接口总是返回false,这个没有具体信息不是收藏成功了吧

@hongyangAndroid   大神，我这个问题还没有解决呢，掉的收藏接口，返回的信息是上图的，data里面数据为null，代表收藏接口调用成功了吗，没有成功吧，在收藏接口已经返回这条数据了，成功了吧，collected的这个字段总是false，

我在网站是试过了，点击收藏成功了，在程序中调用http://wanandroid.com/article/list/0/json这个接口，这个collected字段还是false

errorcode=0 为收藏成功。
测试需要在同一个上下文中，不能网站点击收藏，小程序调用首页列表接口这种方式。

我小程序中测试也是一样，返回的上面的数据，调用收藏列表也能返回收藏的数据，但是首页的列表的collected字段就是false,

cookie我也一头雾水=-=

cookie现在是没有问题的，就是收藏成功后，返回的总是false

authors: hongyangAndroid liguangze mirse

repo: hongyangAndroid/wanandroid


text:
setCookie middleware is not working with 2 or more cookies in deno deploy

What version of Hono are you using?
3.11.12
What runtime/platform is your app running on?
Deno
What steps can reproduce the bug?
Create a endpoint, use the setCookie middleware to set 2 cookies or more, deploy the project and make the request to the endpoint url.
my code:

The server response

As you can see, only the last cookie y set in response headers. I have checked if the token_name is added to the environment variables and is reading it correctly.
What is the expected behavior?
Two cookies in the response headers.
What do you see instead?
Only the last cookie is set.
Additional information
this is my deno.json file with the hono imports:

I'm using the helper, so I am importing setCookie middleware from: https://deno.land/x/hono@v3.11.12/helper/cookie/index.ts

Hi @diecodev
I can't reproduce it. I can set two cookies with setCookie() in the cookie helper on Deno Deploy. Could share us minimal code to reproduce the bug?

hi @yusukebe
After bunch of local testing it seems like the compress() middleware is the cause of the problem, i let you a link to the reproduction link and code

@diecodev
Thank you very much! I'll see it later.

authors: diecodev yusukebe

repo: honojs/hono


text:
🛑 FWAw is down

In fb1c6c2, FWAw ($FWA_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FWAw is back up in a834f77 after 21 minutes.

repo: hoopybe/uptime


text:
🛑 FWAw is down

In 68d5bc6, FWAw ($FWA_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FWAw is back up in ab88103 after 35 minutes.


text:
简直太高兴了，良心up主，吹爆！

直接论文里面附上源码，大大增加了科研效率！

请问：
1.我找不到train_aistd.py，。。。
2.怎么设置数据集？

authors: clcllllll improgress

repo: hootoon/MG-Cycle-GAN


text:
[HOPS-264] Fixing missing plugin versions and adding dependency licen…

Fixing missing plugin versions and adding dependency licenses.

https://hopshadoop.atlassian.net/browse/HOPS-264

Adding dependency licenses and fixing missing plugin versions

No behavioral changes.

No breaking changes

Can one of the admins verify this patch?

authors: HopsworksJenkins augustbonds

repo: hopshadoop/hops


text:
from_slice behavior

it seems to me that the from_slice behavior is inconsistent in the presence of repeated indices.
It looks like it assumes that setting from a slice will have at least as many elements as there are in the slice, but if there are repeats then the slice will be set to a larger capacity than is required.
If this tracked nbits separately from the array length of the backing store, then you could still guess at the capacity requirement of the slice by dividing that slice size by 512 (rounded up) and using it as a starting guess at how many BitContainers to put in the backing array, update nbits as you scan through the slice to the highest watermark actually observed, and then trim the backing vec's size back down to fit the data you have.

Thanks for your feedback!
I agree with you that current (from_slice imprementation)[https://github.com/horasal/bitvector_simd/blob/main/src/lib.rs#L256] is inconsistent. Slices with repeated indices may cause it use more memory than expected.
We have several options to solve this:

Trace the max index and add a shirk_to before return.
Change initial length to slice.max() to avoid any allocation.
Change initial length to 0 make sure no memory is wasted.

I did some benches on these solutions, and it shows that the first one is better that others.
I'll make a patch later with the first solution and thanks for your feedback again!
from_slice, small set, capacity=slice.len()
                        time:   [6.7193 us 6.7212 us 6.7232 us]
                        change: [+0.6780% +0.9091% +1.1639%] (p = 0.00 < 0.05)
                        Change within noise threshold.
Found 21 outliers among 100 measurements (21.00%)
  3 (3.00%) low severe
  5 (5.00%) low mild
  5 (5.00%) high mild
  8 (8.00%) high severe

from_slice, small set, capacity=slice.max()
                        time:   [6.8733 us 6.8753 us 6.8776 us]
                        change: [-0.2958% -0.1312% +0.0648%] (p = 0.18 > 0.05)
                        No change in performance detected.
Found 11 outliers among 100 measurements (11.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
  7 (7.00%) high severe

from_slice, small set, capacity=0
                        time:   [6.8792 us 6.8811 us 6.8833 us]
                        change: [-0.3338% -0.0785% +0.1143%] (p = 0.56 > 0.05)
                        No change in performance detected.
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) high mild
  4 (4.00%) high severe

from_slice, large set, capacity=slice.len()
                        time:   [121.72 us 121.84 us 121.95 us]
                        change: [+0.3143% +0.4387% +0.5645%] (p = 0.00 < 0.05)
                        Change within noise threshold.
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe

from_slice, large set, capacity=slice.max()
                        time:   [123.99 us 124.12 us 124.24 us]
                        change: [-0.4949% -0.3700% -0.2379%] (p = 0.00 < 0.05)
                        Change within noise threshold.

from_slice, large set, capacity=0
                        time:   [124.02 us 124.15 us 124.28 us]
                        change: [-0.4067% -0.2901% -0.1640%] (p = 0.00 < 0.05)
                        Change within noise threshold.
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe

authors: ekmett horasal


text:
rhui-REGION-rhel-server-optional  is needed when deploying the Redhat instances in AWS

I needed to add the following to the 'ansible-hortonworks-master/playbooks/clouds/build_aws_nodes.yml' script when using the redhat 7.5 ami.
  user_data: |
    #!/bin/sh
    sudo yum-config-manager --enable rhui-REGION-rhel-server-optional

Hi, thanks for the suggestion!
This is because of the libtirpc-devel requirement which is not very well documented: https://community.hortonworks.com/questions/109996/hdp-26-requires-libtirpc-devel.html
Since that is in a different repo, it varies from image to image and from OS to OS.
I added your suggestion in https://github.com/hortonworks/ansible-hortonworks/commit/649f2951beebbca89c61a0244e9ec7b285e9f4df
This will fix AWS Red Hat but might not fix other Red Hat variants in other clouds or on-prem.
So I then added libtirpc to the required packages to be installed during the common role: https://github.com/hortonworks/ansible-hortonworks/commit/bfd868222eb539e69ec672e260da74f4f9e10a33
This means that if the OS doesn't have the correct repo enabled, it will at least fail at the very early run, rather than during Ambari blueprint deployment.

repo: hortonworks/ansible-hortonworks


text:
Disable Scheduler Configuration Mutation Api

Disable Scheduler Configuration Mutation Api. YARN Queue Manager is Technical Preview in CDP-7.0.2. This config is by default disabled and will be enabled when Queue Manager is installed by CM.
Have tested with launching a CM cluster using CloudBreak and the config is added properly in Safety Valve.

I already merged this change.

Thanks @keyki

authors: PrabhuJoseph keyki

repo: hortonworks/cloudbreak


text:
feat: Karst on layer2

karst on layer 2 using social graphs

@eliashezron please can you kindly look at it

Hi @Jemiiah please write this as a medium article, we'd have someone review it, then post on twitter and tag Horus Labs

repo: horuslabsio/karst-core


text:
Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
submitting second assignment
What did you learn from the changes you have made?
reviewed material on numpy.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
no other approach
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I don't understand the point of having different csv files for this assignment if we are using only the first time,
unless the rest are gonna be used in future assignments
How were these changes tested?
tested by running the blocks, by checking the third file (all_paths[2]), detect_problems function returns True which by looking at the file, on the last row, a faulty set of data for a patient with all zeros as values can be seen, proving the validity of the function
A reference to a related issue in your repository (if applicable)
Checklist

[x] I can confirm that my changes are working as intended

@pedram-aliniaye-asli Hi Pedram, thanks for the feedback.
I added some comments and also checked the code to see why it produces 'True' for the last part. I didn't change anything but by running all blocks again It produced 'False' as expected. so my guess is The 'True' that was seen below it, had to be produced before making the final edition before I submitted it. I mean I probably, before submission, had 'True' as the result, fixed the code but didn't run it to display the corrected output which is 'False'. But I don't know if the outputs of blocks are saved inside the notebooks or not.

repo: hoseinaliyari/python


text:
RegExp for valid mails

In registration forms, we need have a regexp for check valid mails addresses ( like contains letters and numbers, have @ sign and etc)
https://regexlib.com/Search.aspx?k=email&AspxAutoDetectCookieSupport=1

https://github.com/hospitalrun-ua/frontend/pull/53

authors: Thealoner tomkaX

repo: hospitalrun-ua/frontend


text:
Custom resource ids

Now we can use custom resources for dialog texts: title, message, etc.
Created the DialogOptions for a better dialog creation.

Hi, thx for your PR.
I think it already provides the way to change each text. Why do you need new way to change these?
https://github.com/hotchemi/Android-Rate#custom-dialog

An app that has only one language, for example: pt.
The project only got the values folder with portuguese strings.
My app should be always in Portuguese cause most user generated content is in Portuguese and even if the user likes to have Android in English.
It is strange to have an app in English but most of its content is in another language.
So, if I use this library I could get the dialog in another language because of the values-something folder. But I would like to show it just in Portuguese for example.
And its just optional, already using the default "rate_" resource ids.

Hi, sorry for the late.
Ailright, I'm gonna review the code.

Thx:)

Glad to help :smile:
Just waiting for the new release

I'll do that soon:)

authors: hotchemi leosimas

repo: hotchemi/Android-Rate

license: mit


text:
Archive form error

@willemarcel When selecting archive form option, I'm seeing these errors and the app crashing. Archive form isn't completed. Is there anything we need to change on the deployment side of things?
::ffff:172.17.0.1 - - [05/Apr/2018:09:10:05 +0000] "GET /formList?json=true&formid=nmp_buildings_v_testing_01 HTTP/1.1" 304 - "https://botswana-test.hotosm.org/omk/pages/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
::ffff:172.17.0.1 - admin [05/Apr/2018:09:10:17 +0000] "POST /omk/odk/forms/nmp_buildings_v_testing_01/archive HTTP/1.1" 200 40 "https://botswana-test.hotosm.org/omk/pages/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
_http_outgoing.js:356
    throw new Error('Can\'t set headers after they are sent.');
    ^

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:356:11)
    at ServerResponse.header (/app/node_modules/express/lib/response.js:767:10)
    at ServerResponse.send (/app/node_modules/express/lib/response.js:170:12)
    at ServerResponse.json (/app/node_modules/express/lib/response.js:267:15)
    at fs.mkdir.mkdirError (/app/api/odk/controllers/archive-form.js:45:34)
    at FSReqWrap.oncomplete (fs.js:123:15)

I fixed some errors in https://github.com/hotosm/OpenMapKitServer/commit/6847b3956892d9c9f28650c21c3fc8105ae8c17a
I tested in the evennode server and it worked. @smit1678 could you confirm?

@willemarcel Ok, I deployed the updates and I don't see this error happening anymore but the archive still isn't completing. Maybe this is due to nginx or some directory permissions.
It seems that https://botswana-test.hotosm.org/omk/odk/archived-forms is getting a bad gateway and then throws this error:
/app/api/odk/controllers/archived-form-list.js:11
      {forms: items.filter(i => i.endsWith('.xml')).map(i => path.basename(i, '.xml'))}
                   ^

TypeError: Cannot read property 'filter' of undefined
    at fs.readdir (/app/api/odk/controllers/archived-form-list.js:11:20)
    at FSReqWrap.oncomplete (fs.js:123:15)

The error was caused due to the lack of permissions to create the archive dirs. I committed the archive dirs.

repo: hotosm/OpenMapKitServer


text:
Show virtual product name along with variant in app product list

What is the motivation for adding/enhancing this feature?

What are the acceptance criteria?

[ ] ...

Can you complete this feature request by yourself?

[ ] YES
[ ] NO

Additional information

Makes sense @dt2patel

repo: hotwax/receiving


text:
Add option to refresh scroll for a particular link when using morph/preserve scroll otherwise

We are using Turbo refresh with morph and scroll preserve with turbo action "replace" on an index view page that allows filtering and search. It works really well, except that we have some pagination links at the bottom of the page that we would like to drop the scroll preserve, so that the scroll moves up to the top of the search results instead of staying at the bottom of the page. Is this possible? Google's AI helpfully(?) told me:

Yes, with Turbo (a JavaScript framework for fast web interactions), you can configure individual links to either "reset" or "preserve" the scroll position when navigating, meaning some links can jump to the top of the page while others maintain the current scroll position upon clicking, using the data-turbo-refresh-scroll attribute with values "reset" or "preserve" respectively.
Key points about using data-turbo-refresh-scroll:
How to implement: Add the data-turbo-refresh-scroll attribute directly to the anchor tag () with either "preserve" to maintain the scroll position or "reset" (default) to jump to the top on navigation.

I tried removing the scroll preserve directive from the meta tag, and adding data-turbo-refresh-scroll='preserve' to the form, and data-turbo-refresh-scroll='reset' to the pagination links, but this did not work and I could not find any solution otherwise.
I ended up adding some custom JavaScript with a data-turbo-refresh-scroll attribute in a similar vein to https://github.com/hotwired/turbo/issues/37#issuecomment-751523976, but it is a little convoluted since we are trying to scroll to an anchor. It would be great if we could just add an attribute to the link to drop the scroll preserve.

Can't you control this with the meta tag from the server side depending on the URL?

Do you mean modifying the meta tag from the server side when someone clicks a pagination link? We have this set up roughly using turbo-rails gem (using Stimulus to submit the form automatically when filters are selected):
<% content_for :head do %>
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
<% end %>

<%= form_with(url: some_path, method: :get, data: {controller: "form", turbo_action: "replace"}) do |f| %>
  ... search box ...
  ... filter checkboxes ...

  <div id="record-count">
     <% @pagy.count %>
     <% .. sort_by form field .. %>
  </div>
  <% render "results"%>
<% end %>
<%== pagy_nav(@pagy, anchor_string: "data-turbo-action='replace'", fragment: "#record-count") %>

This works really well in that scroll is preserved when the user selects different filters. However, when they click a pagination link, we'd like to remove the scroll preservation. If we modify the meta tag when a pagination link is clicked, then we would have the opposite problem that then the filters wouldn't have scroll preserve. Or am I misunderstanding your suggestion?
If we don't use data-turbo-action='replace' on the pagy links, then our accordion javascript that is part of how we display the search results breaks on subsequent pages.

You can change the value of the meta tag dynamically when you want the scroll to be preserved. For example, you could add a parameter to the filters form that indicates that the request is coming from that form, and if so, you make the scroll preserved using the meta tag.

Ah yeah, I see, that works, and is probably nicer than my convoluted JS override. Though it would be nice to have a solution that doesn't involve passing a parameter through the URL.

We don't plan to increase the scope of the API yet, but I understand the use case, so I'll leave it open for now!

Great, thank you! I ended up using the turbo:morph event in my Stimulus controller to avoid passing a parameter through the URL. Thanks for pointing out that I could dynamically change the meta tag.
import { Controller } from '@hotwired/stimulus';

export default class extends Controller {
  static targets = ['resetScroll'];

  connect() {
    let resetScroll = false;
    this.element.addEventListener('turbo:before-fetch-request', (event) => {
      if (this.resetScrollTargets.includes(event.target)) {
        resetScroll = true;
      }
    });

    document.addEventListener('turbo:morph', () => {
      if (resetScroll) {
        const metaTurboRefreshScroll = document.querySelector('meta[name="turbo-refresh-scroll"]');
        metaTurboRefreshScroll.content = 'reset';
        resetScroll = false;
      }
    });
  }

  submit() {
    this.element.requestSubmit();
  }
}

authors: brunoprietog littleforest

repo: hotwired/turbo


text:
banner for minified file

Reasoning: files often concocted (use: jsDelivr CDN, so you'll lose file ID/name & copyright.
Should work, but untested.

license is misspelt

Darn living in EU & un-learning American English ;)
cheers


text:
Can't install it on Mac OS X El Capitan (go version 1.5 darwin/amd64)

When go get it go get github.com/hpcloud/tail/...,the following error happend:
# github.com/hpcloud/tail/watch
hpcloud/tail/watch/inotify.go:31: fw.w.WatchFlags undefined (type *fsnotify.Watcher has no field or method WatchFlags)
hpcloud/tail/watch/inotify.go:31: undefined: fsnotify.FSN_CREATE
hpcloud/tail/watch/inotify.go:35: fw.w.RemoveWatch undefined (type *fsnotify.Watcher has no field or method RemoveWatch)
hpcloud/tail/watch/inotify.go:46: fw.w.Event undefined (type *fsnotify.Watcher has no field or method Event)
hpcloud/tail/watch/inotify.go:46: select case must be receive, send or assign recv
hpcloud/tail/watch/inotify.go:62: fw.w.Watch undefined (type *fsnotify.Watcher has no field or method Watch)
hpcloud/tail/watch/inotify.go:70: fw.w.RemoveWatch undefined (type *fsnotify.Watcher has no field or method RemoveWatch)
hpcloud/tail/watch/inotify.go:76: undefined: fsnotify.FileEvent
hpcloud/tail/watch/inotify.go:80: fw.w.Event undefined (type *fsnotify.Watcher has no field or method Event)
hpcloud/tail/watch/inotify.go:80: select case must be receive, send or assign recv
hpcloud/tail/watch/inotify.go:80: too many errors

Hi @se77en, thanks for raising this issue. I've tested this (in various environments and go versions) and it works fine.  Can you please confirm if your GOPATH is set correctly. I'm going to close this issue as it does not seem to be related to tail.

repo: hpcloud/tail


text:
Is CHAP auth supported?

Like in the title - will CHAP (or mutual CHAP for that mattter) work?

CHAP has not been implemented. It should be fairly easy to implement as the CSI driver supports CHAP. Not mutual CHAP though.

I'd be interested. Was using chap with democratic-csi

@ishioni you can pass in CHAP credentials in the HPE CSI Driver chart. If you do that now, I'm decently sure you'll break volume attachment. At-a-glance, there's an API endpoint to manage CHAP credentials in TrueNAS and it should be pretty straightforward to add. I'm not sure why I left this out to be quite honest.

@datamattsson Any news on this?

Not yet, I'll see if I can hash this out in the coming weeks.

This will be looked into after the CHAP rework in the HPE CSI Driver.

authors: datamattsson ishioni

repo: hpe-storage/truenas-csp


text:
Ad-hoc enable and disable completions

Sometimes I want to disable some sources  in a particular buffer as they get on the way.
I have come up with the following:
      function cmp_sources_list(arglead, _, _)
        -- the API does not allow for the retrieval of sources from cmdline
       -- I am just using the global sources
        local global_sources = require'cmp.config'.global.sources
       -- ideally I would like to get only the sources active in the current buffer
       -- but the following does not work
       -- require'cmp'.get_config().sources
        local out = {}
        for i = 1,#global_sources do
          if global_sources[i].name:find("^" .. arglead) ~= nil then
           out[#out + 1] = global_sources[i].name
          end
        end
        return out
      end

      function disable_cmp_source(name)
          local current_sources = cmp.get_config().sources
          local new_sources = {}
          for i = 1,#current_sources do
            if current_sources[i].name ~= name then
              new_sources[i] = current_sources[i]
            end
          end
          cmp.setup.buffer({sources = new_sources})
      end

      function enable_cmp_source(name)
          local global_sources = require'cmp.config'.global.sources
          local new_sources = cmp.get_config().sources
          for i = 1,#global_sources do
            if global_sources[i].name == name then
              new_sources[#new_sources+1] = global_sources[i]
            end
          end
          cmp.setup.buffer({sources = new_sources})
      end

      vim.cmd [[ command! -nargs=1 -complete=customlist,v:lua.cmp_sources_list CmpDisable lua disable_cmp_source(<f-args>) ]]
      vim.cmd [[ command! -nargs=1 -complete=customlist,v:lua.cmp_sources_list CmpEnable lua enable_cmp_source(<f-args>) ]]

My issue is with regards the completion list generated by cmp_sources_list.
When issuing the command CmpDisable I would like to get the sources of the current buffer auto-completed. However using require'cmp'.get_config().sources does not work. I suspect that this function calls config.get which when run from the cmdline tries to get the command line completions (lines 94 to 109) which is not what I intended.

The get all of registered source is not provided as public api. But you can use internal variable.
See require('cmp').core.sources.


text:
longest Turkish word

I found this cool word on Wikipedia:
muvaffakiyetsizleştiricileştiriveremeyebileceklerimizdenmişsinizcesine

It seems the system can't handle it. That might be fine, but it might also be a good future benchmark :)

It does seem to handle muvaffakiyetsizleştirecekleri, though.

When the last 'cesine' part is removed, system can handle the word:
muvaffakiyetsizleştiricileştiriveremeyebileceklerimizdenmişsiniz

This is because, it is defined that the CAsInA suffix can not come after a person suffix. So except the first one, I'm not sure that the following words are valid Turkish words:
insanmışcasına [valid]
insanmışımcasına
insanmışsıncasına
insanmışızcasına
insanmışsınızcasına [the same case with the wikipedia example]
insanmışlarcasına
If they are, it is trivial to change the definition.
By the way system can handle the following:
muvaffakiyetsizleştiricileştiriveremeyebileceklerimizdenmişçesine

I'll need to check my Turkish morphology book which is like 1300 pages :)

Neat! 17 out of 18 isn't bad. Nice long analysis: muvaffakiyet/ISIM sUz/IY_SIFAT_sUz lAş/IY_FIIL_lAş DUr/FY_ETTIRGEN_DUr_(U)t yUcU/FY_TANIMLAMA_(y)UcU lAş/IY_FIIL_lAş DUr/FY_ETTIRGEN_DUr_(U)t yUver/FC_YF_TEZLIK_(y)Uver yAmA/FC_YF_YETERSIZLIK_(y)AmA yAbil/FC_YF_YETERLILIK_(y)Abil yAcAk/FIILIMSI_SIFAT_(y)AcAK lAr/IC_COGUL_lAr UmUz/IC_SAHIPLIK_BIZ_(U)mUz DAn/IC_HAL_AYRILMA_DAn ymUş/EKFIIL_RIVAYET_(y)mUş CAsInA/IY_ZARF_CAsInA

authors: garfieldnate hrzafer

repo: hrzafer/nuve


text:
Running recode multiple times on file formats comment differently

When using recode as a mix format plugin, running mix format multiple times on a file like the following will always format the file differently:
defmodule RecodeTest do
  defstruct [
    :field_1,

    #######################################################
    ### A comment
    #######################################################

    :field_2
  ]
end

It seems that the problem is related to having a "multiline" comment between list elements, or at least this is the only place where I was able to reproduce the problem.
I've create a simple project to reproduce the issue: https://github.com/DReigada/recode_format_problem.git
Notice that no recode tasks are enable in recode's config file, but the problem happens independently of the configuration.

I'll gladly open a PR with a fix if I can get some guidance on where to start looking into the issue.

Hello @DReigada , thank you for reporting this. The issue appears in sourceror. I have reported this over there.

Thank you @NickNeck!

Opened a PR to solve this issue in sourceror: https://github.com/doorgan/sourceror/pull/128

authors: DReigada NickNeck

repo: hrzndhrn/recode


text:
wrong hash

ERROR: https://raw.githubusercontent.com/hsdn/tera-guide/master/guides/3103.js
Downloaded file doesn't match hash specified in patch manifest!

This is github cache problem. You need to wait some time.

authors: LixissT shindmitry

repo: hsdn/tera-guide


text:
Back space and windows key are not working

The keyboard was working perfectly fine, but now the backspace key is not working properly and is instead outputting "#" while the windows key is not outputting any data. Initially, I thought it was the EEPROM and as I had that issue before but after I tried the fix in #15 but it did not fix any issue.
Any idea what the cause might be.

same issue, like every magic feature's enabled
tried to reflash had no effect

authors: avifo denisinvader

repo: hsgw/plaid


text:
Slightly improve wording

Currently the site says
xxx Taproot blocks left until softfork is locked in

which is a bit clumsy (also: what is a "Taproot block"??). How's about something like this instead
xxx additional signalling blocks are needed for the softfork to lock in

Thank you!
Addressed in 3d3d5cd.

authors: flack hsjoberg

repo: hsjoberg/fork-explorer


text:
Highlight projected final block

I have this idea for a feature and would like some feedback before I start trying to hack something together. I am not a programmer by trade, so I would only start if there is strong support.
It would be cool to have a visual indication of which block will bring the signalling percentage to or above the softfork threshold. I believe all the required pieces are already in place: sum of signalling blocks, current percentage of miner support, and block highlighting. Enabling this could be a check box on the preferences page.
Again, I am not a programmer, but I think this is something I can handle. What do y'all think?

@charlespax I think this is a great idea!
You'll specifically want to target the 1815th block that is signalling, as the threshold is an absolute number (= 1815 signalling blocks required for lock-in), so base it upon the threshold property in config.ts.
I believe all things are in place yes, not exactly sure how to best find the right block, but a loop or array reduce would suffice.
You could add a final prop to the Block component (Block.tsx).
Let me know if you need any help.

@hsjoberg Thank you!
I dug into the code and I could use your help. I basically copied the guts of the auto-fetch settings entry. I am getting a weird error when I click the check box.

I've been looking and looking for an issue, but I can't find anything. Unfortunatly, I can only see errors in the generated code, which doesn't help me find any errors in the actual code.
I'm more of an embedded developer and electrical engineer. web stuff is not my thing. I'm trying, but I'm just stuck. Can you point me in the right direction?

authors: charlespax hsjoberg


text:
add more example application

Motivation and Context
To make easy for tide users adopt the framework, by using examples
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Thanks for adding this! Is it worth mentioning that this is built on tide from quite a while ago and may not represent current best practices or apis?

represent current best practices or apis?

if that the requirements of tide project to be posted in "example" section.  Then I have no authoritative answer, since I'm not the author.
@colinbankier is.

Fair point. Maybe it's worth keeping a tide version number next to each of these

Oh, I see your point. Since tide doesn't reach 1.0 yet. So the API will likely change.
Okay, let's add the version number next to the project examples.

I don't think we should include out-of-date examples?

related: https://github.com/http-rs/tide/pull/684

I think @Fishrock123's point is worth discussing. What is the purpose of this list, and does adding an outdated example help us meet that goal?
My answer to the former is "to help people structure their tide applications," and I don't see how outdated examples help us meet that goal.  In a mature project I can imagine someone saying "we have to use the old version for various reasons, so having old examples are useful," but I can't think of any reason to build a new tide application with anything older than the most recent release.
@azzamsa What do you think? Who does this help?

Agree with that. those old version should be in the community maintained list.

@azzamsa Why? What's the motivation behind including it in any list, if it doesn't help people use tide

I learn approach, capabilities, best practices, API from popular -boilerplates. ( = flask, and other web frameworks).
I want to know how people structure tide in a big project (real-world app), see what it capable of, etc.
It's okay if it's not relevant here.

I think it is relevant here, it's just that tide is rapidly changing, and the structure of applications changes as a result of those changes.  In particular, the 0.6 example uses a totally different approach to error handling than current tide apps would use, and that has somewhat far-reaching effects on the structure of an application. I worry that if someone were new to tide, they'd look at this example and not notice that tide's error handling story has improved since 0.6

We very much need more examples with different approaches, and I think it would be valuable to the community to bring the realworld.io example up to date so that it can be featured in this list

Yes, I see your point since the beginning. Tide doesn't reach 1.0 yet. So the API will likely to change fast. We don't want to put any old project representing old tide API. We don't want to make people assume that bad old API is the current tide API and make people upset.

and I think it would be valuable to the community to bring the realworld.io example up to date so that it can be featured in this list

sure. It will auto-magically happened when tide had a bigger community, some days later, I hope.

Thanks for considering the example. We would of course like to keep it up to date - I've opened https://github.com/colinbankier/realworld-tide/issues/29.
Also in terms of tide best practices etc, always happy to have issues or PRs opened to help that repo serve as a good example of building a non-trivial tide app.

authors: Fishrock123 azzamsa colinbankier jbr

repo: http-rs/tide


text:
ember client - Ended of Stream Looking for Response Prelude

I'm getting this error pretty often … must be a client error since it's parsing a response .. I guess?
org.http4s.ember.core.Parser$Response$RespPrelude$RespPreludeError: Received Error while parsing prelude - Reached Ended of Stream Looking for Response Prelude
    at org.http4s.ember.core.Parser$Response$RespPrelude$.$anonfun$parsePrelude$6(Parser.scala:422)
    at org.http4s.ember.core.Parser$Response$RespPrelude$.$anonfun$parsePrelude$6$adapted(Parser.scala:401)
    at fs2.Pull$.$anonfun$flatMap$1(Pull.scala:85)
    at fs2.internal.FreeC$$anon$1.cont(Algebra.scala:54)
    at fs2.internal.FreeC$ViewL$$anon$9$$anon$10.<init>(Algebra.scala:243)
    at fs2.internal.FreeC$ViewL$$anon$9.cont(Algebra.scala:243)

This would be the server killing an idle connection and it ending up using the connection presently.
We should be handling this gracefully and retrying.

This should now be fixed by #5064

authors: ChristopherDavenport RaasAhsan tpolecat


text:
Sample code in Authentication middleware does not compile in versions after Scala 3.3.3

Following sample code from Authentication section in official documentation does not compiles and fails with Type argument cats.data.OptionT[cats.effect.IO, ?] does not have the same kind as its bound [_$1] message in Scala version 3.3.3 and 3.4.0
val authUser: Kleisli[OptionT[IO, ?], Request[IO], User] = ???

Found following code from web (discord http4s channel) which compiles.
val authUser: Kleisli[[A] =>> OptionT[IO, A], Request[IO], User] = ???

I can't understand why first code fails and second succeeds yet. But I think documentation should be updated.

This raises questions of which version(s) should be supported in the docs.  Quick analysis shows Scala 2 is still about 2/3 of our downloads, and most of its examples translate cleanly to Scala 3.  This is a case that doesn't, and is worth some sort of note.
I haven't looked at what other projects do, but as far as I know, there's no cross-build support in mdoc, and we have to pick one dialect of Scala that gets compiled, and banish the other to sidebars that we hope work?  In that case, I would say Scala 2 is the primary and Scala 3 gets the sidebar for now.
After that is the question of which Scala 3 should be documented.  I favor LTS in that case.

I can't understand why first code fails and second succeeds yet.

Do you have the -Ykind-projector scalac option configured? I think if you add that and change ? for * (we can do this in the docs too) everything should work.

I was wondering how kind projection cross-built in our code but not the REPL.  I didn't realize Scala 3 still required a flag.  That does indeed fix it, with the newer wildcard:
> scala-cli -S 3.3 --dependency org.typelevel::cats-core:2.10.0 --scalac-option -Ykind-projector
Welcome to Scala 3.3.3 (17.0.10, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> import cats.data._

scala> val authUser: Kleisli[OptionT[Vector, *], List[String], Int] = null
val authUser:
  cats.data.Kleisli[[_] =>> cats.data.OptionT[Vector, _], List[String], Int] = null

I can't understand why first code fails and second succeeds yet.

Do you have the -Ykind-projector scalac option configured? I think if you add that and change ? for * (we can do this in the docs too) everything should work.

You're right. Adding the flag solved the problem.
I didn't know that option applies to Scala 3 either.
Thanks a lot.

authors: armanbilge nineclue rossabaker


text:
Update http4s-circe, http4s-ember-client to 0.23.3

Updates

org.http4s:http4s-circe
org.http4s:http4s-ember-client

from 0.22.4 to 0.23.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (0.22.4).
You might want to review and update them manually.
website/jvm/src/hugo/content/changelog.md

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

labels: library-update, semver-minor, old-version-remains

That plugin still requires a port.

authors: rossabaker scala-steward


text:
Feedback on Reakit

Hey @httpiago
I'm following public repositories that use Reakit, including this one. I'm constantly trying to improve the library, and I think your feedback would be really valuable.
How was your experience using Reakit? How did it help you? How could it be better?
Thank you 🙏

Also, I'd suggest you to put the GitHub pages url visible next to the repository description.

I did not use it much in this project but I really liked what I saw and I will certainly use it in other projects (I'm excited to use the Dialog component). From what I seen, Reakit solves several problems in a simple way and the bonus it's super customizable.
Congratulations for all the work! 👏👏

authors: diegohaz httpiago

repo: httpiago/navbar-as-splashscreen-demo


text:
递归处理嵌套引用函数

背景描述
当前如果在引用函数时，使用了嵌套引用函数的方式例如 ${my_sum(${my_sum(1, 2)}, 3)}，则只会解析内层函数 my_sum(1, 2)，例如 my_sum(1, 2) 的执行结果为 3 时，最终的解析结果为字符串类型的 ${my_sum(3, 3)} 而不是预期的 6
E   httprunner.exceptions.ValidationFailure: assert ${my_sum(3, 3)} equal 6(int)	==> fail
E   check_item: ${my_sum(3, 3)}
E   check_value: ${my_sum(3, 3)}(str)
E   assert_method: equal
E   expect_value: 6(int)

期望的功能特性
递归地处理嵌套引用函数的问题，从内到外地对函数进行解析

@bbx-winner 这种嵌套的写法太复杂了，很难通过正则匹配来支持所有情况。
因此还是不要支持这种写法了吧，针对有嵌套的情况，先将内部的函数赋值为变量，再引用吧。

authors: bbx-winner debugtalk

repo: httprunner/httprunner


text:
是否考虑增加fuzz testing功能

可以考虑增加fuzz testing用于异常测试

see #1194

authors: Renyqin debugtalk


text:
Issues with training

When i try to run train.py script I am getting something like this [00:00<?,?it/s]Segmentation fault
Could not sort out the source of the issue.

I have the same issue and fix it when I train the model with a single GPU. Maybe you can train the model with a single GPU to check whether the issue is related to the DDP.

When i try to run train.py script I am getting something like this [00:00<?,?it/s]Segmentation fault
Could not sort out the source of the issue.

Hi, I think this issue is sth. due to the version conflict or issues of cuda and torch version you installed.

authors: ariharasudhanm jamycheung yinbow


text:
Terminal "note" colour is incorrect

A bit more testing reveals some issues with terminal colours. This affects the three variations of the theme. Light, Dark, and Dark2. On Light, the "note" text colour is pure white, and for Dark and Dark2 is pure black.

@huacnlee thanks once again for the quick fix!
On a side note, this issue seems to be consistent with all the default themes that come with Zed, or is it just me?

It's because I was not done with all color variables.

repo: huacnlee/zed-theme-macos-classic


text:
Scaphandre Windows Installation

Hello everyone,
I would be grateful to all of you if you could help me with the issue I am facing.
I have been trying to compile Scaphandre using Windows 11 for weeks now. I have tried all possible solutions.
Let me tell you my configuration, what I have done so far, and the issue I am facing.

I have installed windows-rapl-driver and running driverquery /v | grep -i scaph result in this:

I have installed two toolchains versions of rust the MSVC and GNU, I have solved all issues I was facing regarding the Openssl-dev... but ending up with the same issue libc::pid_t .. mainly related to libc and 2 errors for os::unix.

it really doesn't matter what configuration I use ( GNU using msys2 or MSVC using Microsoft build tools and vcpkg) results always in this   Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. For more information about an error, try `rustc --explain E0412`. error: could not compile `procfs` due to 24 previous errors warning: build failed, waiting for other jobs to finish... .

I did always make sure to clean my system while switching from GNU to MSVC.

As far as I understood the libc is used with Unix-like environments. Is there a way to overcome this issue?

My purpose for using the Scaphandre tool is to be able to measure Erlang functions using Windows.

I am open to trying all solutions and propositions.
Thank you all

Thank you so much.

Reproducing these steps helped with building scaphandre locally.
However, I am not able to use it since the windows-rapl-driver seems to not be started yet.

As I mentioned earlier it seems that the driver is there but won't be able to start it with net start ScaphandreDr
I will try to investigate more about the driver issue but it would be great if you can help me if you already have a solution for that.

Thank you so much.

@tormath1 Thank you so much for the quick reply.
Answering to the three things:  Yes I am in test mode with windows 11 and using Administrator cmd.
I did some investigations I have these findings if you can confirm which way to proceed:

I did the build with MinGW. Do you think reinstalling it using CPUID could help? Since when I first tried to install it with MinGW I got a header error wdmguid.h: No such file or directory. I solved it adding -I + path-to-wdmguid.h.

When I try to look for the driver I do have this
 which is not in the usual system32/drivers folder ( It might be not the actual issue) and by default rebooting after the installation should start the service automatically which was not my case.

Even after reinstalling it in the system32/drivers folder I still can't start it.

I have strong doubts about which ScaphandreDrv.sys file to have with DriverLoader.exe since there are many in the repository, So I might be using the wrong one?

Thank you so much for your help

I was able to run the driver using windows 11.

In test mode, I used windows-rapl-driver/kernelland/ScaphandreDrv/x64/Release/ScaphandreDrv/ScaphandreDrv.sys to build the DriverLoader.cpp .

This solved the issue.
I hope this can help future users run scaphandre under windows.

Nice to see it working 👍
Thank you @joegharbi for the feedback and documenting the issue.

Thank you so much for your help.

Hi @joegharbi
Happy you could make it. Thanks for sharing this walkthrough, it will help us improve and simplify the procedure.
cc @vico63 this thread shows us what to improve :)

I'll look into that 🙂
Thank you for your feedback.

authors: Vic063 bpetit demeringo joegharbi

repo: hubblo-org/scaphandre


text:
PayloadTooLargeError for json payload exceeds the default 100kb which can't be changed

Hi!
I've encountered a problem when I need to send a request to the bot with json payload that exceeds 100kb I get PayloadTooLargeError no matter what EXPRESS_LIMIT variable is set.
The reason for that is EXPRESS_LIMIT being ignored when creating json body parser here:
app.use(express.json())
Looks like a bug to be fixed. This line should probably be:
app.use(express.json({ limit: limit}))

See #1405

Fixed with latest release.

authors: andrii-kasparevych asharpe joeyguerra

repo: hubotio/hubot


text:
🛑 Akkoma is down

In 2507643, Akkoma (https://akkoma.chez.chat) was down:

HTTP code: 500
Response time: 5369 ms

Resolved: Akkoma is back up in a731af3 after 27 minutes.

repo: hufman/upptime


text:
🛑 VGMdb API is down

In 3af28d5, VGMdb API (https://vgmdb.info) was down:

HTTP code: 502
Response time: 173 ms

Resolved: VGMdb API is back up in cc92deb after 11 minutes.


text:
accelerate config failed

when i go for accelerate config reported an error
I have tried to reinstall google and protobuf but error remained
Traceback (most recent call last):
File "/public/home/linhy/.local/bin/accelerate", line 5, in
from accelerate.commands.accelerate_cli import main
File "/public/home/linhy/.local/lib/python3.8/site-packages/accelerate/init.py", line 7, in
from .accelerator import Accelerator
File "/public/home/linhy/.local/lib/python3.8/site-packages/accelerate/accelerator.py", line 35, in
from .tracking import LOGGER_TYPE_TO_CLASS, GeneralTracker, filter_trackers
File "/public/home/linhy/.local/lib/python3.8/site-packages/accelerate/tracking.py", line 48, in
import wandb
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/init.py", line 26, in
from wandb import sdk as wandb_sdk
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/init.py", line 9, in
from .wandb_init import _attach, init  # noqa: F401
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 28, in
from . import wandb_login, wandb_setup
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/wandb_login.py", line 23, in
from .wandb_settings import Settings, Source
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/wandb_settings.py", line 38, in
from wandb.sdk.wandb_setup import _EarlyLogger
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/wandb_setup.py", line 28, in
from . import wandb_manager
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/wandb_manager.py", line 12, in
from wandb.sdk.lib.proto_util import settings_dict_from_pbmap
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/sdk/lib/proto_util.py", line 7, in
from wandb.proto import wandb_internal_pb2 as pb
File "/public/home/linhy/.local/lib/python3.8/site-packages/wandb/proto/wandb_internal_pb2.py", line 5, in
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'
(ldm) [linhy@login01 custom-diffusion]$ accelerate config
Traceback (most recent call last):
File "/public/home/linhy/.local/lib/python3.8/site-packages/accelerate/tracking.py", line 41, in
from torch.utils import tensorboard
File "/public/home/linhy/.local/lib/python3.8/site-packages/torch/utils/tensorboard/init.py", line 12, in
from .writer import FileWriter, SummaryWriter  # noqa: F401
File "/public/home/linhy/.local/lib/python3.8/site-packages/torch/utils/tensorboard/writer.py", line 9, in
from tensorboard.compat.proto.event_pb2 import SessionLog
File "/public/home/linhy/.local/lib/python3.8/site-packages/tensorboard/compat/proto/event_pb2.py", line 5, in
from google.protobuf.internal import enum_type_wrapper
ModuleNotFoundError: No module named 'google.protobuf'

The errors comes from a bad install of wandb looking at the traceback. You should try a fresh install!

repo: huggingface/accelerate


text:
Choosing a separator

Hi! This issue is most like a recommendation.
When I tried to upload a .csv file in huggingface, I don't have the option to choose a separator.
I understand that the .csv file is a "comma separated values" but in some cases the .csv has another separator, like in this case.

I think the problem it will resolve if I change the "|" to "," but hopefully, in the future, you can implement something like what I said above.
Best regards!

Closing issue as obsolete to new autotrain-advanced that is soon releasing.

repo: huggingface/autotrain-advanced


text:
adding swedish_medical_ner

Adding the Swedish Medical NER dataset, listed in "Biomedical Datasets - BigScience Workshop 2021"
Code refactored

Hi, what's the current status of this request? It says Changes requested, but I can't see what changes?

Hi, it looks like this PR includes changes to other files that swedish_medical_ner.
Feel free to remove these changes, or simply create a new PR that only contains the addition of the dataset

repo: huggingface/datasets


text:
Typos, grammar, style, etc.

As I read through units I will try to fix typos and English errors as I go along. This is a work in progress. Finished! (Would close issue #291 )

[x] Unit 0
[x] Unit 1
[x] Unit 2
[x] Unit 3
[x] Unit 4
[x] Unit 5
[x] Unit 6
[x] Unit 7
[x] Unit 8
[x] Bonus 1
[x] Bonus 2
[x] Bonus 3

Thanks for this big update work I'm checking the result and merge it 🤗

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Thanks so much for this contribution :exploding_head: this is amazing!!

Thanks for the update 🤗 . I'm checking the build and merging.
I sent you a mail to your WVU email please let me know if it's still your current email 😄 .

authors: HuggingFaceDocBuilderDev dylwil3 osanseviero simoninithomas

repo: huggingface/deep-rl-class


text:
Add copyrights

What this does
Add copyright headers to all non-empty files in lerobot/ and tests/

@Cadene or @alexander-soare can you review this last commit (https://github.com/huggingface/lerobot/pull/157/commits/ce89d91e321acbe568b52ce08dc1bdb9b6dfee92) and make sure it's good?
For instance Diffusion has a citation section so I've based on that, otherwise I copied the mention from their license.

repo: huggingface/lerobot


text:
[BUG] Incorrect link in the docu

In:
https://github.com/huggingface/lighteval/wiki/Adding-a-Custom-Task
replace:
https://github.com/huggingface/lighteval/wiki/adding_new_metric
by:
https://github.com/huggingface/lighteval/wiki/Adding-a-New-Metric

Hi ! Thanks for the heads up, it's fixed

authors: NathanHB TomasJavurek

repo: huggingface/lighteval


text:
TST: Run regression test in nightly test runner

Follow up to #1115

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

authors: BenjaminBossan HuggingFaceDocBuilderDev

repo: huggingface/peft


text:
Failed to run thenlper/gte-large-zh with  Could not start backend: cannot retrieve non-contiguous tensors Layout

System Info
System: Ubuntu 22.04.3 LTS
GPU: single NVIDIA A10
Model: thenlper/gte-large-zh
Deployment: docker
Image:
TEI failed to load thenlper/gte-large-zh
2023-11-29T10:45:34.434322Z  INFO text_embeddings_router: router/src/main.rs:156: Args { model_id: "the*****/***-****e-zh", revision: None, tokenization_workers: None, dtype: None, pooling: None, max_concurrent_requests: 512, max_batch_tokens: 16384, max_batch_requests: None, max_client_batch_size: 32, hf_api_token: None, hostname: "0.0.0.0", port: 80, uds_path: "/tmp/text-embeddings-inference-server", huggingface_hub_cache: Some("/data"), json_output: false, otlp_endpoint: None, cors_allow_origin: None }
2023-11-29T10:45:34.434390Z  INFO hf_hub: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hf-hub-0.3.2/src/lib.rs:55: Token file not found "/root/.cache/huggingface/token"
2023-11-29T10:45:35.831127Z  INFO download_artifacts: text_embeddings_core::download: core/src/download.rs:9: Starting download
2023-11-29T10:45:53.222248Z  WARN download_artifacts: text_embeddings_core::download: core/src/download.rs:18: `model.safetensors` not found. Using `pytorch_model.bin` instead. Model loading will be significantly slower.
2023-11-29T10:45:53.222265Z  INFO download_artifacts: text_embeddings_core::download: core/src/download.rs:26: Model artifacts downloaded in 17.391142008s
2023-11-29T10:45:53.230843Z  INFO text_embeddings_core::tokenization: core/src/tokenization.rs:22: Starting 16 tokenization workers
2023-11-29T10:45:53.270859Z  INFO text_embeddings_router: router/src/main.rs:316: Starting model backend
2023-11-29T10:45:53.481619Z  INFO text_embeddings_backend_candle: backends/candle/src/lib.rs:107: Starting FlashBert model on Cuda
Error: Could not create backend

Caused by:
    Could not start backend: cannot retrieve non-contiguous tensors Layout { shape: [2, 1024], stride: [1024, 1], start_offset: 22159360 }

load thenlper/gte-large seems fine
Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
docker run --gpus all -p 8080:80 --pull always ghcr.io/huggingface/text-embeddings-inference:0.5 \
           --model-id thenlper/gte-large-zh

Expected behavior
It works .... I guess ?
I'm not sure if this is the right place to post this issue, but I'll post it here anyway. Please close the issue if it's not relevant.

We do not allow for shared weights in Candle so some pytorch.bin weights files are not supported for now.
You can use the safetensors export of the weights:
docker run --gpus all -p 8080:80 --pull always ghcr.io/huggingface/text-embeddings-inference:0.5 \
           --model-id thenlper/gte-large-zh --revision refs/pr/3

repo: huggingface/text-embeddings-inference


text:
ValueError: Can't find 'adapter_config.json'

System Info
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained
config_file = hf_hub_download(
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Information

[ ] Docker
[X] The CLI directly

Tasks

[ ] An officially supported command
[X] My own modifications

Reproduction
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained
config_file = hf_hub_download(
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/text-generation-inference-main/1.py", line 9, in
model = AutoPeftModelForCausalLM.from_pretrained(
File "/usr/local/lib/python3.9/dist-packages/peft/auto.py", line 69, in from_pretrained
peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 121, in from_pretrained
raise ValueError(f"Can't find '{CONFIG_NAME}' at '{pretrained_model_name_or_path}'")
ValueError: Can't find 'adapter_config.json' at '/data/text-generation-inference-main/tiiuae'
Expected behavior
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained
config_file = hf_hub_download(
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/text-generation-inference-main/1.py", line 9, in
model = AutoPeftModelForCausalLM.from_pretrained(
File "/usr/local/lib/python3.9/dist-packages/peft/auto.py", line 69, in from_pretrained
peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 121, in from_pretrained
raise ValueError(f"Can't find '{CONFIG_NAME}' at '{pretrained_model_name_or_path}'")
ValueError: Can't find 'adapter_config.json' at '/data/text-generation-inference-main/tiiuae'

System Info
Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained config_file = hf_hub_download( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn validate_repo_id(arg_value) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id raise HFValidationError( huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Information

[ ]  Docker
[x]  The CLI directly

Tasks

[ ]  An officially supported command
[x]  My own modifications

Reproduction
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained config_file = hf_hub_download( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn validate_repo_id(arg_value) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id raise HFValidationError( huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/data/text-generation-inference-main/1.py", line 9, in model = AutoPeftModelForCausalLM.from_pretrained( File "/usr/local/lib/python3.9/dist-packages/peft/auto.py", line 69, in from_pretrained peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs) File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 121, in from_pretrained raise ValueError(f"Can't find '{CONFIG_NAME}' at '{pretrained_model_name_or_path}'") ValueError: Can't find 'adapter_config.json' at '/data/text-generation-inference-main/tiiuae'
Expected behavior
File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 117, in from_pretrained config_file = hf_hub_download( File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn validate_repo_id(arg_value) File "/usr/local/lib/python3.9/dist-packages/huggingface_hub/utils/_validators.py", line 158, in validate_repo_id raise HFValidationError( huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/data/liuyuanchao/text-generation-inference-main/tiiuae'. Use repo_type argument if needed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/data/text-generation-inference-main/1.py", line 9, in model = AutoPeftModelForCausalLM.from_pretrained( File "/usr/local/lib/python3.9/dist-packages/peft/auto.py", line 69, in from_pretrained peft_config = PeftConfig.from_pretrained(pretrained_model_name_or_path, **kwargs) File "/usr/local/lib/python3.9/dist-packages/peft/utils/config.py", line 121, in from_pretrained raise ValueError(f"Can't find '{CONFIG_NAME}' at '{pretrained_model_name_or_path}'") ValueError: Can't find 'adapter_config.json' at '/data/text-generation-inference-main/tiiuae'

I used a local model loading error

I used a local model loading error

Experiencing the exact same issue for the past couple of days. I keep digging

Here’s a link to the older issue that describes the same problem https://github.com/huggingface/text-generation-inference/issues/1283

Here’s a link to the older issue that describes the same problem #1283

Did you solve the problem ? I can not find https://github.com/huggingface/text-generation-inference/issues/1283

Here’s a link to the older issue that describes the same problem #1283

Did you solve the problem ? I can not find #1283

Nope, still trying to figure it out

I get the same error.
Did you solve the problem ?

I get the same error. Did you solve the problem ?

No, this is a big trouble

#1347 should fix this.

#1347 should fix this.

Hum nope it won't. In short here is what triggers the issue
the launcher execs
text-generation-server download-weights $MODEL_ID_OR_DIR --extension '.safetensors' --logger-level INFO --json-output

if MODEL_ID_OR_DIR is a local directory, the text-generation-server program will first look for local weights with the specified extensions at the root of the local directory as one can see here
https://github.com/huggingface/text-generation-inference/blob/f3aea78fb642967838e7b5b1940a25fe67f4f7a9/server/text_generation_server/utils/hub.py#L87
called here
https://github.com/huggingface/text-generation-inference/blob/main/server/text_generation_server/cli.py#L128
if no files are found, many fallbacks in exceptions handling lead to the final error obtained that we should disregard here.
so for the call with a local dir to work, two things:

weights are at the root of the specified directory
safetensor weights are required

For 1. if one prefetched the model from the hub then one should not specify the model root directory but the specific revsion root directly
example:
let assume we've just prefetched gpt2 from the hub then
text-generation-launcher --model-id /data/models--gpt2/snapshots/11c5a3d5811f50298f278a704980280950aedb10/

will work, but not
text-generation-launcher --model-id /data/models--gpt2/

because in the hub file layout there is indeed no weight file at the root of the layout

i have same problem, has any one fix this?

i know the answer, we must convert model from bin to safetensor format

same issue

Should be fixed in https://github.com/huggingface/text-generation-inference/pull/1364. Can you please try?

Same here. #1364 didn't works.

I solved this issue after converting model from bin to safetensors using convert.py
https://github.com/huggingface/safetensors/blob/main/bindings/python/convert.py

v1.1.1 works fine, but the latest v1.3.4 is giving the same error.

Fixed by #1419

authors: AlexBlack2202 OlivierDehaene Vitaliy-Firebird ZeroYuJie kmuk1234 likejazz lyc728 oOraph philschmid qijiaxing

repo: huggingface/text-generation-inference


text:
DPO Llava 1.5 and PaliGemma support

Closes #1784
Llava:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path llava-hf/llava-1.5-7b-hf \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_llava_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16 \
    --use_peft \
    --lora_target_modules=all-linear

PaliGemma:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path google/paligemma-3b-pt-224 \
    --trust_remote_code \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_paligemma_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16

the tests are failing due to some time-outs i believe

Re-running solved the issue

Closes #1784
Llava:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path llava-hf/llava-1.5-7b-hf \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_llava_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16 \
    --use_peft \
    --lora_target_modules=all-linear

PaliGemma:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path google/paligemma-3b-pt-224 \
    --trust_remote_code \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_paligemma_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16

how to set other parameters, like learning rate?

Closes #1784
Llava:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path llava-hf/llava-1.5-7b-hf \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_llava_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16 \
    --use_peft \
    --lora_target_modules=all-linear

PaliGemma:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path google/paligemma-3b-pt-224 \
    --trust_remote_code \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_paligemma_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16

I run the same code for llava-hf/llava-1.5-7b-hf, but it says:
'LlavaProcessor' object has no attribute 'apply_chat_template' I tried transformers==4.37.2 and 4.36.2 but failed. what's your transformers version?

Closes #1784
Llava:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path llava-hf/llava-1.5-7b-hf \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_llava_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16 \
    --use_peft \
    --lora_target_modules=all-linear

PaliGemma:
accelerate launch examples/scripts/dpo_visual.py \
    --dataset_name HuggingFaceH4/rlaif-v_formatted \
    --model_name_or_path google/paligemma-3b-pt-224 \
    --trust_remote_code \
    --per_device_train_batch_size 1 \
    --gradient_accumulation_steps 8 \
    --output_dir dpo_paligemma_rlaif-v \
    --bf16 \
    --torch_dtype bfloat16

If I want to support multi-pics DPO, where can I modify the code? Thank you for your patient very much!

@Liuziyu77 do you mind opening an issue for your questions? It's way easier for us to keep track of them

Could we possibly try llava_next_vicuna_7b ?

You can give it a try. Feel free to open an issue, it will help us tracking progress

repo: huggingface/trl


text:
Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (1.0.1) of this package:

Use activationCommands instead of activationEvents in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use atom.views.getView(atom.workspace), which returns an HTMLElement.
Call ::getActiveTextEditor instead

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.
If this package has been replaced by another package or functionality in core, please reply with this information.
See https://github.com/atom/atom/issues/6867 for more info. Thanks!

Is this issue still active? I still get deprecation warnings in Atom. Thanks!

authors: benogle papayasoft

repo: hughsk/atom-node-resolver


text:
七牛地址已经变了

之前是*.qbox.me
现在是up-z2.qiniu.com

旧地址还能使用吗？

貌似不能用了啊
error: Error Domain=https://up.qbox.me Code=400 "{"error":"incorrect region, please use up-z2.qiniu.com"}" UserInfo={NSLocalizedDescription={"error":"incorrect region, please use up-z2.qiniu.com"}}

那我修改下哈。。。

马上改改。。。0 -  0居然地址都变了

只需要这样改一下就好了
#define kQiniuUploadURL @"http://up-z2.qiniu.com"

但是我觉得 https 链接更好
https://upload.qbox.me

你觉得呢

🎉  Congrats
🚀  QiniuUpload (2.0.3) successfully published
📅  July 24th, 02:29
🌎  https://cocoapods.org/pods/QiniuUpload
👍  Tell your friends!

authors: github4dogg huhuanming taidypanda


text:
Add the list of required PHP extensions in composer.json

It may help users to detect problems during the Humbug install.

Thanks :)

authors: theofidry villfa

repo: humbug/humbug


text:
Consider how we can handle emptyDir

We generally won't recommend emptyDir for storage nodes. We should probably do something to make it clear that this is not recommended to use, unless in very specific use-cases.

Perhaps we can check for certain cases, like httponly nodes & ephemeral disks, which would allow emptyDir.
But if we can't know for certain if a given configuration is safe to use emptyDir with, then we may want to introduce a flag to opt-in to emptyDir, with documentation etc. describing when it may make sense to use emptyDir - and also when it does not.

This might have saved us a lot of heartache recently. I set up our production cluster with emptyDir not understanding the full implications of it. Now we are paying the price when there are node pool upgrades on our GKE cluster. I just filed https://github.com/humio/humio-operator/issues/680 which I think can help us even after we make the move to a local PVC.

authors: SaaldjorMike bderrly

repo: humio/humio-operator


text:
Add quotes and quote likes

I have not run migrations, need to make sure they are 100% correct (previous PR had screwed up database).
Keeping #15 open just for reference for now. Will be closed.

Status of this PR: Implementation for the original Quote and QuoteLike are done. However, this will need some changes to make Quotes and Character a HABTM, in order to match Josh's new concept.

Does this mean we have to re-re-re do this again, because last time when I tried to change this after doing the migrations everything just went to shit... (@cybrox should remember this). The only thing that could be good is if I set a commit right before I did the migration so I can just rollback to that.

@cybrox How about we get this initial thing working and then a separate PR can be done later to move to multi-line quotes?  Should be a pretty simple change at any point, once the quotes have a character_id in 'em
Also, if I'm not mistaken, all that remains on this is waiting for me to write Character.guess and you guys to integrate it, right?

@NuckChorris I guess that'd be possible, yeah. Changing it later on is just a single migration. And yeah, as far I can see, only the guessing method needs to be added.
The question on my end boils down to how much later we are going to change the structure, since building the UI for quotes as it is right now and then changing it again wouldn't make much sense. Then again, I haven't seen anyone complain about missing quotes, so we can probably do that change rather quick and then take our time to create a dead-simple UI for multiline quotes.

If it isn't a considerable amount of additional work - we should just finish up with multi-line support. Haven't seen much (any) complaints about quotes missing - let's give them a reason to remember them the next time we bring them back.

Server-side, the additional work is really not much, once we have run all of this so we have quotes actually associated to characters.
Client side might be a tiny bit tricky to create an intuitive UI for this, but I do kind of have an idea on how to realize it.

IMDB ui for this is actually a pretty good starting point!

🏠 🚴
I think that just having a character selection / quote UI with the ability to just add another line until finished is :+1:

Rebased and moved to feature/quotes to finish this up 👌

authors: JoshFabian NuckChorris cybrox toyhammered vevix

repo: hummingbird-me/hummingbird-server


text:
🛑 Stream HLS encoding (slow) is down

In d7fe124, Stream HLS encoding (slow) (https://live.thekor.eu/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Stream HLS encoding (slow) is back up in ae279f7 after 1 hour, 5 minutes.

repo: hupratt/upptime


text:
🛑 chirpy is down

In 8cddcfc, chirpy (https://chirpy.thekor.eu/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: chirpy is back up in 5a873e2 after 1 hour, 13 minutes.


text:
🛑 one api is down

In 558c306, one api (https://one.yjr.me) was down:

HTTP code: 526
Response time: 93 ms

Resolved: 导航 is back up in f9c099e after 18 minutes.

repo: hustlyt/upptime


text:
刚下载下来就跑不起来了

vite 最近安装的

Status Code: 404 Not Found
http://localhost:3001/src/store/modules/app
store 整个文件夹都丢失啦

解决方案：
// permission.js
将
import { TOKEN } from '@/store/modules/app' // TOKEN变量名
替换成
import { TOKEN } from '@/pinia/modules/app' // TOKEN变量名


text:
This module needs a version to be published on denoland

No uploaded versions
This module name has been reserved for a repository, but no versions have been uploaded yet. Modules that do not upload a version within 30 days of registration will be removed. If you are the owner of this module, please re-add the GitHub repository with deno.land/x (by following the instructions at https://deno.land/x#add), and publish a new version.

I am also getting same issue.
This one is major issue can you fix please

Fixed

authors: GuilhermeVendramini VijalPatel hviana


text:
ghc cannot compile executables on Ubuntu yakkety amd64

Because yakkety’s GCC now builds with -fPIE by default, GHC in ppa:hvr/ghc is no longer able to compile executables:
$ echo 'main = putStrLn "Hello, world!"' > hello.hs
$ /opt/ghc/7.10.3/bin/ghc hello.hs
[1 of 1] Compiling Main             ( hello.hs, hello.o )
Linking hello ...
/usr/bin/ld.bfd.real: hello.o: relocation R_X86_64_32S against `stg_bh_upd_frame_info' can not be used when making a shared object; recompile with -fPIC
hello.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

To work around this error, Ubuntu applied a patch disabling PIE on amd64 and ppc64el to yakkety’s GHC. Consider patching the PPA packages similarly.

Additionally, Cabal needs haskell/cabal#3443.

@andersk fyi, since yakkety went into release freeze recently, I've started uploading Yakkety packages

Cool. It looks like your yakkety packages are patched to work on yakkety (I checked 7.10.3 and 8.0.1), so this can be closed.

Indeed, I used the same method as Ubuntu. However, just as with Ubuntu's ghc, ghc -shared is broken; this will most likely need to be fixed in GHC upstream.

authors: andersk hvr

repo: hvr/multi-ghc-travis