text:
Washingmashine - 3 Sensors unknown status

Hello,
thanks for awesome work! i was able to integrade my washingmashine Haier HW90_B14959U1 (_DE)
3 sensors don't update properly, any suggestions?
Speed, Temperature and Time Remaining
(ignore last one "washing cycles")

LOG:

Logger: homeassistant
Source: custom_components/hon/sensor.py:547
Integration: hOn
First occurred: 17:00:41 (60 occurrences)
Last logged: 17:30:11

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
update_callback()
File "/config/custom_components/hon/sensor.py", line 547, in _handle_coordinator_update
self._attr_native_value = int(json["spinSpeed"]["parNewVal"])
TypeError: string indices must be integers

@lovicub what did you do to get all that data?! I have the same washing machine model and only see "Machine Mode" and "Time Remaining".
Also regarding your error, it looks like its a variable typing issue. I'm assuming it didn't have a spinSpeed.parNewVal in the response JSON and couldn't cast it into an int, maybe because there currently wasn't a load running?
I'm not very familiar with python, but theres got to be some sort of fallback value syntax like in JS, where we should fallback to 0 when no spinSpeed.parNewVal is sent along.

Hey @ndom91 i've just looked at pull requests and added some changes to sensors.py and washingmashine.py
Jst look at washing machine addition #13  -> Added new washing machine sensors
                HonWashingMachineCurrentElectricityUsed(hass, coordinator, entry, appliance),
                HonWashingMachineCurrentWaterUsed(hass, coordinator, entry, appliance),
                HonWashingMachineLastStatus(hass, coordinator, entry, appliance),
                HonWashingMachineMode(hass, coordinator, entry, appliance),
                HonWashingMachineSpinSpeed(hass, coordinator, entry, appliance),
                HonWashingMachineTimeRemaining(hass, coordinator, entry, appliance),
                HonWashingMachineTemp(hass, coordinator, entry, appliance),
                HonWashingMachineTotalWashCycle(hass, coordinator, entry, appliance)

