Draft terminology related to API behavior definitions

This PR contains an updated version of proposed terminology related to #18970, hopefully making it easier to comment though review comments.
The formatted document can be read here.
The content is in markdown because that's most convenient for me.  Assuming we reach consensus we can figure out how it should be integrated into the standard documentation.

Updated with the following edits.  Some previous comments have been marked "resolved".
Added more reference to existing Zephyr documentation on thread terminology and behavior, and updated definitions to be more consistent and refined.
Replaced "yield" with "suspendable" when speaking of functions, and gave it a more precise definition based on cooperative thread behavior.  Added "no-wait" as a way to control suspension behavior. Address "thread-safe" using these concepts.
Defined operation as distinct from function to allow precise characterization of asynchronous functions.  Comment on why we should not use "blocking" as a precise term.

Summary of recent updates:
Document what it means for a thread to become unready.  Acknowledge that a thread may be made unready externally.  Use "made unready" as a technical term where appropriate.
Introduce the concept of a reschedule point as that term is used within the kernel.  Note existence of meta-irq threads and that ISRs include a reschedule point.  Define "context switch" in terms of the behavior at a reschedule point.  Replace "suspendable" by a finer-grained characterization of "rescheduling", accompanied by "cooperative-safe" (vs unsafe) and "context-switching" that promise specific behavior of reschedule points in the common case of cooperative threads.  Define "no-wait" and "isr-callable" in terms of reschedule concepts.

Summary of recent updates:
Based on the answer to issue 21341 identify functions that cannot be invoked from interrupt (or pre-kernel) context as those that could cause the invoking thread to "sleep".  Define "sleep" as a voluntary transition to a non-running active thread state.  Discard the entire concept of "cooperative-safe" as it is fragile and not actually relevant.
Generalize the concept of no-wait from preventing a transition to Waiting to preventing an attempt to sleep.
Functions can be called from an ISR if they do not cause their invoking thread to sleep.
Functions are no-wait if they can be prevented from causing their invoking thread to sleep.

@pabigot I think I understand you on all the definitions above. I just have some wording questions to check that and then I think these terms are good and would be useful to have in the official docs.

I am +1 on these terms as of f2474c6. Thanks!


Mouth visemes not working in-game

Issue: Shape keys work in Blender/Unity, but if put into the Avatar Descriptor in the appropriate location they simply do not work. The shape keys are fine if manually changed 0-100 in Blender and Unity. It's only when placed onto the Descriptor, they simply don't work in-game.
This is 100% a Blender and/or CATS plugin issue. It happened once before and reinstalling Blender/CATS fresh fixed it with no changes to my Unity or projects. Now it is broken again and my only hint is that both times it happened sometime after I stitched together a neck seam in my model in edit mode. I did not touch anything else on the model in the process - just merged vertices on the same location at the neck.
The weird thing is it happens on every model, so I can't chalk it up to editing my model being the problem, I think. Even if I bring in a brand new model and do the bare minimum (fix model + create visemes), it still will not work for me. I figured it must be something to do with the settings changing somehow due to how it persists across files and models.
Edit: A few more things I've done to narrow it down now.
On every step I make the changes, export the model, then upload it.
-Factory reset Blender settings, still broken.
-Then reactivated CATS plugin/mmd tools, recreated visemes, still broken.
-Deleted my Blender user folder in AppData (Only addons were mmd tools+ CATS). Still not working.
-Reinstalled mmd tools and CATS plugin (note: the 0.6.1 zip did not show up in my user preferences when trying to install, but the development one did so I'm now running development version unlike before.) Recreated visemes, still broken.
-Downgraded to 0.6.1. Recreated visemes, still not working
Sounds like it may just be a Blender issue somehow :(
Edit 2:
-Clean reinstall of Blender, still broken. I guess it ain't Blender but all my models suddenly :^)
-Discovered this issue only affects CATS-created mouth movements all other shape keys work in the Descriptor slots except for CATS ones. Even my own self-made shape keys work.

If the mouth shape keys exist in Unity and they are working there then cats shouldn't be the problem. Maybe you use and old SDK version? Try to update that and see if it works.

I had this issue as well and it seems to be something with how the VRCSDK overrides animations. If you replace walking/idle animations, the facial visemes won't work sometimes. I've submitted a ticket to VRChat asking for more information on this issue. If you haven't replaced any walking/idle animations I'm not sure what else the problem may be.

Yes, this is probably the Vrchat issue @pierrce described. Because it doesn't make sense that they would work if you manually change them 0-100, but not Ingame. Reopen this if you have any more questions.

I have the same issue now.
It worked fine before, but seems it ain't working anymore.

I wonder if anyone ever found out what was causing this issue.  I'm having it now.


[6rd] allow to manually specify the local IPv4 address

I am in the following situation:

My ISP assigns me a private (10.x.x.x) IPv4 address and gateway via DHCP
I also have a public, static IPv4 address assigned, which I configured as a Virtual IP for my WAN.

The local IPv4 address I have to use to configure a 6rd tunnel is the public one, but OPNsense uses the DHCP assigned private one instead. This could be solved by allowing to chose the Virtual IP as the IPv4 address to use when configuring the tunnel.
(This could also be solved by setting the public IP as the "primary" IP for the interface, but I think this is not possible.)
At the moment I am working around this by embedding the public IP in the 6RD prefix field (in hex) and setting 6RD IPv4 Prefix length to 32bit (I get just a /64 from my ISP). However this is inconvenient.

It does, thank you!

@paride it's in 18.7.3 ... let me know if it works as expected

@fichtner It does work, but unfortunately it still does not fit my use case (and I think the option name is slightly misleading). Currently the ipv4address set using the "6RD IPv4 Prefix address" option is used for two different things. One thing is computing the IPv6 prefix:
https://github.com/opnsense/core/blob/772ea4ace1c76543d75eb93dfc5fc7ac68697cc2/src/etc/inc/interfaces.inc#L2717
and subsequent use of hexwanv4. The other thing is setting the stfv4net ifconfig option:
https://github.com/opnsense/core/blob/772ea4ace1c76543d75eb93dfc5fc7ac68697cc2/src/etc/inc/interfaces.inc#L2759
I only need to change the address used to compute the prefix, so I would like the "6RD IPv4 Prefix address" to only override the address used to compute the prefix (as the option name suggests). The address passed used to set stfv4net could be overridden by a different option (something like "6RD local IPv4 address"). It should default to the same auto-detect logic.
This is the issue I was referring to in https://github.com/opnsense/core/issues/2663#issuecomment-423985031.

Understood, will fix it tomorrow. Thanks for the analysis. :)

@paride can you try this then?
# opnsense-patch f8178e9

@fichtner I will try this evening. Should I be on 18.7.3 or on the development version to apply the patch?

@paride 18.7.3 will suffice, tomorrow's 18.7.4 will work too with the patch. and the feature could be generally fixed up in 18.7.5 if testing goes ok

@fichtner I did apply it over 19.1.a_227-i386 and it works fine! I still have to revert to the production release, let's see what turns out to be better for #2663. I guess this issue can be closed now.

Ok thanks, closing this one. Still unsure about #2663 but we'll figure something out eventually.

@paride good morning! just FYI: this went into 18.7.4 last minute since you gave your ok. When you go back to 18.7.x make sure to reinstall your aliases if you had any from that config backup mentioned earlier.

@fichtner I did notice, thanks!


Update highlight.js to 11.7.0

Updates highlight.js to 11.7.0 in package.json.
Updates highlightBlock to highlightElement in main.js. highlightBlock is deprecated and will be removed in v12 (see screenshot below). This is only a name change according to the v11 ugrade docs.

You can see the warning above on main at any blog post with code blocks (/blog/customizing-your-site/ for example).

Thanks!


Default to Base bundle when language not available

This will allow any projects with a Base.lproj to get strings even though they are not localized in English.
Will also always prioritize the language set instead of Base, it is just a fall back to avoid returning tokens as much as possible.

Thanks Ivan. This is a good idea. Merging.


⚠ Site has degraded performance

In fa10383, Site (https://fyle.uk) experienced degraded performance:

HTTP code: 200
Response time: 10111 ms

Resolved: Site performance has improved in 8e0adde after 8 minutes.


Cluster upgrade causes uncontrolled docker upgrade to the latest version

What happened:
Kubeone uses package manages to lock the docker/containerd versions in place to avoid unaware upgrades, but it seems that at some point in upgrade process we forgot to put lock back and docker upgrades to the latest version.
What is the expected behavior:
docker stays locked and at the version indicated in code.
How to reproduce the issue:
upgrade a cluster using 1.3.0-rc.0
Anything else we need to know?
Information about the environment:
KubeOne version (kubeone version): 1.3.0-rc.0
Provider you're deploying cluster on: AWS
Operating system you're deploying on: any

I've forgot about own logic, https://github.com/kubermatic/kubeone/blob/master/pkg/scripts/funcs.go#L87 version will be used on 1.21+ clusters. So it's expected and is not uncontrolled.


[android] fix build-android scripts

This patch fixes build-nnstreamer-android scripts.
nnstreamer-release.aar file created even if ./gradlew build failed after some tasks.
So check exit code instead of aar file existance.
https://github.com/niley7464/api/actions/runs/8750553882
Tested with #502 (PR that should have failed Android Build Test action)

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #505. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.


POWR320D turned off due to ewelink cloud error

Hi, I have faced an issue with Sonoff LAN in HA. I got cloud warning from ewelink and my device that is a water pump turned off.
[12:49 AM]
Logger: custom_components.sonoff.core.ewelink.cloud
Source: custom_components/sonoff/core/ewelink/cloud.py:346
Integration: Sonoff (documentation, issues)
First occurred: 1 April 2023 at 23:53:08 (2 occurrences)
Last logged: 1 April 2023 at 23:53:10

It happened again and my water pump turned off again.
This error originated from a custom integration.
Logger: custom_components.sonoff.core.ewelink.cloud
Source: custom_components/sonoff/core/ewelink/cloud.py:346
Integration: Sonoff (documentation, issues)
First occurred: 9 April 2023 at 13:01:52 (21 occurrences)
Last logged: 20:04:33
Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '-------------', 'apikey': '----------', 'sequence': '------------'}

I don't think that device turn off because integration.
Log is useless until we can know what request has caused this error. You need to collect debug logs.
Usually cloud response with error on energy request.

Getting this error frequently as well.
2023-04-20 22:00:47.470 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.sonoff_*********_energy_month (<class 'custom_components.sonoff.sensor.XSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Hi, I'm facing the same issue using the POWR316D and POWR320D devices.
It seems that when there is a "Cloud error" (error 504) in the logs, the device reboots and returns to the configured initial state. On other hand, if the device is configured to start in the off state, the devices turn off in case of error and this strange reboot.
These are the logs about the cloud error:
2023-04-21 14:07:54 [D] 10013c5a66 <= Cloud3 | {'power': '164.24', 'voltage': '233.61', 'current': '1.10'} | None 2023-04-21 14:07:54 [D] 10013c5a66 <= Local3 | <IP_ADDRESS>:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'stay', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 164.24, 'voltage': 233.61, 'current': 1.1} | 594 2023-04-21 14:07:56 [D] 1001736dfa <= Cloud3 | {'current': 22, 'voltage': 23358, 'power': 3098, 'dayKwh': 43, 'monthKwh': 1488} | None 2023-04-21 14:07:56 [D] 1001736dfa <= Local3 | <IP_ADDRESS>:8081 | {'switches': [{'switch': 'on', 'outlet': 0}], 'configure': [{'startup': 'on', 'outlet': 0}], 'pulses': [{'pulse': 'off', 'switch': 'off', 'outlet': 0, 'width': 500}], 'fwVersion': '1.0.7', 'rssi': -38, 'current': 22, 'voltage': 23358, 'power': 3098, 'dayKwh': 43, 'monthKwh': 1488} | 23594 2023-04-21 14:07:57 [D] 10017385e0 => Local4 | <IP_ADDRESS>:8081 | {'getHoursKwh': {'start': 0, 'end': 719}} !! Can't read JSON  2023-04-21 14:07:57 [D] 10017385e0 => Cloud4 | {'getHoursKwh': {'start': 0, 'end': 719}} |<PHONE_NUMBER>001 2023-04-21 14:07:57 [D] 10017385e0 <= Cloud3 | {'online': False} | None 2023-04-21 14:07:57 [D] 10017385e0 => Local4 | <IP_ADDRESS>:8081 | None <= {'sequence': '1682078877000', 'seq': 2, 'error': 400, 'encrypt': True} 2023-04-21 14:08:00 [D] 10017385e0 <= Local3 | <IP_ADDRESS>:8081 | {'switches': [{'switch': 'off', 'outlet': 0}], 'configure': [{'startup': 'off', 'outlet': 0}], 'pulses': [{'pulse': 'off', 'switch': 'off', 'outlet': 0, 'width': 500}], 'fwVersion': '1.0.7', 'rssi': -60, 'current': 0, 'voltage': 0, 'power': 0} | 2 2023-04-21 14:08:00 [D] 10013c5a66 <= Local3 | <IP_ADDRESS>:8081 | {'alarmVValue': [-1, -1], 'alarmCValue': [-1, -1], 'alarmPValue': [-1, -1], 'switch': 'on', 'startup': 'stay', 'pulse': 'off', 'pulseWidth': 500, 'sledOnline': 'on', 'power': 162.43, 'voltage': 231.46, 'current': 1.08} | 595 2023-04-21 14:08:00 [D] 10013c5a66 <= Cloud3 | {'power': '162.43', 'voltage': '231.47', 'current': '1.08'} | None 2023-04-21 14:08:02 [W] Cloud ERROR: {'error': 504, 'reason': 'Request Timeout', 'deviceid': '10017385e0', 'apikey': 'XXXXXXXXXXXXXXXXXX, 'sequence': '1682078872001'} 2023-04-21 14:08:02 [D] 10017385e0 => Local4 | <IP_ADDRESS>:8081 | None <= {'sequence': '1682078882000', 'seq': 3, 'error': 400, 'encrypt': True} 2023-04-21 14:08:02 [D] 10017385e0 <= Local3 | <IP_ADDRESS>:8081 | {'switches': [{'switch': 'off', 'outlet': 0}], 'configure': [{'startup': 'off', 'outlet': 0}], 'pulses': [{'pulse': 'off', 'switch': 'off', 'outlet': 0, 'width': 500}], 'fwVersion': '1.0.7', 'rssi': -61, 'current': 0, 'voltage': 0, 'power': 0} | 3 2023-04-21 14:08:03 [D] 10017385e0 <= Cloud3 | {'online': True} | None 2023-04-21 14:08:03 [D] 10017385e0 => Local4 | <IP_ADDRESS>:8081 | None <= {'sequence': '1682078883000', 'seq': 4, 'error': 400, 'encrypt': True} 2023-04-21 14:08:03 [D] 10017385e0 <= Local3 | <IP_ADDRESS>:8081 | {'switches': [{'switch': 'off', 'outlet': 0}], 'configure': [{'startup': 'off', 'outlet': 0}], 'pulses': [{'pulse': 'off', 'switch': 'off', 'outlet': 0, 'width': 500}], 'fwVersion': '1.0.7', 'rssi': -61, 'current': 0, 'voltage': 0, 'power': 0} | 4 2023-04-21 14:08:03 [D] 10017385e0 <= Cloud3 | {'fwVersion': '1.0.7'} | None 2023-04-21 14:08:04 [D] 10017385e0 <= Cloud3 | {'switches': [{'switch': 'off', 'outlet': 0}], 'configure': [{'startup': 'off', 'outlet': 0}], 'pulses': [{'pulse': 'off', 'switch': 'off', 'outlet': 0, 'width': 500}], 'fwVersion': '1.0.7', 'rssi': -61, 'threshold': {'actPow': {'min': 10, 'max': 500000}, 'voltage': {'min': 18500, 'max': 26400}, 'current': {'min': 10, 'max': 2000}}} | None 2023-04-21 14:08:04 [D] 10017385e0 <= Cloud3 | {'current': 0, 'voltage': 0, 'power': 0, 'dayKwh': 0, 'monthKwh': 1310} | None
Do you have any ideas why the device reboot on this error?

