text:
Connexoon RTS entities always in unknown state - expected?

Did you read the instructions?

[X] I have read the README, including the advanced debugging section.

The problem
I've installed the most recent version in my custom_components directory. All my devices are detected and I can control the devices (up/down/my button). However, the state of the device is not reflected in Home Assitent. It always tells the state is unknown:

I know that the RTS device is not capable of returning its state. However, I was hoping ha-tahoma would optimistically set the state to whatever I executed. That would work for me as I usually don't use the physical switches.
Question is: Is the unknown state in my situation by design or is there any issue with my setup?
What version of this integration (ha-tahoma) has the issue?
2.12.1 (latest, today)
What version of Home Assistant Core has the issue?
core-2021.12.10
Which gateway / hub do you use?
Somfy Connexoon RTS
Device model
UpDownRollerShutter
Home Assistant log
Logs
2022-01-26 19:29:18 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tahoma which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.034 seconds (success: True)
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] All devices have assumed state. Update interval has been reduced to: 1:00:00
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**, device_url=rts://****-****-7665/16713475, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**ü**, device_url=rts://****-****-7665/16715189, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**, device_url=rts://****-****-7665/16723116, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**ü**, device_url=rts://****-****-7665/16730343, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**, device_url=rts://****-****-7665/16731473, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**, device_url=rts://****-****-7665/16757382, controllable_name='rts:ExteriorVenetianBlindRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='moveOf', nparams=2), CommandDefinition(command_name='openConfiguration', nparams=1), CommandDefinition(command_name='tiltNegative', nparams=2), CommandDefinition(command_name='tiltPositive', nparams=2)]), states=[], widget_name='UpDownExteriorVenetianBlind', ui_class='ExteriorVenetianBlind', qualified_name='rts:ExteriorVenetianBlindRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_EXTERIOR_VENETIAN_BLIND: 'UpDownExteriorVenetianBlind'>, ui_class=<UIClass.EXTERIOR_VENETIAN_BLIND: 'ExteriorVenetianBlind'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**ü**, device_url=rts://****-****-7665/16760210, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**, device_url=rts://****-****-7665/16770277, controllable_name='rts:ExteriorVenetianBlindRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='moveOf', nparams=2), CommandDefinition(command_name='openConfiguration', nparams=1), CommandDefinition(command_name='tiltNegative', nparams=2), CommandDefinition(command_name='tiltPositive', nparams=2)]), states=[], widget_name='UpDownExteriorVenetianBlind', ui_class='ExteriorVenetianBlind', qualified_name='rts:ExteriorVenetianBlindRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_EXTERIOR_VENETIAN_BLIND: 'UpDownExteriorVenetianBlind'>, ui_class=<UIClass.EXTERIOR_VENETIAN_BLIND: 'ExteriorVenetianBlind'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**ü**, device_url=rts://****-****-7665/16773498, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added device (Device(attributes=States(_states=[State(name='rts:diy', type=<DataType.BOOLEAN: 6>, value=False)]), available=True, enabled=True, label=**, device_url=rts://****-****-7665/16774285, controllable_name='rts:RollerShutterRTSComponent', definition=Definition(commands=CommandDefinitions(_commands=[CommandDefinition(command_name='close', nparams=1), CommandDefinition(command_name='down', nparams=1), CommandDefinition(command_name='identify', nparams=0), CommandDefinition(command_name='my', nparams=1), CommandDefinition(command_name='open', nparams=1), CommandDefinition(command_name='rest', nparams=1), CommandDefinition(command_name='stop', nparams=1), CommandDefinition(command_name='test', nparams=0), CommandDefinition(command_name='up', nparams=1), CommandDefinition(command_name='openConfiguration', nparams=1)]), states=[], widget_name='UpDownRollerShutter', ui_class='RollerShutter', qualified_name='rts:RollerShutterRTSComponent'), data_properties=None, widget=<UIWidget.UP_DOWN_ROLLER_SHUTTER: 'UpDownRollerShutter'>, ui_class=<UIClass.ROLLER_SHUTTER: 'RollerShutter'>, states=States(_states=[]), type=<ProductType.ACTUATOR: 1>, place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77'))
2022-01-26 19:29:59 DEBUG (MainThread) [custom_components.tahoma] Added gateway (Gateway(partners=[], functions='INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS', sub_type=<GatewaySubType.TAHOMA_BASIC: 1>, id=****-****-7665, gateway_id=****-****-7665, alive=True, mode='NO_AUTO', place_oid='c05581ba-0f7c-4ab5-8330-04f100739f77', time_reliable=True, connectivity=Connectivity(status='OK', protocol_version='2021.5.4'), up_to_date=True, update_status=<UpdateBoxStatus.UP_TO_DATE: 'UP_TO_DATE'>, sync_in_progress=False, type=<GatewayType.CONNEXOON_RTS: 53>))
2022-01-26 19:30:02 DEBUG (MainThread) [custom_components.tahoma.config_flow] ZeroConf discovery detected gateway ****-****-7665
2022-01-26 19:30:02 DEBUG (MainThread) [custom_components.tahoma.config_flow] Gateway ****-****-7665 is already configured
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1643221863219, name=<EventName.EXECUTION_REGISTERED: 'ExecutionRegisteredEvent'>, setupoid=_CountingAttr(counter=304, _default=None, repr=<function obfuscate_id at 0x6d57e610>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=1, sub_type=1, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label='Home Assistant', metadata='', camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='97a7cb32-98e4-e192-3324-f085b977bf35', device_url=None, device_states=[], old_state=None, new_state=None)
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1643221863219, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=304, _default=None, repr=<function obfuscate_id at 0x6d57e610>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=e7e6901a-****-4f****-9ed****-84bf658c9fe8, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='97a7cb32-98e4-e192-3324-f085b977bf35', device_url=None, device_states=[], old_state=<ExecutionState.INITIALIZED: 'INITIALIZED'>, new_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>)
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1643221863219, name=<EventName.GATEWAY_SYNCHRONIZATION_STARTED: 'GatewaySynchronizationStartedEvent'>, setupoid=_CountingAttr(counter=304, _default=None, repr=<function obfuscate_id at 0x6d57e610>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-7665, exec_id=None, device_url=None, device_states=[], old_state=None, new_state=None)
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1643221863220, name=<EventName.EXECUTION_STATE_CHANGED: 'ExecutionStateChangedEvent'>, setupoid=_CountingAttr(counter=304, _default=None, repr=<function obfuscate_id at 0x6d57e610>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=e7e6901a-****-4f****-9ed****-84bf658c9fe8, type=1, sub_type=1, time_to_next_state=0, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=None, exec_id='97a7cb32-98e4-e192-3324-f085b977bf35', device_url=None, device_states=[], old_state=<ExecutionState.NOT_TRANSMITTED: 'NOT_TRANSMITTED'>, new_state=<ExecutionState.TRANSMITTED: 'TRANSMITTED'>)
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma.coordinator] Event(timestamp=1643221863220, name=<EventName.GATEWAY_SYNCHRONIZATION_ENDED: 'GatewaySynchronizationEndedEvent'>, setupoid=_CountingAttr(counter=304, _default=None, repr=<function obfuscate_id at 0x6d57e610>, eq=True, order=True, hash=None, init=True, on_setattr=None, metadata={}), owner_key=None, type=None, sub_type=None, time_to_next_state=None, failed_commands=None, failure_type_code=None, failure_type=None, condition_groupoid=None, place_oid=None, label=None, metadata=None, camera_id=None, deleted_raw_devices_count=None, protocol_type=None, gateway_id=****-****-7665, exec_id=None, device_url=None, device_states=[], old_state=None, new_state=None)
2022-01-26 19:31:01 DEBUG (MainThread) [custom_components.tahoma] Finished fetching device events data in 0.045 seconds (success: True)

Additional information
No response

By design. We don't support optimistic state as we think this is something that should be provided by Home Assistant core, or tracked via a cover template.
Maybe not the answer you are looking for, but perhaps you can create a cover template or use a custom component that adds this.

Thanks for the hint @iMicknl ! That seems to work 👍
cover:
  - platform: template
    covers:
      wrapped_cover:
        device_class: shade
        friendly_name: "My wrapper cover"
        open_cover:
          - service: cover.open_cover
            target:
              entity_id: cover.$SOMFY_NAME
        close_cover:
          - service: cover.close_cover
            target:
              entity_id: cover.$SOMFY_NAME

By design. We don't support optimistic state as we think this is something that should be provided by Home Assistant core, or tracked via a cover template.

That means a PR to make this ☝ an option for RTS devices in ha-tahoma would not be accepted, right?

Yes indeed. And if I remember well HA does not allow anymore such option too.

@larsxschneider does your cover template already provide everything you are looking for? It seems that optimistic mode is enabled by default in your scenario. https://www.home-assistant.io/integrations/cover.template/#optimistic
Indeed, we wouldn't accept such modifications for this repo, especially since we are migrating everything to core and it won't be accepted there. Perhaps it is good to create a proposal on https://github.com/home-assistant/architecture/discussions. I can imagine there are other requests and/or integrations that still implement a custom optimistic option?

authors: iMicknl larsxschneider tetienne

repo: iMicknl/ha-tahoma


text:
ionic中使用cordova_weibo插件，为什么回调函数没有被触发

使用ionic+cordova创建的APP中加入cordova_weibo插件，使用checkClientInstalled判断客户端是否安装，可是回调函数使用没有触发，什么情况？

@tongtongchen0  demo可以跑嘛？ 你提供的信息太少，我也不清楚。

    找到问题了，是我在APP中使用了Cordova-plugin-crosswork-webviwe插件，替换了内置的webview，在执行checkClientInstalled时，提示：Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343，移除Cordova-plugin-crosswork-webviwe插件之后，使用默认webview，就可以正常回调了！
   对于Corsswork的这个问题有什么解决办法吗？

@tongtongchen0 这个只是warning吧，执行大于了50ms，并不一定是主因，我以前用没有这个问题

也是在crosswalk下使用的吗？把crosswalk移除之后，再使用就正常了

我以前也用过crosswalk 并没有什么问题，当然已经一年多没有写过Cordova，crosswalk发展到什么地步了我也不是很清楚，我查了一下这个warning，Google上面有很多，你可以搜搜看，或许能找到解决方案