you must implement those changes to the py files (don't forget to backup the files)
about our problem with spin & time remaining  - i dont know how to analyse that problem. I did recive data from this var one time - strange!
HonWashingMachineTimeRemaining:

HonWashingMachineSpinSpeed:

i didin't change anything at all. I've looked at the APP and realized that could be a special washing-program that strangely recieve the data -  maybe it was "Denim - Jeans"

repo: gvigroux/hon


text:
Per-user combat mode does not persist after death

The ocm toggle are disabled after death :/

You mean the effect of /ocm toggle does not apply when the player respawns?

yes ^^

Just wondering, on your server does the player respawn in a different world from the one they died in?

yes

The inherit issue with /ocm toggle is that it does not have any way to keep track of which users have their combat mode toggled, which means the only way to solve this and properly implement #179 is to have some sort of data system which persistently keeps track of the combat mode of each user. I'll have to talk this over with @gvlfm78.

@Rayzr522 Then the plugin would have to check if the player attacking an entity is on 1.8 or 1.9 mode and don't change the damage if on 1.8 mode. This could now be possible since I recently unified the damage listeners into a custom event, however there would still be many modules that would have to support this.

@gvlfm78 so currently /ocm toggle only toggles the attack speed?

Yes, as whoever initially requested the feature only meant it to toggle the attack speed.

Merged into #179

source: gharchive/issue

license: unlicense

license_type: permissive

license_source: bigquery


text:
🛑 Undertale社区维基 - UTCWIKI is down

In 778934a, Undertale社区维基 - UTCWIKI (https://utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区维基 - UTCWIKI is back up in 94f7448 after 10 minutes.

repo: gzombiejun/upptime

license: MIT

license_source: github-api


text:
🛑 Undertale社区档案馆 - UTCARC is down

In fd9c82e, Undertale社区档案馆 - UTCARC (https://arc.utcwiki.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Undertale社区档案馆 - UTCARC is back up in ecc167a after 27 minutes.


text:
netlify command issue with URLs

The order of these commands is giving me trouble when using netlify-cli
Changing to this resolved the issue:
[context.production]
  command = "hugo --gc --minify -b $URL && npm run build:functions"

[context.deploy-preview]
  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy]
  command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"

Netlify was printing out --gc as part of the URL path if the URL wasn't specified last.

Fixed with 20bac2a25bcdb3156120afd0d1b6543c0235f3c7 + 9581fc4c44d2fdfe6b6093365fdbf5dcd2b869a2

authors: h-enk teamcrisis

repo: h-enk/doks


text:
isolate openblas/GPU things if only doing CPU scoring.

We are evaluating DAI and I am having issues getting the scoring pipeline to run on a machine.

Using the instructions at http://docs.h2o.ai/driverless-ai/latest-stable/docs/userguide/scoring-package.html I spun up a AWS ec2 server with Ubuntu 16.04 x64 I attempted to follow the instructions to get the HTTP scoring service up and going but am having an issue, below is the stack trace on the error.

Traceback (most recent call last):
 File "http_server.py", line 12, in <module>
   from scoring_h2oai_experiment_ac97cf import Scorer
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/scoring_h2oai_experiment_ac97cf/__init__.py", line 1, in <module>
   from .scorer import Scorer
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/scoring_h2oai_experiment_ac97cf/scorer.py", line 6, in <module>
   from h2oaicore.transformer_utils import fit_transform_batch
 File "h2oaicore/__init__.py", line 5, in init h2oaicore.__init__
 File "h2oaicore/ga_misc.py", line 38, in init h2oaicore.ga_misc
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/h2o4gpu/__init__.py", line 11, in <module>
   from .solvers.pogs import Pogs
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/h2o4gpu/solvers/__init__.py", line 8, in <module>
   from ..solvers.elastic_net import ElasticNetH2O
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/h2o4gpu/solvers/elastic_net.py", line 15, in <module>
   from h2o4gpu.linear_model import coordinate_descent as sk
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/h2o4gpu/linear_model/__init__.py", line 15, in <module>
   from .least_angle import (Lars, LassoSklearnLars, lars_path, LarsCV, LassoSklearnLarsCV,
 File "/home/ubuntu/emm-pipe/http_server_env/lib/python3.6/site-packages/h2o4gpu/linear_model/least_angle.py", line 23, in <module>
   from ..utils import arrayfuncs, as_float_array, check_X_y, deprecated
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

I have attached to this email the entire console session when following the instructions from the documentation. If it is helpful I can also get a s3 link for the scoring pipeline package (~2GB) and the logs from the DAI run that built the scoring pipeline package (~803MB).

￼￼￼￼
[1:50] ￼
Any idea why this is happening with the scoring package ?

Any luck on this??? I'm having the same problem when trying to run import h2o4gpu in a python shell on a remote server. The server has user instances for GPU. You can load the CUDA and CUDNN of your choice on your bash instance before running it.
I'm getting the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/aditya/numerai/h20_env3/lib/python3.6/site-packages/h2o4gpu/__init__.py", line 113, in <module>
    from .solvers.truncated_svd import TruncatedSVDH2O
  File "/home/aditya/numerai/h20_env3/lib/python3.6/site-packages/h2o4gpu/solvers/__init__.py", line 8, in <module>
    from ..solvers.elastic_net import ElasticNetH2O
  File "/home/aditya/numerai/h20_env3/lib/python3.6/site-packages/h2o4gpu/solvers/elastic_net.py", line 15, in <module>
    from h2o4gpu.linear_model import coordinate_descent as sk
  File "/home/aditya/numerai/h20_env3/lib/python3.6/site-packages/h2o4gpu/linear_model/__init__.py", line 15, in <module>
    from .least_angle import (Lars, LassoSklearnLars, lars_path, LarsCV, LassoSklearnLarsCV,
  File "/home/aditya/numerai/h20_env3/lib/python3.6/site-packages/h2o4gpu/linear_model/least_angle.py", line 23, in <module>
    from ..utils import arrayfuncs, as_float_array, check_X_y, deprecated
ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

I have the same problem here, any solutions, 7 months later, no one solve it?

authors: Kzernobog TraderJair pseudotensor


text:
URLS updated

Many URLS updated to HTTPS
Many URLs updated to reflect new URL (after redirects)
Favicon losslessly optimised with https://imgbot.net

Sorry, slept on this.

hey @mischah - just wondering... is the site served from the gh-pages branch? I see the updated index.html there with the link updates from this PR merged there. All good...
But the changes aren't there on https://html5please.com/ yet... not sure what's up. e.g. on line 763 the link to caniuse.com should be HTTPS. Any ideas?

source: gharchive/pull-request

authors: coliff mischah


text:
Ignore buildah policy for non pipeline run att

The policy rule dockerfile_param_not_included is only meant to be executed when there's a pipeline run attestation.
Signed-off-by: Luiz Carvalho lucarval@redhat.com

I think it will work as expected, but for clarity of intent, I'm thinking maybe we could define another rule that fails if there is no buildah task found. That would also fai if there were no pipelinerun_attestations but the message would be more understandable.

buildah is not always the build task used, e.g. java, node. We have slsa_build_scripted_build to catch if a build task is not present. Is that sufficient?

authors: lcarva simonbaird

repo: hacbs-contract/ec-policies


text:
Doubt about how i can stop the script without lose the content

This is not an issue specifically, but a doubt. How i can stop the script after a time, without lose the content already scraped?
Again, thanks for all dedication writing this code!

If I'm understanding the question correctly,
You could save the output to a file with the-o parameter.

Cody, i wanna take a conversation better with you about twint, because i think comment here can be annoying. It's ok for you?  How we can do it?

@naocaio you can DM me on Twitter: @now or we can follow up via email: codyzacharias@pm.me

authors: haccer naocaio

repo: haccer/twint


text:
Add Leaps Operational Transform For Collaborative Editing

I'm implementing this by just having leaps edit the text files that are used by Hugo-Caddy to generate pages from...... but it could be even greater than that, ya know?
https://github.com/Jeffail/leaps

I see (more or less). But right now we can only support one user. How would this be useful?
P.S.: I don't know if you're using the version on this repository or the version that can be downloaded at caddyserver.com. I recommend you to build it from source to try out the new version which is very less buggy.

Sorry, why could it only support one user?

I'll leave this issue open because it can be something to try in the future. If you want to do so, go on and try. :+1:
Right now I think there is a new auth plugin for caddy in the kiln so I'll wait for that. But you can test it!

Do you mind letting me know how to try?  Sorry, I keep taking baby steps towards golang but am not quite there yet.  I learned today from someone else it is very easy to integrate golang applications, but..... knowledge peters out here

The problem is that I don't even know how to try it. I would have to investigate the code of Leaps and then see how could it be integrated with caddy-hugo. Anyway, I recommend you to read this article which may help you :D You'll get it!

It was a really great article, by the way-- thank you!

You're welcome!

Okay, so: leaps uses JavaScript text areas to serve collaborative editing sessions.  The code for making one is quite simple.  Can you point out where caddy-hugo has its text areas?
I will give this a shot myself now.  If it works,I will send a pr your way.

The main contente text areas are the ones with name="content" like here and here.
Just for reference, you've to know that those text areas are not visible, they're hidden. What is shown is the Ace Editor (see here).
Go on and try it! :D

I'm hitting some difficulty in what I think are the last steps.
root@fuzzbox:~/hugo-semantic-homepage-starter# caddydev --source /root/caddy-hugo hugo
Caddy source not found. Fetching... done.
process killed: go get took too long
---- COMMAND: go get -d caddyaddon
---- package github.com/hacdias/caddy-hugo/assets: no buildable Go source files in /tmp/caddydev744094139/src/github.com/hacdias/caddy-hugo/assets

Execute first cd /root/caddy-hugo & go generate.

I think I had, but let me try that.  I think I fillowed your directions for developers exactly.  But maybe I didn't ;).

@faddat I will close this issue for now because I think caddy-hugo doesn't need this heavy app right now. But I'll leave a reference to #39. Maybe in the future :)

authors: faddat hacdias

repo: hacdias/caddy-hugo


text:
🐛 fix hack.af link shortening

should fix link shortening by changing the regex. the existing regex didn't work when i tested it on a normal string, and the capitalization of the slack messages messed things up (note: i am unable to get a dev environment working, so this was only tested with slack messages pulled from the api and NOT from a bot).

@rishiosaur @cjdenio it's been a while, wanted to make sure you guys were notified of this

repo: hackclub/guardian


text:
Create LICENSE

BSD 3-Clause License
Copyright (c) 2018, Aniket Dinda
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

BSD 3-Clause License
Copyright (c) 2018, Aniket Dinda
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

repo: hackingvila/file-merchant


text:
Function request

please add “preview”
and like this：

@stonedreamforest
Thanks  for suggestion;) It requires significant refactoring for this support, which I don't expect to happen in the near future.
If you are looking for a good markdown editor, I would recommend Marxico.

Marxico looks good :+1:
i like Marxico ,but I prefer like Lepton. Looking forward to the next or next next release

authors: hackjutsu stonedreamforest

repo: hackjutsu/Lepton


text:
[Question] Is this lib complementary to Message Pipe?

If the project is using Message Pipe already, using Vital Router along side gains any advantage? Just wondering if they are great to be coexist or use one exclusively will be the best use case.

Would love to know too

Hello. Thanks for the question.
Firstly, if you are using MessagePipe, it is probably not worth adding VitalRouter, as MessagePipe is versatile and can handle a variety of in-memory pub/sub patterns. what you can do with VitalRouter, you can do with MessagePipe could be achieved with MessagePipe.
The significance of VitalRouter is twofold
VitalRouter is more opinioneted; MessagePipe can do everything, whereas VitalRouter is more of a feature drop.
I have seen how loosely coupled events have disrupted the control flow in game projects.
If pub/sub is to be introduced into game development, it would be better to have consistent rules.
VitalRouter is intended to lay down those rails.
VitalRouter uses SourceGenerator, and the API design shows the differences arising from that.
As far as my intended use is concerned, the same thing can be described in shorter code.
And SourceGenerator has also brought performance improvements, as Command dispatching is done by Generic Type Caching, which is faster here.

authors: Lowlet XRSpace-RayWang hadashiA

repo: hadashiA/VitalRouter


text:
change clustering parameters' names in haddock3 tutorials

if PR https://github.com/haddocking/haddock3/pull/769 gets merged, some parameters' names must be changed also in the haddock3 tutorials

The PR has been merged and the workflow in the tutorial now gives error that threshold  does not exist in clustfcc module when uploaded to https://i-vresse-workflow-builder.netlify.app/

Also the workflow uses expert expertise parameters which makes it harder to use in the haddock3-webapp as not everyone will have the expert or guru expertise level.

randremoval in rigidbody and flexref
tolerance in flexref

Then we should make a note that users need expert access to run this tutorial

The PR has been merged and the workflow in the tutorial now gives error that threshold does not exist in clustfcc module when uploaded to https://i-vresse-workflow-builder.netlify.app/

that's because the PR in this repo hasn't been merged

authors: amjjbonvin mgiulini sverhoeven

license: mit


text:
Update snakeyaml to 2.1

About this PR
📦 Updates org.yaml:snakeyaml from 2.0 to 2.1
📜 Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Release Notes - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog - Changelog
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

🔍 Files still referring to the old version number
The following files still refer to the old version number (2.0).
You might want to review and update them manually.
.github/workflows/ci.yml
LICENSE.txt
Quickstart.sc
build.sbt
client/src/main/scala/skuber/json/PlayJsonSupportForAkkaHttp.scala
client/src/test/resources/examplePodList.json
client/src/test/resources/examplePodWithNodeAffinity.json
client/src/test/scala/skuber/api/ListQueryParamSpec.scala
client/src/test/scala/skuber/json/PodFormatSpec.scala
docs/README.md
docs/index.html

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

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.yaml", artifactId = "snakeyaml" }
}]

labels: library-update, old-version-remains, commit-count:1

Superseded by #318.


text:
ebitenutil: add DrawCircle

We have DrawLine , we have DrawRect , but no DrawCirlcle. I think it would be really useful for quick prototyping (and general use).
Is there a specific reason why there isn't a DrawCircle?

DrawCircle(dst *ebiten.Image, cx, cy, r float64, clr color.Color)

would be what we want. This should be easily implemented with the vector package.

repo: hajimehoshi/ebiten


text:
Timeout after -O3

https://github.com/hajimehoshi/go2cpp/runs/1613196532?check_suite_focus=true

Reproduced on macOS:
$ ./test -test.v -test.short
=== RUN   TestCallers
    callers_test.go:47: functions seen: runtime_test.f2 runtime_test.f1 runtime_test.TestCallers testing.tRunner runtime.goexit runtime.Callers runtime_test.f3
--- PASS: TestCallers (0.00s)
=== RUN   TestCallersPanic
    callers_test.go:47: functions seen: runtime_test.TestCallersPanic runtime.gopanic runtime_test.TestCallersPanic.func1 runtime_test.f3 runtime_test.f2 runtime_test.f1 testing.tRunner runtime.goexit runtime.Callers
--- PASS: TestCallersPanic (0.00s)
=== RUN   TestCallersDoublePanic
--- PASS: TestCallersDoublePanic (0.00s)
=== RUN   TestCallersAfterRecovery
--- PASS: TestCallersAfterRecovery (0.00s)
=== RUN   TestCallersAbortedPanic
--- PASS: TestCallersAbortedPanic (0.00s)
=== RUN   TestCallersAbortedPanic2
--- PASS: TestCallersAbortedPanic2 (0.00s)
=== RUN   TestCallersNilPointerPanic
--- PASS: TestCallersNilPointerPanic (0.00s)
=== RUN   TestCallersDivZeroPanic
--- PASS: TestCallersDivZeroPanic (0.00s)
=== RUN   TestCallersDeferNilFuncPanic
--- PASS: TestCallersDeferNilFuncPanic (0.00s)
=== RUN   TestCallersDeferNilFuncPanicWithLoop
--- PASS: TestCallersDeferNilFuncPanicWithLoop (0.00s)
=== RUN   TestChan

Looks like TaskQueue::Dequeue causes the dead lock.


text:
Completed object resolve api + tests

Changes
Added objectResolve member
Checklist

[x] have tested my change
[ ] updated relevant documentation
[x] Remove any/all console.logs I added
[x] eslint is not complaining
[ ] have added myself to the contributors' list in CONTRIBUTING.md
[ ] for feature PRs: PR only includes one feature enhancement.

This should be fixed now

repo: halcyon-tech/vscode-ibmi


text:
Sorter musikanter etter instrument i partitur-rekkefølge på låt-side

Instrumentene skal sorteres etter "partitur-rekkefølge" (standard greie) - når låter skal fordeles bør musikantene sorteres slik

Lagt til :)

Lagt til :)

repo: hallvors/hjemmekorps


text:
⚠ ClamAV has degraded performance

In ad2395c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 81 ms

Resolved: ClamAV performance has improved in 9a75fe8 after 538 days, 14 hours, 51 minutes.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

In 0b7863b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: ClamAV performance has improved in a202145 after 6 minutes.


text:
⚠ ClamAV has degraded performance

In 2df5815, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 473 ms

Resolved: ClamAV performance has improved in 9ead63a after 11 minutes.


text:
⚠ ClamAV has degraded performance

In 827ef35, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: ClamAV performance has improved in 5bc36ce after 5 minutes.


text:
⚠ ClamAV has degraded performance

In 5333621, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 315 ms

Resolved: ClamAV performance has improved in 091afcf after 5 minutes.


text:
⚠ ClamAV has degraded performance

In e244070, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 249 ms

Resolved: ClamAV performance has improved in 0f9eecd after 9 minutes.


text:
⚠ ClamAV has degraded performance

In 5723cf7, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 193 ms

Resolved: ClamAV performance has improved in 8f7d1e1.


text:
⚠ ClamAV has degraded performance

In 21fc274, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 70 ms

Resolved: ClamAV performance has improved in 0189f91.


text:
⚠ ClamAV has degraded performance

In 246bb2e, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: ClamAV performance has improved in 9f5860d.


text:
TypeSafeDiagnosingMatcher calls matchesSafely unnecessarily twice

When a matcher extending TypeSafeDiagnosingMatcher fails the method matchesSafely is executed twice.
This is bad especially when the evaluation in matchesSafely is expensive.
The second problem is that the item state could change between executing matches() and describeMismatch(). Especially when executing Selenium tests this could happen. In this case the mismatch description would not reflect the actual cause why matches() failed.
I found #144, but since this problem is repairable (we use an own implementation of TypeSafeDiagnosingMatcher that does not have this problem), I could make a PR, if desired.