@ov3rload1ng I don't know if the device reboots but if i have Water Pump running. It stops unexpectedly by this error. Then I have to turn my Water Pump on again.
I have changed an option under Settings>Devices&Services>Sonoff>Configure>Mode. that seems to have fixed this issue for now but it implies "not recommended for most users". I have changed Mode from auto to local. I am not sure if it will help you. Only tested it recently and i did not get this error after changing this setting.

I'm also experiencing the POWR320D turning off by itself. Note that I'm denying internet access for all smart home devices in the router. Changing the "Mode" setting from "auto" to "local" as suggested by @UmairEEE seems to have solved it.

Spoke too soon. @ov3rload1ng's solution worked for a few hours, then POWR320D turned itself off again multiple times. Even when I didn't restrict its access to the internet.

Unfortunately @ov3rload1ng's solution isn't working for me. POWR320D keeps turning off by itself.

@defaultsecurity Are you still getting cloud error or some other error as well?
After changing Mode to local, try reloading integration and restarting HA. Maybe it will work for you. That's what i did after changing Mode.
Also make sure LAN control option for PWR320D is set to enable inside ewelink app as well.

@defaultsecurity @UmairEEE A solution that I found is to change the power-on state configuration to ON using the ewelink app. For this reason, I suppose that the device reboots on the cloud error. I don't know if the problem is on the device, in the SonoffLAN integration, or another part of the chain.
Switching the integration from auto to local works also on my ha but there are other problems. In fact, this mode is not suggested by @AlexxIT
@AlexxIT If my assumption is correct, Do you have any idea why the device reboots when there is a cloud error (see the log)?

I can't change power-on state to ON considering I have a Water Pump connected to it.
@AlexxIT shed some light on this issue and its fix.

Switching the integration from auto to local works also on my ha but there are other problems. In fact, this mode is not suggested by @AlexxIT

Yeah changing mode to local works but not fully. Yesterday my Powr320d turned OFF again without giving me cloud error. Maybe changing mode to local hide the error but the issue still occurs. One thing i can cofirm though after changing mode to local my Powr320d is turning OFF very less.

Tonight Powr320d cycled between ON and then Unavailable few times. Don't know what caused it but then i switched back to auto mode to be on the safe side (re;loaded integration and restarted HA) and it stopped cycling.

I am too experiencing my POWR316 switching OFF after approx. 1 hour. This device should always be ON since I mainly use it to log power usage. On the eWeLink App I selected Power-on state ON but it doesn't make any effect.
It used to work fine until 2 days ago - random switching OFF just happened. I also noticed that the history on the eWeLink App is all 0; i.e. it seems like not being recorded or deleted. Only have history since around 1-2 April when I think @AlexxIT pushed an update. Again, I don't know if it is related or not.
I can see a number of ERRORS in the log.
I had to remove the device from HA since I cannot afford this random switching OFF. I will test my device being connected to power but without a config on HA and see if the random switching OFF still happens or not.

I have this issue too, random power-offs. Started recently.

I had to remove the device from HA since I cannot afford this random switching OFF. I will test my device being connected to power but without a config on HA and see if the random switching OFF still happens or not.

@kformosa Does it still happen after removing integration?

For me it does not happen after disabling the integration

@UmairEEE it didn't happen, so I can say that it was/is something with the integration.
HOWEVER, after deleting the device from HA, the day after I "found" the device added again in HA automatically (????) but not using any entities/values. It still didn't switch OFF randomly so I really don't know what is happening tbh.

UPDATE: You won't believe me BUT I found a "device triggered" in the eWeLink log this morning at 1:20am! Checked HA logs and there are no errors in the "home-assistant.log" at that time.

Was this after removing integration from HA?

I have just noticed that blue led on POWR320D is blinking twice quickly. It's still working in HA. Considering I have to setup it again in ewelink to fix this issue of blinking twice. I remember when i first setup this device in ewelink I was having issue with ewelink not recognizing it from the QR code at the back of this device. I had to use other methods to link it up with ewelink. Maybe QR code was misprinted for my device.

Reconfiguring device after removing in ewelink did nothing to solve cloud error.

Perhaps regular energy requests are overloading the device in some way.
You need to disable all energy-related entities.

Perhaps regular energy requests are overloading the device in some way. You need to disable all energy-related entities.

Thanks for the reply. If this is an issue with the device then should it not be there from day one? When i bought it at first. It worked OK for 2 months then this issue started.

Do you use latest integration version from day one?
Also energy history grows over time.

Do you use latest integration version from day one? Also energy history grows over time.

When I installed SonoffLAN at first never really looked into versions. I guess the version was  latest at that time. This issue started after 2 months when some new updates came out for integration as well as HA and maybe ewelink. Don't remember which one caused it.
I tried removing energy history from ewelink but has no effect. Then i reconfigured device from ewelink. That also did nothing. Don't know how to delete energy related entities from integration.

@UmairEEE go to the Entity screen, find the Sonoff device, SELECT the energy entities (Day, month, etc) and press DISABLE

Thanks I will test it.