我是最近采用的crosswalk，已经遇到了几个没法解决的问题了～～～～～

source: gharchive/issue

license: mit

license_type: permissive

license_source: bigquery


text:
Check for handlers matching Type if no Subject set

MessageDispatcher will now check for handlers matching the Type value if no Subject is set on a
received message. This is useful for Amazon notifications as they lack Subject.

👍

source: gharchive/pull-request

authors: freddd powion

repo: iZettle/izettle-toolbox


text:
Empty Folders

@iam-veeramalla Thank you first of all for the amazing Devops series, I see that the folders contains empty readme [Day1,2,3]
Can you please upload the relevant files?
Best Regards!

/jira

/jira

/jira

/jira

/jira

/jira

/jira

/jira

/jira

/jira

repo: iam-veeramalla/python-for-devops

license: MIT

license_source: github-api


text:
chore: add document click close test. use lint for files in test/

lint files in test/. Add a test to verify that the dropdown closes on document.click.
This test is somewhat unintuitive because enzyme does not mount/attach the component to a document that enzyme.simulate('event') can be used with.

your commit message is too long.
should be about 70 characters long max.
you can put the rest of the info in the body of the commit message
for eg. git commit -m "chore: add document click close test" -m "use lint to ..."
you can fix by ammending the commit

it is amended to one commit "add document click close test"

authors: iambumblehead lwhiteley

repo: iambumblehead/react-dropdown-now


text:
Tailwind 2.0

Describe the bug
Does not support the tailwind 2.0 classes
To Reproduce
Use tailwind 2.x
Expected behavior
Autocomplete knows about new classes
Desktop (please complete the following information):

OS: Arch Linux

I'm looking forward to more features such as highlight tailwindcss colors like the decorator the vscode tailswindcssIntellsens has.

authors: mrozbarry sheldonldev

repo: iamcco/coc-tailwindcss


text:
数据库连接配置是不是应该用连接字符串比较好

不同数据库需要的连接信息字段可能不一样的 现在这样好怪

每个模块都可以指定ConnectionString属性的，指定了该属性就不会用全局的了

authors: hajiuxbz iamoldli

repo: iamoldli/NetModular


text:
Feature Request: Add alternative methods for calculating implied odds

Thanks for working on this Python library - I was trying to make something similar myself.
The method used for the implied odds is using the basic (multiplicative) method which is the least method. There should be other methods similar to those in the R implied odds library:
https://cran.r-project.org/web/packages/implied/vignettes/introduction.html

We will add this to our next sprint along with replicating clv_calc, clv_hfa, edge_calc, hold_calc from our R library. We are working through adding all these functions but don't have a specific order we need to go in. If there are functions you want us to prioritize or add from your other work you mentioned please let us know and we are happy to incorporate that.

Jason is going to review as well, but feel free to look yourself. There are some very slight differences between our output and the R library at 6 decimal places out. I believe it is down to methods that use optimizer and how the different libraries compute the value.

authors: carlzoo ian-shepherd

repo: ian-shepherd/pybettor


text:
Add unit testing and fix linting

run unit tests via Github actions
fix linting issues found with flake8
refactor convert_odds using ChatGPT

looks like some of the tests need to be fixed, will reopen again


text:
🛑 mi-core is down

In dd3c58a, mi-core (https://www.mi-core.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mi-core is back up in ec2eb0d.


text:
Trouble with Peak/Off Peak

Morning,
This is probably me being dumb, but my off-peak period is 00:30 to 03:30, but when I set my config file as follows it puts all usage 'off peak'
elecPeakStartTime: '03:30',
elecPeakEndTime: '00:30',
When I reverse the figures, it separates them but obviously peak and off peak are backwards. It seems to work if I split the peak across 2 days too

It wont be you being dumb. I'll take a look later today

authors: Krisalexroberts ianmccon

repo: ianmccon/MMM-IntelligentOctopus


text:
讨论功能的使用问题

在提问的时候无法提取原文和译文中的内容，可能的解决方案

在这个区域显示该句子块的内容

已经解决

authors: bhikkhu-kosalla-china visuddhinanda

repo: iapt-platform/mint


text:
Crashes on templates with sections (at runtime)

Will add output of affected programs when reproduced.

This seems to be triggered by other issues already known - https://github.com/nickel-org/rust-mustache/issues/45

Fixed with our own fork - temporarily.

repo: ibabushkin/bartender


text:
one peer join the room, how can he only receive all the stream, but he don't send any stream, he is the role of monitore

I am researching mediasoup system
but we have a role of monitor
so the role join the room but no stream upload, and receive all the streams of the room

Please, let's use the public mailing list for usage questions:
https://mediasoup.org/support/
Your use case has no mystery at all. Just make the monitor join the room without attaching any local MediaStream into its PeerConnection (in the browser I mean).

thank you very much

repo: ibc/mediasoup

license: ISC


text:
feat(symbols): add space to child symbols.

Also removes [] from symbo_style 2 (icon only).
This gives a nice tree-like view for document_symbols.

Ty @liangxianzhe, looks great :)
I have two minor comments:

I’m not sure how prone to changes are the internal LSP until functions, I’d rather rely on the public lsp.util APIs than to replicate internal code and call _ functions.
I’m also unsure about having this as default and non optional, users being users some have different preferences and would like to not have an indent in a fuzzy search interface as it can look weird after starting to type

That said, I’d love to accept this (perhaps even make it default) as long as users have an option to revert to the previous look and feel, the unchanged version should also call the original vim.lsp.util.symbols_to_items just in case something changes in the API so users can have a workaround until a bug fix is available.
What do you think?

Hi, see the last commit.

Changed to not rely on _ internal function, instead, inline it.
The child_prefix option can be used to restore the original non-indented look, the user just needs to set it to empty or nil.
Changed to use vim.lsp.util.symbols_to_items if child_prefix is not set.

On a side note, there are some issues with the existing symbol icon resolution logic. I'm planning to send another PR once this is in.

https://github.com/ibhagwan/fzf-lua/commit/fd825cc6937c774fd7d8dd8573100e0ce3fbaa00 - few changes:

Removed the exception for symbol_style=2, it's incosistent with the rest of the options and changes default behavior, if someone wishes to override that it's now possible due to opts being sent as 2nd argument (left that intact)
changed child_prefix default to true, users don't need to be aware of fzf/UTF woes, and the characters you chose have caused an issue in the past with filenames that contain those (very rare), instead used utils.nbsp which has proven track record now. You can still set child_prefix to whatever you want if you wish to control that (don't see why but it's still possible).

On a side note, there are some issues with the existing symbol icon resolution logic. I'm planning to send another PR once this is in.

Tysm!

Makes sense, thanks!

Makes sense, thanks!

Actually, the space char "fix" needed to be reverted, it's only meant to be used for prefixes and will cause issues with anything that comes after the file.
https://github.com/ibhagwan/fzf-lua/commit/a553b614f1b89fdbf645efef977f4b7aa0fa6c19

Hi @ibhagwan , just notice that utils.nbsp will break the preview window for indented items (mac, alacritty), while \xc2\xa0 works fine. I saw you played with these magical codes before, any idea how to debug this?

Actually, saw your fix. Thanks!

Actually, saw your fix. Thanks!

Yes, this was my bad :)
I needed a character that isn’t visible and isn’t space and Thad nobody uses, it is used to distinguish all the file prefix markers (icons, git icons, buffer num, etc), it works very well for anything that comes before the file:
https://github.com/ibhagwan/fzf-lua/blob/a553b614f1b89fdbf645efef977f4b7aa0fa6c19/lua/fzf-lua/path.lua#L230
The file end is then marked with : and anything that comes after is valid, we could equally use regular space here to make the indent but A0 will work just as fine.

authors: ibhagwan liangxianzhe

repo: ibhagwan/fzf-lua


text:
Added config option to filter marks

Possible to implement something like this?

Ty for the contibution @axeldetlofsson!
Merged - https://github.com/ibhagwan/fzf-lua/commit/4d1521cdc6b727126c5807a5e112110a01cc8bd9

authors: axeldetlofsson ibhagwan


text:
引入YYKit后，Masonry布局的失效

引入YYKit后，Masonry布局的页面失效，就全部乱了

category命名冲突？

与 Masonry 没关系啊。。
另外，建议如果只需要某个模块的话，单独引入。

我也是yykit和masonry都用，都是pod管理的，木有出现问题，是不是引入别的库造成的？

嗯，我是在pch中直接饮用了YYKit，昨晚我查了一下，是UIView＋YYAdd里面的left，right这些方法和masonry的冲突了

之后我就只引入了YYText 模块

我觉得pch里面做全局引用要慎重，因为OC没有命名空间，很容易打架~

嗯是的，有些框架里面的Category会重名相互冲突,谢谢@hengcj

客气了~

这么说想起来了，好像 masonry 有个宏开关来控制，打开后就会和 left right 那套东西有冲突。

对对，我为了方便，把那个打开了

masonry中是什么宏，来控制left冲突？

找到了：MAS_SHORTHAND

authors: hengcj ibireme ulongx zhangqibin

repo: ibireme/YYKit


text:
YYModel不支持 @property(copy, nonatomic) NSArray *goodsAttr; 吗？

YYModel 不支持， 这里数组吗？ ， /**

商品属性
*/
@property(copy, nonatomic) NSArray *goodsAttr;

https://github.com/ibireme/YYModel#容器类属性

@ibireme 你好
假如@property(copy, nonatomic) NSArray *results。这个results里面存储的类型不确定，需要根据具体的内容做配置(xxx1Class,xxx2Class)， 这种需求有办法解决吗？

一个方法是实现 + (nullable Class)modelCustomClassForDictionary:(NSDictionary *)dictionary;，针对不同 Dictionary 返回自定义 Class，
另一个方法是实现 - (NSDictionary *)modelCustomWillTransformFromDictionary:(NSDictionary *)dic; 在转换后手动判断处理下。
具体内容可以看下这两个方法的头文件注释。