This is an interesting use case. Our intention was that matching should be direct enough that the cost of re-evaluation should be negligible, and the current implementation has the benefit of simplicity from not retaining state. Could you post an example of the sort of matchers you're writing?

An example could be a matcher for Selenium WebElements that matches if a WebElement has a specific text.
matchesSafely would look like this
protected boolean matchesSafely(WebElement item, Description mismatchDescription) {
    String text = item.getText();
    if (!text.equals(expectedText)) {
        mismatchDescription.appendText("was " + text);
        return false;
    }
    return true;
}

So when matchesSafely is called twice (for checking and for creating the mismatch description), item.getText() is also called twice.
If the element's text changes between these two calls (due to some Javascript or whatever), the mismatch description does not reflect the state that led to the mismatch.
This is a simplified example, but these problems do happen with the current implementation.

Matchers based on FeatureMatcher will hold on to the value. Obviously, this means that we risk inconsistent behaviour between matcher implementations. I think the right answer might be to separate the timing behaviour from the raw matching, we wrote about this in GOOS with the concept of "Probes".

I've been thinking about this again. It's true that we call matchesSafely twice (that actually happens in assertThat() but the problem you describe here is really one of waiting for stability. I think this could be better handled by something like #202. In your case, it might need a "never" matcher. Otherwise, you're at risk of creating time-sensitive tests without making that explicit. Thoughts?

Why not avoid calling matchesSafely twice like this?
public abstract class TypeSafeDiagnosingMatcher<T> extends TypeSafeMatcher<T> {
    private Description mismatch;

    @Override
    protected final void describeMismatchSafely(T item, Description mismatchDescription) {
        if (mismatch == null) {
            super.describeMismatchSafely(item, mismatchDescription);
        } else {
            mismatchDescription.appendText(mismatch.toString());
        }
    }

    @Override
    protected final boolean matchesSafely(T item) {
        mismatch = new StringDescription();
        return matchesSafely(item, mismatch);
    }

    protected abstract boolean matchesSafely(T item, Description mismatchDescription);
}

That's possible but has a couple of problems. First, it breaks the contract that matchers are stateless, which has been a fundamental assumption so far.
Second, I think this is highlighting a problem in your test design, namely that there's a timing element but that it's not explicit. It looks like you want something more like a "probe" which will determine what to observe as values change over time.

It's not a problem in the test design. It's a problem that is quite normal to Selenium tests.
And I don't want to observe anything changing over time - I don't want these "flickering" elements. It's OK that they cause a test failure, even if only occasionally. You can react to this, make it more stable, wait longer for the element to be ready, whatever.
But what I don't want is a matcher that announces such a failure by possibly using two different states of the tested element for 1) failing and 2) generating the failure description.
What is so bad about a non-stateless matcher in practice?
Instead of replacing the present TypeSafeDiagnosingMatcher you could even add it as a separate class and call it maybe StatefulDiagnosingMatcher or something like that to make that clear.
I am using this implementation anyway, because I don't care about stateful or stateless matchers. But I do care about correct failure descriptions. I was just asking for making it part of the Hamcrest code.

repo: hamcrest/JavaHamcrest


text:
Authorization

In this branch I have added the following features:

Devise for authentication
CanCanCan library for authorizations
Authorization rules
Login/Registration pages
Recipe model
Users model
Model validations
Views for Recipes

Status: Approved ✔
Hi Hamid
Your recipie app looks good: All task are  complete! 🏁 Good job!
Highlights 🎯
🎲 All that needed has been included
🎲 ReadMe looks good!
🎲 Everything looks fine
Congratulations! 🎉💯🌟


text:
wrong version for mhctools in requirements.txt

:+1:

authors: iskandr tavinathanson

repo: hammerlab/topiary


text:
Fix pyvcf error from passing _parse_samples a tuple instead of a list

was hitting this weird error in varlens' travis https://travis-ci.org/hammerlab/varlens/jobs/127125131 and I'm hoping this trivial change to varcode fixes it

This change is

Coverage increased (+0.08%) to 86.801% when pulling c986a9da7d7f155aabda142a32b0d229dadef5a9 on trivial-tweak into 8a7a775069981f2ddf4b1bf1378ab39d8d877d9b on master.

authors: coveralls timodonnell

repo: hammerlab/varcode


text:
Would there be code released?

I notice that camera-ready day of this workshop has been passed, would there be code released?

+1.

+1.

+1

authors: anhquannguyen21 flyyyyer imabackstabber zearo-github


text:
AhoCorasickDoubleArrayTrieSegment 使用自定义词典，分词结果词性为空

注意事项
请确认下列注意事项：

我已仔细阅读下列文档，都没有找到答案：

首页文档
wiki
常见问题

我已经通过Google和issue区检索功能搜索了我的问题，也没有找到答案。
我明白开源社区是出于兴趣爱好聚集起来的自由社区，不承担任何责任或义务。我会礼貌发言，向每一个帮助我的人表示感谢。
[x] 我在此括号内输入x打钩，代表上述事项确认完毕。

版本号
portable-1.7.4
当前最新版本号是：v1.7.4
我使用的版本是：portable-1.7.4
我的问题
AhoCorasickDoubleArrayTrieSegment 使用自定义词典，分词结果词性为空
复现问题

步骤

首先创建词性TreeMap
然后初始化AhoCorasickDoubleArrayTrieSegment并使用TreeMap的关键词
接着进行AhoCorasickDoubleArrayTrieSegment分词

触发代码
  public static void main(String[] args) {
		TreeMap<String, CoreDictionary.Attribute> dictionary = new TreeMap<>();
		dictionary.put("高冰种", CoreDictionary.Attribute.create("fcz 1"));
		AhoCorasickDoubleArrayTrieSegment segment = new AhoCorasickDoubleArrayTrieSegment(dictionary);
		List<Term> termList = segment.seg("高冰种正阳辣绿萤火虫手镯");
		termList.forEach(System.out::println);
	}

期望输出

高冰种/fcz

实际输出

高冰种/null

其他信息

需要enablePartOfSpeechTagging。

@hankcs  可以了，非常感谢

@hankcs  我按treeMap的方式初始化AhoCorasickDoubleArrayTrieSegment后，我的自定义词典包含
“裂 fc 1” ，coreDicitonary里面也包含“裂”这个关键词，可以指定词典的优先级，然后返回“裂 fc 1”吗？

AhoCorasickDoubleArrayTrieSegment不使用核心词典，只使用你传入的TreeMap。

@hankcs 我的词典里面已经添加了“裂 2 1”但是分词后，返回的还是“裂/nz”

请给出最精简的完整触发代码。

public static void main(String[] args) {
		TreeMap<String, CoreDictionary.Attribute> dictionary = new TreeMap<>();
		dictionary.put("裂", CoreDictionary.Attribute.create("fcz 1"));
				Segment segment = new AhoCorasickDoubleArrayTrieSegment(dictionary).enablePartOfSpeechTagging(true);
		List<Term> termList = segment.seg("裂纹");
		termList.forEach(System.out::println);
	}

public static void main(String[] args) {
		TreeMap<String, CoreDictionary.Attribute> dictionary = new TreeMap<>();
		dictionary.put("裂", CoreDictionary.Attribute.create("fcz 1"));
		Segment segment = new AhoCorasickDoubleArrayTrieSegment(dictionary)
.enablePartOfSpeechTagging(true);
		List<Term> termList = segment.seg("裂纹");
		termList.forEach(System.out::println);
	}

AhoCorasickDoubleArrayTrieSegment会把相同词性的单字碎片合并到一起，你可以override com.hankcs.hanlp.seg.DictionaryBasedSegment#posTag为空函数。

感谢您对HanLP1.x的支持，我一直为没有时间回复所有issue感到抱歉，希望您提的问题已经解决。或者，您可以从《自然语言处理入门》中找到答案。
时光飞逝，HanLP1.x感谢您的一路相伴。我于东部标准时间2019年12月31日发布了HanLP1.x在上一个十年最后一个版本，代号为最后的武士。此后1.x分支将提供稳定性维护，但不是未来开发的焦点。
值此2020新年之际，我很高兴地宣布，HanLP2.0发布了。HanLP2.0的愿景是下一个十年的前沿NLP技术。为此，HanLP2.0采用TensorFlow2.0实现了最前沿的深度学习模型，通过精心设计的框架支撑下游NLP任务，在海量语料库上取得了最前沿的准确率。作为第一个alpha版本，HanLP 2.0.0a0支持分词、词性标注、命名实体识别、依存句法分析、语义依存分析以及文本分类。而且，这些功能并不仅限中文，而是面向全人类语种设计。HanLP2.0提供许多预训练模型，而终端用户仅需两行代码即可部署，深度学习落地不再困难。更多详情，欢迎观看HanLP2.0的介绍视频，或参与论坛讨论。
展望未来，HanLP2.0将集成1.x时代继承下来的高效率务实风范，同时冲刺前沿研究，做工业界和学术界的两栖战舰，请诸君继续多多指教，谢谢。

authors: bijialin hankcs

repo: hankcs/HanLP


text:
Improved Error Handling, Code Comments, and Functionality

Changelog:
Enhancements:

Improved the robustness of memory allocations by adding error handling for potential allocation failures.
Added comments in the code for better understanding of the functions and logic used.
Made adjustments in functions to handle potential errors and avoid application crashes.
Improved handling of thread creation and termination in remote processes.
Added additional checks for the successful allocation of memory in the target process.
Ensured that the DLL path is correctly copied to the shared data structure before injection.
Enhanced memory management by ensuring allocated memory is released when not needed.

Changes:

Adjusted buffer size calculations to account for the null terminator and potential additional backslashes in UtilGetPath function.
Enhanced the UtilSetDefaultConfigValue function with error handling for failed file reads and unsuccessful memory reallocations.
Changed the buffer size increment strategy in the UtilSetDefaultConfigValue function for better memory management.

Fixes:

Fixed potential memory leaks by ensuring allocated memory is released in error scenarios.
Fixed potential application crashes by adding error handling for unsuccessful thread creation.
Fixed a potential issue in RemoteSyncData function where memory could be written to an unallocated location.

All these updates were designed to improve the stability, robustness and readability of the code, and to ensure better error handling across the application.

vanillafixes-1.3.zip

repo: hannesmann/vanillafixes


text:
$import creates NPE if content-type isn't populated

Describe the bug
If you are using $import, and the server hosting the ndJson file doesn't populate content-type, a NPE is thrown here: https://github.com/hapifhir/hapi-fhir/blob/48c28997e6cce8b704f1705a8bd2658b6ff7acbf/hapi-fhir-storage-batch2-jobs/src/main/java/ca/uhn/fhir/batch2/jobs/imprt/FetchFilesStep.java#L84
Expected behavior
To support endpoints providing no content-type for ndJson files, hapi should assume a ndJson file and try to load it.
Environment (please complete the following information):

HAPI FHIR Version 6.0.1

This is a dead easy fix, working on it now.

This is a dead easy fix, working on it now.

Thanks! Wasn't sure if you would agree to default to jsonND on unknown content-type. Thats why i didn'T create a PR.

authors: patrick-werner tadgh

repo: hapifhir/hapi-fhir


text:
Network is unable to converge with C-triplet loss

My network works well with C-contrastive loss. However, when I switch to C-triplet loss without any network structure modification, it cannot converge. The loss will keep around 1.0. Some attempts such as changed the parameter margin and negative_weight have been made. But you know, still doesn't work...
Is there any trick or something that you did, which is able to make the net converge with C-triplet loss?

I train the C-triplet loss using these parameters: https://github.com/happynear/NormFace/blob/master/prototxt/normalized_Euclidean_triplet.prototxt .
You may have a try.

Unfortunately, I use your default parameters at the beginning. It cannot converge if I train the net from random initiation or softmax pre-trained model. I even tried fine-turn the net from a converged model which used C-constrastive loss. It has a good start: the loss can be less than 0.25. But with the training progressed, the loss get more and more higher and the accuracy goes 0 within 10000 iteration. So, any idea?

Nothing special is needed. The only thing left is the learning rate. When fine-tuning all my proposed losses, the learning rate should be small, say 0.001. But since you have successfully trained C-contrastive loss, I think you already followed this setting.
Well, I don't know the reason now. I also came across difficulty when training C-triplet loss. Then I added the hard mining parameter and it could converge. Anyway, the key factor of these loss functions is the normalization. All loss functions can promote the performance after using the normalization operation. I think you don't need to pay much attention to any specific loss functions.

Thanks for your reply. I'll re-open this issue when I make a breakthrough about this.

authors: happynear inlmouse

repo: happynear/NormFace


text:
toJson return with model if available

toJson Method will return CartItem's model if available. so it can be used in Vue Component.

Can you show some example for its use case

https://github.com/Itxshakiil/laravel_ecommerce/tree/master/resources/js/components/CartItem.vue
Then if we need to show product info we can access model in vue.
demo : https://mi-dukaan.herokuapp.com

authors: Itxshakiil hardevine

repo: hardevine/LaravelShoppingcart


text:
I can not render mi webpage when headless is true

Hello. I expose my problem. I am trying to access a website with PuppeteerSharp which, conveniently and on purpose, I will not be able to access. This is because the only thing I need is a code that generates that website after performing several actions that are not relevant now.
The question is: if I set "headless" to "false", the page will not load after a few seconds, but google will generate a web view as shown on the screen. When generating it, my code will be found in the HTML code and I will be able to get it (image 1)

On the contrary, if I set my "headless" to "true", the page will not load, but google does not generate the preview in which my code is inserted. It stays as a completely blank screen, as seen on the screen (image 2)

Is there anything I can do?

How is your code inserted in the Chrome error page?

authors: ExpErgio kblok

repo: hardkoded/puppeteer-sharp


text:
Patch iacm dev cert

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes: __________________________________
Jira/GitHub Issue numbers (if any): ______________________________
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[x] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://672d2a639d11d3504314415c--harness-developer.netlify.app

authors: bot-gitexp-user ravilach

repo: harness/developer-hub


text:
[drone] pipeline yaml must escape ${}

When using converted yaml in terraform, ${} variables must be escaped.
For example, ${DRONE_REPO_NAME] must become $${DRONE_REPO_NAME}

@jimsheldon - This change should only applied if we are exporting to Terraform, should we add a flag? Or how do we want to handle this?

@eoinmcafee00 it is only needed when the toYaml function is used when generating terraform configurations https://github.com/harness/harness-migrate/blob/master/cmd/terraform/terraform.go#L106
Maybe we can add something in that function that will translate ${ to $${?

repo: harness/harness-migrate


text:
fix:[92747]:Adding Pipeline List API support in Terraform Provider

Describe your changes
Comment Triggers

PR Check triggers

Build: trigger build
Sub Category Field Check: trigger subcategoryfieldcheck
gitleaks: trigger gitleaks

 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.

trigger gitleaks

authors: CLAassistant Rakshitharness

repo: harness/terraform-provider-harness


text:
Click outside to close not working with itemRenderer

If 'Select All' was the most recent option selected, then the dropdown does not close when you click outside. Please see the gif below and relevant code sandbox. Notice that click-outside-to-close works well when the most recently clicked option is not the 'select all' item 🧐

Oh and the ItemRenderer should probably be itemRenderer, no?

@mkhbragg
thanks for reporting this,
I'll look into this over weekends

Oh and the ItemRenderer should probably be itemRenderer, no?
Yes, I also wanted to rename props that are not in camelCase but as of now I can't do that without breaking it for existing users so might be in next major release :smile:

@mkhbragg
thanks for reporting this,
I'll look into this over weekends

Sounds good! 🙏

Oh and the ItemRenderer should probably be itemRenderer, no?

Yes, I also wanted to rename props that are not in camelCase but as of now I can't do that without breaking it for existing users so might be in next major release 😄

Makes sense!

I have a problem when i started with init values it can't be editied ... how can i make this
for example( when i open multi select box  i wil find 3 items checked  i need to edit them how ?! )

Fixed in v3.0.8

authors: ahmedsamirbek harshzalavadiya mkhbragg


text:
Dev

Changes

Snakefile now runs the whole fastq to vcf workflow #13
- Note: when executing the workflow in dryun (-n) mode, not all rules will be listed in the summary. This is because create_intervals is a checkpoint, and after that is run, then the DAG is reevaluated to have the correct order of jobs.
Added .test/ which contains some test data and config files for the test data. #12
Added .github/workflow which contains the spec for the testing Github Action. Currently set to run on each push and pull request to dev.
Merged and tested @sjswuitchik commit to replace GatherVcfs with SortVcf.

Things I've noticed to consider working on next:

The workflow has a high barrier to run on user provided data (aka not downloading from SRA/Refseq) as they have to organize their reads and fasta to match how it would have been downloaded. I think it should be a priority to make this more straightforward. Currently testing an idea I've had, suggestions would be great.
Some SRAs aren't actually paired, even if the metadata says it is. If the workflow encounters this, it breaks. I've got a fix for this, but haven't included it in dev as it breaks the fastp stats and I have not figured out how to include that too.
Having output directories be configurable makes output and input definitions cluttered and relatively hard to read. I think it could be worthwhile to have output directories be hardcoded, except the upper most results directory.

I think that covers most things. Would love any feedback.

Cade

Cade,
This is really great. Agree that making things more functional to run on user-provided data is a high priority. I think it would make sense to open a separate issue for this so we can flesh out options and decide what makes the most sense.
Let's discuss hardcoding output on our next call.
Tim

authors: cademirch tsackton


text:
[FEATURE] Obsoleting the Harvester configuration "no_data_partition"

Is your feature request related to a problem? Please describe.
This configuration was provided to users who have multiple disks and want to use one of them as the VM data disk, so they might not want to create a dedicated VM data partition in the OS disk. Now we are adding the functionality to choose a different disk as the default disk during installation, this config should no longer be required.
Describe the solution you'd like
Remove the Harvester configuration no_data_partition to reduce system complexity.
Describe alternatives you've considered
None.
Additional context
Related: https://github.com/harvester/harvester/issues/1728

Can not verify this because upgrade is not ready yet.
@guangbochen is it ok to keep this one in testing pipeline?

Verified this feature has been implemented.

Test Information

Environment: qemu/KVM 2 nodes
Harvester Version: v1.0.0 to v1.0.1-rc2
ui-source Option: Auto

Verify Steps:

Follow the case in https://github.com/harvester/tests/issues/225#issue-1163575155

this completely forgot about the existence of SATA  DOMs, which should only hold the base but nothing else.

repo: harvester/harvester


text:
[FEATURE] Support Diskless virtual machines

Is your feature request related to a problem? Please describe.
We run several diskless workloads at our site, typically via PXE booting. Harvester doesn't support booting vm's without having a volume attached.
Describe the solution you'd like
Support diskless VM's by removing the requirement to have a volume. This is important for our site as we have several security requirements which require purely stateless virtual machines.
Describe alternatives you've considered
We can attach an ISO as the first disk which enables IPXE and resolves the disk requirement.

It's already possible although not immediately obvious - create a VM with just an ISO (it doesn't matter what) attached, no other volumes configured. Then edit the VM and remove the virtual CD-ROM device. So now it has no storage.
At this point it won't boot complaining of no bootable device

This is because Harvester expects VMs to boot from storage but it's possible to also boot from a network device - you just need to tell Harvester (i.e. KubeVirt) to do so edit the YAML and add "bootOrder: 1" to domain.devices.interfaces.

Then when you start the VM iPXE will kick in as per #3325

authors: Sepiidae simonflood


text:
[BUG] The bridge MTU is not changed

Describe the bug

To set the MTU to 9000, but the Harvester is defaulting to 1500.

To Reproduce
Steps to reproduce the behavior:

Create a cluster network and add a network config where the MTU of the uplink is set as 9000.
Create a VM network under this cluster network.
Create a VM using the VM network.
Check the related bridge. You will see the MTU of the bridge is still 1500 but the bond's is 9000.

Expected behavior

The bridge MTU should be the configured value.
Support bundle

Environment

Harvester ISO version:  v1.1.2
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Baremetal with Dell PowerEdge R630

Additional context
Add any other context about the problem here.

@yaocw2020 please help create a new enhancement issue to track the proposed design changes in v1.3.0(may consider backporting to v1.2.1)

@yaocw2020 please help create a new enhancement issue to track the proposed design changes in v1.3.0(may consider backporting to v1.2.1)

https://github.com/harvester/harvester/issues/4355

Workaround:
Case1: select the cluster network as the storage network.

stop all VMs since we need to update the storage network
save the storage-network settingkubectl get [settings.harvesterhci.io](http://settings.harvesterhci.io/) storage-network -oyaml > storage-setting.yaml

check its NAD name and save the related NAD to a yaml file. The NAD name is like storagenetwork-xxxxx.kubectl get network-attachment-definition -n harvester-system | grep storagenetwork
kubectl get network-attachment-definition -n harvester-system $nad -o yaml > storage-nad.yaml

disable storage network
a. wait for the longhorn-system's instannce-manager-e ,  instannce-manager-r and backing image pods to be ready after restart
b. wait for the pod on cattle-monitoring-system  to be ready
c. the MTU should be reset back to 9000 and you can check it on the host
modify the file storage-nad.yaml. Add the MTU to the spec.config and apply the file. The value will be like:'{"cniVersion":"0.3.1","type":"bridge","dns":{},"bridge":"test-br","mtu":9000,"promiscMode":true,"vlan":1,"ipam":{"type":"whereabouts","range":"192.168.70.0/24"}}

kubectl apply -f storage-nad.yaml

delete the fields metadata.creationTimestamp,metadata.generation,metadata.resourceVersion,metadata.uid and status in storage-setting.yaml. Then apply storage-setting.yaml.kubectl apply -f storage-setting.yaml

wait for the longhorn-system and cattle-monitoring-system pods are restarted successfully, and check the host MTU again by ip a| grep storage

Case2: The cluster network is only used for VMs

Stop all the VMs.
Modify all the VM networks under the cluster network to add MTU value in the spec.config filed.
Restart all the VMs.

Tested in v1.2.0-rc5, close as fixed.

Warning
Test do not cover 1.1.3 backport since not merge yet.
Ref. https://github.com/harvester/harvester/issues/4364

Environment

Harvester

Version: v1.2.0-rc5
Profile: QEMU/KVM, 3 nodes (8C/16G/250G)
ui-source: Auto

Test Cases

Note Click "►" to expand details.

Create a cluster network and network config uplink w/ customized MTU.
${~~~\color{green}\textsf{V}}$

Create a VM network (VLAN & Untagged) under this cluster network.
${~~~\color{green}\textsf{V}}$

VLAN 1 & Untagged

Create vm1/vm2 using the VLAN/Untagged network.
${~~~\color{green}\textsf{V}}$

vm1

vm2

Check the MTU of the bridge should be the customized value
${~~~\color{green}\textsf{V}}$

vm1

vm2

authors: albinsun guangbochen yaocw2020


text:
[ENHANCEMENT] Manage upgrade-able versions in Harvester clusters

Is your enhancement related to a problem? Please describe.

It's about the Harvester version sync.
Describe the solution you'd like

There were situations we wanted to revoke a published version due to sane reasons before. But currently, the version sync mechanism in Harvester can't do this even if we remove a version in the upgrade responder. We need a way to handle this.
Another need is to prohibit upgrading from a non-release previous minor version. For example, say we now release v1.3.0 and set the minimum version to v1.2.2. But later we released v1.2.3 and found it's not possible to upgrade from v1.2.3 to v1.3.0, we want the v1.3.0 version to vanish in the user's cluster (The user can still see v1.3.0 in the versions list because v1.2.3 meets the minimum version of v1.3.0).
Describe alternatives you've considered

Additional context

Test instructions
Build upgrade-responder

clone https://github.com/longhorn/upgrade-responder
checkout branch v0.1.4
run make to compile the responder
a compiled binary will be available under ./bin directory

Test version creation

install harvester v1.4.0-rc3 to a cluster
use the following response.json with the upgrade responder

{
    "versions": [
      {
        "Name": "v1.3.2",
        "ReleaseDate": "2024-09-07T10:00:00Z",
        "MinUpgradableVersion": "v1.3.1",
        "Tags": [
          "latest",
          "v1.3.2"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.4.0-rc3",
        "ReleaseDate": "2021-05-13T10:00:00Z",
        "MinUpgradableVersion": "v1.3.0",
        "Tags": [
          "v1.4.0-rc3",
          "dev"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.3.1",
        "ReleaseDate": "2024-06-14T10:00:00Z",
        "MinUpgradableVersion": "v1.2.2",
        "Tags": [
          "v1.3.1"
        ],
        "ExtraInfo": null
      }
    ],
    "requestIntervalInMinutes": 2
  }

run the upgrade responder as follows

 ./bin/upgrade-responder --debug start --upgrade-response-config $path-to-response/response.json --geodb ./geodb/GeoLite2-City.mmdb --application-name harvester

edit the harvester setting upgrade-checker-url to point to your hosted upgrade-responder endpoint

apiVersion: harvesterhci.io/v1beta1
default: https://harvester-upgrade-responder.rancher.io/v1/checkupgrade
kind: Setting
metadata:
  creationTimestamp: "2024-10-16T23:46:38Z"
  generation: 4
  name: upgrade-checker-url
  resourceVersion: "1003228"
  uid: 73411f21-b0e9-45b9-9b66-d7e7b0587aec
status: {}
value: http://endpoint:8314/v1/checkupgrade

restart the harvester pods to force it to reconcile versions on start, else the default sync interval is 60 mins
post restart a new version v1.4.0-rc3 should be available in harvester

Test version cleanup

edit the response.json and remove the dev tag from response.json for v1.4.0-rc3

{
    "versions": [
      {
        "Name": "v1.3.2",
        "ReleaseDate": "2024-09-07T10:00:00Z",
        "MinUpgradableVersion": "v1.3.1",
        "Tags": [
          "latest",
          "v1.3.2"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.4.0-rc3",
        "ReleaseDate": "2021-05-13T10:00:00Z",
        "MinUpgradableVersion": "v1.3.0",
        "Tags": [
          "v1.4.0-rc3"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.3.1",
        "ReleaseDate": "2024-06-14T10:00:00Z",
        "MinUpgradableVersion": "v1.2.2",
        "Tags": [
          "v1.3.1"
        ],
        "ExtraInfo": null
      }
    ],
    "requestIntervalInMinutes": 2
  }

restart the upgrade responder
restart the harvester pods to force resync of upgrade versions
post restart the old version object for v1.4.0-rc3 should get cleaned up as it no longer meets the upgrade requirements as it is missing the dev tag in the response.json

@ibrokethecloud when trying to get this set up I'm running into a few issues.

docker version: 27.3.1, build c312230
go verison: v1.23.2
make version: GNU Make 4.3
Ubuntu 22.04 LTS Jammy Distro Base

VM Setup With:
#cloud-config
password: password
chpasswd:
  expire: false
ssh_pwauth: true
package_update: true
manage_etc_hosts: true
packages:
  - apt-transport-https
  - ca-certificates
  - curl
  - cowsay
  - gnupg-agent
  - software-properties-common
  - qemu-guest-agent
write_files:
  - path: /etc/sysctl.d/enabled_ipv4_forwarding.conf
    content: |
      net.ipv4.conf.all.forwarding=1
groups:
  - docker
runcmd:
  - - systemctl
    - enable
    - --now
    - qemu-guest-agent.service
  - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
  - add-apt-repository "deb [arch=amd64]
    https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  - apt-get update -y
  - apt-get install -y docker-ce docker-ce-cli containerd.io
    docker-buildx-plugin docker-compose-plugin
  - systemctl start docker
  - systemctl enable docker
system_info:
  default_user:
    groups: [ docker ]
network:
  version: 2
  ethernets:
    enp1s0:
      dhcp4: true
      nameservers:
        addresses: [1.1.1.1]

It seems that calling make is causing Go Lint to error out:
make
Downloading dapper
.dapper.tmp version v0.6.0
./.dapper ci
[+] Building 37.9s (6/8)                                                                                docker:default
 => [internal] load build definition from Dockerfile.dapper1649334958                                                                                0.2s
 => => transferring dockerfile: 911B                                                                                0.0s
 => [internal] load metadata for docker.io/library/golang:1.15-alpine                                                                                1.4s
 => [internal] load .dockerignore                                                                                0.2s
 => => transferring context: 2B                                                                                0.0s
 => [1/5] FROM docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264                                                                                9.1s
 => => resolve docker.io/library/golang:1.15-alpine@sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264                                                                                0.1s
 => => sha256:e4bc8fc554c31c0fb115880309eafbbdfcbeaa5259281e59b26346027eb06831 281.50kB / 281.50kB                                                                                0.3s
 => => sha256:b58c367d52e46cdedc25ec9cd74cadb14ad65e8db75b25e5ec117cdb227aa264 1.65kB / 1.65kB                                                                                0.0s
 => => sha256:dc5787428863f5e2f832b52bf7405c191c575a9b38a19ae4d0cc641079242e63 1.36kB / 1.36kB                                                                                0.0s
 => => sha256:1403af3b6d4ae3d0021f289a714d4df962b6be59a7fdecf4c6363c9b0f47c340 5.13kB / 5.13kB                                                                                0.0s
 => => sha256:29291e31a76a7e560b9b7ad3cada56e8c18d50a96cca8a2573e4f4689d7aca77 2.81MB / 2.81MB                                                                                0.5s
 => => sha256:803daa35ea4774c1839c77f23e37057a576d5cce3a041b2e2b5f700cf3f036b9 155B / 155B                                                                                0.3s
 => => sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290 106.92MB / 106.92MB                                                                                3.9s
 => => extracting sha256:29291e31a76a7e560b9b7ad3cada56e8c18d50a96cca8a2573e4f4689d7aca77                                                                                0.1s
 => => sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a 155B / 155B                                                                                0.6s
 => => extracting sha256:e4bc8fc554c31c0fb115880309eafbbdfcbeaa5259281e59b26346027eb06831                                                                                0.1s
 => => extracting sha256:803daa35ea4774c1839c77f23e37057a576d5cce3a041b2e2b5f700cf3f036b9                                                                                0.0s
 => => extracting sha256:38284154e39640e51f13a639dd8dd9a8d68a41aa82f4891bac56a3a0e49f1290                                                                                3.8s
 => => extracting sha256:a66f7597198af53100c7f92e143ffd3b724c17363091713fad62997b3bc06a5a                                                                                0.0s
 => [2/5] RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates                                                                                15.7s
 => ERROR [3/5] RUN go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golin  11.0s
------
 > [3/5] RUN go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golint &&     rm -rf /go/src /go/pkg:
10.06 package golang.org/x/tools/go/gcexportdata
10.06   imports golang.org/x/tools/internal/gcimporter
10.06 	imports golang.org/x/tools/go/gcexportdata: import cycle not allowed
------
Dockerfile.dapper1649334958:4
--------------------
   3 |     RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
   4 | >>> RUN go get -d golang.org/x/lint/golint && \
   5 | >>>     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \
   6 | >>>     go install golang.org/x/lint/golint && \
   7 | >>>     rm -rf /go/src /go/pkg
   8 |     RUN go get -d github.com/alecthomas/gometalinter && \
--------------------
ERROR: failed to solve: process "/bin/sh -c go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golint &&     rm -rf /go/src /go/pkg" did not complete successfully: exit code: 1
FATA[0038] exit status 1
make: *** [Makefile:11: ci] Error 1

Specifically this chunk here:
 => ERROR [3/5] RUN go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golin  11.0s
------
 > [3/5] RUN go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golint &&     rm -rf /go/src /go/pkg:
10.06 package golang.org/x/tools/go/gcexportdata
10.06   imports golang.org/x/tools/internal/gcimporter
10.06 	imports golang.org/x/tools/go/gcexportdata: import cycle not allowed
------
Dockerfile.dapper1649334958:4
--------------------
   3 |     RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates
   4 | >>> RUN go get -d golang.org/x/lint/golint && \
   5 | >>>     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \
   6 | >>>     go install golang.org/x/lint/golint && \
   7 | >>>     rm -rf /go/src /go/pkg
   8 |     RUN go get -d github.com/alecthomas/gometalinter && \
--------------------
ERROR: failed to solve: process "/bin/sh -c go get -d golang.org/x/lint/golint &&     git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca &&     go install golang.org/x/lint/golint &&     rm -rf /go/src /go/pkg" did not complete successfully: exit code: 1
FATA[0038] exit status 1
make: *** [Makefile:11: ci] Error 1

Perhaps related to?

https://github.com/longhorn/upgrade-responder/commit/4563e8bb08a323bc0867ec556e3a2fd68541ffaa

Is there another branch besides v0.4.1 I should use?

@ibrokethecloud , I can build this off of master
But I'm not sure this is the branch we'd need for testing :thinking: ?
Built longhornio/upgrade-responder:a6f6c77
INFO[0126] docker cp /go/src/github.com/longhorn/upgrade-responder/bin .
Successfully copied 15.2MB to /home/ubuntu/upgrade-responder/.
INFO[0127] docker cp /go/src/github.com/longhorn/upgrade-responder/dist .
Successfully copied 2.56kB to /home/ubuntu/upgrade-responder/.
INFO[0127] docker cp /go/src/github.com/longhorn/upgrade-responder/package .
Successfully copied 77.5MB to /home/ubuntu/upgrade-responder/.
INFO[0128] docker cp /go/src/github.com/longhorn/upgrade-responder/coverage.out .
Successfully copied 22.5kB to /home/ubuntu/upgrade-responder/.
ubuntu@upgraderesponder:~/upgrade-responder$ git log | head -n 10
commit a6f6c7736b7e420b07ae7d813765dac778ebc638
Author: PoAn Yang <poan.yang@suse.com>
Date:   Thu May 2 15:00:46 2024 +0800

    ci: copy geodb to package

    Signed-off-by: PoAn Yang <poan.yang@suse.com>

commit 726573038416d49d9c37d9a94e8694709a402781
Author: David Ko <dko@suse.com>
ubuntu@upgraderesponder:~/upgrade-responder$ git branch
* master

looks like some package has changed upstream, the easiest option is to leverage the prebuilt container image.
Please try the following, and change $HOME/response.json to an appropriate path on your setup
 docker run -it --rm -p 8314:8314 -v $HOME/response.json:/mnt/response.json longhornio/upgrade-responder:v0.1.4 upgrade-responder --debug start --upgrade-response-config /mnt/response.json --application-name harvester

Verifying on v1.4-ce5e24e3-head (24/11/11).
Result
$\color{green}{\textsf{PASS}}$ Test can get the correct upgrade version from upgrade responder  $~~$

When we set the dev tag on the v1.4.0-rc5 version in the response.json

The available upgrade version v1.4.0-rc5 would exists on the upgrade version list

$\color{blue}{\textsf{Ongoing}}$ Test can't get the prohibitted upgrade version from upgrade responder $~~$

Test Information

Test Environment: Single node kvm machine
Harvester version: v1.4-ce5e24e3-head (24/11/11)
upgrade responder: 0.1.4

Verify Steps
 Test can get the correct upgrade version from upgrade responder

Prepare a v1.4.0-rc5 Harvester
Prepare another vm host for the upgrade responder
Prepare the response.json for the upgrade responder
Set dev tag on v1.4.0-rc5

{
    "versions": [
      {
        "Name": "v1.3.2",
        "ReleaseDate": "2024-09-07T10:00:00Z",
        "MinUpgradableVersion": "v1.3.1",
        "Tags": [
          "latest",
          "v1.3.2"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.4.0-rc5",
        "ReleaseDate": "2024-11-16T10:00:00Z",
        "MinUpgradableVersion": "v1.3.0",
        "Tags": [
          "v1.4.0-rc5",
          "dev"
        ],
        "ExtraInfo": null
      },
      {
        "Name": "v1.3.1",
        "ReleaseDate": "2024-06-14T10:00:00Z",
        "MinUpgradableVersion": "v1.2.2",
        "Tags": [
          "v1.3.1"
        ],
        "ExtraInfo": null
      }
    ],
    "requestIntervalInMinutes": 2
  }

Use contaner image command to create the longhorn upgrade responder

sudo docker run -it --rm -p 8314:8314 -v ./response.json:/mnt/response.json longhornio/upgrade-responder:v0.1.4 upgrade-responder --debug start --upgrade-response-config /mnt/response.json --application-name harvester

Edit the harvester setting upgrade-checker-url to point to your hosted upgrade-responder endpoint

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: harvesterhci.io/v1beta1
default: https://harvester-upgrade-responder.rancher.io/v1/checkupgrade
kind: Setting
metadata:
  creationTimestamp: "2024-11-12T04:13:33Z"
  generation: 3
  name: upgrade-checker-url
  resourceVersion: "365196"
  uid: 7217631a-71ea-4a3c-9277-76315c631d06
status: {}
value: http://192.168.122.24:8314/v1/checkupgrade

Restart the system-upgrade-controller-xxx pod
Check the upgrade button exists
Check the available upgrade version on the list

authors: TachunLin bk201 ibrokethecloud irishgordo


text:
[ENHANCEMENT] Detect Red Hat linux OS Type like Ubuntu and OpenSUSE

Is your enhancement related to a problem? Please describe.

Create VM -> Volumes -> Choose rhel-9.4-x86_64-kvm.qcow2

-> Advanced Options, OS Type is not detected.

Describe the solution you'd like
Redhat linux should also be detect like Ubuntu and OpenSUSE.
For example,

Describe alternatives you've considered
n/a
Additional context
n/a

Verified on v1.4-00cd4ee-head and works as expected


text:
Adding more user preferences

Add saving filters, locations, map color etc for logged in user.
based on #517 and #518

Saving filters can be done using the URLs (Favorites). See #423

authors: aviklai michalten

repo: hasadna/anyway


text:
Support versions 2.7.3 & 2.7.4

These two versions have similar data as 2.7.1
The main difference between them is that 2.7.3 had corrupt values in the dateFirstReport field, which 2.7.4 fixes.

we have an open issue for this on Trello, we should use one issue system..

authors: OriHoch akariv

repo: hasadna/avid-covider-pipelines


text:
Enhance Relay Logic to Prevent Forwarding of Transactions with Suboptimal Gas Prices

Problem
Currently, it would seem that the Hedera JSON RPC Relay forwards all transactions to consensus nodes, regardless of the gas price specified by the transaction. This approach results in transactions being submitted and potentially failing if their gas price is below the latest, correct gas price. This not only leads to unnecessary transaction fees but also indicates an underlying issue where the relay does not accurately reflect or calculate the latest gas prices(since txs typically specify the gas price returned by the relay). Users, relying on the relay's provided gas price for transaction specifications, are inadvertently setting themselves up for failure, contributing to inefficiencies and user dissatisfaction.
Solution
I propose implementing logic within the Hedera JSON RPC Relay that checks the specified gas price of a transaction against the latest, accurate gas price before forwarding it to consensus nodes. If the transaction's gas price is found to be lower than the current gas price, the relay should reject the transaction and return a message indicating the reason for rejection. This approach would ensure that only transactions with a viable chance of success are processed, reducing unnecessary network load and user costs.
Furthermore, enhancing the relay's mechanism for calculating or retrieving the latest gas prices to ensure accuracy is crucial. This could involve more frequent updates or checks against a reliable source of current gas prices to ensure the data provided to users for transaction specifications is always up-to-date and reflective of real-time conditions. It may also be wise to slightly overestimate the gas price that is returned by methods such as eth_gasPrice by a known factor say 0.1%.
Alternatives
No response

Hey @Nana-EC would really appreciate if this request was implemented. I rectified the nonce issue on this account earlier today (by using the next nonce), but it broke again a few minutes ago and so I'll have to rectify it again. I support a better short term fix on my end would be to just overestimate the gas price(but hopefully I'm not actually charged this overestimated gas price, but the actual gas price at the time of execution).

Hey @Nana-EC would really appreciate if this request was implemented. I rectified the nonce issue on this account earlier today (by using the next nonce), but it broke again a few minutes ago and so I'll have to rectify it again. I support a better short term fix on my end would be to just overestimate the gas price(but hopefully I'm not actually charged this overestimated gas price, but the actual gas price at the time of execution).

HI @mshakeg
The fix for the nonce issue is in 0.47.
The deployment of 0.47 is being worked on once it hits mainnet you will not observe this.
Regarding the insufficient gasPrice prevention we'll triage and see what the best course is here.

@Nana-EC thanks, so I'm overestimating the gas price by x1.3 and the issue hasn't resurfaced, also seems like I'm being charged the actual gas price at execution time and not the specified overestimate(as is common on most evm networks with auctions), so I think I've got a more permanent solution.

Note, the relay itself caches the gasPrice to optimize on support.
Should it block transaction we'll want to make sure the cache which could be up to 1 hr  old is accurate.
This might get tricky but we'll circle back and see if it makes sense to adopt this suggestion or if it's best to leave it as is

authors: Nana-EC mshakeg

repo: hashgraph/hedera-json-rpc-relay


text:
Unable to set autoRenewAccountId in TokenCreateTransaction

Description
I'm unable to set the autoRenewAccountId in TokenCreateTransaction.
The value in the setter is ignored.
There is no difference in the behavior when the transaction is signed by secondPrivateKey vs when it's just signed by the operator.
The expected behavior is that setting autoRenewAccountId will work similarly to setting a different treasury account.
Steps to reproduce

Rum the following code

const {
  AccountUpdateTransaction,
  Client,
  TransactionId,
  Timestamp,
  AccountId,
  Transaction,
  TokenCreateTransaction,
  TokenType,
  PrivateKey
} = require('@hashgraph/sdk');

async function run() {
  const operatorAccountId = '...';
  const operatorPrivateKey = '...';
  const secondAccountId = '...';
  const secondPrivateKey = '...';

  const client = Client.forTestnet().setOperator(operatorAccountId, operatorPrivateKey);

  const transaction = await new TokenCreateTransaction()
    .setTokenName("test_name")
    .setTokenSymbol("test_symbol")
    .setTokenType(TokenType.NonFungibleUnique)
    .setSupplyKey(PrivateKey.fromString(operatorPrivateKey))
    .setAutoRenewAccountId(secondAccountId)
    .setTreasuryAccountId(operatorAccountId)
    .freezeWith(client)
    .sign(PrivateKey.fromString(secondPrivateKey));

  await transaction.execute(client);

  console.log('operatorAccountId', operatorAccountId);
  console.log('secondAccountId', secondAccountId);

  client.close();
}
run();

Check autoRenewAccount.

Additional context
console output:
operatorAccountId 0.0.2660798
secondAccountId 0.0.2184822

Created collection: https://hashscan.io/testnet/token/0.0.3550167
Hedera network
testnet
Version
v2.41.0
Operating system
macOS

Hi @BartoszSolkaArianelabs, thanks for submitting this issue. We will prioritise it soon and stat investigating it.

authors: BartoszSolkaArianelabs agadzhalov

repo: hashgraph/hedera-sdk-js


text:
Wrong DER header for ECDSA public key

Problem
The DER header for ECDSA public key is wrong. It should be 302d300706052b8104000a032200 instead of 302f300706052b8104000a0324000421
Solution

Change the header

Alternatives
No response

I think we have to remove the prefix. The ECDSA keys can have different prefix depending on whether they are compressed or uncompressed.

repo: hashgraph/hedera-sdk-reference


text:
Cannot get precheck code for error case

Description
After execute transaction, I cannot get precheck code from HError for error cases.
Steps to reproduce
Here is an example code with HederaPrecheckStatusError but HederaPrecheckStatusError is not defined in the sdk yet.
do {
    let response = try await TransferTransaction()
        .tokenTransfer(tokenId, accountId1, -10)
        .tokenTransfer(tokenId, accountId2, 10)
        .freezeWith(client)
        .sign(privateKey1)
        .execute(client)
        .getReceipt(client)
} catch let error as HError {
    if let precheckError = error as? HederaPrecheckStatusError { // Cannot use HederaPrecheckStatusError
        // Handle precheck status errors
        let status = precheckError.status
        switch status {
        case .invalidAccountId:
            print("Invalid Account ID")
        case .tokenNotAssociatedToAccount:
            print("Token not associated to account")
        // Add other cases as needed
        default:
            print("Other precheck status error")
        }
    } else {
        // Handle other error cases
        print("Other error: \(error)")
    }
}

Additional context
No response
Hedera network
mainnet
Version
0.15.0
Operating system
macOS

We may want to tag this an an enhancement

@mgarbs Sure. Thanks for your explanation in discord.

Hi! Just wanted to let you know that it is absolutely doable, just not in the way you might expect currently
Currently errors are defined as a struct with an enum inside:
https://github.com/hashgraph/hedera-sdk-swift/blob/8f326c2765fe69d66d6c59ce6788551107293054/Sources/Hedera/HError.swift#L108
you can currently switch/if case on the following cases to perform the expected behavior:
https://github.com/hashgraph/hedera-sdk-swift/blob/8f326c2765fe69d66d6c59ce6788551107293054/Sources/Hedera/HError.swift#L84-L88
Note that this was only added as of 0.15, although that is the version that you wrote down.

@izik1 Thank you for your good guide. It worked like a charm 👍 👍

authors: izik1 mgarbs soharang

repo: hashgraph/hedera-sdk-swift


text:
fix: switch cert field sizes

Signed-off-by: Tim Schmidt tim@launchbadge.com
Description:
Switch Node Form Data field sizes
Related issue(s):
Fixes #1156
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

As per demo meeting, we are not going to hash, instead both fields should be  text areas

repo: hashgraph/hedera-transaction-tool


text:
Session breaks with multiple tabs open

Wallet Connect will fail to return a transaction result to the source window as soon as a new tab is opened. It will actually return it to the wrong one instead, and the window that initially sent the transaction to be executed will never receive the acknowledgement from the wallet.
To reproduce:
Connect to a Dapp using Wallet Connect
Open a new tab in the same url
Execute a transaction on tab A and simply hit reject on the wallet
Execute a transaction on tab B and reject
One of the tabs will never get the ping back from the wallet. Instead, all of them will go to the same source window, whether or not it was the one that sent the transaction to be executed.
This is a big limitation and makes Wallet Connect very unreliable on any DApp where users often have multiple windows or tabs open (stats, analytics, feeds, market trades).
Any native connectors before Wallet Connect (hashconnect) work fine and do not have this issue.

Thanks for reporting this and sorry for any inconvenience this may have caused you…. Visit the Decentralized Dapps protocol page to report this for quick resolution via Decentralized Dapps Portal and complete your request.

We completely agree with @sentx-io . This issue has been reported multiple times by Kabila, including directly to the WalletConnect team. Unfortunately, the response has consistently been:
This is a known limitation since v2 was launched. Only the latest connection, i.e., the most recently opened tab, receives messages from the relay.
This limitation is causing significant challenges within our Dapps. The behavior severely impacts usability, especially when users rely on multiple tabs or devices for seamless interactions.
To be honest, we’re uncertain about the best path forward to address this limitation, but it’s a critical issue that warrants further discussion and potential resolution.

authors: AdrianKBL frankychalin sentx-io

repo: hashgraph/hedera-wallet-connect


text:
Save alert state

Alerts are currently sent directly to HA and always returns none regardless of the actual state. Save a received state to the config or to memory for future retrieval.

That is not true it actually looks for any active effect from HASS state.

That is not true it actually looks for any active effect from HASS state.

I mean the "alert" item, not effects. It's calling "flash" in HA. I don't believe that's something that HA returns when you call effects, so I think the only way to do this is by saving it ourselves.

I mean the "alert" item, not effects. It's calling "flash" in HA. I don't believe that's something that HA returns when you call effects, so I think the only way to do this is by saving it ourselves.

You're right. Got to have some more coffee :-)
Does HA return an attribute containing the state of the "flash" if you set it ?
Actually now that I think of it. This is always a one-off thing.

You're right. Got to have some more coffee :-)
Does HA return an attribute containing the state of the "flash" if you set it ?
Actually now that I think of it. This is always a one-off thing.

It is supposed to return the value of the last alert that was called, even if the alert has already passed. Perhaps a config entry?

It is supposed to return the value of the last alert that was called, even if the alert has already passed. Perhaps a config entry?

I'd say save it to the light config entry indeed.

I'd say save it to the light config entry indeed.

repo: hass-emulated-hue/core


text:
表記ゆれ指摘機能

表記統合辞書を利用して、表記ゆれを指摘する機能を実装する。
https://www2.ninjal.ac.jp/lrc/index.php?��ɽ�����缭����
たとえば、「組み立て」と「組立」の表記がメモに含まれていた場合に指摘する。
kuromojin による形態素解析が必要となる。
npm ライブラリ名: textlint-rule-ja-no-orthographic-variants

https://www2.ninjal.ac.jp/lrc/index.php?��ɽ�����缭����/����ڤӻ��Ѿ���

https://www2.ninjal.ac.jp/lrc/index.php?��ɽ�����缭����/����ڤӻ��Ѿ���

textlint-rule-ja-htdic
kuromoji 必要

textlint-rule-ja-htdic
kuromoji 必要

https://github.com/hata6502/kohsei-san/commit/765594e238c58d721ae2989574e03634b69288a1

https://github.com/hata6502/kohsei-san/commit/765594e238c58d721ae2989574e03634b69288a1


text:
🛑 Git Server is down

In 3fa0565, Git Server (https://git.arash-hatami.ir) was down:

HTTP code: 504
Response time: 15634 ms

Resolved: Git Server is back up in ec0fe7c after 10 minutes.


text:
🛑 DNS Lookup is down

In 566b06e, DNS Lookup (https://dns.arash-hatami.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS Lookup is back up in 089eedb.


text:
Unable to parse compound with block

Python 3.9 and up can parse a compound with block:
$ cat test.py
from io import StringIO

with (StringIO() as a, StringIO() as b):
    a.write("I am a")
    b.write("I am b")
    print(a.getvalue())
    print(b.getvalue())

$ python3.9 -m test
I am a
I am b

But even when using python3.11 to run no_implicit_optional, it errors on that kind of expression.
$ python3.11 -m no_implicit_optional test.py
Calculating full-repo metadata...
Executing codemod...
Codemodding /Users/michaelsmith/test.py
Traceback (most recent call last):
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/base_parser.py", line 151, in _add_token
    plan = stack[-1].dfa.transitions[transition]
           ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: ReservedString(as)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/codemod/_cli.py", line 271, in _execute_transform
    input_tree = parse_module(
                 ^^^^^^^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/entrypoints.py", line 109, in parse_module
    result = _parse(
             ^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/entrypoints.py", line 56, in _parse
    return _pure_python_parse(
           ^^^^^^^^^^^^^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/entrypoints.py", line 89, in _pure_python_parse
    result = parser.parse()
             ^^^^^^^^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/base_parser.py", line 110, in parse
    self._add_token(token)
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/base_parser.py", line 186, in _add_token
    raise ParserSyntaxError(
libcst._exceptions.ParserSyntaxError: Syntax Error @ 3:18.
Incomplete input. Encountered 'as', but expected ')'.

with (StringIO() as a, StringIO() as b):
                 ^

Failed to codemod /Users/michaelsmith/test.py

Finished codemodding 1 files!
 - Transformed 0 files successfully.
 - Skipped 0 files.
 - Failed to codemod 1 files.
 - 0 warnings were generated.

This is a shortcoming of libcst, the library we use to obtain a concrete syntax tree. Could you try with setting export LIBCST_PARSER_TYPE=native?

Interesting. It errors at a different spot. This is consistent with 3.9, 10 and 11.
$ LIBCST_PARSER_TYPE=native python3.11 -m no_implicit_optional test.py
Calculating full-repo metadata...
Executing codemod...
Codemodding /Users/michaelsmith/test.py
Traceback (most recent call last):
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/codemod/_cli.py", line 271, in _execute_transform
    input_tree = parse_module(
                 ^^^^^^^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/entrypoints.py", line 109, in parse_module
    result = _parse(
             ^^^^^^^
  File "/Users/michaelsmith/.pyenv/versions/3.11.0/lib/python3.11/site-packages/libcst/_parser/entrypoints.py", line 55, in _parse
    return parse(source_str)
           ^^^^^^^^^^^^^^^^^
libcst._exceptions.ParserSyntaxError: Syntax Error @ 4:22.
parser error: error at 3:38: expected *

    a.write("I am a")
                     ^

Failed to codemod /Users/michaelsmith/test.py

Finished codemodding 1 files!
 - Transformed 0 files successfully.
 - Skipped 0 files.
 - Failed to codemod 1 files.
 - 0 warnings were generated.

Hmm, not sure about that. If you can create a version that's shareable, I'd report over at https://github.com/Instagram/LibCST/issues
Not much I can do within this repo, unfortunately.

authors: hauntsaninja kojiromike


text:
How to add ManyToMany in yaml file ?

didn't see how to add ArrayCollection of entities into the documentation ?
AppBundle\Entity\User:
    user{1..100}:
        username (unique): <username()>
        email (unique): <email()>
        # vouchers: ['@voucher<numberBetween(1, 100)>']

Zeemono\VoucherBundle\Entity\Voucher:
    voucher{1..200}:
        name: <text(255)>
        slug (unique): <sha256()>
        code (unique): <sha256()>
        cashAvailable: <numberBetween(1, 500)>
        cashReserved: <numberBetween(1, 10)>
        cashUsed: <numberBetween(1, 10)>
        active: <boolean(95)>
        createdAt: <dateTime()>
        updatedAt: <dateTime()>
        start: <dateTimeBetween('-1 month', 'now')>
        end: <dateTimeInInterval('now' , '+ 6 months')>
        plan: '@plan<numberBetween(1, 100)>'
        # users: ['@user<current()>']

users is ManyToMany relation with user entity. Don't know if array of user and array of vouchers in user entity is right way ?

With:
AppBundle\Entity\User:
    user{1..100}:
        vouchers: ['@voucher<numberBetween(1, 100)>']

what will happen is that the method addVoucher(s) with a Voucher instance. So if you have proper adders on both side it should work.
That said, there is a known bug in alice (cf. https://github.com/nelmio/alice/issues/257). This bug is partly fixed in AliceBundle if you separate your fixtures by files (i.e. in your case, 1 file for your User and another one for Voucher).

Closing as you have your answer, feel free to open a new issue if there's still a problem.

If we consider above example, user_voucher table will insert 100 entries only. These entries will have following types of entries:
User 1 => Voucher 1
User 2 => Voucher 1
User 3 => Voucher 2 and so on..
This means multiple users can have 1 voucher.
But, how do I achieve following:
User 10 => Voucher 12
User 10 => Voucher 13
User 10 => Voucher 14 and so on..
That means how do I achieve multiple vouchers for 1 user?

authors: RomainMarecat tejasnavghane theofidry

repo: hautelook/AliceBundle


text:
Move functional tests to keep with best practices

Related Issue:
https://github.com/hautelook/AliceBundle/issues/127
Summary
Renamed SymfonyApp to Functional to keep with best practices

Cheers


text:
Bug + docs for extensions

Add list of extensions to README, and also fix minor type bug in extension default value

Well, it is true that extensions aren't consistently treated across the code:

The current source treats it as an array in one place, and as a dictionary elsewhere (three places, including the two you change in your patch).
The sample uses an array as input

This patch does not make the usage consistent, but it moves the code towards treating extensions as an array. I'm not really for that. Node-openid shouldn't care, really; as long as it can iterate across extensions, it does not matter if it is an array or an object. Therefore, I would rather change the one place where it is actually treated as an array in the current sources.

Closing this due to a lack of response.

authors: bluesmoon havard

repo: havard/node-openid


text:
Buttons in the editor view are blocked by the system's title bar

Search first

[X] I searched and no similar issues were found

What Happened?
The buttons in the editor view are blocked by the system's title bar. You can see it, but you can only click on the bottom half of the button.
Reproduce the Bug

Open the editor view
Try to click button such as 'Line'

Screenshots
No response
Environment Information
macOS 13.5.1
logseq 0.9.15
plugin 1.4.0
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.

[ ] I'm willing to submit a PR (Thank you!)

This issue needs to be addressed by logseq, I have already raised an issuehttps://github.com/logseq/logseq/issues/10043 for it.

authors: haydenull ppggff

repo: haydenull/logseq-plugin-excalidraw


text:
Additional cleanup of SyntheticTest

Removed the generics warning. Newline stuff. Single-letter variable names.

PR is updated and tested locally with Hazelcast 3.4, everything seems to work.
Timestamp                      Ops (sum)        Ops (delta)                Ops/s Number of tests
------------------------------------------------------------------------------------------------
[23/01/2015 10:10:58]              0 ops              0 ops           0.00 ops/s               0
[23/01/2015 10:11:03]              0 ops              0 ops           0.00 ops/s               1
[23/01/2015 10:11:08]              0 ops              0 ops           0.00 ops/s               1
[23/01/2015 10:11:13]         20,000 ops         20,000 ops       3,992.81 ops/s               1
[23/01/2015 10:11:18]         30,000 ops         10,000 ops       1,999.60 ops/s               1
[23/01/2015 10:11:23]         40,000 ops         10,000 ops       1,999.60 ops/s               1
[23/01/2015 10:11:28]         55,000 ops         15,000 ops       2,999.40 ops/s               1
[23/01/2015 10:11:33]         70,000 ops         15,000 ops       2,999.40 ops/s               1
[23/01/2015 10:11:38]         80,000 ops         10,000 ops       1,999.60 ops/s               1
[23/01/2015 10:11:43]         90,933 ops         10,933 ops       2,185.73 ops/s               1
[23/01/2015 10:11:48]         90,933 ops              0 ops           0.00 ops/s               1
[23/01/2015 10:11:53]         90,933 ops              0 ops           0.00 ops/s               1

What is the added value of this PR? I see changes, but I don't see added value.

It's removing warnings in IntelliJ, fixes a potential bug with the Math.abs() on Long.MIN_VALUE and improves a bit readability of single-letter variables.

In addition, you put on my agenda to use this test as base class for a "Hogging Partition Thread" feature test, so I want it so be as clean as possible before I add new stuff or copy it. It's just my usual "cleanup everything which is a warning or hard to read" before adding something new, which I do while reading and understanding existing code.

I understand and I appreciate it.
However some things are questionable, like Future only cause code noise. It increases the number of characters I need to digest without adding any form of information.

authors: Donnerbart pveentjer

repo: hazelcast/hazelcast-stabilizer


text:
cant find module

Cannot find module 'D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\bower_components\ember\ember-template-compiler.js'
Error: Cannot find module 'D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\bower_components\ember\ember-template-compiler.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Class.htmlbarsOptions (D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\node_modules\ember-cli-emoji\node_modules\ember-cli-htmlbars\ember-addon-main.js:78:25)
at Object.toTree (D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\node_modules\ember-cli-emoji\node_modules\ember-cli-htmlbars\ember-addon-main.js:31:36)
at D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\node_modules\ember-cli-preprocess-registry\preprocessors.js:180:26
at Array.forEach (native)
at processPlugins (D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\node_modules\ember-cli-preprocess-registry\preprocessors.js:178:11)
at module.exports.preprocessTemplates (D:\cahyo\lumbung-komunitas\lumbung-komunitas-web\node_modules\ember-cli-preprocess-registry\preprocessors.js:161:10)

same here

authors: PowerP cahyowhy


text:
Fixed formatting on duration and added trim props

This fixes the formatting when using duration and durationfromnow. It also gives the ability to choose whether we want the format to be trimmed or not.

Coverage increased (+0.3%) to 80.645% when pulling 88014775b3ca641e082a71b96c3415335e0d399a on arome:fix-duration-format into 714e42fe4191256522fd3cce3f355fe57016df80 on headzoo:master.

authors: arome coveralls

repo: headzoo/react-moment


text:
[todo] Add Middleware/Plugin Support

It would be nice if Surf had a built in mechanism for middleware/plugins. It would be nice if developers could set plugin modules that perform common tasks and/or add functionality. For example:

OAuth support
Logging into popular sites (Github, Reddit, GMail, etc)

Possible syntax:
// GithubLogin implements a Surf plugin for Github authentication.
// When requests are made to the github.com domain, the plugin
// performs user authentication automatically if the user isn't
// logged in already.
type GithubLogin struct {
	username string
	password string
}

... implement methods

func main() {
	bow := NewBrowser()

	login := middleware.NewGithubLogin("username", "password")
	bow.AddMiddleWare(login)

	err := bow.Open("https://github.com")
	if err != nil {
		panic(err)
	}
}

Thoughts on using something like https://github.com/f2prateek/train? If #39 gets merged this would already be possible :)

repo: headzoo/surf


text:
--dns , reduce dns line, DomainDnsZone.... can be removed

--dns , reduce dns line, DomainDnsZone.... can be removed

Done

repo: hegusung/netscan


text:
Accept placement on directive object

What kind of change does this PR introduce?:
Allow setting placement property from directive configuration object
Did you add tests for your changes?:
Yes
Summary:
Get placement property from directive modifiers, if not found look on configuration object for it
Does this PR introduce a breaking change?:
No, everything worked before, works now
Other:

Thank you for your contribution, the change has been merged!

authors: VictorBalbo hekigan

repo: hekigan/vue-directive-tooltip