Finally cloud error is not appearing after disabling energy entities. I have tested for more than 48 hours. Thanks @AlexxIT and @kformosa.

Unfortunately my POW switched off again on its own at 5:03am - 4.5 days working.
I have energy entities disabled.
Can't find any logs why this happened again.

Unfortunately my POW switched off again on its own at 5:03am - 4.5 days working. I have energy entities disabled. Can't find any logs why this happened again.

I also got same issue after 3 days. Device turned off just like it used to do with cloud error. This time there was no log.

If you are using a second ewelink account for Hass, try to remove sharing of this device from that account.

i have same issue with my POWR316D, did you still have problem with this devices?

I have the same problem with my POWR320D - it also started misbehaving 2 days ago.
Power on state would default back to OFF and switch would randomly toggle on and off.
Seems to behave better after disabling all the energy sensors.

The same thing happens to me, I am currently talking to Sonoff support via Amazon to see if they can access figure out what is going on, the conversation has been going through more than one week right now. The POWR320D shuts down, resets his stats and settings (like power-on on power-off, wi-fi seem to not being impacted) sometimes I have a way to turn it back on via HA before the UPS shuts down, other times I have to physically act on the button because even in the eWelink app become unreachable (even if the UPS is still going).
A real trouble, currently I am always at home so I can debug for Sonoff, there is to say that I also believe it is something related to this integration, as for a while that I was away from home I kept Energy Tab disabled in Home Assistant and it never happened. The curiosity on my side is that for three times in a row it always happened at the same time 12.22pm - 12.24pm UTC+2, does that ring a bell?

I have the same problem, it keeps restarting randomly, has anyone figured out how to fix it?

I’ve noticed that the restarts consistently occur within the time frame of 22:12–22:25, which suggests it might be triggered by a specific task or event happening during that window. I’ve been in contact with Sonoff support for weeks, but we haven’t found a solution yet. I still suspect that the problem is related to this integration.
Here are the logs of the shutdowns (UTC time):
13/09/24 - 22:21
18/09/24 - 22:20
24/09/24 - 22:22
29/09/24 - 22:11
04/10/24 - 22:12
09/10/24 - 22:12
15/10/24 - 22:13
25/10/24 - 22:24
30/10/24 - 22:17
04/11/24 - 22:17
09/11/24 - 22:17
19/11/24 - 22:17
24/11/24 - 22:20
29/11/24 - 22:25
04/12/24 - 22:18
09/12/24 - 22:12

As you can see, the issue seems to occur roughly every five days.

If you think the integration is the problem, just disconnect the device from it.

There was absolutely no evil intent in it. It's just logic. Including testing your theory.
I don't believe the source of the problem is integration. But of course it can load the device with constant state requests. There are no similar complaints with other ewelink devices.

All requests from the integration to the device are visible in the logs. They are quite detailed and fully reflect the entire integration workflow.


added support for query params to spark-rest

Camel-11323 - Fix which ensures that query parameters are mapped to Camel Headers with the camel-spark-rest project.
source check has been run.

Thanks for the PR it has been merged. Do you mind closing this?

Closing as per the request.


Fix api-request leaking state when changing paths.

Reproduction:

Given two path items with mutually exclusive sets of mimeTypes,

{ paths: {
  "/foo": {
    "post": {
      "requestBody": {
        "content": {
          "application/octet-stream": {}
        }
      }
    },
    "put": {
      "requestBody": {
        "content": {
          "application/json": {}
        }
      }
    }
  }
}}

Navigate between them. You'll see errors in the JS console. The UI has no problems.

The error indicates that the reqBody is undefined, because it was searching for the incorrect selectedRequestBodyType in requestBodyTypes. This fix is just patching it so that, if it fails to find the "selected" requestBodyType, it simply picks one that at least exists.

I have read the CLA Document and I hereby sign the CLA

Great thank you, this has been merged in #167 to the release 1.0. If you wait a few hours a version should be released!


Added links to API service health references

The change is based on the issue #6231

@SebastianSchuetze : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@chcomley - can you review?  (note that the URLs will need the loc 'en-us/' removed before this can be merged). thanks!

#sign-off

@jborsecnik : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Transpiler JS -> Dart

Good day.
Many people would like to use the JS translation tool in Dart.
Basically for frameworks the standard ЕS5, ЕS6 is used. This tool will convert the code of the fresh libraries to Dart. Doubtful parts of the code that do not make it possible to uniquely identify a strict type, mark as "ToDo:" or "Warnings:", for manual editing. This will automatically convert 90-95% of the written code.
Fresh library will be published in the repository pub. The version with the original version will also be preserved. For example: vue v2.5.13 = vue2: "2.5.13"
This will definitely help to increase the audience of Dart! Since most developers have problems with the usual libraries in everyday life.

Duplicate of #1405

General practice shows that in browser you can successfully use JavaScript libraries and Dart together via JS interop, see examples like over_react. Translation is not the right solution because it essentially forks the library.
Also while it is certainly possible to run JavaScript on top of Dart, a high-level translation from arbitrary JavaScript to Dart is a very hard task due to semantic chasm that separates these languages. Producing a readable and maintainable close to idiomatic Dart from an arbitrary JavaScript library is non-trivial.
I however don't want to discourage anybody from trying it out! As #1402 states: it would be a very interesting community project.


WSL 2

I have a lot of questions but is only for try to help you, I love this project.

This project have totally support of wsl 2? I need make something to use?

Is possible connect usb devices to the subsystems? Like for work with android and use adb services.

How can I help you to improve this project?

Thank you for create this, now I can develop using win 10 happiest.

This project have totally support of wsl 2? I need make something to use?

Only limited support because it's hard to read/write vhdx files. https://github.com/DDoSolitary/LxRunOffline/issues/90#issuecomment-510318620
The feature hasn't yet been released so you have to use dev releases.

Is possible connect usb devices to the subsystems? Like for work with android and use adb services.

USB support is not related to this project, please consult Microsoft.
FYI current status:
WSL1: Only storage devices
WSL2：Not supported, but Microsoft promised that it will be supported in the future
Also, if you just want to work with Android you could try adb over network.

How can I help you to improve this project?

Currently all planned features have been implemented so most of the work is maintenance. Any help is welcome, including:

Answer questions in issues
Discuss possible implementation of feature requests
Open issues/PRs for bugs and feature requests
Improve error messages in error.cpp (I'm not a native English speaker)
Remind me of any updates on WSL from Microsoft
Thanks a lot for your volunteering 😄


Some questions about the data processing

👋 Hi! Thank you for your contribution, it is really a great job. And I have two questions regarding data processing:

RSNA Pneumonia: In the paper, it is mentioned, "The official data split is followed, with the training/validation/test set consisting of 25,184/1,500/3,000 images, respectively." I checked the RSNA Pneumonia dataset's official website and found that only 25,184+1,500 images have ground truth, and the remaining 3,000 images do not. Where can I find the ground truth for the test set?

SIIM-ACR Pneumothorax: When fine-tuning, is the approach the same as with MRM? Do you still include around 5,000 images without pneumothorax lesions for training, or is the final dataset for training reduced to only around 7,000 images (similar to MGCA), excluding those without lesions?

Hi, thanks for your attention to our work.
1. RSNA Pneumonia: We follow MRM to get the ground truth labels for the test set. The corresponding labels can be accessed here
2. SIIM-ACR Pneumothorax: We do not follow the approach of MRM which utilizes mmsegmentation. Our implement of fine-tune segmentation framework will be released soon. In detail, we only keep positive samples for segmentation (similar to MGCA).
I hope the above info is helpful!

Thank you for your prompt response!
I can obtain the classification labels for the RSNA test set here, but where should I get the corresponding segmentation labels/masks?

There is no official RSNA test set segmentation labels released. Therefore, we follow the split of MGCA, randomly split the original training set into 16, 010/5, 337/5, 337 for training/validation/testing

Thank you, I have a general understanding.

During RSNA's classification, you followed the division according to MRM, but it seems inappropriate to directly use the results from the MGCA original paper here, as the divisions between MGCA and MRM are inconsistent. (I have tried using the MRM division on MGCA, and the metrics show some improvement 😂 )

Furthermore, may I inquire about the segmentation metrics at RSNA? The results from MedKLIP do not have specific annotations, it appears that they have not been fine-tuned and are directly taken from the original paper's results. However, I could not find corresponding values in the MedKLIP paper. Could you please clarify how you obtained these results? Perhaps it should also be fine-tuned again, as its division method is also unique.

Thank you for your understanding!

You really caught the details. The comparision is not fair enough. I have reconducted the experiement by leveraging Linear classification on MGCA using the data split of MRM on RSNA, where I get the results below:
1%    10%     100%
88.9   90.0     90.8
For the results of MedKLIP segmentation on RSNA, we obtained them directly from Med-Unic. As in segmentation task, we follow the split of MGCA and Med-Unic, I think it is appropriate to directly copy take the results from Med-Unic.

Got it, thank u ;-)

Hi,
I apologize for the interruption again. I would like to confirm whether, during the reproduction of KAD in Table 2, the DQN module was set to be frozen? Specifically, was only the last linear layer enabled, or was only the backbone(resnet50) frozen while the other parts remained trainable?

We conduct linear classification with only the last linear layer trainable. We solely load the vision backbone parameters of the official released KAD model, then freeze the backbone.


Microphone is not able to record any sound !

What happened?
While the recorder is recording in a scene(Capture audio enabled), I am trying to record an audio with microphone at the same time, and attach the recorded voice to the audio source in the scene.
Expected result :  Once the recording is finished, I expect the video to contain the recorded audio from microphone.
Real Result : Microphone is not recording anything. The video has the scene view, but not audio(Capture audio enabled).
Are you guys disabling the microphones, once the recording is started ? Or why can not I record my voice from microphone ?
Thank You !
Is it reproduceable?
Yes
Released package version / tag?
v0.2 - Asset Store Version.
Unity version, operating system, target platform (standalone windows, mac, iOS, PS4...)?
2017.3f3, windows, android

Hi,
I am meeting the same problem right now, I am using the package manager and Unity Recorder 2.0.1 in Unity 2018.3.
Before the recording the mic is working pretty well, and I soon as I launch the video rec with audio capture on it records the video but not the voice.


Window pinning breaks when a VS Code instance is closed while pinned

Steps to reproduce:

Open VS Code
Pin the window to the side of the screen with Windows + Right
Close the window
Open VS Code
Try to pin the window with Windows + Right
Notice that it does not work
Try to pin the window with Windows + Left
Notice that it works

I hit this every single day and it drives me nuts.

Version: 1.33.1 (system setup)
Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8
OS: Windows_NT x64 10.0.17763