@ibireme 谢谢！
1.modelCustomWillTransformFromDictionary这个应该是新加的哇。我现在是1.0.1。
2.modelCustomClassForDictionary，我需要通过循环去找是array类型的key，有没有对每个key解析时的回调呢？

写错了。。用modelCustomTransformFromDictionary 。。

authors: HeroOnline ibireme mrdaios

repo: ibireme/YYModel


text:
Dbus property to store OS IPL mode

This commit has a new dbus property ("OSIPLMode"), present
at com.ibm.panel to store the OS IPL mode state change value.
This property is updated by PLDM whenever the
"PLDM OEM OS IPL MODE" sensor state signal is sent by PHYP.
Tested on rainier.
root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b false
root@p10bmc:/tmp#
root@p10bmc:/tmp# pldmtool raw --data 0x80 0x02 0x0A 0x01 0xD0 0x00 0x05 0x00 0x01 0x00 0x01 0x02
pldmtool: Tx: 08 01 80 02 0a 01 d0 00 05 00 01 00 01 02
pldmtool: Rx: 08 01 00 02 0a 00 00
root@p10bmc:/tmp#
root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b true
root@p10bmc:/tmp#
root@p10bmc:~# paneltool -b EXECUTE
Mar 10 10:33:05 rain71bmc ibm-panel[3360]: L1 : 01  D  N    PVM
Mar 10 10:33:05 rain71bmc ibm-panel[3360]: L2 :             P
root@p10bmc:/tmp# pldmtool raw --data 0x80 0x02 0x0A 0x01 0xD0 0x00 0x05 0x00 0x01 0x00 0x02 0x01
pldmtool: Tx: 08 01 80 02 0a 01 d0 00 05 00 01 00 02 01
pldmtool: Rx: 08 01 00 02 0a 00 00
root@p10bmc:/tmp#
root@p10bmc:/tmp# busctl get-property com.ibm.PanelApp /com/ibm/panel_app com.ibm.panel  OSIPLMode
b false
root@p10bmc:/tmp#
root@p10bmc:~# paneltool -b EXECUTE
Mar 10 10:33:54 rain71bmc ibm-panel[3360]: L1 : 01     N    PVM
Mar 10 10:33:54 rain71bmc ibm-panel[3360]: L2 :             P
Change-Id: I43b522ec30e9f542c47ac89f3f2081b00809485a
Signed-off-by: Priyanga Ramasamy priyanga24@in.ibm.com

Wrong one

repo: ibm-openbmc/ibm-panel


text:
Pick up IPZ VPD interfaces

This commit enables pimgen.py to pick up
the IPZ VPD interfaces in addition to the
interfaces in the xyz namespace.
Signed-off-by: Santosh Puranik santosh.puranik@in.ibm.com
Change-Id: I86e10b3aa15bd2bce6a0e0ff656a06787722615e

Will need to look into how to get this into upstream, but for now this is a critical downstream patch needed to get to BMC Ready.

jenkins run tests please

repo: ibm-openbmc/phosphor-inventory-manager


text:
pix2pix needs  data from directory maps

in pix2pix file,
I found exception:
FileNotFoundError: [Errno 2] No such file or directory: 'maps'
from code
dataset = torchvision.datasets.ImageFolder("maps", transform=transform)
I think it must be lost some data.
would you please fix this.
many thanks!

@wormcode some data are not download-able from the labs. I think this is one of them

authors: ibrahimjelliti wormcode


text:
Missing hashCode Implementation in Principal Class Causes Duplicate Entries in Sets

Hello ic4j Team,
I am writing to report an issue I've encountered while using the ic4j library, which has been otherwise very beneficial for my projects. The issue pertains to the Principal class not having an implemented hashCode method.
Issue Description:
When creating two instances of the Principal class with the same value and adding them to a Set, the Set mistakenly contains two instances instead of one. This is contrary to the expected behavior where a Set should automatically handle and prevent duplicate entries.
Impact:
This behavior affects the data integrity when using Sets to store unique Principal instances, leading to potential bugs and unexpected behaviors in applications relying on the ic4j library.
Expected Behavior:
Ideally, the Principal class should override the hashCode method (alongside equals) to ensure that two Principal instances with the same value are treated as equal by collection classes like Set.
Suggested Solution:
Implementing the hashCode method in the Principal class, ideally in a manner consistent with the equals method, would resolve this issue.
Example for Reproduction:
Code snippet to demonstrate the issue
Set<Principal> principals = new HashSet<>();
Principal principal1 = Principal.fromString("tdmfb-hvxfs-w4yoo-hmigb-vy52k-7bf2v-mjg6i-luxix-xoxk7-55h6z-nqe");
Principal principal2 = Principal.fromString("tdmfb-hvxfs-w4yoo-hmigb-vy52k-7bf2v-mjg6i-luxix-xoxk7-55h6z-nqe");
principals.add(principal1);
principals.add(principal2);

System.out.println("Set size should be 1, but is: " + principals.size());

This issue is crucial for the proper functioning of sets and maps in Java, where unique identification of objects is often required. I hope this can be addressed in a future update. Thank you for your attention to this matter and for your continued work on the ic4j library.
Best regards,
Alexander

Alexander, I added those to functions to Principal class. You can check code in GitHub. Also released patch for ic4j-candid package to Maven Central. Version is 0.6.19.7

Dear Roman,
I wanted to express my gratitude for your swift response and fix regarding the hashCode issue in the Principal class of the ic4j library. I've tested the update, and I'm pleased to report that it works perfectly. Your prompt and effective action is greatly appreciated and enhances the user experience significantly. Thank you for your dedication and support to the ic4j community.
Best regards,
Alexander

authors: chinaryov rdobrik


text:
Question About Training Details

Hello author,
I want to reproduce the result of lightweight SR x4 task and I try to follow the training process using 2GPUs with batch size = 16 for each one. The window_size is 16x16 and feature_dim is 60.

My environment version information is:

BasicSR: 1.4.2
PyTorch: 2.1.1+cu121
TorchVision: 0.16.1+cu121

Here is my training config file: train_example.txt.txt

Due to the error of can't find "CAMixerSR" architecture, I modify the train.py as

import os.path as osp
import archs
import models
from basicsr.train import train_pipeline
if __name__ == '__main__':
    root_path = osp.abspath(osp.join(__file__, osp.pardir))
    train_pipeline(root_path)

The training script is:

CUDA_VISIBLE_DEVICES=0,1 torchrun --nproc_per_node=2 --master_port 29500 basicsr/train.py \
 -opt /home/jiachen/CAMixerSR/codes/options/train/train_example.yml \
 --launcher pytorch \

I training for 500k iters and the best result is get at 440k iters:

The performance is not as good as the pretrained model. Is there anything that I missed? Any kinds of help is appreciated. I'm looking forward to your reply!
Thanks,
jiachen

Thanks for your attention to our work. Due to the batch size 162 being smaller than our settings 164, the training period should be extended and the learning rate needs to adjust.

authors: icandle kongwanbianjinyu

repo: icandle/CAMixerSR


text:
🛑 Secret Site is down

In 0b50aa6, Secret Site ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site is back up in 534ede4.

repo: icarephone/upptime


text:
use babel-plugin-import transform consider esm/ libraryDirectory(es/+esm/)

use babel-plugin-import transform import { Foo } from 'package' consider esm/ libraryDirectory, for @formily/next-components

Codecov Report

Merging #262 (86adee4) into release/component-1.9.4 (36ed221) will not change coverage.
The diff coverage is n/a.

@@                   Coverage Diff                    @@
##           release/component-1.9.4     #262   +/-   ##
========================================================
  Coverage                    68.80%   68.80%
========================================================
  Files                           29       29
  Lines                         1109     1109
  Branches                       224      224
========================================================
  Hits                           763      763
  Misses                         309      309
  Partials                        37       37

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36ed221...86adee4. Read the comment docs.

authors: codecov-commenter imsobear

repo: ice-lab/iceworks-cli


text:
when it in cmd  isaw red word

i cant even chqange a name..run the server

Closing this as not a clear bug report. For questions regarding errors please contact me on IRC outside of the issue tracker and provide me with a build log (msbuild.log).
Most probably you have run into problems with .NET Framework 4.5 though. In that case please repair your .NET Framework 4.5 installation!

repo: icedream/citizenmp-server-updater


text:
Draft-js 0.10.0 Migration

Just a heads up that the Entity API has been deprecated in the latest draft-js release.
https://facebook.github.io/draft-js/docs/v0-10-api-migration.html
Entity.get will need to be changed.
This will also effect then ast-importer project as it uses Entity.get and Entity.create

@corbanbrook Ta! I had noticed that go by, is on my list of things to get to :)

@corbanbrook I’ve pushed up a couple of branches for the exporter and the importer that handle this API change. Mind giving them a run?
https://github.com/icelab/draft-js-ast-exporter/pull/8
https://github.com/icelab/draft-js-ast-importer/pull/6

Great. I will have time on Monday to try it out.

@corbanbrook Did you get a chance to test this out btw?

Yeah, had a chance to look at it this morning. Everything looks good on both importer and exporter, no more deprecation warnings, all tests are passing and can edit my old content just fine.

Hi! Is there anything I can do to help get this PR merged? I'd love to eliminate the deprecation warnings this is causing.

draft-js v0.10.0 has been out for 3 months now and I have been running this branch in production for about 2 months. I think it is safe to tag and merge into master.

Sorry for the delay, folks! I’ve merged this and released as v2.0.0 (thanks for the reminder).

authors: corbanbrook diiq makenosound

repo: icelab/draft-js-ast-exporter


text:
A new way to expose metrics

Problem
For our writer, we hope to expose our metrics but not bind to the specific lib such as Prometheus.
Solution
Here is the trait we can used it to let user custom their updater. The updater will receive the metrics with id which indicates that it belong to which writer. And user can custom the updater logic such as using the Prometheus or just print it as log.
pub trait MetricsUpdater<M: Metrics> {
   fn update(&mut self, metrics: &M);
}

pub trait Metrics {
   fn id(&self) -> size;
}

// User Updater:
struct UserUpater {
  map: HashMap<i32, size>,
  unflush_data_file: GenericCounter<AtomicU64>
}