This is a daily nuisance :(

This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to the code. As such, I will go ahead and close it. If you can identify the component that is causing the issue, please report it upstream:

for UI, OS integration: https://github.com/electron/electron
for Rendering: https://bugs.chromium.org/p/chromium/issues/list
for file IO: https://github.com/nodejs/node

Thanks for understanding.


error based rules are not included

@comparte/eslint-config version:
eslint version:
typescript version:
node version:

Relevant code or config:
const your => code => here

What you did:
What happened:
Reproduction:
Problem description:
Suggested solution:

:tada: This issue has been resolved in version 4.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add [[noreturn]] to rb::State::jump()

This pull-request specifies [[noreturn]] attribute to rb::State::jump() function if the compiler supports C++1x.
This can prevent the following compiler warning on clang++.
/Users/mrkn/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/extpp-0.0.5/include/ruby/protect.hpp:12:24: warning: function 'jump' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
    inline void jump() {
                       ^

Thanks.
I've release 0.0.6.


Add instanceof property for type objects

What about add a property instanceof that could validate if an object is an instance of the right class.
e.g.

const MyClass = require('./MyClass.js');
const Ajv = require('ajv');
let ajv = new Ajv();

let schema = {
  "type": "object",
  "instanceof": MyClass
}

let model = new Myclass();
ajv.validate(schema, model); // valid
ajv.validate(schema, {}); // invalid

Then when an "instanceof" prop is defined it could simply check:
model instanceof schema.instanceof
I know that ajv#keyword can do the trick, but it's really not developper friendly.
Your Ajv instance has to know about all your models.
best.

What about add a property instanceof that could validate if an object is an instance of the right class.

Ajv implements JSON Schema specification, instanceof is not a part of it, so it should not be in this package.
Also, it would be a very fundamental change to Ajv to allow non-serialisable schemes. Currently, you cannot have a function/class in the schema.

I know that ajv#keyword can do the trick, but it's really not developper friendly.

Assuming you mean ajv-keywords package that implements instanceof keyword, what is not friendly about it? If it's the fact that you have to register the class and use its name rather than actual class constructor, it follows from the limitation that the schema must be serialisable. Or is it something else?

Yes I understand that JSON Schema is language agnostic and should only know about JSON.
Yes I admit that you need to use the class name to do that.
But I would like to know if it's possible to accept a class argument during the instanciation of ajv instead of directly mutate the module (ajv-keyword) data?
const MyClass = require('./MyClass.js');
const Ajv = require('ajv');
const AjvKeyword = require('ajv-keywords');

let ajv = new Ajv();
let ajvKeyword = new AjvKeyword({
  classConstructor: [{
    'myClass': MyClass
  }]
});

ajv.validate({instanceof: 'myClass', new MyClass());

Then only an ajvKeyword instance has the class constructor name. Therefore we can pass dynamic class constructor to an instance of AJV, and we don't need to initialize all the class constructor.
Thx for your fast answer btw :)

It can be done in ajv-keywords, so closing it here.
The api to pass keyword-specific options would be
const MyClass = require('./MyClass.js');
const Ajv = require('ajv');
const ajvKeywords = require('ajv-keywords');

let ajv = new Ajv;
ajvKeywords(ajv, { // array of keywords is supported, a map of options can be supported too
  typeof: true, // no options
  instanceof: {
    classes: {
      'MyClass': MyClass
    }
  }
});

ajv.validate({instanceof: 'MyClass'}, new MyClass);

It should be done for all keywords that support parameters, not just instanceof.


CC License plugin for Chromium, Chrome and Opera

https://github.com/raulsi/CClicense
Uses several of our logos, this is a new project who has been talking to us. I'd like to invite them to work with us and fix up any issues.

Isn't that same as Open Attribute? Same folks?
On Tue, Mar 17, 2015 at 10:26 AM, Matt Lee<EMAIL_ADDRESS>wrote:

https://github.com/raulsi/CClicense
Uses several of our logos, this is a new project who has been talking to
us. I'd like to invite them to work with us and fix up any issues.
—
Reply to this email directly or view it on GitHub
https://github.com/creativecommons/policies/issues/6.

--
Jane Park
@janedaily
Creative Commons | Los Angeles
Make a donation to support CC in 2015: http://bit.ly/supportcc2015

Not aware of OA.
 I'm on the mailing list. Also, the wiki browser plugin page
points to OA as the new version, see https://wiki.creativecommons.org/MozCC.
On Tue, Mar 17, 2015 at 3:50 PM, Matt Lee<EMAIL_ADDRESS>wrote:

Not aware of OA.
Got a link?
—
Reply to this email directly or view it on GitHub
https://github.com/creativecommons/policies/issues/6#issuecomment-82631560
.

--
Jane Park
@janedaily
Creative Commons | Los Angeles
Make a donation to support CC in 2015: http://bit.ly/supportcc2015


Investigate "inactiveObjectX" errors and change them to data processing errors

The "inactiveObjectX" errors indicate that an unreferenced object is used >7 days after it was unreferenced. This is a potential "use-after-delete" scenario and should be identified and fixed as soon as possible by data store creators.
We need to investigate the current state of these errors and evaluate how actionable and correct they are. Then convert them to data processing errors if they indicate a usage problem.

Closing as this is tracked internall AB#253


feat: support custom alphabet

fixes #44
Function name inspired from https://github.com/ai/nanoid#api

Thank you for this great package. I don't expect we need any additional tests.

@ryasmi I also plan to add a fix on #43 . If possible, it would be nice if we can ship two updates in a release. :)

Sorry @seia-soto this has been waiting for approval for more than 30 days, so I'm not able to approve the workflow to run, could you please push an empty commit to the branch so I can approve that?
git push --allow-empty -m "ci: Triggers CI"


[New Feature] AEM Templated Dialogs (HTML & JSON rewriter for contextual authoring)

Resurrecting this old PR: https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/1944
I've finally had time to make the updates requested to the codebase.
Basic Overview:
AEM has a powerful scripting language (HTL) that enables developers to leverage contextual properties (think page title, brand name, etc), but it only works when happening on the development side - authors can't interact with these values directly. AEM Templated Dialogs seeks to remedy that by providing the ability for authors to use these contextual variables in the actual copy they are writing with familiar Handlebars-like templating.
Updated since last time:

Using OSGi services to extend available properties instead of Java reflection
JSON rewriting now supported
Additional unit test coverage
Added debug logging in various places for troubleshooting
AEM as a Cloud Service compatibility/testing

Pull Request Test Coverage Report for Build 6248

233 of 263 (88.59%)  changed or added relevant lines in 10 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 55.943%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bundle/src/main/java/com/adobe/acs/commons/properties/util/PropertyAggregatorUtil.java
9
10
90.0%

bundle/src/main/java/com/adobe/acs/commons/properties/filter/TemplatedFilter.java
90
92
97.83%

bundle/src/main/java/com/adobe/acs/commons/properties/impl/PropertyAggregatorServiceImpl.java
18
20
90.0%

bundle/src/main/java/com/adobe/acs/commons/properties/model/TemplatedDialogsPropertyDatasource.java
13
15
86.67%

bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/TemplatedTransformer.java
46
53
86.79%

bundle/src/main/java/com/adobe/acs/commons/properties/filter/CapturingResponseWrapper.java
12
28
42.86%

Totals

Change from base Build 6245:
0.3%

Covered Lines:
16272

Relevant Lines:
29087

💛  - Coveralls

Pull Request Test Coverage Report for Build 6248

233 of 263 (88.59%)  changed or added relevant lines in 10 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 55.943%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bundle/src/main/java/com/adobe/acs/commons/properties/util/PropertyAggregatorUtil.java
9
10
90.0%

bundle/src/main/java/com/adobe/acs/commons/properties/filter/TemplatedFilter.java
90
92
97.83%

bundle/src/main/java/com/adobe/acs/commons/properties/impl/PropertyAggregatorServiceImpl.java
18
20
90.0%

bundle/src/main/java/com/adobe/acs/commons/properties/model/TemplatedDialogsPropertyDatasource.java
13
15
86.67%

bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/TemplatedTransformer.java
46
53
86.79%

bundle/src/main/java/com/adobe/acs/commons/properties/filter/CapturingResponseWrapper.java
12
28
42.86%

Totals

Change from base Build 6245:
0.3%

Covered Lines:
16272

Relevant Lines:
29087

💛  - Coveralls

I'll take this review sometime this week hopefully

I'll take this review sometime this week hopefully

Currently reviewing the code, but want to put out there again that I'd like to get opinions from folks like @davidjgonzalez and @joerghoh on the name of this feature.  I just can't seem to bend my brain to naturally connect what this feature does with "templated dialogs" because it sounds like we're templating reusable dialogs (which is not what the feature is).  David echo'd some of the sentiment in the previous PR, but we never came to a conclusion.
If we want to link this to authors, I think something with "Authoring" in the name rather than "Dialogs" would be more clear. The tokens work in dialogs, but also in inline RTEs, and would even technically work from hard-coded HTL i18n strings I believe (and I imagine there could be some valid use cases for that).
Suggestions from me:

Content Tokens
Authoring Tokens
Replacement Templates
Author Replacement Templates

I don't think we have to pick one of mine, I just think that the feature will suffer from confusion (resulting in sparse usage) with it's current name.

Currently reviewing the code, but want to put out there again that I'd like to get opinions from folks like @davidjgonzalez and @joerghoh on the name of this feature.  I just can't seem to bend my brain to naturally connect what this feature does with "templated dialogs" because it sounds like we're templating reusable dialogs (which is not what the feature is).  David echo'd some of the sentiment in the previous PR, but we never came to a conclusion.
If we want to link this to authors, I think something with "Authoring" in the name rather than "Dialogs" would be more clear. The tokens work in dialogs, but also in inline RTEs, and would even technically work from hard-coded HTL i18n strings I believe (and I imagine there could be some valid use cases for that).
Suggestions from me:

Content Tokens
Authoring Tokens
Replacement Templates
Author Replacement Templates

I don't think we have to pick one of mine, I just think that the feature will suffer from confusion (resulting in sparse usage) with it's current name.

I'm happy to rename it to get better reception among the community. Since I'm already using a 'ContentVariableProvider' service that's extended, how about 'Contextual Content Variables'?

I'm happy to rename it to get better reception among the community. Since I'm already using a 'ContentVariableProvider' service that's extended, how about 'Contextual Content Variables'?

Let's converge on a rename after the rest of the code review comments are addressed, as that should make the review easier w/o losing association of comments to current file names :)

Let's converge on a rename after the rest of the code review comments are addressed, as that should make the review easier w/o losing association of comments to current file names :)

FWIW I'm good with "Contextual Content Variables" as the name for this feature @id-keenan


FEATURE - Disable EVENT_EXTENSION Models

Are you a Fivetran customer?

Fivetran created PR
Is your feature request related to a problem? Please describe.

A customer that does not sync the event_extension table is not able to run the downstream models.
Describe the solution you'd like

Allow a customer to disable the event_extension model and all downstream impacts if desired.
Describe alternatives you've considered

No current alternative.
Additional context

85% if customers sync this table. We will want to enable this by default.
Please indicate the level of urgency and business impact of this request

Medium
Are you interested in contributing to this package?

[X] Yes, I can do this and open a PR for your review.
[ ] Possibly, but I'm not quite sure how to do this. I'd be happy to do a live coding session with someone to get this work implemented.
[ ] No, I'd prefer if someone else did this.  I don't have the time and/or don't know how to incorporate the changes necessary.

This was a result of the customer sync not being fully completed at the time of dbt package use. The event_extension table will always be included in the Iterable schema after a succesful sync. As such, I will close this ticket.


Readd io_loop to PeriodicCallback

Appears we missed getting io_loop added back to PeriodicCallback in PR ( https://github.com/dask/dask-drmaa/pull/61 ) (sorry for missing that). As a result, we can get hangs in some cases when trying to start the dask-drmaa cluster. This readds the io_loop argument, which should fix that issue.
cc @mrocklin @lesteve

Also tested this with the Jupyter notebook to make sure it doesn't run into the same issue again.

Released in 0.1.2 on PyPI and conda-forge.


svsm: bump to Rust version 1.81

So as not to fall behind the Rust toolchain developments, update to the latest stable version.
This PR also includes changes to fix would-be clippy warnings in version 1.81.

FYI Rust 1.82 will be released next Thursday.

Closing in favor of #487


workflow problem - lima  demultiplex （primer.fasta construction)

Hi, I am new here.  We have a project for genome de novo assembly. I got my subread.bam from the company, and used Pbccs to generate the ccs. bam. I have trouble on lima demultiplex.  The company did not supply the primer. fasta file, but we have a .xml file. When I check it, the left and right primer shared the same sequence but with different adapter, I attached the .xml file here.  My question is if I need make the primer fasta with adapter and primer by myself. Moreover, what's the function of the attached .xml
file?
m64200e_210512_135018.subreadset.xml.docx

Hi. This problem is not related to our bioconda binaries. Please contact your local field application specialist or PacBio's technical support at https://www.pacb.com/support/technical-support/


feat: add Environment type

What
Add the following
@dataclass
class Environment:
    """
    Items external to the virtual machine itself, provided by the environment.
    """

    caller: Address
    block_hashes: List[Hash32]
    origin: Address
    coinbase: Address
    number: Uint
    base_fee_per_gas: Uint
    gas_limit: Uint
    gas_price: Uint
    time: U256
    prev_randao: Bytes32
    state: State
    chain_id: U64
    traces: List[dict]
    excess_blob_gas: U64
    blob_versioned_hashes: Tuple[VersionedHash, ...]
    transient_storage: TransientStorage

I think I can take this one. Where should this type reside?
Inside ethereum/cancun/vm?


Lazy htcore

@WeiweiZhang1  fix the issue then merge the pr or close the pr, same for other prs. some of them has been opened for a long time


Improved python3.2.x-and-below compat.

Reused from
https://github.com/shlomif/shlomi-fish-homepage/commit/1b7c9ec6f9d3e7ebce6233219545acd2a1e6c227
due to hostgator.com having 3.2.x.
Note that it is just an improvement - not a guarantee that bottle.py
is actually fully compatible with such old versions. I also will be OK
with these changes being rejected, but just felt it was right to share
them in the spirit of FOSS.

I hereby disclaim any implicit or explicit ownership of my changes in this
changeset, and put them under a multiple licence consisting of your choice of
one of more of:

The CC0 / Public Domain - https://creativecommons.org/choose/zero/ .

The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License

The default licence of your project

The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version
2.1 or higher

The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or
higher

Any licence in the 2018-Aug-27 popular licenses list of
https://opensource.org/licenses

The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later

The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later

The https://en.wikipedia.org/wiki/ISC_license

The https://opensource.org/licenses/BSD-2-Clause

Crediting me will be nice, but not mandatory, and you can change the licence
of the project without needing my permission.

3.2 is nearly 5 years past its EOL date. The last release was 2014. If you need Python 3.2 support, you can stay on bottle 0.12.


Images passed somewhere else

I use react, but it can be any other framework.
So, the problem is – I import image in one module, and then pass it as a property to another. And inside another module, when I try to render, it just shows me initial path – actual image isn't processed by url-loader and paths are unchanged.
Has anyone encountered in such problem, and how is it possible to workaround it?
I don't want to pass just path, and dynamically require it, it seems to be a very bad solution.
Thanks a lot!

How should the path change in this case? Webpack relies on static analysis so any sort of dynamic bits relying on code evaluation won't work. It's better if you can require the assets where you need them.

Can you please re-open at Stack Overflow? Thanks.


Updated LH.is-cool.dev

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.

Description

Link to Website

@DEV-DIBSTER merge this


Errors when Godot try to import files which contains in name unallowed characters

Godot version:
Godot 3.1
OS/device including version:
Ubuntu 18.04
Issue description:
When I put into godot project, folders with names like :::\::: (kopia) or ::::\::Zdj?>, then Godot show a lot of errors:
ERROR: _scan_filesystem: Condition ' split.size() != 3 ' is true. Continuing..:
   At: editor/editor_file_system.cpp:237.
ERROR: _get_modified_time: Failed to get modified time for: res://::::\\::Zdj (kopia)
   At: drivers/unix/file_access_unix.cpp:292.
ERROR: _scan_new_dir: Cannot go into subdir: new folder
   At: editor/editor_file_system.cpp:736.

I think that godot should change name all of names which contains unallowed characters to corrent, like "::::??Zdjecia" -> "Zdjecia"
Minimal reproduction project:
FFFFFFFFFFFFFFFFFFFF.zip

I think that godot should change name all of names which contains unallowed characters to corrent, like "::::??Zdjecia" -> "Zdjecia"

I disagree, Godot should not mess around with your filesystem unless you ask it to. It should just refuse to open these folders/import these files and throw a clearer error.


Could not figure out how to use candlesticks with backtest

Can you provide a sample for that?
For ex; suppose I have a set of candles and I want to determine whether it's a bullish or bearish engulfing pattern using backtest.
I couldn't find any extension that will help me using in buy/sell rules.

I figured it out all. Thanks.

Would you please share how you did it?
Thanks.


Add length normalization to loglikelihood in base.py since the longer…

… target tokens tend to have lower negative log likelihood when we just use sum of negative log likelihood from all tokens.

For example, for hellaswag(https://huggingface.co/datasets/hellaswag), the number of target label (endings) tokens can be different among answer candidates. Thus, it is not proper to utilize cumulative sum.

Hi @kmswin1! Can you clarify why this approach would be preferred over the target label byte-length normalization approach used to compute acc_norm in a tokenization-agnostic manner:
https://github.com/EleutherAI/lm-evaluation-harness/blob/50eb80ba5f23bde87cb80bbe1f1633bb98038e58/lm_eval/base.py#L659-L662

Thank you for your response, however, I still have some concerns. First, If someone does utilize a byte-level tokenizer, it does not valid.
In addition, although multiple choices have the target label byte-length normalization, the basic 'Task's such as boolq, wic do not have any normalization. The target label tokens do not always guarantee the same length. (For example, 'yes' can be divided into 'ye', '##s', or no into just 'no'). In this case, 'yes' label has some penalty.
GPT3 [1] already proposed that "For most tasks, we compare the per-token likelihood (to normalize for length), however on a small number of datasets (ARC, OpenBookQA, and RACE) ".
[1] Brown, Tom, et al. "Language models are few-shot learners." Advances in neural information processing systems 33 (2020): 1877-1901.

@kmswin1 Well, it's "valid" for non-char-level tokenizers because it still down-weights lengthier labels (assuming there aren't very large merges in the vocab 😅). Check out https://blog.eleuther.ai/multiple-choice-normalization, which describes why this implementation was chosen.
Unfortunately, the issue with the current state of this PR is that it completely removes the unnormalized accuracy metric, which is likely what most users expect by default. It'd be best to add this as a separate metric similar to how acc_norm is implemented, even though, as you've noted, we'd have to tag each task with this.
Note: The revamped eval harness https://github.com/EleutherAI/lm-eval2  will likely implement smoother metrics, such as mean logprobs of targets, to side-step this issue altogether.

Okay, Thx your responses. Good luck!

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Closing as we already support this feature.


[Tests-Only] Expected failures in apiTrashbin

Description
This PR adds expected failures for apiTrashbin tests.
Part of
https://github.com/owncloud/product/issues/139
Depends on
https://github.com/owncloud/core/pull/37831

@HariBhandari07 I merged core PR https://github.com/owncloud/core/pull/37831
Please update the core commit id here in .drone.star and this PR should pass.


Generating proof fails if SSH directory contains some non-key files, like .DS_Store

dev-rewards script will crash if target directory contains some non-key files, like .DS_Store
My ~/.ssh/ directory contained .DS_Store file, generated by macOS.
Script crashed after entering username for checking for availability with an error:
docker run -it -v ~/.ssh:/root/.ssh dev-reward-script

.....  step2:

Ethereum wallet address is necessary to generate a proof that you will send through our web page.
Important notice: you need to make a claim transaction from the entered address!

Enter the ethereum address to which you plan to receive the airdrop:
0x.......[REDACTED]

Traceback (most recent call last):
  File "/claim/python/proof.py", line 157, in <module>
    main()
  File "/claim/python/proof.py", line 141, in main
    sshPubKey, sshKeyPath = choose_ssh_key()
  File "/claim/python/proof.py", line 61, in choose_ssh_key
    if not is_ssh_key(path):
  File "/claim/python/proof.py", line 96, in is_ssh_key
    key = file.read()
  File "/usr/local/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 560: invalid start byte

Removing .DS_Store file fixes error.

def choose_ssh_key():
files = []
try:
files = os.listdir(SSH_KEYS_DIR)
except FileNotFoundError:
pass
sshKeys = []
for f in files:
    if f == '.DS_Store':
        continue
    path = os.path.join(SSH_KEYS_DIR, f)
    if not is_ssh_key(path):
        continue
    sshKeys.append(path)

Fixed here: https://github.com/fluencelabs/dev-rewards/pull/3


vscode-server Unable to establish SSL connection.

wget https://update.code.visualstudio.com/commit:a21a160d630530476218b85db95b0fd2a8cd1230/server-linux-x64/stable
https://update.code.visualstudio.com/commit:a21a160d630530476218b85db95b0fd2a8cd1230/server-linux-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... <IP_ADDRESS>, 2620:1ec:bdf::73
Connecting to update.code.visualstudio.com (update.code.visualstudio.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://az764295.vo.msecnd.net/stable/a21a160d630530476218b85db95b0fd2a8cd1230/vscode-server-linux-x64.tar.gz [following]
https://az764295.vo.msecnd.net/stable/a21a160d630530476218b85db95b0fd2a8cd1230/vscode-server-linux-x64.tar.gz
Resolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)... <IP_ADDRESS>
Connecting to az764295.vo.msecnd.net (az764295.vo.msecnd.net)|<IP_ADDRESS>|:443... connected.
Unable to establish SSL connection.

Do you have a proxy or corporate firewall in between you and the internet?
If you could provide more context that would be great. Are you using a remote extension? This specific URL 404s for me, what if you try something like:
wget -v https://update.code.visualstudio.com/commit:fabdb6a30b49f79a7aba0f2ad9df9b399473380f/server-linux-x64/stable

Thank you for your reply! I tried to connect to a remote server through remote ssh using different versions of VSCode, but found that I couldn't connect. Therefore, I deleted the vscode server file that was automatically installed on the remote server, and when I tried to install vscode server again, the above problem occurred. I thought the server-linux-x64 file for this VSCode version had been deleted. I tried again many times before succeeding, but the download speed was much slower than before.

I'm very sorry for bringing you extra work. Wishing you a happy life!


add transparency to context menus

before:

after:

also fix color of the icon and text as you can see


Text style (tab/space, trailing spaces)

I noticed some files use the tab character, whereas most use spaces.
Also I've seen lines with trailing spaces, which I normally let my editor truncate.
I try to follow the style surrounding the location where I want to make a change, however because of the above, that's made more involved than necessary.
Therefore it maybe helpful to choose whichever one of tab and space and truncate trailing spaces.
my 0.02€

Files with tab characters:

include/internal/catch_approx.hpp
include/internal/catch_common.h
include/internal/catch_debugger.hpp
include/internal/catch_expression.hpp
include/internal/catch_generators.hpp
include/internal/catch_stream.hpp
projects/SelfTest/ConditionTests.cpp
projects/SelfTest/MiscTests.cpp
projects/VS2008/TestCatch/TestCatch/TestCatch.cpp
projects/VS2010/TestCatch/TestCatch/TestCatch.cpp
projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h

These things never end, I just found trailing whitespace in 8 files and tabs instead of spaces in 7. 😄


the ability to update the tags of aks cluster

Is your feature request related to a problem? Please describe.
Seems that there's no way to update the tags of an aks cluster.
Describe the solution you'd like
Azure CLI should provide a command to update the tags of an aks cluster.

Related to #1149.

Closing this cli ticket in favor of the feature request on AKS.
https://github.com/Azure/AKS/issues/1344

Misread the issue, re-opening so we can backlog the related ticket of #1149


Could there be somewhat reversely that convert json to xml/yaml?

I found this plugin in vscode store, but I need something to convert json to yaml, will this feature be supported in the future? It should be possible to make... AFAIS

@NKUCodingCat it's possible to add the things you need, but I guess we have some extensions to convert JSON to YAML in the marketplace already.
Can you share more details in your cases?

@buianhthang  I cannot found any extension to convert from JSON to YAML... maybe I miss something...?
What I need is just a simple json2yaml extension , nothing special, just makes me more easily to read json output

Well.... I do try to search in marketplace website for json2yaml ...but no, I cant find anything about json to yaml. I do know how to write such code in python (just import, lol) but vsc accepts TS only...
Maybe I can fork and done by myself....

@NKUCodingCat I found this (https://marketplace.visualstudio.com/items?itemName=tuxtina.json2yaml). Can you try? If it's not working correctly, I can write sth for you

Aha it seems good enough to me, THANK YOU!
(I do miss a lot of things in marketplaces....)


Cool app. Isn't there a list of keyboard shortcuts and flags and such?

Hi,
I'm BM, a very nice and polite guy.
Cool app. Isn't there a list of keyboard shortcuts and flags and such?
I can't even switch website as I cannot find the shortcut and pressing return after inserting a url in the address bar doesn't do anything.

Similar situation here. What works for me:

arrow keys for page scrolling
ctrl-r + ctrl-e for vertical scrolling
ctrl-c - exit
in url or text input fields: alphanumeric keys + arrows + backspace

The only way to open a web page is by passing it as an argument to carbonyl. Tried multiple TERM values such as xterm, xterm-256color or vt100. Arch Linux x86_64.

Will be great if we can add native vim keybindings here or add #128 to be able to use https://github.com/philc/vimium on the browser directly! cc: @fathyb

vim keybindings would be awesome


getting 'wrong'  notes when using 'mutate' with Midi Interface

Whenever I send a 'mutate' control change message to the Magenta Midi Interface magenta_midi
the sequence played starts with a bunch of 'wrong' notes. That results in an annyoing  very loud chord played at the beginning. The generated sequence seems ok since when I run it in loop mode during the looped section those notes are not played again. I only get those strange notes when a sequence is newly generated right after sending the 'mutate' control message. Any idea?

Thanks for filing this issue. I have noticed this as well but I haven't had time to look into it. Hopefully I will be able to look into it soon unless someone else wants to figure it out first :)

I made some changes to the code handling the mutate.
It seems to solve the issue but it was done just by some trial and error.
Looks like there are some unwanted side effects as well.
When running loop mode after a mutate, there is an additional delay
in the sequence for some unknown reason.
I hope someone with a better understanding of the code can improve that.
`        if self._mutate.is_set():
# new_start_time = response_start_time + response_duration
new_start_time = tick_time
new_end_time = new_start_time + response_duration
response_sequence = self._generate(
response_sequence,
response_start_time,
new_start_time,
new_end_time)
      # If it took too long to generate, push response to next tick.
      if (time.time() - tick_time) >= tick_duration / 4:
        push_ticks = (
            (time.time() - tick_time) // tick_duration + 1)
        push_ticks = push_ticks
        # new_start_time += push_ticks * tick_duration
        response_sequence = adjust_sequence_times(
            response_sequence, push_ticks * tick_duration)
        tf.logging.warn(
            'Response too late. Pushing back %d ticks.', push_ticks)
      response_start_time = new_start_time
      self._mutate.clear()`


Spotify Listens

Till when Can I get this Enachned Discord Plugin Implemented into NitroPerks?
The Plugin Enables Listen Along feature to your discord even if you don't have nitro

make a pr request i am procrastinating

make a pr request i am procrastinating

sir please do it I want to give the plugin to my homie on his birthday


[Feature Request] Add 'route' property to el-tab-pane and push route on tab activation

Existing Component
Yes
Component Name
el-tab-pane
Description
It would be great if el-tab-pane has some property for route name and on tab click those route would be pushed to router-view

We have no plan to support this. You can do it in the tab-click event.


Doesn't build on windows.

Hello lzma native it's not building on windows 64 unsing nodejs V.5.4.1.
Here is the debugging log:
5806 silly install<EMAIL_ADDRESS>C:\Users\luckcolors\Desktop\gamejolt\node_modules\.staging\lzma-native-3e2fea73d4586393475ade292442de78
5807 info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>5808 verbose lifecycle<EMAIL_ADDRESS>unsafe-perm in lifecycle true
5809 verbose lifecycle<EMAIL_ADDRESS>PATH: D:\DevTools\nvm\v5.4.1\node_modules\npm\bin\node-gyp-bin;C:\Users\luckcolors\Desktop\gamejolt\node_modules\lzma-native\node_modules\.bin;C:\Users\luckcolors\Desktop\gamejolt\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone\;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;D:\DevTools\Git\cmd;D:\DevTools\nvm;D:\DevTools\nodejs;C:\Users\luckcolors\AppData\Roaming\npm;D:\DevTools\nvm;D:\DevTools\nodejs;D:\DevTools\wget;D:\DevTools\Git\cmd;D:\DevTools\youtube-dl;D:\DevTools\ffmpeg\bin;D:\DevTools\Sloppy;D:\DevTools\wpull
5810 verbose lifecycle<EMAIL_ADDRESS>CWD: C:\Users\luckcolors\Desktop\gamejolt\node_modules\lzma-native
5811 silly lifecycle<EMAIL_ADDRESS>Args: [ '/d /s /c', 'node-gyp rebuild' ]
5812 silly lifecycle<EMAIL_ADDRESS>Returned: code: 1  signal: null
5813 info lifecycle<EMAIL_ADDRESS>Failed to exec install script
5814 verbose unlock done using C:\Users\luckcolors\AppData\Roaming\npm-cache\_locks\staging-0ee51277284de0f6.lock for C:\Users\luckcolors\Desktop\gamejolt\node_modules\.staging
5815 silly rollbackFailedOptional Starting
5816 silly rollbackFailedOptional Finishing
5817 silly runTopLevelLifecycles Starting
5818 silly runTopLevelLifecycles Finishing
5819 silly install printInstalled
5820 warn EPACKAGEJSON<EMAIL_ADDRESS>No repository field.
5821 warn EPACKAGEJSON<EMAIL_ADDRESS>No license field.
5822 verbose stack Error<EMAIL_ADDRESS>install: `node-gyp rebuild`
5822 verbose stack Exit status 1
5822 verbose stack     at EventEmitter.<anonymous> (D:\DevTools\nvm\v5.4.1\node_modules\npm\lib\utils\lifecycle.js:232:16)
5822 verbose stack     at emitTwo (events.js:87:13)
5822 verbose stack     at EventEmitter.emit (events.js:172:7)
5822 verbose stack     at ChildProcess.<anonymous> (D:\DevTools\nvm\v5.4.1\node_modules\npm\lib\utils\spawn.js:24:14)
5822 verbose stack     at emitTwo (events.js:87:13)
5822 verbose stack     at ChildProcess.emit (events.js:172:7)
5822 verbose stack     at maybeClose (internal/child_process.js:821:16)
5822 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
5823 verbose pkgid<EMAIL_ADDRESS>5824 verbose cwd C:\Users\luckcolors\Desktop\gamejolt
5825 error Windows_NT 10.0.10240
5826 error argv "D:\\DevTools\\nodejs\\node.exe" "D:\\DevTools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
5827 error node v5.4.1
5828 error npm  v3.3.12
5829 error code ELIFECYCLE
5830 error<EMAIL_ADDRESS>install: `node-gyp rebuild`
5830 error Exit status 1
5831 error Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
5831 error Make sure you have the latest version of node.js and npm installed.
5831 error If you do, this is most likely a problem with the lzma-native package,
5831 error not with npm itself.
5831 error Tell the author that this fails on your system:
5831 error     node-gyp rebuild
5831 error You can get their info via:
5831 error     npm owner ls lzma-native
5831 error There is likely additional logging output above.
5832 verbose exit [ 1, true ]

Thanks for the report! Two things: Firstly, could you try and update your version of lzma-native to 1.x.x? The API is almost unchanged, but not the build system; And secondly, would you mind uploading your npm-debug.log somewhere? It should contain the relevant information for debugging this.

(If you don’t feel comfortable uploading the log, that’s perfectly fine, but I feel like there’s not much to debug with in your excerpt)

Oh No it's totally fine  :).
it's just i didn't upload it at first becuase i'm building the https://github.com/gamejolt/gamejolt
frontend so the log was very long.
I re runned npm install.
Here's the log:
npm-debug.zip.

Ok, yeah, the log does not say a lot more (except that everything before node-gyp rebuild works fine). What you can do is:

Update lzma-native in your package.json to 1.0.3 (or, better, ^1.0.3). Since v1.0.0, the project uses node-pre-gyp to provide precompiled binaries for many systems and node versions (including yours), effectively removing the need to compile the library from scratch in many cases (and speeding up the installation a lot).
Make sure that node-gyp is in your %PATH%, esp. maybe look in D:\DevTools\nvm\v5.4.1\node_modules\npm\bin\node-gyp-bin… there should be some kind of executable with that name in there, I guess?
Verify that you can execute node-gyp on the command line. It should come with every Node.js installation, so if that fails, chances are the problem is outside the scope of this module.

There’s also the infamous nodejs/node-gyp#629 thread, but it does not seem to be the relevant issue for this particular thing, since there’s no debug output from node-gyp included here, implying that it might not have gotten that far.

And btw, I’ll try this out on Windows anytime soon, but unfortunately I don’t have regular access to Windows machines and I’m more or less relying on AppVeyor to check the Windows builds so far…

Ok i didn't had node-gyp and node-pre-gyp install so i installed them
Building lzma-native alone works so there must be some dependency wchich requires the old one.
Thanks for your help :).

Okay, I’ll close this here and add some info at the issue you just opened :)


stuck at respond/create

I already installed it locally and have a virtual host www/repond/app/public
I am stuck at creating a site, it always goes to error - js prompt of error logo.
Need some assistance on this. Thanks in advance

I don't understand what you mean by "it always goes to error - js prompt of error logo."  Can you post a screenshot or something?  If you press Ctrl-Shift-J to open the browser console, what error messages are listed there?

I ran into this same problem a few weeks ago, but I can't remember what I did to fix it.  I think maybe I was missing a necessary PHP module, and once installed that it started working?
Anyway, I think the next things to check here are the error logs on the server.  Look in storage/logs/lumen.log (within your webroot) and also in the Apache error_log for that site.  Let me know what errors you see there?

The 401 is thrown if the passcode is invalid.  Perhaps, you did not create the .env file.  I am going to close this.  I don't think this is a bug.


memory T cells from a tuberculosis

Nathan, A., Beynor, J.I., Baglaenko, Y. et al. Multimodally profiling memory T cells from a tuberculosis cohort identifies cell state associations with demographics, environment and disease. Nat Immunol 22, 781–793 (2021). https://doi.org/10.1038/s41590-021-00933-1
Data: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE158769

Being addressed.


Dev backend feature/wallet

Including key-pair generation for solana wallet
@cb7chaitanya wallet init

Seems totally fine @axatbhardwaj


Display GAS price

This is a breaking change, as I've renamed the getMarketPriceUSD method and changing the type of value it returns.
I've introduced the currency parameter so in the future, we could display the neo/gas value in different currencies!

Hi @hbibkrim please have a look at this PR: https://github.com/CityOfZion/neon-js/pull/7
I made a similar change as you did, but in my opinion the formatting of the currency should be separated of the fetching of the price. Your implementation does not consider locale specify formats, like the decimal symbol, the thousands separator and the placement of the currency symbol.
In Germany, a valid currency string would look like this 1.234,56 € whilst in the US $1,234.56.

@dop89 That is a good point. Yours is the better solution. Can you include an assetCode parameter as well so it'd be easier to iterate to retrieving the gas value? I probably shouldn't have removed the existing getMarketPriceUSD function either and deprecated it instead like you did.

Ok, I'll do this. And I also copy your getMarketPrices function.

@dop89 Can you handle the formatting of the prices depending on the currencyCode and return the formatted price inside neon-js as well instead of neon-wallet?

What do you think? @canesin @Ejhfast

@hbibkrim I updated my PR: https://github.com/CityOfZion/neon-js/pull/7

Closing PR as API used to get price has been reverted to bittrex from coinmarketcap as coinmarketcap was unreliable


Remove composer.lock file from ignored list

Remove composer.lock file from ignored list
More info
https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file

Commit your application's composer.lock (along with composer.json) into version control.
This is important because the install command checks if a lock file is present, and if it is, it downloads the versions specified there (regardless of what composer.json says).

https://blog.engineyard.com/2014/composer-its-all-about-the-lock-file

Thanks @vaidas-lungis


Error starting in development mode

Hello, I am getting the following error with ArangoDB 2.4.3
2015-02-22T20:19:01Z [1212] INFO ArangoDB 2.4.3 64bit -- ICU 52.1, V8 3.29.59, OpenSSL 1.0.1g 7 Apr 2014
2015-02-22T20:19:01Z [1212] INFO using default language 'en'
2015-02-22T20:19:01Z [1212] INFO loaded database '_system' from 'e:\arango\databases\databases\database-80906'
2015-02-22T20:19:01Z [1212] INFO running WAL recovery (1 logfiles)
2015-02-22T20:19:01Z [1212] INFO replaying WAL logfile 'e:\arango\databases\journals\logfile-277514.db' (1 of 1)
2015-02-22T20:19:01Z [1212] INFO WAL recovery finished successfully
2015-02-22T20:19:01Z [1212] INFO using endpoint 'tcp://<IP_ADDRESS>:8529' for non-encrypted requests
2015-02-22T20:19:01Z [1212] INFO using default API compatibility: 20400
2015-02-22T20:19:01Z [1212] INFO JavaScript using startup 'C:\Program Files\ArangoDB 2.4.3/share/arangodb/js', application 'e:\arango\apps'
2015-02-22T20:19:01Z [1212] WARNING ################################################################################
2015-02-22T20:19:01Z [1212] WARNING development mode is active, never use this in production
2015-02-22T20:19:01Z [1212] WARNING ################################################################################
2015-02-22T20:19:03Z [1212] INFO In database '_system': Found 24 defined task(s), 1 task(s) to run
2015-02-22T20:19:03Z [1212] INFO In database '_system': state dev/standalone/existing, tasks moveDevApps
2015-02-22T20:19:03Z [1212] ERROR In database '_system': dev apps directory 'databases\_system' does not exist.
2015-02-22T20:19:03Z [1212] ERROR In database '_system': Executing task #1 (moveDevApps: move Foxx development apps into per-database directory) failed. Aborting existing cleanup procedure.
2015-02-22T20:19:03Z [1212] ERROR In database '_system': Please fix the problem and try starting the server again.
2015-02-22T20:19:03Z [1212] FATAL Database '_system' needs upgrade. Please start the server with the --upgrade option

With the --upgrade flag I get the following additional logging:
2015-02-22T20:24:45Z [4228] ERROR In database '_system': dev apps directory 'databases\_system' does not exist.
2015-02-22T20:24:45Z [4228] ERROR In database '_system': Executing task #1 (moveDevApps: move Foxx development apps into per-database directory) failed. Aborting existing cleanup procedure.
2015-02-22T20:24:45Z [4228] ERROR In database '_system': Please fix the problem and try starting the server again.
2015-02-22T20:24:45Z [4228] FATAL Database '_system' upgrade failed. Please inspect the logs from the upgrade procedure

The directory E:\Arango\apps\databases\_system exists but it appears Arango is thinking that it does not. I don't see any other logs in the ArangoDB folder.
Thank you; any help is appreciated.

Hello, just to follow up. I downgraded to Arango 2.4.2 and I am getting the same error. I performed a system format prior to upgrading to 2.4.3, however, before the format I was not getting this error in 2.4.2, which makes me think this is being caused by me not triggering the initiation properly.
I am using the following command (under Windows on an admin level command prompt)
arangod "e:\arango\databases" --development-mode --javascript.app-path "e:\arango\apps"

Is this still an issue with ArangoDB 2.5.0 or ArangoDB 2.4.5?

Hi, I am unable to test at the moment as I am not using arangodb as primary for my application anymore. I plan on adding arangodb as a secondary db for graph work. I will retest once I get to that point and re-open the issue if I encounter the error again.
Thanks for looking into the issue.


mark exhibitions as to whether they are permanent or current

We now flag if an exhibition is permanent or current (temporary).
The times we surface are:

Coming soon
Past
Last week
Now on

I wonder if the "Last week" should be "Ending soon" or "Final week" as last week, in my head means, well... last week.
Do we also want to flag perm / current on the exhibitions pages?

Isn't something being both past and current a bit odd?

@gestchild I didn't realise, but from what I understood from @jennpb and @Heesoomoon that's the language we use for temporary exhibitions?

Thinking about it, I have a funny feeling I might have misunderstood that.

@gestchild is right, it is weird to be type {Current} and status {Past}
the type is Temporary really, but it's a rubbish label to expose to users

It's an interesting thought that permanent ones are galleries.
What about "short-term" or "curated" :trollface:?
Or maybe we only flag up permanent exhibitions?
As it gives the indication that it's always there, and others are just exhibitions?

Or in the "exhibition" flag, we have "Permanent exhibition" and "exhibition":

I'm happy with that approach @jamesgorrie


update documentation around server errors

Codecov Report

Merging #107 (e85692c) into main (2d7e5d9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #107   +/-   ##
=======================================
  Coverage   82.80%   82.80%
=======================================
  Files          12       12
  Lines         942      942
  Branches      268      268
=======================================
  Hits          780      780
  Misses        162      162

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 2d7e5d9...e85692c. Read the comment docs.


Performance: Reduce memory allocation in CssBuilder and StyleBuilder by using StringBuilderCache

Description
As memory allocation by building strings without a StringBuilder and the CssBuilder and StyleBuilder is heavy used, using a StringBuilder in those classes seems to be good for the performance. And to even improve the performance, the StringBuilderCache as also used by Microsoft (https://github.com/microsoft/referencesource/blob/master/mscorlib/system/text/stringbuildercache.cs) adds even more performance as the StringBuilder is reused if the capacity does not increase above the default capacity.
How Has This Been Tested?
There are already CssBuilderTests which cover the StyleBuilder and CssBuilder.
Type of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Checklist

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

Hi.
Please, provide benchmarks.

Here, the Benachmark for CSS class building of MudAvatar an example:

Nice work. I was also thinking about how to improve the performance here. I wondered if this approach is always more performant. E.g, how do it perform with only two AddClass() calls.

Nice work. I was also thinking about how to improve the performance here. I wondered if this approach is always more performant. E.g, how do it perform with only two AddClass() calls.

Thanks. I did an additional test giving the class in the constructor and "NumberOfAddClass" times .AddClass(). The result looks like that:

The improvement increases almost linear to the number of using .AddClass(), which I also expected. But still... there is already an improvement just calling it one time.
Having no .AddClass could probably be a little overhead which could be handled by checking if something has been added after the constructor and also having a reference to the string from the constructor and holding the reference in the CssBuilder. But if I never call .AddClass, I would probably also not use a CssBuilder and pass the string directly. So for this edge case, I would not recommend to increase the complexity in the code.

Thanks. Looks great! 👍

Do I understand correctly that this would cause unexpected results if the CssBuilder and Stylebuilder were to be used like this:
var css = new CssBuilder();
var style = new StyleBuilder();
css.Add(...);
style.Add(...);
Class=css.Build();
Style=style.Build();

I just want to be sure I understand the change and the ramifications entirely.

var css = new CssBuilder();
var style = new StyleBuilder();

No, they should not interfere as the cached instance is set to null if you call StringBuilderCache.Acquire() and sets it after calling StringBuilderCache.GetStringAndRelease() or StringBuilderCache.Release(). In this case, that means that the CssBuilder gets the cached instance of the StringBuilderCache and the StyleBuilder just gets a new StringBuilder. When css.Build() is called, the StringBuilder instance of the CssBuilder is returned to the StringBuilderCache and when style.Build() is called, the StringBuilder of the StyleBuilder just overrides the cached Instance.
But I added a Test for that that it cannot break when somehow manipulating the StringBuilderCache class: https://github.com/MudBlazor/MudBlazor/pull/9635/commits/d3061b55aaef8a11d37eacf8de6ff3d921ec4c7b

Thanks for clarifying that and for the extra test case.

@renaudrenaud85 Hey, I am just curious. Was it optimization just to optimize something or there was a real issue?

@ScarletKuro Gotcha, thanks for sharing!
P.S. I've seen #9324 before and really liked it; it showcased a nice language feature!

@renaudrenaud85 Hey, I am just curious. Was the optimization just to optimize something, or was there a real issue?

Good question :) Actually there was no real issue to be honest. But I work in a company building our own Online-Shop having thousands of concurrent users. We do not use MudBlazor there but I see what happens if you don't invest in the performance of your code. Having performant code server-side means you can save hardware resources. And often it's just a tradeoff between readability and performance of your code. But the deeper you are in the framework and the more often a class / method is used on the hot path, the more it makes sense to shift the tradeoff slightly in the direction of performance. But in the end... it depends on the project etc. But as a framework like MudBlazor, it's hard to tell how it is used.
In the end, the resources you use is not just about one single method, class or framework. But if you sum up all overhead, it can be a pain in heavily used systems and therefore, low-hanging fruits are welcome to improve. But where the tradeoff should be can be an endless discussion which often is also just a feeling. What's too much front-up optimization and what makes sense... But it's hard to discuss it on a framework level because you don't know where the framework is used and therefore it's more about a discussion if you want to provide a framework that is efficient and can be used in high-load scenarios or not.
But this is also just my own perspective like almost everywhere when it comes down to architectural or implementation discussions :)