impl MetricsUpdater<RollingMetrics> for UserUpater {
   fn update(&mut self, metrics: &RollingMetrics) {
      let ori = self.map(metrics.id());
      let delta = metrics.unflush_data_file - ori;
      self.unflush_data_file.add(delta);
   }
}

// Icelake part:
struct RollingMetrics {
  unflush_data_file: usize
}

impl RollingWriterBuilder<U: MetricsUpdater<RollingMetrics>> {
   pub fn new(..,updater: U)
}

struct RollingWriter<U: MetricsUpdater<RollingMetrics>> {
  metrics: RollingWriterMetrics,
  updater: U
}

impl RollingWriter {
  pub fn write(&mut self) {
     ...
     // update metrics
    self.updater.update(self.metrics)
  }
}

Drawback
Every writer have to bind with a id because we need identify metrics from different writer. Seems there is no other way to avoid this in this solution.
cc @liurenjie1024  @Xuanwo Feel free for any suggestions or better design.

After the refactoring, I think maybe we can have another approach:
struct RollingMetrics {
  unflush_data_file: usize
}

struct RollingWriter {
   fn metrics(&self) -> RollingMetrics {}
}

struct RollingWriterWithMetrics {
  metrics: IntGauge,
  writer: RollingWriter,
}

impl IcebergWriter for RollingWriterWithMetrics
{
}

After the refactoring, I think maybe we can have another approach:
struct RollingMetrics {
  unflush_data_file: usize
}

struct RollingWriter {
   fn metrics(&self) -> RollingMetrics {}
}

struct RollingWriterWithMetrics {
  metrics: IntGauge,
  last_rolling_metrics: Option<RollingMetrics>,
  writer: RollingWriter,
}

impl IcebergWriter for RollingWriterWithMetrics
{
}

This way we don't need to let user implement metrics updater, and no id required.

LGTM!

https://github.com/icelake-io/icelake/pull/254#discussion_r1416570482
Another way is to separate the metrics into per writer. (This needs a more complex design: the writer ID and register in the builder. So that gives users more flexibility: they can get the per-writer metrics and compute the sum in Prometheus. This is a point that can be improved. 🤔 @liurenjie1024

Yes, that's possible, but more detail metrics means more storage in time. Currently there is not much need for this, and we can add this later when necessary.

repo: icelake-io/icelake


text:
Review observations: association

observations: association indicates the association with an integer code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/observations.yaml#L457-L515

[x] @ices-tools-dev/data-and-information Does ICES already have a controlled vocabulary for this? no
[x] @nicolasvanermen Wouldn't human readable values be better, or are the integer codes well established? I also notice a lot of unknown values: how likely is it that these will be assigned?

Best to hold on to the integers, a long list with sometimes drawn out
descriptions.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Wed, Jan 6, 2021 at 1:24 PM Peter Desmet notifications@github.com
wrote:

observations: association indicates the association with an integer code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/observations.yaml#L457-L515

@ices-tools-dev/data-and-information
https://github.com/orgs/ices-tools-dev/teams/data-and-information
Does ICES already have a controlled vocabulary for this?
@nicolasvanermen https://github.com/nicolasvanermen Wouldn't human
readable values be better, or are the integer codes well established? I
also notice a lot of unknown values: how likely is it that these will be
assigned?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/38, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXM2VZURT433F37RCQ3SYRI63ANCNFSM4VXOZYBQ
.

Best to hold on to the integers, a long list with sometimes drawn out
descriptions.
Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Wed, Jan 6, 2021 at 1:24 PM Peter Desmet notifications@github.com
wrote:

observations: association indicates the association with an integer code:
https://github.com/ices-tools-dev/esas/blob/0d294b4ea678e34f52409a16602f9133ac179dcf/_data/table-schemas/observations.yaml#L457-L515

@ices-tools-dev/data-and-information
https://github.com/orgs/ices-tools-dev/teams/data-and-information
Does ICES already have a controlled vocabulary for this?
@nicolasvanermen https://github.com/nicolasvanermen Wouldn't human
readable values be better, or are the integer codes well established? I
also notice a lot of unknown values: how likely is it that these will be
assigned?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/38, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXM2VZURT433F37RCQ3SYRI63ANCNFSM4VXOZYBQ
.

need new vocab and a bit more info on these references

need new vocab and a bit more info on these references

comments from RMG:
only one Unknown will be accepted
code 200 needs translation
What does the MSFA stand for?
codes 57, 58 need explanation

only one Unknown will be accepted: OK, we will transform all unknown
codes to missing values, so a code for Unknown will no longer be necessary
code 200 needs translation: Flying between (turbine) foundations
What does the MSFA stand for? Multi-Species Feeding Association
codes 57, 58 need explanation Reviewed in Camphuysen & Webb 1999

Nicolas Vanermen
Wetenschappelijk medewerker
Instituut voor Natuur- en Bosonderzoek
Havenlaan 88, bus 73, 1000 Brussel
0486/361.582
On Wed, Jul 14, 2021 at 2:46 PM Anna Osypchuk @.***>
wrote:

comments from RMG:
only one Unknown will be accepted
code 200 needs translation
What does the MSFA stand for?
codes 57, 58 need explanation
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ices-tools-dev/esas/issues/38#issuecomment-879860353,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYKGXODV3UIOCDHWQUMK3LTXWBJ3ANCNFSM4VXOZYBQ
.

Removed unknown codes + added explanation in 3cc4e97.

OK, I left the codes in the database itself though, leaving the chance for them to be explained by the data providers.

Add codes:
100: Association with set nets
101: Association with fish trap
103: Next to sandbank

Updated in documentation website 9c84028 (using Associated rather than Association to be consistent with other definitions). @Osanna123 still to be added to http://vocab.ices.dk/?ref=1718

Implemented: observations have a Association field, with full vocab.

authors: Osanna123 nicolasvanermen peterdesmet

repo: ices-tools-dev/esas


text:
First request running twice

Right now, visiting a page that has a trpc query in it's load function (ex. /authors) , will result in that trpc query running twice. First on the server, then again on the client. This is happening  (I think) because we're not using the  fetch provided by load.
Note: This is only applicable to the first request, since all other requests after that are client side only.
There two ways to go around this issue:

Move the trpc query from load to a page endpoint.
Find a way to make trpc use the  fetch provided by load. No idea how.

This would ensure that the request would not happen twice. It would happen only on the server.
From the docs:

When fetch runs on the server, the resulting response will be serialized and inlined into the rendered HTML. This allows the subsequent client-side load to access identical data immediately without an additional network request.

Update: Moving the trpc query from load to a page endpoint breaks the Date type. I tried passing load's fetch to trpc client but couldn't really get it to click.

Thanks a lot for investigating this and coming up with the PR!

Update: Moving the trpc query from load to a page endpoint breaks the Date type. I tried passing load's fetch to trpc client but couldn't really get it to click.

Is this happening even if you're using the superjson transformer?

Also, there might be a slight problem with this:
const url = browser ? '/trpc' : 'http://localhost:3000/trpc';
const client = (loadFetch?: typeof fetch) =>
  trpc.createTRPCClient<Router>({
    url: loadFetch ? '/trpc' : url,
      ...(loadFetch && { fetch: loadFetch }),
});

The client gets recreated every time. I don't how what's the overhead, but I think we could better do it like this:
let client: TRPCClient<Router>;
export default (loadFetch?: typeof fetch) => {
  if (!client) {
    const url = browser ? '/trpc' : 'http://localhost:3000/trpc';
    client = trpc.createTRPCClient<Router>({
      url: loadFetch ? '/trpc' : url,
      transformer: trpcTransformer,
      ...(loadFetch && { fetch: loadFetch })
    });
  }
  return client;
};

What do you think?

Is this happening even if you're using the superjson transformer?
Yeah.

The client gets recreated every time. I don't how what's the overhead.

That's true. It'd be great if there was a way to avoid that. Besides the fact that there would be multiple clients floating around, one other thing I noticed is that trpc will not batch queries unless they belong to the same client.
So instead of this:
export const load: Load = async ({ params, fetch }) => {
  const [authors, books] = await Promise.all([
    trpc(fetch).query('authors:browse', params.id),
    trpc(fetch).query('books:list'),
  ]);
  // ...

You'd do this (if you want to benefit from query batching):
export const load: Load = async ({ params, fetch }) => {
  const trpcClient = trpc(fetch);
  const [authors, books] = await Promise.all([
    trpcClient.query('authors:browse', params.id),
    trpcClient.query('books:list'),
  ]);
  // ...

Regarding your suggestion
I think your second snippet is on the right track. But it doesn't fix the duplication because the first two requests need the same url (/trpc). After the first two requests (1 on server, 1 on client), we should be able to keep using the same client instance (I think).
If we do that, we should keep in mind that sveltekit's fetch is what enables us to use the same relative url. Without it, we'd have to always check const url = browser ? '/trpc' : 'http://localhost:3000/trpc'

Perhaps @KATT would know if it's currently possible to pass in fetch to an existing trpc client without creating a new instance. Or, if it's not currently possible, what we could try to make it happen.
And if it's not possible at all, whether the overhead for creating a new trpc client for each request is negligible or something to worry about.

I think your second snippet is on the right track. But it doesn't fix the duplication because the first two requests need the same url (/trpc). After the first two requests (1 on server, 1 on client), we should be able to keep using the same client instance (I think).

You're right.

There might me a much simpler way we can get the desired behavior.
// client/trpc.ts
const client = trpc.createTRPCClient<Router>({
	url: '/trpc',
	transformer: trpcTransformer,
});
export default client;

// index.svelte
export const load: Load = async ({ params, fetch }) => {
  trpc.runtime.fetch = fetch; // <-- This
  trpc.query('authors:browse', params.id),
  // ...

Granted, I haven't tested this beyond some basic functionality on my machine, but at first glance querying & batching work seamlessly.
There is another issue though. runtime's type signature is marked as readonly, and I'm not sure why.
Summary:
Benefits of this approach:

No more duplicate trpc clients.

Because fetch property of the existing client instance is updated rather than create a new instance on every query.

No more duplicate queries in ssr mode.

sveltekit's fetch -> enables use of relative url -> which then enables sveltekit to avoid a duplicate network request in the client

Cons:

Type error because runtime is marked as readonly.
Apporach hasn't been tested sufficiently.

Anyways, it's something we can explore if we want to.

After some testing, I wouldn't recommed the approach I outlined in my previous comment:
trpc.runtime.fetch = fetch

While this approach may seem to work fine initially, you'll run into unwanted behavior where the trpc client instance is shared amongst different sessions/users. To see this in action, add authz to your trpc router, and run some parallel tests simulating users with different authz rules (using playwright, etc). You'll notice then that your auth rules/middleware/context is suffering from cross contamination between different users/sessions.
I have a feeling it could be related to the part in the docs which states:

Mutating any shared state on the server will affect all clients, not just the current one.

Instead, use the approach outlined in this pr, which works perfectly fine.

repo: icflorescu/trpc-sveltekit-example


text:
求教 图片自适应规则 的问题

相关文章里有一个 微信小程序单图片的自适应计算 ， 但是这个网站已经永久301了 我翻越后仍看不到文章， 现在需要设置img ---> image 它自己带的style属性， 求解决方法

已经自己搞定了 去wxParse.js里改了一下 wxAutoImageCal 有相同问题的可以去看一哈

repo: icindy/wxParse


text:
Investigate design of data display on map

An investigation into the 'best' way of displaying the required data on the map needs to take place before we can start plotting the data.
We need to collect all the data types and formats that are required for display, and investigate the cleanest and clearest visual markers for the data. This may include associated metadata. This may involve creating mock-ups of the data displays, and sending them to the wider team for comment.
Acceptance Criteria:

[ ] A list of data types to be displayed has been collated and added in an appropriate place in the documentation
[ ] For all of the data types above, an appropriate visual marker for the data and it's corresponding metadata is also documented.

Trigger a conversation with the modellers about the best way to display overlays - this is likely to take a while and not needed to complete this investigation.

authors: andykitch ray-millward-tessella


text:
using to replace existing elements without src attr

In our app we are using  with an icon font. I was thinking of trying to switch over to using SVGs and thus came here.
For our current structure is it possible to let it remain as it is, but then I would map the class names to their corresponding SVGs and replace them using SVGInjector?
Great work on this btw.
Cheers

I'd break up these responsibilities.
Use JavaScript to find your .icon elements and tag on the data-src attribute. Then initialize the SVGInjector. I think that would work no?

ah yeah, that might work. I'll try it out. Thanks.

repo: iconic/SVGInjector


text:
add batch processor listener to glue-update

Adding enrollment-event-batch-processor listener to glue-update script so that this listener don't process anything in the rabbit.

these changes are addressing as a part of PR: 173

repo: ideacrew/gluedb


text:
'Command Ld failed with a nonzero exit code'

I followed the installation instructions but as soon as I try to run the project it fails with this error:
clang: error: no such file or directory: '/Users/collin/Library/Developer/Xcode/DerivedData/forte-gyfztbkdmvhseeauigvbmgmdrihv/Build/Products/Debug-iphoneos/libRNDynamicAppIcon.a'
Command Ld failed with a nonzero exit code

Looks like I screwed up step 3 and added libRNDynamicAppIcon.a to the wrong spot.


text:
Can we add the #Hacktoberfest label for pull requests this month

👍 #Hacktoberfest https://hacktoberfest.digitalocean.com/

I'm not sure I understand it completely, but I'm ok with this kind of promo.

We would just have to add a Hacktoberfest label to the to issues, https://help.github.com/articles/creating-and-editing-labels-for-issues-and-pull-requests/

👍

authors: igas orieken

repo: igas/faker


text:
make fields mandatory at different stages

i.e. when completing referral, all referral fields should be required
then when completing admission, all admission fields should be required
etc.

but how do we tell the user if something is missing on another tab?
and how do we expect the user to navigate between tabs?

@charlieharris1 has done all this. satisfactory for now. might need to consider a way to make the fields invalid only after the first time you've moved past that tab (or something similar)

authors: andy-duncan igiveadamn

repo: igiveadamn/ccdb


text:
Use Alpine's Doas instead of OpenDoas (Alpine's has persistance support)

Has this been considered?

Alpine's doas is opendoas.  We likely need to just switch our upstream url to @Duncaen's releases

probably a good idea. prs welcome will be able to review at the weekend.

Alpine's doas is opendoas. We likely need to just switch our upstream url to @Duncaen's releases

I meant; Apply their patches

If we’re asking to include patches, we could probably do well with Chimera’s patches for Musl.

Chimera applies all of Alpine's patches + some more, so, its roughly the same. But, yeah.

I’m working on adding some patches to musl libc it in my personal tree, I can do the doas patches once I get those done.

Update: it is now midnight, I will sleep and add the “Chimera Musl” to a different pr tomorrow, and do the Alpine’s doas patches tomorrow as well.

I’m working on adding some patches to musl libc it in my personal tree, I can do the doas patches once I get those done.

If you want to try the chimera Musl thing: it’s in Frankensrc (I need to figure out why it’s being jank, ymm)

My hard drive where I was storing my Iglunix install was/is dying and I’m no longer capable of testing stuff. Apologies for any inconvenience.

authors: Ella-0 anoraktrend xplshn

repo: iglunix/iglunix


text:
Consolidate Scene3D with ign-gazebo's GzScene3D

We currently have 2 separate scene plugins in the Ignition ecosystem, one in ign-gui and one in ign-gazebo. The split into 2 scene plugins was something we did to move forward quickly, but the long-term goal is to combine those into a single plugin in a way that all Gazebo-independent features can be pushed into ign-gui so all downstream projects can take advantage of it and there's less duplication to maintain.
Some possible ways to achieve this:

Move all Gazebo-specific features to separate plugins that interact with the 3D scene
Make the ign-gui plugin extensible, similar to how we have ignition::gui::TransportPlotting and ignition::gazebo::Plotting.

we are using the Scene3D plugin in the delphyne project and have noticed some errors when loading mesh materials, but I believe this has already been fixed in ign-gazebo, so I'm cross-porting the fix from ign-gazebo's SceneManager in #191

Related PRs

MoveToHelper (ign-rendering) https://github.com/ignitionrobotics/ign-rendering/pull/311
New Scene3D interface https://github.com/ignitionrobotics/ign-gui/pull/217
New Scene3D plugin using the interface provided in ign-gui https://github.com/ignitionrobotics/ign-gazebo/pull/798

@chapulina, I have been working in adding small plugins to ign-gazebo and ign-gui. I updated the ign-gazebo PR with some of the plugins.

ign-gui

view_control  https://github.com/ignitionrobotics/ign-gui/pull/231/
Move to / follow  https://github.com/ignitionrobotics/ign-gui/pull/226

ign-gazebo

Select https://github.com/ignitionrobotics/ign-gazebo/pull/854
Transform controls https://github.com/ignitionrobotics/ign-gazebo/pull/854

I have created some branches to test this (Fortress). Because it requires some cherry picks:

ign-gazebo https://github.com/ignitionrobotics/ign-gazebo/tree/ahcorde/6/scene_manager_test
ign-gui https://github.com/ignitionrobotics/ign-gui/tree/ahcorde/6/new_scene_test
ign-common https://github.com/ignitionrobotics/ign-common/tree/ahcorde/3_to_4

Run the demo:
ign gazebo --gui-config src/ign-gazebo/src/gui/gui.config shapes.sdf -v 4

some branches to test this

Nice, I see the 3D scene is updated!
I assume all the plugins above should work with this combination of branches?

view_control #231

The ViewControl plugin is empty for me, no buttons

Move to / follow #226

Right-clicking the 3D scene doesn't give me a context menu to be able to choose these options.
Choosing them from the entity tree doesn't seem to work.

Select ignitionrobotics/ign-gazebo#854

I can select entities on the 3D scene and they get highlighted, but I don't see them highlighted on the entity tree. The same for the other direction.

Transform controls ignitionrobotics/ign-gazebo#854

They work if I:

Deselect all entities
Choose translate mode
Select entity

But don't work if I do:

Select entity
Choose translate mode

The ViewControl plugin is empty for me, no buttons

I called view_control but it's the plugin to move the camera with the mouse.

Right-clicking the 3D scene doesn't give me a context menu to be able to choose these options.

The Scene3D it's on ign-gui, the context menu is part of ignition-gazebo, I didn't find a way (yet) to modify the qml of the scene3d from ign-gazebo and include the.

Outstanding issue:

[ ] How to choose what camera plugins are being attached to, see https://github.com/ignitionrobotics/ign-gui/pull/231#discussion_r658353941)

Main PRs splitting the functionality:

https://github.com/ignitionrobotics/ign-gui/pull/221
https://github.com/ignitionrobotics/ign-gazebo/pull/813
https://github.com/ignitionrobotics/ign-gui/pull/226
https://github.com/ignitionrobotics/ign-gui/pull/231
https://github.com/ignitionrobotics/ign-gui/pull/247
https://github.com/ignitionrobotics/ign-gazebo/pull/854
https://github.com/ignitionrobotics/ign-gazebo/pull/988
https://github.com/ignitionrobotics/ign-gazebo/pull/900
https://github.com/ignitionrobotics/ign-gazebo/pull/983
https://github.com/ignitionrobotics/ign-gazebo/pull/1016
https://github.com/ignitionrobotics/ign-gazebo/pull/1014

TODO

[ ] Drag & drop from Fuel / meshes
[ ] Context menu
[ ] Port rendering fixes from GzScene3D to MinimalScene, such as https://github.com/ignitionrobotics/ign-gazebo/pull/774
[ ] Choose a render engine from the command line (this information needs to be sent to MinimalScene before it creates a scene.)

Drag & drop

ign-gui PR https://github.com/ignitionrobotics/ign-gui/pull/282
Still a branch https://github.com/ignitionrobotics/ign-gazebo/tree/ahcorde/plugin%2Fdrop_from_fuel

Context Menu

Added in this draft PR https://github.com/ignitionrobotics/ign-gazebo/pull/1014

Port rendering fixes from GzScene3D to MinimalScene

Added in this draft PR  https://github.com/ignitionrobotics/ign-gazebo/pull/1014

Choose a render engine from the command line (this information needs to be sent to MinimalScene before it creates a scene.)

https://github.com/ignitionrobotics/ign-gazebo/pull/1034
https://github.com/ignitionrobotics/ign-gui/pull/286

@chapulina can we consider this as done ?

Yes! :tada:

authors: ahcorde chapulina scpeters

repo: ignitionrobotics/ign-gui


text:
Documentation

Currently trying to work out a neat and manageable documentation method, personally I favor Function Annotation + Docstrings in ReStructuredText.
I'm currently setting the code up as such in my PyCharm project along with the pytests.
Should the PyCharm project files be included in future commits?

No idea with regards to PyCharm. Personally, I use vim.

So far I have added Function Annotation, Return Types, and Docstrings where possible, There are a few more that could be added like on some of the class inits but other than that its mostly complete.
Doing so has made me realize that some things could be changed, parse no longer really parses anything (or never did), it just takes the values out of the dict its given and cherry picks what values we want to pass as the album dict. All parsing is done by generate_album_json() and subsequently BandcampJSON.
A rename might be due (possibly build_album?) once renamed a proper function for individual track downloads can be made as I'm not a fan of the "It kinda just works" aspect of it currently.
Track downloads only work because most track links are part of an album and the required metadata can still be retrieved.
I'm still not 100% sure what would happen if a track url was provided in which the track is not part of an album. This has apparently happened before and an issue was made but it was old and no links were provided in which to test with and I can't seem to find any in which to do so.

Yeah, some of these edge cases are tricky to debug, tbh. Hmmmm.  I wish there was an easy way to find an example that breaks. Perhaps we should make an ote in the README if they are having issues to include example links so we can debug it/reproduce it?

In the 0.0.7 branch I have added the .github directory which contains an issue template so users will know exactly what information needs to be provided upon creating an issue from now on.
The contributing and pull request template will also go there.

Wiki has been updated.

repo: iheanyi/bandcamp-dl

license: unlicense


text:
Update sbt to 1.5.8

Updates org.scala-sbt:sbt from 1.5.4 to 1.5.8.
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!

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

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Coverage decreased (-0.5%) to 94.304% when pulling 184e2bc22365981118ba74ea9a1f932ecb30c9b7 on scala-steward:update/sbt-1.5.8 into ca10c64b98af9973d1b830d6a180d8b2c8898d98 on iheartradio:master.

authors: coveralls scala-steward

repo: iheartradio/ficus


text:
Exception when using an optional default value of "0L" in a route

routes file:
...
GET    /page.html          @controllers.Front.page(invitationId: Long ?= 0L)

Exception:
[error] (run-main-2) java.lang.NumberFormatException: For input string: "0L"
java.lang.NumberFormatException: For input string: "0L"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:589)
	at java.lang.Long.parseLong(Long.java:631)
	at scala.collection.immutable.StringLike$class.toLong(StringLike.scala:276)
	at scala.collection.immutable.StringOps.toLong(StringOps.scala:29)
	at com.iheart.playSwagger.SwaggerParameterMapper$$anonfun$7.apply(SwaggerParameterMapper.scala:34)
	at com.iheart.playSwagger.SwaggerParameterMapper$$anonfun$7.apply(SwaggerParameterMapper.scala:32)
	at scala.Option.map(Option.scala:146)
	at com.iheart.playSwagger.SwaggerParameterMapper$.mapParam(SwaggerParameterMapper.scala:32)
	at com.iheart.playSwagger.SwaggerSpecGenerator$$anonfun$31$$anonfun$apply$23.apply(SwaggerSpecGenerator.scala:351)
	at com.iheart.playSwagger.SwaggerSpecGenerator$$anonfun$31$$anonfun$apply$23.apply(SwaggerSpecGenerator.scala:349)
	at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
	at scala.collection.immutable.List.foreach(List.scala:381)

Workaround: Remove the "L" from the number on the routes file.

@alvaroc1
We are currently reviewing it. It may take some time, but we plan to address it.

repo: iheartradio/play-swagger


text:
Improving Austrian Energy System tutorials - experiences from new users

Overall:

Add order: the python notebook tutorials are to be run in a specific order, but this is not specified.

austria.ipynb:

when adding spatial detail: add a sentence showing what this command would look like if you are adding multiple countries/adding a full spatial set.
economic parameters:

if the value is 0.05, the unit should be '-', rather than '%'
add some explanation about 'beta' == macro relation between gdp growth and energy demand (demand flexibility)?

technologies:

check units: be more clear about the input data units from IEA statistics: if this is really demand per year, then why are you dividing by 8760?

Engineering Parameters:

for inputs (and outputs): if the values are 1.0 and 0.3, the unit should be '-', rather than '%' ==> explanation of what these values represent (as a comment, e.g. # efficiency) wouldn't hurt
already here add explanation: why are both 'bulb' and 'cfl' here?
counterintuitive: why is 'import' modelled as an output, rather than an input => perhaps add explanation on how import is outputting to add to the energy of the system, and can be an input to other technologies after that?
again, for capacity factor, change unit from '%' to '-'

Technoeconomic Parameters:

should the unit of investment cost (base_inc_cost) change to 'USD'?
base_var_cost and base_fix_cost should be in the same units; its value should probably be muliplied by the same number as well (unless the input units are different - if this is the case, that should be clarified)

Dynamic Behavior Parameters:

base_growth & base_initial: change '%' to '-'
what is base_initial? ==> add explanation
add notes/explanation that both lower and upper bound activity are first set to be the same in this simplified energy system model

To be updated with more comments on the other tutorial ipynb files

I also encountered some of the issues above. To complement the comments above:

In techno-economic parameters for investment and fixed costs the unit is mentioned as USD/GWa. But for investment and fixed costs the unit is USD/GW in the calculation which is correct. For variable cost, the unit specified looks correct and consistent with the calculation (USD/GWa).

Some parameters and how they are used/calculated can be more clear such as: initial_activity_up, bound_new_capacity_up; bound_activity_up and bound_activity_lo in Dynamic Behavior Parameters Section.

Hi all! So I've also went through the austria.ipynb and I'll recap the problems I'll include in the PR including yours @jkikstra @GamzeUnlu95  :

Gamze's comments: I agree with both your bullets. I'll change the units according to the baseline scenario
Jarmo's comments: I agree with all comments except from the one on the "data units from IEA statistics". They are correct since the unit in MESSAGEix is GWa = 8760 GWh and the units from the IEA are just in GWh, which then needs to be divided by 8760 to get MESSAGEix units. Var and Fix O&M have the same units but they don't really represent the same concept. I'll explain it as I did for the Westeros tutorial. Finally, in regards of " 'import' modelled as an output, rather than an input", that is usually how it is designed in most of the models (also in TIMES-MARKAL): the imported quantity is the result/output of the "technology" import.

Some additions from the rest of the notebooks to the points mentioned above.

In Austria Load Scenario the purpose of the following line was not clear to me:
tools.check_local_model(model, 'austria.ipynb')

In Investigating Many Policy Scenario there is the same issue with the units of the investment cost (it should be USD/GW instead of USD/GWa?).

I couldn't find a description of the methods of the Tools package such as read_scenario in the documentation. Does it also solve the updated scenario in the example as I couldn't see where the new_scen is solved?

So, @khaeru, here most of the comments have already been addressed in #248. However, still remains unclear in austria.ipynb:

that the notebooks are to be run in a specific order (not specified).
the section Economic parameters. Some explanation about demand  = gdp ** beta (relation between gdp growth and energy demand) and their values should be included. Somebody should account for this (@jkikstra @GamzeUnlu95 @fabiosferra).
what's the difference between the parameters initial_activity_up and growth_activity_up (some explanation needed needed). I guess growth_activity_up is the annual increase in production by the list of technologies in growth_technologies (including cfl and bulb). However, then a different value is assigned again to clf and bulb and saved into the parameter initial_activity_up. Why two different parameters created from lights if they are defined the same way?
the difference between initial_activity_up, bound_new_capacity_up and bound_activity_up. Add a further comment in austria.ipynb to explain it.

After dealing with these, I think this issue can be closed.

After dealing with these, I think this issue can be closed.

Am I right in understanding that #288 polished off these last few items? If so, please do close this issue.

authors: GamzeUnlu95 francescolovat jkikstra khaeru


text:
请问侧滑面板(panel)中内容如何上下滑动？

经过测试，如果panel中的内容多的话，下面的内容就不显示，又没办法上下滑动。
请问这个该如何解决呢？
谢谢。

这个可能需要用到其他插件：iScroll

authors: hoofei iinterest


text:
单击菜单栏的search没反应

Expected behavior (预期行为)
启用了Local Search功能。
单击菜单栏的search应出现搜索弹窗
Actual behavior (实际行为)
单击菜单栏的search没反应
Steps to reproduce the behavior (重现步骤)
NexT Information
Add the  ✔  sign before an item which is affected by this behavior.
NexT Version:

Master
Latest Release
✔  Old version - 5.0.1

NexT Scheme:

All schemes
Muse
✔ Mist
Pisces

Other Information (Like Browser, System, Screenshots)
看了下 search.xml，出现了如下错误：

XML解析失败了，错误是“Input is not proper UTF-8, indicate encoding !”
我用编辑器打开了search.xml，然而错误提示中的位置已经超出了文件的范围。。。
可能我在文章里输入了一些神秘字符？
不知道有没有和我遇到同样问题的人，希望能提供一些帮助，十分感谢！

插件装了吗

装了，按照官方文档一步步做的

编码的问题

@yanshengjia 你好，解决了吗？能告知解决方法吗？

没有。。我感觉要一篇篇文章看来检查是哪里编码出了问题，但是现在文章有点多，就没搞。

所有的文章都应该保存为utf-8无BOM
你这里面有某个文件是utf-8 with BOM 的 原因

并不是很明白 UTFB 编码里有 BOM 是如何出现的。
那应该如何检测以及删除 BOM 呢？

检查了所有文章，并没有 utf-8 with BOM 的，依然是那个问题。

已解决，并不是 BOM 的问题，我的问题是文章中有特殊字符，mac 上下载一个 TextWrangler ，可以检查文件中的特殊字符，显示红色的特殊字符删掉就好了。

@yanshengjia don't understand u, write in English if not solved. If solved, close it please. Thank's!

authors: MekaYangyi Neveryu ivan-nginx lin493369 yanshengjia

repo: iissnan/hexo-theme-next


text:
首页分页和归档分页不同是如何做到的？

你好，很喜欢你的主题，现在我也在使用，
不过稍微做了点改动，请海涵!
我的博客
看到你的blog的首页为展示5篇文章/页，而归档页展示为20篇文章/页，
请问是在config里配置还是在代码里实现的？
谢谢！

没关系。我也正在着手在 NexT 基础上做一个紧凑的版本，跟你的有点类似。
不同的分页设置需要 Hexo 3 版本，通过 npm i --save 以下 plugin：

hexo-generator-index
hexo-generator-archive
hexo-generator-tag

然后在站点的 _config.yml 中设置，例如：
index_generator:
  per_page: 5

archive_generator:
  per_page: 20
  yearly: true
  monthly: true

tag_generator:
  per_page: 10

好了，解决了
十分感谢！:)

Nice

So cool. I am doing my blog using Hexo, too. Since my articles are growing, I am planning to make pagination to my index page. This is helpful. Thank you!~

authors: iissnan jeekwong lurrpis tara1128


text:
Wifi not supported

Hello,
I have installed ubuntu 20.04 today and thought that adding your packages would help to get the wifi to work.
I followed your instructions for pre-compiled mods (bios and packages) but ubuntu can't find a "supported wifi adapter" (it worked on windows). I have tried different solutions found on the internet :

Adding the code for the 3165 from intel to /lib/firmware https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-io/wireless.html
and tried to rename them like they do here : https://itectec.com/ubuntu/ubuntu-how-to-install-intel-dual-band-wireless-ac-3165-drivers/
also tried this one (in french) : https://www.debian-fr.org/t/tuto-carte-wifi-intel-dual-band-wireless-ac-3165-sur-jessie-debian-8/71424
Tried "dmesg | grep iwl" but it returns nothing and "rfkill list all" only returns the Bluetooth hci0 :
0: hci0: Bluetooth
Soft blocked : no
Hard blocked : no
(found these commands here : https://ubuntuforums.org/showthread.php?t=2382682 )

I am able to connect to the internet through the Bluetooth connection but it's only a few kB/s.
Have you been through a similar problem? Do you have an idea to solve it?
Thank you for your great work :)
EDIT: I have version 3.05 of the BIOS, I think I will try to update to 3.06 as recommended here: https://techtablets.com/forum/topic/teclast-f5-bios-update/

I'm sorry for creating an issue for something that had nothing to do with your work, I reinstalled Windows to update the BIOS to 2.06 and the wifi now works.
Have a nice day.

@101Robotics Glad to be of some use.


text:
Hard crash parsing certain markdown files

I have been using tree_sitter_languages to parse markdown. Some of my md files are causing a hard crash of the parser.parse() call:
Assertion failed: (i == length), function deserialize, file scanner.cc, line 79.
Abort trap: 6

I have isolated a sample which can trigger the crash. I binary searched the file to find a single offending line. Then, I gradually replaced all the characters with X until the crash went away.
Some notes:

There is a single astrisk * remaining. The parser no longer crashes if you remove it.
There are still underscores _ remaining. Turning them into Xs resolves the crash.
Reducing the line length, or splitting the text onto multiple lines also seems to avoid the crash.

I have filed this issue with both of these projects, as I am not sure which is most likely to be able to resolve it:

https://github.com/ikatyang/tree-sitter-markdown
https://github.com/grantjenks/py-tree-sitter-languages

code = '''
XXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX X XXXX X XXXXX *X XXXXXXXX XXXXXXX X XXXX X XXXXX XXXXXXX_XXXXX XXXXXXXXXXX X XXXX X XXXXX XXXXXXX_XXXXXXXXX XXXXX X XXXX X XXXXX XX_XXXXX XXXX X XXXX X XXXXX XXXXXX XXXXX X XXXX X XXXXX XXXXXXXXXX XXXXXXXXX X XXXX X XXXXX XXXXXXXX_XX_XXXXXXX XXXX X XXXX X XXXXX XX_XXXXXXXXX XXXX X XXXX X XXXXX XXX_XXXXXXXXX XXXXXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXXXXXX XXXXXXXXXXXXXXXX X XXXX X XXXXX XXXXXX XXXXXXXXX X XXXX X XXXXX XXXXX_XXXXXX XXXXXXXXXX X XXXX X XXXXX XXXXXXX XXXXXXXXXXXXXXXXXXXX X XXXXX XXXXXXX_XXXXXXX_XXXXXXXX_XXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXX_XXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX X XXXX X XXXXX XXXX_XXXXX_XXX_XXXX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXXXX XXXXXXXXXXXXXXXX X XXXX X XXXXX XXXXXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX X XXXX X XXXXX XXXX_XXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXXXXX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXXXX_XXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXXXX_XXXXX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXXXX_XXXXX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXXXX_XXXXXX XXXXXXXXXXXXX X XXXX X XXXXX XXXX_XXXXXXXX XXXXXXXXXXX X XXXX X XXXXX XXXXXXXXXX XXXXXXXXX X XXXX X XXXXX XXXXXXXXXX XXXXXXXXX X XXXX X XXXXX XXXXX_XXXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXX_XXXXXXXXXXX XXXXXXXXXXXXXXX X XXXX X XXXXX XXXXXXXXXXXX XXXXXXXXXXXXXXXX X XXXX X XXXXX XXXXXXX_XXXXX_XXX_XXXXX XXX X XXXX X XXXXX XXXXXX_XXXXXX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXX_XXXX_XX_XXXXXXX XXXXXXXXXXXX X XXXX X XXXXX XXXXXXXX_XXXXXXX XXX X XXXXXXXXXXXX XXXX X XXXX X XXXXX XXXXXXXXX XXX X XXXXXXXXXXXX XXXX X XXXX X XXXXX XXXXXXXX XXX X XXX XXXXXX_XXXXXXXX XXXX X XXXXXX XXX_XXXX XXXXXXXXXXXX XXXXX X XXXX X XXXX
'''

import tree_sitter_languages

print(tree_sitter_languages.__version__) # 1.7.0

parser = tree_sitter_languages.get_parser('markdown')
parser.parse(bytes(code, "utf8"))

The Emacs folks debugging this in https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/253 have 3-4 people reporting that it seems to be in Markdown files that have long/wide tables. Here's a screenshot of the file that crashes for me.

There are some other examples that might be helpful for debugging this.

authors: aguynamedben paul-gauthier

repo: ikatyang/tree-sitter-markdown


text:
Support selector-less components

Hey there ! It's me again.
By fooling around with ng-mocks in my app's tests, I've found that ng-mocks does not correctly set the fixture's point property correctly if the tested component has no selector (like a page-only component).
Here is the failing test case:
import { Component } from '@angular/core';
import { MockBuilder, MockRender } from 'ng-mocks';

@Component({
  template: `<span>Hello world</span>`,
})
class TestedComponent {}

describe('MockRender', () => {
  beforeEach(() => MockBuilder(TestedComponent));

  it('should get the rendered component correctly if no selector', () => {
    const fixture = MockRender(TestedComponent);
    expect(fixture.point).toBeDefined();
  });
});

I've found a way to go around this issue like so (this test works)
import { Component, ɵReflectionCapabilities } from '@angular/core';
import { MockBuilder, MockRender } from 'ng-mocks';

@Component({
  template: `<span>Hello world</span>`,
})
class TestedComponent {}

describe('MockRender', () => {
  const TestedComponentWithSelector = Component({
    ...new ɵReflectionCapabilities().annotations(TestedComponent)[0],
    selector: 'this-can-be-anything'
  })(TestedComponent)
  // Do not forget to return the promise of MockBuilder.
  beforeEach(() => MockBuilder(TestedComponentWithSelector));

  it('should get the rendered component correctly', () => {
    const fixture = MockRender(TestedComponentWithSelector);
    expect(fixture.point).toBeDefined();
  });
});

Note: the weird bit using angular internal reflector is taken from here

:beers: cheers !

Hi again!
Thanks for the report! I'll fix it during the next days.
Happy New Year and happy coding!

Hi @GerkinDev,
might you confirm it works as you expect? ng-mocks.zip

v11.3.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

v11.3.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

Hi, sorry for not answering earlier. I see you like this : .
I'm working on something unrelated for a couple of days, and will be able to test this in situ soon, but not now. Sorry. But I totally trust you. Moreover, you have at least one test case, and the bug is pretty simple to check if resolved
Thanks again, and 🍻 cheers!

Hi, sorry for not answering earlier. I see you like this : .
I'm working on something unrelated for a couple of days, and will be able to test this in situ soon, but not now. Sorry. But I totally trust you. Moreover, you have at least one test case, and the bug is pretty simple to check if resolved
Thanks again, and 🍻 cheers!

Ahaha, thanks :)
Sure, no rush here, I have the same feelings that the issue has been fixed. Just need an extra proof once you have time.
Thanks in advance and happy coding!

Ahaha, thanks :)
Sure, no rush here, I have the same feelings that the issue has been fixed. Just need an extra proof once you have time.
Thanks in advance and happy coding!