@renaudrenaud85 Hey, I am just curious. Was the optimization just to optimize something, or was there a real issue?

Good question :) Actually there was no real issue to be honest. But I work in a company building our own Online-Shop having thousands of concurrent users. We do not use MudBlazor there but I see what happens if you don't invest in the performance of your code. Having performant code server-side means you can save hardware resources. And often it's just a tradeoff between readability and performance of your code. But the deeper you are in the framework and the more often a class / method is used on the hot path, the more it makes sense to shift the tradeoff slightly in the direction of performance. But in the end... it depends on the project etc. But as a framework like MudBlazor, it's hard to tell how it is used.
In the end, the resources you use is not just about one single method, class or framework. But if you sum up all overhead, it can be a pain in heavily used systems and therefore, low-hanging fruits are welcome to improve. But where the tradeoff should be can be an endless discussion which often is also just a feeling. What's too much front-up optimization and what makes sense... But it's hard to discuss it on a framework level because you don't know where the framework is used and therefore it's more about a discussion if you want to provide a framework that is efficient and can be used in high-load scenarios or not.
But this is also just my own perspective like almost everywhere when it comes down to architectural or implementation discussions :)

I see. Thank you for the detailed explanation of your perspective! Since I am also using these utilities, I wanted to know if there is anything that noticeably degrade performance.