v11.3.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

v11.3.1 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.

Hi again,
I can confirm this works in my real-life situation ! :tada:
Thank you so much, happy new year ! :tada::tada::tada:

Hi again,
I can confirm this works in my real-life situation ! :tada:
Thank you so much, happy new year ! :tada::tada::tada:

authors: GerkinDev satanTime


text:
large queryset

Hi there,
Firstly thanks for the fantastic library much needed for this amazing search db.
I had a usecase trying to import some 2m rows which was a little too large for syncindex command so propose this which does the same in batches
"""
syncindex.py
Ian Kollipara <ian.kollipara@gmail.com>

This module contains the SyncIndexCommand class for the Django MeiliSearch app.
"""

from typing import Type
from django.core.management.base import BaseCommand
from django.apps import apps
from django_meili._client import client as _client
from django_meili.models import IndexMixin

def batch_qs(qs, batch_size=1000):
    """
    Returns a (start, end, total, queryset) tuple for each batch in the given
    queryset.

    Usage:
        # Make sure to order your querset
        article_qs = Article.objects.order_by('id')
        for start, end, total, qs in batch_qs(article_qs):
            print "Now processing %s - %s of %s" % (start + 1, end, total)
            for article in qs:
                print article.body
    """
    total = qs.count()
    for start in range(0, total, batch_size):
        end = min(start + batch_size, total)
        yield (start, end, total, qs[start:end])

class Command(BaseCommand):
    help = "Syncs the MeiliSearch index for the given model."

    def add_arguments(self, parser):
        parser.add_argument("model", type=str, help="The model to sync the index for. This should be in the format <app_name>.<model_name>")
        parser.add_argument("batch_size", type=int, default=1000, help="The batch size you want to import in (default: 1000)")

    def handle(self, *args, **options):
        Model = self._resolve_model(options["model"])

        for start, end, total, qs in batch_qs(Model.objects.all(), options["batch_size"]):
            task = _client.get_index(Model.__name__).add_documents([self._serialize(m) for m in qs if m.meili_filter()])
        finished = _client.wait_for_task(task.task_uid)
        if finished.status == "failed":
            self.stderr.write(self.style.ERROR(finished.error))
            exit(1)
        self.stdout.write(self.style.SUCCESS(f"Synced index for {options['model']}"))

    def _serialize(self, model) -> dict:
        """
        Serialize the model instance into a dictionary.
        """

        serialized = model.meili_serialize()
        pk = model.pk
        return serialized | {"id": pk, "pk": pk}

    def _resolve_model(self, model: str):
        """
        Resolve the model from the given string.
        """
        try:
            Model = apps.get_model(model)
            if IndexMixin not in Model.__mro__:
                raise ValueError("Model does not inherit from IndexMixin")
        except LookupError as e:
            self.stdout.write(self.style.ERROR(f"Model not found: {model}"))
            exit(1)
        except ValueError as e:
            self.stdout.write(self.style.ERROR(f"Invalid model: {model}"))
            exit(1)
        return Model