Another exception:
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: Object reference not set to an instance of an object.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at System.Text.StringBuilderCache.GetStringAndRelease(StringBuilder sb)
         at MudBlazor.Utilities.StyleBuilder.Build()
         at MudExtensions.MudTextM3.get_StyleString()
         at MudExtensions.MudTextM3.BuildRenderTree(RenderTreeBuilder __builder)
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit 'IUR1aZChmmjaQlOCFqqrnsZgmCMsbjFQmpavLtA9igg'.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at System.Text.StringBuilderCache.GetStringAndRelease(StringBuilder sb)
         at MudBlazor.Utilities.StyleBuilder.Build()
         at MudExtensions.MudTextM3.get_StyleString()
         at MudExtensions.MudTextM3.BuildRenderTree(RenderTreeBuilder __builder)
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

I was able to reproduce the issue:

Create a clean project.
Add MudBlazor version 7.7.0.
Add CodeBeam.MudBlazor.Extensions version 7.0.1.
Configure the project to use these libraries (CSS, JS, services).
Add MudTextM3 .
Run the project and open the page with MudTextM3.
Encounter the exception.

After debugging, I discovered the following:

The sb is null, despite checking for null twice. If I upgrade CodeBeam.MudBlazor.Extensions to use MudBlazor version 7.7.0 and recompile, the exception does not occur (!!!).
I do not have complete knowledge of the runtime, and I couldn't find any Microsoft documentation, but it seems that some optimizations are performed behind the scenes when ThreadStatic is used during compilation. I couldn't identify any differences when I looked at "show compiler-generated code", there may be an IL difference, but I honestly do not want to spend time on this.
This change is a breaking change, and while I believe it would be acceptable to implement this for V8, it currently represents a significant breaking change. I will leave it to @henon to decide how to proceed. Whether to revert the change or to keep with advising everyone to upgrade the dependencies.