Fixed with #10

authors: ikollipara rosscdh-tpg

repo: ikollipara/django-meili


text:
🛑 PRX_Z_2 is down

In 115977a, PRX_Z_2 ($PRX_Z_2) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PRX_Z_2 is back up in d81f61a after 9 minutes.


text:
[FEATURE] Reduced Title bar text & Chatlog of sheet changes

The title bar for NPC/PC sheet seems to open at a set size, making the space on the Title Bar limited. If the phrase: "Unlocked (click to lock)" could be reduced to just "Unlocked" or just the Lock icon, that would reduce the clutter one gets from having too many modules installed. That or an option could be added too that lets you change this from Text&Icon to just Icon, would be great too.
Given that this module isn't secured and chances can be made. Can it be possible to code in an ability to be aware of those changes instead? Either a whisper to the GM or a chatlog saved somewhere to review later.

Logging or writing changes to chat would be a substantial effort and it is not something I am willing to add.
If you want to keep a history of character sheets, I recommend you do this through periodic screenshots at the time changes are expected to happen.
If you are concerned about intentional cheating, I recommend you talk with your players and either solve the issue(s) that are causing them to want to cheat or make you think they are cheating - anything I could possibly add in a module could be bypassed, and cheating is just a symptom of a larger issue.
I can add an option to have a smaller "icon only" display for the toggle easily enough though.

I added four "Lock Toggle Style" options...

Icon, Label, and Help (today's behavior)
Icon and Label (Icon plus the short "Locked"/"Unlocked" text, no "Click to...")
Label only (just "Locked"/"Unlocked")
Icon only

These are client settings, so every player can pick a different style if they want.

Note: You will need to close and re-open any character sheets after changing this setting to see a difference.

authors: KajinStyle illandril


text:
Ricardo rdz g cleaner install

Fixed several bugs in install script and added code for cleaner install

Thank you!

authors: RicardoRdzG imachug

repo: imachug/win-sudo


text:
邮件回复问题

我能从qq邮箱中收到别人评论的回复，但我回复别人，别人收不到邮件（即博主能邮件提醒但是访客不能）
这个是与vercel部署并且我使用了qq邮箱有关吗？
查看log，好像也没有报错

（询问了另一个博主，好像qq邮箱它是可以正常收发的，那是我配置出问题了吗？应该怎么查看呢）

请检查请求函数为POST_SUBMIT的日志，你粘贴的这个是COMMENT_SUBMIT的日志。
另外，很多时候，配置正常但访客收不到邮件的原因是被邮件提供商（QQ）判定为垃圾邮件，你也可以检查【已发邮件】中的发送状态

请检查请求函数为POST_SUBMIT的日志，你粘贴的这个是COMMENT_SUBMIT的日志。
另外，很多时候，配置正常但访客收不到邮件的原因是被邮件提供商（QQ）判定为垃圾邮件，你也可以检查【已发邮件】中的发送状态

您好，这是我的的POST_SUBMIT，我不是太懂这方面知识，麻烦您帮我看一看

看起来是 bug

好的，刚才把版本更新到了1.6.1，好像还是有这个问题，不知道其他人是否遇到这个情况

fixed and closed

repo: imaegoo/twikoo


text:
Make Widgets.js work, and ship a copy of it for testing

The Widgets.js script template exercises a lot of parameter types. Let's make sure it fully works in napari-imagej. (Right now, it crashes on the non-integer step size parameter.)

I actually get a crash even earlier:
Exception                                 Traceback (most recent call last)
File SaveInputsPreprocessor.java:60, in org.scijava.module.process.SaveInputsPreprocessor.process()

File DefaultModuleService.java:341, in org.scijava.module.DefaultModuleService.saveInputs()

File Collections.java:1085, in java.util.Collections$UnmodifiableCollection.forEach()

File ArrayList.java:1541, in java.util.ArrayList.forEach()

File DefaultModuleService.java:341, in org.scijava.module.DefaultModuleService.lambda$saveInputs$0()

File DefaultModuleService.java:536, in org.scijava.module.DefaultModuleService.saveInput()

File DefaultModuleService.java:303, in org.scijava.module.DefaultModuleService.save()

File DefaultPrefService.java:112, in org.scijava.prefs.DefaultPrefService.put()

File DefaultPrefService.java:390, in org.scijava.prefs.DefaultPrefService$SmartPrefs.put()

File AbstractPreferences.java:257, in java.util.prefs.AbstractPreferences.put()

Exception: Java Exception

The above exception was the direct cause of the following exception:
.
.
.
File ~/code/imagej/napari-imagej/src/napari_imagej/_module_utils.py:649, in functionify_module_execution(viewer=Viewer(axes=Axes(visible=False, labels=True, col...ings._transform_active_layer at 0x7f95005160e0>}), module=<java object 'org.scijava.script.ScriptModule'>, info=<java object 'org.scijava.script.ScriptInfo'>)
    647 """Converts a module into a Widget that can be added to napari."""
    648 # Run preprocessors until we hit input harvesting
--> 649 _preprocess_non_inputs(module)
        module = <java object 'org.scijava.script.ScriptModule'>
    651 # Determine which inputs must be resolved by the user
    652 unresolved_inputs = _filter_unresolved_inputs(module, info.inputs())

File ~/code/imagej/napari-imagej/src/napari_imagej/_module_utils.py:181, in _preprocess_non_inputs(module=<java object 'org.scijava.script.ScriptModule'>)
    179 # we want to avoid these processors
    180 for preprocessor in preprocessors:
--> 181     preprocessor.process(module)
        preprocessor = <java object 'org.scijava.module.process.SaveInputsPreprocessor'>
        module = <java object 'org.scijava.script.ScriptModule'>

That Exception is coming from here, where item is pChar and sValue is an empty string. Then this line fails with IllegalArgumentException: Value contains code point U+0000.
:frowning:

Yeah, if I recall correctly, filling in some non-null values for the characters avoids the issue. I'd be happy to discuss the best way to fix this on the SciJava Common side, since I agree the behavior is bad.

Yeah, if I recall correctly, filling in some non-null values for the characters avoids the issue. I'd be happy to discuss the best way to fix this on the SciJava Common side, since I agree the behavior is bad.

Hmm, can we just implement a conditional in DefaultConverter?

authors: ctrueden gselzer

repo: imagej/napari-imagej


text:
Adsk Contrib - Fix Windows link failure when compiling a static library

Fix #590.

lgtm... final approval should fall on @Shootfast

@Shootfast are you Ok with these changes to the build?

The branch is now 19 days old so it would the right time to approve or comment.

authors: hodoulp michdolan scoopxyz

repo: imageworks/OpenColorIO


text:
Expand documentation definitions for facilities/allocs/subscriptions/tag/services

These items are briefly covered in the glossary. We should expand their definitions and illustrate how they interconnect and explain their role in having jobs pickup on hosts.

This Glossary covers this in more detail now, particularly https://github.com/imageworks/OpenCue/wiki/Glossary#relationships

authors: bcipriano gregdenton

repo: imageworks/OpenCue


text:
cuesubmit dies if there are no shows in the database

Perhaps the expected behaviour is that the database is prepopulated with demo_data.sql to create the 'testing' show.
Traceback (most recent call last):
  File "/var/OpenCue/bin/tooling/pythonpath/cuesubmit/__main__.py", line 65, in <module>
    main()
  File "/var/OpenCue/bin/tooling/pythonpath/cuesubmit/__main__.py", line 59, in main
    app = CueSubmitApp(sys.argv)
  File "/var/OpenCue/bin/tooling/pythonpath/cuesubmit/__main__.py", line 33, in __init__
    self.mainWindow = CueSubmitMainWindow(Constants.SUBMIT_APP_WINDOW_TITLE)
  File "/var/OpenCue/bin/tooling/pythonpath/cuesubmit/__main__.py", line 49, in __init__
    parent=self
  File "/var/OpenCue/bin/tooling/pythonpath/cuesubmit/ui/Submit.py", line 103, in __init__
    'Show:', shows[0],
IndexError: list index out of range

This is not a priority for me - I just don't want to forget it.

Yep, you're right -- pretty much all of our testing scenarios assume that some data has been prepopulated.
Thanks for the report.

authors: bcipriano donalm