Ah, I think I know the problem now. It's both a mix of the struct and the new added constructor:
https://github.com/MudBlazor/MudBlazor/blob/d3061b55aaef8a11d37eacf8de6ff3d921ec4c7b/src/MudBlazor/Utilities/CssBuilder.cs#L43-L46
because there wasn't any constructor this is the code it would generate for the struct:
protected string StyleString
{
	get
	{
		StyleBuilder styleBuilder = default(StyleBuilder);
		styleBuilder = styleBuilder.AddStyle("");
		return styleBuilder.Build();
	}
}

Notice the default(StyleBuilder), in this case the _stringBuilder won't be initialized!
https://github.com/MudBlazor/MudBlazor/blob/d3061b55aaef8a11d37eacf8de6ff3d921ec4c7b/src/MudBlazor/Utilities/CssBuilder.cs#L15
Now when there is a constructor, this is the code it generates on recompile:
protected string StyleString
{
	get
	{
		return new StyleBuilder().AddStyle("").Build();
	}
}

Now it's  new StyleBuilder()and the_stringBuilder` will be be initialized.
Unfortunately, removing the constructor and making it:
private readonly StringBuilder _stringBuilder = StringBuilderCache.Acquire();

will not fix it, because this is simply not how structs work.
So yeah, seems like we can only add this in v8.

I actually have ideas how to fix it without reverting it, and keep this, but the code will be "ugly".

Unfortunately, removing the constructor and making it:
private readonly StringBuilder _stringBuilder = StringBuilderCache.Acquire();

will not fix it, because this is simply not how structs work. Default structures are always pre-zeroed, and there is no guarantee the constructor is ever called.

Oh... shit, I didn't knew that anyone would use it as default(StyleBuilder) or default(CssBuilder) because it more works like a class which would be null as default rather than a struct which normally structs are used for. But it somehow makes sense here...
My suggestion would be to just check the sb everytime it is called like that:
_stringBuilder ??= StringBuilderCache.Acquire(); _stringBuilder.Add("xyz");
I can also add a test for that.

Oh... shit, I didn't knew that anyone would use it as default(StyleBuilder)

It's not like anyone is using that, it's what the compiler generates when you don't have a constructor in the struct which was the case before, meaning all the code that was pre 7.6.0 was transforming  new StyleBuilder() to default(StyleBuilder).

This problem affects our AI Studio: We use MudBlazor.Markdown for the Markdown rendering. This leads to the error described above.

I pushed v7.8.0. Let me know if it fixes the problem for you.

Yes @ScarletKuro, with the v7.8.0 everything works now. Thanks a lot for the quick fix 👍 .


How to add new users via LDAP?

I have see the LDAP interface UserManager,but I can't see the function to add new user.
public interface **UserManager** {
	public User getUser(String username, String password) throws UserManagerException;
	public boolean validateUser(String username);
	public boolean validateGroup(String group);
	public Role getRole(String roleName);
	public boolean validateProxyUser(String proxyUser, User realUser);
}

how can i add new users via LDAP?

I understand this interface is just an LDAP authentication client. You can not add LDAP user through Azkaban.


How to write tests for customers with IClient

Hello,
another thing I found was that there is no way to create a Customer by myself. I'd have to fill the constructor with a fake dynamic object since all the properties are locked via private set.
While I see that the Customer is usually never created via code side, rather created via CustomerDraft and a quick CreateCustomerAsync which takes the CustomerDraft, I can not use it in my tests.
This is the code I want to test without using a real CT Client:
Response<Customer> customer =
    await _client.Customers().GetCustomerByIdAsync(userId);

Thanks in advance

You can use libraries like Moq to mock any of the commercetools SDK methods. This way you can just mock the response and test your code accordingly without calling the commercetools platform.