text:
ImportError: No module named tabulate

I am using the AMI link provided in deepwater and trying to build the package based on it.
When I build h20-3 using ./gradlew build -x test
I get following error
`Traceback (most recent call last):
File "setup.py", line 6, in
import h2o
File "/home/ubuntu/h2o-3/h2o-py/h2o/init.py", line 11, in
from h2o.h2o import (connect, init, api, connection,
File "/home/ubuntu/h2o-3/h2o-py/h2o/h2o.py", line 14, in
from h2o.backend import H2OConnection
File "/home/ubuntu/h2o-3/h2o-py/h2o/backend/init.py", line 42, in
from .cluster import H2OCluster
File "/home/ubuntu/h2o-3/h2o-py/h2o/backend/cluster.py", line 10, in
from h2o.display import H2ODisplay
File "/home/ubuntu/h2o-3/h2o-py/h2o/display.py", line 10, in
import tabulate
ImportError: No module named tabulate
:h2o-py:buildDist FAILED
:h2o-py:buildDist took 1.47 secs
FAILURE: Build failed with an exception.
`

you have to install all required packages for h2o-3 first:
(sudo) pip install -r h2o-py/requirements.txt


text:
[FEATURE] Add additional digit of precision for specifying learning rate and other parameters

🚀 Feature
It would be helpful to be able to specify learning rate and other parameters with 7 decimal digits, (i.e. 1e-7), rather than the current 6.
Motivation
When getting down to final fine-tuning of models, I find that at being able to adjust learning rate in steps of 5e-7 or less can be helpful to get the best results. However, the current UX only allows steps of 1e-6. Currently I make changes to the code itself to allow the exact step I want, but this requires a code change for every model run rather than being able to do this through the UI.

Thanks for raising this issue again. Wave now supports up to 1e-20 as values for the spinbox, so should be straight forward to allow lower values in H2O LLM Studio.
ref: https://github.com/h2oai/wave/issues/1525

source: gharchive/issue

authors: pascal-pfeiffer tmostak

license_type: permissive

license_source: github-api


text:
Won't compile when CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED is defined

Un-comment // #define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED in nimconfig.h to repro
--
/Users/davidlao/Arduino/libraries/NimBLE-Arduino/src/NimBLEClient.cpp:533:44: error: return type 'class NimBLEConnInfo' is incomplete
533 | NimBLEConnInfo NimBLEClient::getConnInfo() const {
|                                            ^~~~~

Not sure if it makes a difference, it was with ESP32C3 compiler

This has been fixed in #801 and a new release will be published soon.

Thanks for the quick fix!


text:
cleanup warnings

This addresses the problems in #209 and #207 which were due to versions of crates that were specified at the 0.x level when various features were actually introduced in 0.x.y.
E.g.

the and_utc() method was introduced in chrono 0.4.25
the IntoUrl trait was implemented on String in reqwest 0.11.2
env_filter requires regex >=1.3.0 (because the perf feature was added in that version)
tungstenite and tokio-tungstenite require thiserror ^1.0.23
tokio-util requires tokio 1.28
tokio-tungstenite required log 0.4.8 and futures-util 0.3.28
etc.

Commits:

Update minimal crate versions
Reapply "fix: cleanup warnings"

Could you resolve a conflict of Cargo.toml?

Could you resolve a conflict with Cargo.toml?

Done :)

source: gharchive/pull-request


text:
网络问题导致的安装包无法下载，该如何解决？

安装包无法成功下载
$ scoop install irfanview
Installing 'irfanview' (4.53) [64bit]
Starting download with aria2 ...
Download: [DL:0B][#54d2da 0B/0B][#ff5c5e 0B/0B]
Download: [DL:0B][#54d2da 0B/0B][#ff5c5e 0B/0B]
.
.
Download: [DL:0B][#54d2da 0B/0B][#ff5c5e 0B/0B]
ERROR Download failed! (Error 1) An unknown error occurred
ERROR https://www.irfanview.info/files/iview453_x64.zip

iview453_x64.zip 下载不了，问题在于我可以利用浏览器插件通过浏览器下载该zip，
我在想能否配置scoop从本地电脑（或其他位置）获取该zip，而不是通过 https://www.irfanview.info/files/iview453_x64.zip

可以手动下载文件，重命名为 Scoop 指定的格式 irfanview#4.53#https_www.irfanview.info_files_iview453_x64.zip 然后扔进 cache。

@fandean 你配置了scoop代理没有

sorry过了这么久才回复
今天尝试了一下 @kidonng 介绍的方法，但是在使用 scoop install irfanview 安装时，下载的文件名为
irfanview#4.53#https_www.irfanview.info_files_iview453_plugins_x64.zip
该压缩包中还包含了 plugins，大小有 22MB ，而 irfanview#4.53#https_www.irfanview.info_files_iview453_x64.zip 只有 3MB；幸运的是这次在没有设置任何代理的情况下下载成功了。

@zhoujin7 当前我只能通过浏览器可以科学上网；不过为 scoop 配置代理这件事还是愿闻其详。

https://scoop-docs.now.sh/docs/misc/Using-Scoop-behind-a-proxy.html

谢谢

authors: fandean kidonng zhoujin7

license: unlicense

license_source: bigquery


text:
Problem with CerboGX

Cant start the adapter on CerboGX with connected Multiplus ll .
Solarsystem is SE12K with no other modbus connection open.
$/data/dbus-solaredge# python /data/dbus-solaredge/dbus-solaredge.py
2022-06-27 21:27:30,750 - DbusSolarEdge - INFO - Startup, trying connection to Modbus-Server: ModbusTCP 192.168.178.11:1502, UNIT 126
2022-06-27 21:27:30,770 - DbusSolarEdge - INFO - Connected to Modbus Server.
2022-06-27 21:27:30,799 - root - INFO - registered ourselves on D-Bus as com.victronenergy.grid.grid_id00
Traceback (most recent call last):
File "/data/dbus-solaredge/dbus-solaredge.py", line 326, in
dbusservice['grid']           = new_service(base, 'grid',           'grid',              0, 0)
File "/data/dbus-solaredge/dbus-solaredge.py", line 208, in new_service
log.error('regs.isError: '+regs)
TypeError: can only concatenate str (not "ModbusIOException") to str

I had the same issue and as q quick hack I am able to run the application by removing the 'regs' from the log.error message.
It is probably somehow possible to get the regs.errorMessage or something similar from this ModbusIOException.

This should be fixed with the latest commit.

license: MIT


text:
v1.0.0 roadmap

Hi guys,
server-configs-node is aging and offers features like style and javascript processing that may be out of scope. I would like to propose a full clean rewrite that only reflects other server configs.
This project is a little different than other server-configs-* projects since it's a server. But the community is already using existing libraries like express to create servers. So I think we should only propose a universal middleware that would work in any context, instead of a server.
We could officially support most used libraries by default (express, builtin, others?).
This rewrite would aim the 1.0.0 release and freeze the api to a single function taking options (like any middleware). A migration guide would be provided for users that want to upgrade and keep existing style and javascript processing.
The current legacy version would be supported in a separated branch.
@h5bp/owners @h5bp/server-configs What do you think? Do you have any feedback on this?
Thanks!

Hey @ngryman!
I came here for Google's recommendation: https://developers.google.com/speed/docs/insights/EnableCompression
Is this middleware still good to use? I see the dependency status is insecure and the devDependency status is out of date.

Hey,
TBH this repo has not been maintained for a while. There are a bunch of middlewares out there that could fulfill your needs. For example, if you need compression: https://github.com/expressjs/compression.

Thanks @ngryman!

@ngryman You've been the most active in this repo, and while I would love to spend time refactoring this project, my current professional situation is too time consuming. I say that if you have the time, the changes you proposed are great.

authors: EzraLopez ngryman xonecas

license: mit


text:
[vendor] add kubernetes code-generator

This commits adds code-generator in the vendor, this will help the user
to run make codegen without having to setup k8s.io/code-generator
in their GOPATH. Also save us from pulling this repo during e2e tests
run in CircleCI.
Fixes https://github.com/habitat-sh/habitat-operator/issues/330

The version of codegen we use is based on the latest supported version of kubernetes. We don't regenerate code for older ones.

@indradhanush we have pin pointed the version that is compatible with the code we have in Gopkg.toml, so developer need not have to do any checkouts.

Thanks for clarifying! :+1:

authors: indradhanush krnowak surajssd

repo: habitat-sh/habitat-operator


text:
Database write error

Command Ran
>>> import twint
>>> c = twint.Config()
>>> c.Database = '/path/to/database.db'
>>> c.Search = '#search_term'
>>> c.Limit = 20
>>> twint.run.Search(c)

Description of Issue
When I run the above commands, the db write operation fails with:
Traceback (most recent call last):
  File "<pyshell#49>", line 1, in <module>
    twint.run.Search(c)
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", line 25, in Search
    run(search.Search(config).main())
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/run.py", line 5, in run
    get_event_loop().run_until_complete(x)
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/search.py", line 60, in main
    await self.tweets()
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/search.py", line 37, in tweets
    await output.Tweets(tweet, "", self.config, self.conn)
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/output.py", line 44, in Tweets
    db.tweets(conn, tweet)
  File "/anaconda3/envs/twitter_scrape/lib/python3.6/site-packages/twint/db.py", line 198, in tweets
    cursor.execute('INSERT INTO tweets VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', entry)
sqlite3.OperationalError: table tweets has 17 columns but 16 values were supplied

Environment Details
Im running OSX 10.13.3 and using IDLE to run twint.

The bug is resolved, did you update the pip package?
pip install --upgrade twint

repo: haccer/twint


text:
Clean and refactor

See commit messages for details

r @yoninachmany @rachelhongca

Can you just explain motivation for changing to concurrent map struct? Thanks.

@yoninachmany I didn't like that the executer itself contained the Mutex. It's more idiomatic to make a custom map which contains a Mutex.
For example, why should the executer itself be "locked" when we just want to read from it's map. It's better to just lock the map itself.

@yoninachmany can you look at the changes I've made since you reviewed?
@rachelhongca can you give this a look?

Can you explain the change from w.Write to io.WriteString? Other than that, lgtm.

(y)

authors: rachelhongca sandlerben yoninachmany


text:
New feature: delete a gist

Should we support deleting a gist from client?

fixed:https://github.com/hackjutsu/Lepton/commit/26917a065903820785adde1c5a5ff916145aecdc

repo: hackjutsu/Lepton


text:
Sorting events by closer

Description
Sorting the events from closer to further away. This reverts PR #4; now, by default, the site displays only future events.
Related Issues
None
Some questions

[X] I read the contributing guidelines
[ ] I'm adding a new event/footer link
[ ] I'm editing an existing event/footer link
[X] I'm adding a new feature/fixing a bug

Already done in #b56cbbde7758fb2e046ab0c39f45c2c1558f9fec .

authors: AlbertSuarez felixarpa


text:
v0.5.0: Missing Parameters & Twemoji 14.1.2

This PR focuses on cleaning up the interface a bit, improving (existing) documentation, adding missing params & upgrading to the newest twemoji version
TODO:

[ ]  Update Documentation
[ ] Upgrade Twemoji to https://github.com/jdecked/twemoji/releases/tag/v14.1.2
[ ] Add missing params (textAlign, textScaleFactor (!!))in TwemojiText

I'll reopen this PR in my fork

repo: hadi-codes/twemoji


text:
Improve fill holes example

Currently, on the open3d-vedo-conversion branch, in the demo notebook, there is example code for fill holes:
surface = vedo_points_to_convex_hull_surface(points_layer.data)
faces_del = np.delete(surface[1], np.random.randint(0, surface[1].shape[0], 10), axis=0)
viewer.add_surface((surface[0], faces_del), name='Surface with hole')

and
hide_all(viewer)
viewer.add_surface(vedo_fill_holes((surface[0], faces_del), size_limit=1000), name='Filled hole')
nbscreenshot(viewer)

I do not understand this example and the code. What is (surface[0], faces_del)? Would it be possible to give this thing a name, by storing it in a variable? The three related screenshots look the same. We should improve this example. Maybe, it would be better suited to do that with a different dataset.
@jo-mueller I think you introduced this example and fill_holes. Would you mind taking a look? Thanks

Hi @haesleinhuepf ,
thanks for pointing it out, I have improved the example. What the code basically does is:

create a convex hull (it's just much easier to spot holes in the convex hull mesh rather than the raw mesh)
creates a copy of the faces part of the surface tuple (faces = surface[1]) and randomly removes some of the faces from the list of all faces to create a mesh with holes.
Adds a new surface tuple with missing faces (surface[0], faces_del) where faces_del is the copy of the list of faces with some of the entries deleted
Fixes the holes in the mesh with holes (surface[0], faces_del).

I have changed the example a bit so that the hole in the mesh is better visible and the code is cleaner. PR coming

authors: haesleinhuepf jo-mueller


text:
ParseDroid - DocumentBuilderFactory vulnerability

ParseDroid 취약점 관련

ex_tool중 apktool 해당됨
DocumentBuilderFactory vulnerability

https://research.checkpoint.com/parsedroid-targeting-android-development-research-community/
http://www.hahwul.com/2017/12/hacking-documentbuilderfactory-xxe.html

[Fixed]
update apktool in ex_tool directory.
commit : 857963df272154e9032cbb0b52e70048d347dc44

repo: hahwul/droid-hunter


text:
No face in preview

The main camera can see my face until I click play or try to generate previews. then it just disappears and I don't know how to fix it

I discovered that the cause of this was my avatar falling about a foot under its original location upon starting. how do I fix this?

update: I don't know what's going on anymore. The preview dummy is instantly 1 foot below it's original position in a falling pose when I click play, but when I click preview in scene, my avatar's center says it's where it's supposed to be, but the avatar itself is 20 feet above that location

The avatar going into a bicycle pose is normal, that's what also happens when we try to face expressions without CGE using the animation editor.
The camera normally should auto-parent itself to the preview dummy's head before the previewing starts.
Sometimes the preview will show no face under the following situations that I know of:

In EE Animation Editor window, if the "Preview animation in scene" button is green, then CGE becomes unable to generate previews properly, so that option should not be used at the same time as preview generation. The button "Preview animation in scene" is optional; it's put there as an extra option for flexibility, and should only be used to preview animations in very specific cases (i.e. animating the tails or wings of an avatar).
If the animation has 0 animated properties (a blank animation file), the preview will not generate anything usable.
As long as the Unity Animation window (not Expressions Editor) is in Play mode or Record mode, CGE becomes unable to generate previews properly.

By the way, if you prefer, there is a CGE Feedback Discord ( https://twitter.com/vr_hai/status/1383751429110734856 ).
My availability is limited so I won't be able to reply for long periods of time, so you can leave a message there or continue to post in this GitHub issue.

authors: hai-vr teknikalarkitekt


text:
Different scales for X/Y axes

For example, Super NES Classic Edition has a configuration to enlarge the screen to 4:3.

Probably we can have SetScreenAspectRatio API?

#2046 will enable this

repo: hajimehoshi/ebiten


text:
Add an article assessment extractor

Something like this:
Extracts article assessments from a Wikipedia XML dump.

Usage:
    extract_assessments <dumpfile>... [--extractor=<classpath>]

Since assessments appear on an article's talk page in English Wikipedia, this script would not be able to determine what revision of an article a particular assessment was applied to.  It would write a TSV of rows containing:

article_title -- The title of the assessed article
talk_page_id -- The page_id of the talk page where the assessment appeared
assessment -- The assessment class (e.g. Stub, Start, C, B, GA, A, FA)
index -- The nth assessment the article has received
start -- The timestamp of when the assessment started
end -- The timestamp of when the assessment ended

We'd need a post-processing script to be able to extract the revision ID that an assessment belongs to.  Something like this:
Looks up the relevant article revision for the start of an assessment.

Usage:
    lookup_assessments [--assessments=<path>] [--api=<url>]'

This would ultimately return the <rev_id>  pairs that  revscoring extract_features needs.

For the latter part, there's some code in /data/project/suggestbot/projects/improved-qualpred/clean-training-set.py on Tool Labs that you could look at. To improve the classifier, we walk through the talk page history to find when a specific assessment changed, and then find the associated article revision ID. My code's quite messy, though.

This now exists.  See http://pythonhosted.org/wikiclass/utilities.html#module-wikiclass.utilities.extract_labelings

authors: halfak nettrom

repo: halfak/wikiclass


text:
FR: highlight.js Theme

The code page of the docs mentions a custom theme for hightlight.js.
I noticed that the theme is loaded from here.
It would be nice if this could be included in Halfmoon somehow, possibly as an extra file.

I don't think it should be part of the main repository. But I might put it up in a separate one.

Sounds great. If you could publish it to NPM too, maybe as halfmoon-highlight that would be really useful.
If you want me to help somehow, I'd be happy to.

I've created a repo and published an NPM package. If you want, you could add it to the documentation.

authors: Jadie-Wadie halfmoonui

repo: halfmoonui/halfmoon


text:
Add failing test for sign in with multiple attrs

This is a failing test case to reproduce the error referenced in #54. We should close that issue in favor of this one.
Problem
The recommended implementation for sign in by email or username throws an error when looking up the User record.
Stack trace:
  1) User signs in with username or password
     Failure/Error: params.to_h

     TypeError:
       wrong element type String at 0 (expected array)
     # ./lib/monban/param_transformer.rb:25:in `to_h'
     # ./lib/monban/param_transformer.rb:25:in `sanitized_params'
     # ./lib/monban/param_transformer.rb:15:in `to_h'
     # ./lib/monban.rb:66:in `transform_params'
     # ./lib/monban/configuration.rb:57:in `block in default_find_method'
     # ./lib/monban.rb:90:in `lookup'
     # ./lib/monban/controller_helpers.rb:105:in `authenticate_session'
     # ./spec/rails_app/app/controllers/multiple_attributes_sessions_controller.rb:6:in `create'
     # ./lib/monban/back_door.rb:30:in `call'
     # ./spec/features/user/user_signs_in_spec.rb:25:in `block (2 levels) in <top (required)>'

@halogenandtoast The test passes on my local machine. Not sure what's going on - any ideas?

@graysonwright can you provide version numbers for your local setup:
Ruby/Rails/OS and anything else that might be relevant.

@halogenandtoast I think it's good to go.

@graysonwright can you just do a small write up about your solution. I assume the problem is that the params were being transformed twice. Was that the case?

@halogenandtoast As far as I can remember, yes - the params were being transformed twice.
It's been a while since I submitted this PR, and I've forgotten the exact details. But I remember that when the params were passed to the original default_find_method, they had already been transformed and were ready to submit directly to Model.find_by. Transforming them again broke the find_by call.

authors: graysonwright halogenandtoast

repo: halogenandtoast/monban


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 213 ms

Resolved: ClamAV performance has improved in 21df7db after 5 minutes.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 65 ms

Resolved: ClamAV performance has improved in f92400a.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 472 ms

Resolved: ClamAV performance has improved in 623f2a4.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 746 ms

Resolved: ClamAV performance has improved in 0e4d7f5.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 268 ms

Resolved: ClamAV performance has improved in fd5d58b.


text:
Upgrade serializable dependency with tests

upgraded serializable dependency
added a few tests for serializing merged variant collections that were failing before

This change is

Coverage remained the same at 88.789% when pulling 9ae091b2af6f25157df5688c014ca6c0e0145a55 on merged-serialization into 73f5d812e201ee77d10acf041ed746c485f03775 on master.

LGTM
Nothing that we should probably also try pickling individual instances of all the distinct effect classes.

authors: arahuja coveralls iskandr

repo: hammerlab/varcode


text:
Publishing Failure

Problem
https://github.com/hanabix/webot/actions/runs/7002573358
Reference

https://github.com/sbt/sbt-ci-release#my-build-suddenly-fails-with-info-gpg-no-default-secret-key-no-secret-key

Upload public key to http://pgp.mit.edu:11371/
 gpg --keyserver hkp://pgp.mit.edu --send-key $LONG_ID

repo: hanabix/webot


text:
Reorient and scale overlays

Please validate. This should correctly reslice overlay images to match background image. Consider the images:

background: LAS orientation, 2mm isotropic, FOV 182x218x182mm
overlay: IPL orientation, 2.36mm isotropic, FOV 159x187x151mm

@neurolabusc does the overlay appear translated left?
screenshot

I suggest you merge this PR. It seems pretty close. Perhaps there is a 0.5 voxel difference (I tried to compensate for voxel center versus texture edge). This will be easier to fine tune once other features are implemented (e.g. better control of opacity, contrast, and allowing the user to load custom files). I actually solved the equation the wrong way around (hence mat.mat4.invert(mtx, mtx);). I could either retain the current solution, change my solution, or retain the current solution without the inversion and change the shader. Regardless, this is pretty close and will allow us to resolve other issues.

NVM, when I pulled your branch down the images were different than what you listed in your commit, so that explains the slight difference I guess. Set it to LAS, and IPL and then it looked great.

niivue.prototype.setOpacity(volIdx, newOpacity) now accepts the volume index and the new opacity for each volume in the list. The sliders for the loaded images are independent now. You should also be able to reference this.volumes[idx].opacity when setting up the textures.
setOpacity is more for redrawing the canvas when a slider changes the value.

authors: hanayik neurolabusc

repo: hanayik/niivue


text:
Parallelization is realized using parallel gem

hi!
puppet-theatre is a very good product!
Since I need to run on so many hosts, I would like to add parallelization options.
I implemented it with parallel gem, but if there is any other way please suggest.
thanks.

https://travis-ci.org/hanazuki/puppet-theatre/builds/189374493
oh...

@pyama86 Thank you for the patch. It's definitely useful!
I want to keep supporting Ruby 2.0 for a while because it is the default installation of CentOS-7 (as we talked in Slack).

thank you!

repo: hanazuki/puppet-theatre


text:
安装不成功

您好，安装教程能在详细一点么？我按照docker分布式安装教程来5000端口始终访问不成功，
1、docker-compose.server.yml中mysql的账号密码、root密码可以更改么？
2、docker-compose -f docker-compose.server.yml up -d后5000端口也启起来了，但为什么浏览器访问报503错误，我还需要启动什么么？

3、最新releases中worker_linux_amd64.tar中不存在docker-compose.worker.yml，是要把nemo_linux_amd64.tar中的拷过去么？
4、非docker安装，疯狂报如下错误是什么原因

安装参考

就是按照这个来的，但是就是装不上


text:
Code on nuScenes dataset

Hi authors, thanks a lot for your excellent work!
Can you also release the code and pretrained weights on nuScenes dataset? It would be really helpful!

Thank you for your interest! We would be happy to release our code, but will release the pretrained weights after retraining our nuScenes models, as the settings in our current codebase has some changes (bring some improvements) for nuScenes dataset. It may take a few days (maybe next week). Stay tuned for updates!

Hi, @hancyran! Many thanks for the amazing work! I am checking in on the release status for the pre-trained weights on the nuScenes dataset. Do you have any updates on when we might expect them?

Sorry for the late reply. We are still working on this update. It may take more time than expected as we are trying to scaling up the training data. Will update as soon as possible. Thanks for your patience!

Hi, authors, thank you for your great job! @hancyran
As others said, if there are codes and pretrained weights on nuScenes, it would be very helpful !  Do you have a release plan?

authors: Kevin-Matrix alexbuburuzan hancyran yichen928

repo: hancyran/LiDAR-Diffusion


text:
How can I use the updateSettings() to change my table settings on React?

I am using a HandsonTable component in my component.
During my application process, I render a HandsonTable on a certain step. On this step, I enable the merge option by assigning [  'mergeCells' ] on contextMenu attribute of the component. After user makes changes on the table, the user can go to the next step. The next step has the same table with the updated value since it's the same component. Now in this step, I want to disable the mergeCells option and add a 'row_above', 'row_below' option.
I thought I had to use the updateSettings function like:
        this.updateSettings({
          contextMenu: ['row_above', 'row_below', 'mergeCells'],
        })

But this one says updateSettings is not a function.
I really want to know how this can be used in React and a clear example of how settings can be changed dynamically.
Thanks in advance.

Hi @whyjay17
it looks like the this doesn't correspond to the instance of Handsontable. Please check this demo https://codepen.io/anon/pen/ZRwNXZ?editors=0010
At 73-75 I define an instance of Handsontable
At 78-80 I change the contextMenu

@AMBudnik
Thanks for the great example. When I tried to incorporate into my code, it gives me a Target container is not a DOM element. error on the line const exampleComponent = ReactDOM.render(<ExampleComponent />, document.getElementById('example'));
I checked the id of my div, but the error appears.

Is there anything else I can do? I've already posted a demo in React for the updateSettings above. (It changes the context menu option list).

I believe that I can close the issue as there's more than a week without any additional questions.

repo: handsontable/react-handsontable


text:
能否提供一个配置定期清理过期的dubbo_invoke表的数据

当前这个表数据不停增长，最好提供一个配置进行定期删除。

手动改分表，或者定时清理吧。我用了这个也发现这个问题了，每天都好几万记录

repo: handuyishe/dubbo-monitor


text:
Merge pull request #1 from hankcs/master

同步库代码

注意事项

这次修改没有引入第三方类库。
也没有修改JDK版本号
所有文本都是UTF-8编码
代码风格一致
[ ] 我在此括号内输入x打钩，代表上述事项确认完毕。

解决了什么问题？带来了什么好处？

相关issue

同步

请不要搞错了同步方向！

repo: hankcs/HanLP


text:
Issue with convert_state.py

Hi all,
I'm trying to convert demonstrations for PickCube-v0 rgbd, with pd_ee_delta_pose controller. I followed the commands in scripts/example_demo_conversion/pick_place_single_object_envs.sh. The first command used to convert the controller space runs fine. The second command: python3 tools/convert_state.py --env-name PickCube-v0 --traj-name ../ManiSkill2-Learn/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose.h5 --json-name ../ManiSkill2-Learn/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose.json --output-name ../ManiSkill2-Learn/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose_rgbd.h5 --control-mode pd_ee_delta_pose --max-num-traj -1 --obs-mode rgbd --reward-mode dense returns the following error:
Traceback (most recent call last):
  File "tools/convert_state.py", line 244, in <module>
    main()
  File "tools/convert_state.py", line 227, in main
    convert_state_representation(keys, args, 0, os.getpid(), *extra_args)
  File "tools/convert_state.py", line 81, in convert_state_representation
    trajectory = GDict.from_hdf5(input_h5[key])
  File "/egrl/ManiSkill2-Learn/maniskill2_learn/utils/data/dict_array.py", line 325, in from_hdf5
    ret = load_hdf5(file, keys)
  File "/egrl/ManiSkill2-Learn/maniskill2_learn/utils/file/hdf5_utils.py", line 86, in load_hdf5
    ret = _load_hdf5(file, keys, only_one)
  File "/egrl/ManiSkill2-Learn/maniskill2_learn/utils/file/hdf5_utils.py", line 60, in _load_hdf5
    ret[key_value] = _load_hdf5(file[key], load_keys_i, only_one)
  File "/egrl/ManiSkill2-Learn/maniskill2_learn/utils/file/hdf5_utils.py", line 25, in _load_hdf5
    if keys[0].startswith("list"):
IndexError: list index out of range

If I print out the file and the file keys in _load_hdf5, it looks like the following files are being opened and the obs key object is an empty list (hence the error):
<HDF5 group "/traj_0" (4 members)> ['obs', 'actions', 'success', 'env_states']
<HDF5 group "/traj_0/obs" (0 members)> []

The first command does seem to run to completion, and it would make sense that the obs key has no members given that the saved state is "none"? I am saving the demos inside ManiSkill2-Learn/demos, and I am running this on a g4dn.xlarge ec2 instance. The h5py module is version 3.9.0, and I am using python 3.9. Please let me know if I am missing something simple - thank you!

This is caused by the fact that demo file is not found, since there is a typo in your command
The command should be
python3 tools/convert_state.py --env-name PickCube-v0 --traj-name ../ManiSkill2/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose.h5 --json-name ../ManiSkill2/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose.json --output-name ../ManiSkill2/demos/v0/rigid_body/PickCube-v0/trajectory.none.pd_ee_delta_pose_rgbd.h5 --control-mode pd_ee_delta_pose --max-num-traj -1 --obs-mode rgbd --reward-mode dense

I moved the demos folder into ManiSkill2 (same directory level as ManiSkill2-Learn). I then ran your updated command, but I get the same error. It looks like the file is loaded, but the "obs" key is an empty list (hence the index out of range error). Does the entire chain of commands (convert control, then convert observation) need to be run in ManiSkill2?

I've fixed it in the latest ManiSkill2-Learn commit.

I've fixed it in the latest ManiSkill2-Learn commit.


text:
Blacklist parameter to restrict forwarding to main

fixes #84
Changes are backwards compatible, but I'm open for suggestions. Maybe it's better to up major version instead of adding a new function.
@hardchor If you are ok with the implementation, I'll update the docs.

Lgtm 👍, couple of stray only's in your tests though that you might want to remove

@hardchor I've added a section in readme, but was not able to commit it due to several bugs in linting tools, so I have to update them.

@hardchor Sorry for bothering, will you have the time to look at it?

authors: sameoldmadness tomarrell

repo: hardchor/electron-redux


text:
[Feature Request] Calculate number of miles on separate sets of tires

If people have multiple sets of wheels or tires, this project could calculate the number of miles on separate sets of tires.
For example, I switch between summer and winter wheels, and want to know how may miles are on each set. I calculate it by manually entering the date and mileage, as seen here:

In 1.2.6 which will be released on 03/15/2024, there will be an enhancement for odometer records, you can tag the odometer records like so:

Notice there is a total distance traveled on the odometer record and that some of the records are tagged with "goodyear" and some are tagged with "cooper" you can probably tag it with wintertires or summer tires, alternatively you can also create an extra field like I did which allows me to enter the full tire name similar to your spreadsheet.
Now, if I sort it by tag "goodyear" :

Notice the total distance traveled has been updated to only show total distance traveled by records with the "goodyear" tag.
If you don't want to use tagging, you can also do a search like this:

Notice that "Tires" will refer to the name of the extra column/field you added, in this case it's tires but it can be whatever you want, and then "Cooper" just refers to the data in the column that contains the keyword "Cooper"

This is scheduled to be released 3/15 so it's not available yet.

Feature released 03/13/2024 in 1.2.6
Watch: https://youtu.be/x4xY-YQN-5w?si=vhDgYet8fmtNVL2m&t=195

authors: hargata samluyk

repo: hargata/lubelog


text:
aws secret key

The aws secret key is not necessarily alphanumeric. My suggestion is to remove the alphanum check, or go with the aws recommended regex. However, amazon says this is also subject to change.
From http://blogs.aws.amazon.com/security/blog/tag/key+rotation
"·  Search for access key IDs: (?<![A-Z0-9])[A-Z0-9]{20}(?![A-Z0-9]).  In English, this regular expression says: Find me 20-character, uppercase, alphanumeric strings that don’t have any uppercase, alphanumeric characters immediately before or after.
·  Search for secret access keys: (?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{40}(?![A-Za-z0-9/+=]).  In English, this regular expression says: Find me 40-character, base-64 strings that don’t have any base 64 characters immediately before or after."
"We can’t guarantee these regular expressions will work forever (we reserve the right to change the format of access key IDs and secret access keys) but they’re a start."

I've just updated the aws regex validation, thanks very much for pointing this out.

Thank you!
On Thu, Oct 8, 2015 at 4:50 AM, Hari Sekhon notifications@github.com
wrote:

Closed #7 https://github.com/harisekhon/lib/issues/7.
—
Reply to this email directly or view it on GitHub
https://github.com/harisekhon/lib/issues/7#event-430049272.

authors: harisekhon jwojcik

repo: harisekhon/lib


text:
Update harness-git-ops-application-set-tutorial.md

I was asked to add an explanation of wave deployments to the PR Pipeline doc by Cat Palmer to support a blog article. Cat wants to ensure that someone searching for "wave deployments" in our docs finds it discussed as part of GitOps. It belongs in the PR Pipeline topic as that the blog article discusses wave deployments in the GitOps context.
blog draft (not sure who wrote it): https://docs.google.com/document/d/1gUoabLk8bN3odoAN-dh_-6Wejcp6PNaeutTPvPPOgOY/edit
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ x] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

request by Cat Palmer

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-648

authors: bot-gitexp-user michaelcretzman

repo: harness/developer-hub


text:
Update continuous-delivery.md

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:

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

 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.

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://66cf20c9480a1a5a0dd379e5--harness-developer.netlify.app

authors: CLAassistant bot-gitexp-user vishal-av


text:
Refactor Evaluators to be more Readable and Maintainable

TICKET
https://harness.atlassian.net/browse/FFM-4690
WHAT
Refactor of top level evaluate flag function
WHY
When working on adding in percentage rollout logic for this ticket, I found it very difficult to add additional evaluation logic into the top level evaluate_flag function, as it was using hard to read and maintain "nested if" and "nested case" statements, as well as hard to reason about pattern matching. I have basically moved and simplified the conditional logic within new function clauses, which are far more readable and maintainable
TESTING
Unit tests pass
TestGrid pass (apart from expected failures on pre-reqs and custom rules

Closing as now stale. Raising new PR which integrates this work and other improvements from branch FFM-4688

repo: harness/ff-erlang-server-sdk


text:
fix: [pl-31762]: update harness-go-sdk to 0.3.20

Describe your changes
Due to a fix in harness-go-sdk for https://harness.atlassian.net/browse/PL-31762
need to update version of this lib
Comment Triggers

PR Check triggers

Build: trigger build
Sub Category Field Check: trigger subcategoryfieldcheck

on which env have we run secret tests?

preQA.
env doesn't matter actually. it's client side fix

repo: harness/terraform-provider-harness


text:
Create a build without it being modified or minified

Is there a way to create a build without having it be modified or minified?
thanks

Hi @diegodesouza sorry to only be responding now––this week has been hectic. There's absolutely a way: the solution lays in configuring Webpack though (it's not a Rescripts-specific solution). Your best bet is to check out the react-scripts config (which exports the object that Rescripts patches). You can modify this config however suits your needs. Please let me know if you need anything else 👍

authors: diegodesouza harrysolovay

repo: harrysolovay/rescripts


text:
ples open

harshgoel05 deploy where should we i dont understand pls clarify this doubt please

@theprogrammingking You can deploy it to Vercel


text:
2013/10/18/pku

北大 - 燕园情
http://harttle.land/2013/10/18/pku.html

不错
By eteplus (eteplus@163.com) 2015-09-02T12:42:08Z


text:
[FEATURE] Allow customization of TLS parameters

Is your feature request related to a problem? Please describe.
Currently, TLS parameters like ciphers and options (no-sslv3, etc), are not user-configurable during the installation of Harvester. This can cause issues in certain environments which require a specific set of ciphers, or which explicitly need to exclude deprecated and insecure versions like TLS 1.0.
Describe the solution you'd like
Make TLS parameters configurable from the Harvester deployment method. In the k3os version that could be achieved by using the configuration data passed on by config_url.

This relates to the ability to configure TLS options for the Harvester API HTTPS endpoint via the config-create.

Waiting for https://github.com/harvester/harvester/issues/761 so that we could configure TLS settings of Ingress, not rancher itself.

The PR for #761 is merged, will need to add a new setting of the TLS support, @johnliu55tw can please help to follow it, thanks.

Hi，@johnliu55tw. UI has merged the PR, you can use the latest UI to verify the issue.  If you have any problems, please let me know. thx

@n313893254 UI LGTM, I'll move this to ready for testing, thanks!

Please see https://github.com/harvester/harvester/pull/1615 for how to change SSL parameters.

Verified the feature will work as expected when the input is totally correct, otherwise, the dashboard will break and can't reach anymore.
For Protocols, UI lists as below, but actually in 2021, only TLSv1.2 and TLSv1.3 will work on modern browser.
(TLSv1.0 and TLSv1.1 has been deprecated in most browsers since 2020)

For Ciphers, It is just a input box to input anything without validation, although we expect users to edit this field carefully, but we even didn't notify user that ciphers should be separated by colon(:), not comma (,), or space.
Base on those reasons described above, I would tend to request some changes lists below:

remove deprecated protocols or add (deprecated) after the line
add a regex to validate cipher format, or change to use option list with all usable ciphers instead.
add some caveats in description or document for recovering.

Here is the sample validator

Steps for recovering from error configured ssl-parameters:

Login to one of the server node
Execute kubectl edit settings ssl-parameters
Modify the last line of value: '{....}' into value: '{}'

Test Information

Environment: qemu/KVM 3 nodes
Harvester Version: master-655c251a-head
ui-source Option: Auto

Verify Steps:

Install Harvester with any nodes
Navigate to Advanced Settings, then edit ssl-parameters
Select Protocols TLSv1.3, then save
execute command echo QUIT | openssl s_client -connect <VIP>:443 -tls1_2 | grep "Cipher is"
Output should contain error...SSL routines... and Cipher is (NONE)
execute command echo QUIT | openssl s_client -connect <VIP>:443 -tls1_3 | grep "Cipher is"
Output should contain Cipher is <one_of_TLS1_3_Ciphers>[^1] and should not contain error...SSL...
repeat Step 2, then select Protocols to TLSv1.2 only, and input Ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256
execute command echo QUIT | openssl s_client -connect <VIP>:443 -tls1_2 -cipher 'ECDHE-ECDSA-AES256-GCM-SHA384' | grep "Cipher is"
Output should contain error...SSL routines... and Cipher is (NONE)

[^1]: TLSv1.3 supported cipher suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256, TLS_AES_128_CCM_8_SHA256

As I tested, in the Step 8, 2 ciphers (ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256) are assigned, but latter cipher ECDHE-RSA-AES128-GCM-SHA256 will cause handshake failure, I'm not sure whether it is deprecated by nginx or should be a bug?
@guangbochen as we are going to release RC2 and current implementation already satisfy the original request, please check my concern in previous comment and move this issue to implement if we still have time to enhance it.

thanks @lanfon72, in regards to the above issues, I think it is better to add the following enhancement: cc @johnliu55tw @n313893254

add (deprecated) for those deprecated the TLS versions.
add a regex to validate cipher format
document the recovering steps on the https://docs.harvesterhci.io/v1.0/settings/settings/ page, thanks.

Added recovering steps for SSL parameters settings: https://github.com/harvester/docs/pull/84/commits/3308df179d8ee0187eff8962f9b2e209bbc746c0

@guangbochen, I think we should also mark SSL as deprecated.
SSLv2 has been deprecated in RFC6176, and SSLv3 in RFC7568; and both of them have security concern (CVE-2016-0800 and CVE-2014-3566)
@n313893254 would you mind to add an additional checker to make sure the (ciphers) line will not start with colon(:)? the regex didn't filter out the colon, so some input like :TLS_AES_128_GCM_SHA256 will pass the validator.

good catch, @n313893254 can u please help to add SSLv2 and SSLv3 as deprecated as well, thanks.

Tested in master-3d096946-head. Verified as fixed.
Test Steps

Created self signed cert using sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./harvester-selfsigned.key -out ./harvester-selfsigned.crt
uploaded certs to Harvester
Verified that new certs were showing up in browser

Is this also configurable through the harvester install configuration file? Or only in the UI?

this should be configurable via system_settings such like https://github.com/harvester/harvester/issues/761#issuecomment-993060101 did.

repo: harvester/harvester


text:
[BUG] Rancher UI stuck in Loading when provisioning by terraform with vm_affinity (JSON format text)

Describe the bug
Create RKE2 cluster via terraform-provider-rancher2 with vm_affinity configured (JSON format), The Config tab of the cluster will stuck in Loading...

To Reproduce
Steps to reproduce the behavior:

Install Harvester with any nodes which version great than v1.1-cff1d5b5-head (after v1.1.2-rc9)
Import Harvester into Rancher
Provision RKE2 use the similar way in https://github.com/rancher/terraform-provider-rancher2/issues/1009#issuecomment-1519566086 but configure vm_affinity as:

    vm_affinity = <<EOF
    {
      "nodeAffinity": {
        "requiredDuringSchedulingIgnoredDuringExecution": {
          "nodeSelectorTerms": [
            {
              "matchExpressions": [
                {
                  "key": "node-role.kubernetes.io/control-plane",
                  "operator": "In",
                  "values": [
                    "true"
                  ]
                }
              ]
            }
          ]
        }
      }
    }
    EOF

Expected behavior
UI should display correctly.
Environment:

Harvester ISO version: v1.1-cff1d5b5-head
ui-source Option: Auto
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): qemu/KVM 3 nodes
Rancher Version: v2.7.2

Additional context
Discovered in https://github.com/rancher/terraform-provider-rancher2/issues/1009#issuecomment-1519566086

Verified this bug has been fixed.

Test Information

Environment: qemu/KVM 2 nodes
Harvester Version: v1.2.0-rc2
ui-source Option: Auto
Rancher Version: v2.7-0bcf068e1237acafd4aca01385c7c6b432e22fd7-head (Docker Image: sha256:703286522a3ffb910bfecb2abf518ed698c145c91be2fe60e055342a817b15ac
terraform-provider-rancher2 Version: v3.0.1

Verify Steps

Follow Steps to reproduce in https://github.com/harvester/harvester/issues/3820#issue-1680952914


text:
Add initial Cypress Rancher Integration test cases

Purpose
Develop Cypress test for Harvester Rancher integration related test cases.
Plan to fulfill the requirement to automated basic regression and KDM release test.
Development Environment
The development based on the following SUT version and UI

Rancher version: v2.6.7
Harvester version: v1.0.3
Cypress version: 10.2

Prepare Test Environment
We can prepare the Rancher integration test environment in the following manner  to provision Harvester with Rancher,

Use vagrant ipxe-example pull request 45, set

harvester_network_config.offline: false
rancher_config.run_single_node_rancher: true
rancher_config.run_single_node_air_gapped_rancher: false

Create separate VMs, one for Harvester and another for Rancher, make sure the network connectivity
Install Harvester and Rancher on bare machines and ensure the connectivity

About Rancher First Time Login
Please be noted
In every test, while login Rancher, it will automatically check whether it's the first time login
The test function rancher.rancherLogin() support bootstrap login in the following scenarios.

Use vagrant ipxe-example to prepare Harvester and Rancher and install sshpass on your local test runner environment
You can also use regular VM or bare machine while you already setup the following

ssh root permission to Rancher host VM or bare machine
Install sshpass on your local test runner environment

If your environment did not fulfill above requirement, we would suggest you finishing the Rancher bootstrap on your own before running the rancher integration test
Cypress setup

Execute npm install
Execute npm ci
Rename cypress.env.json.example to cypress.env.json file, update and add the following content

"username": "admin",
"password": "passwdpasswd",
"baseUrl": "https://192.168.122.149",
"rancherUrl": "https://192.168.122.224",
"rancher_user": "admin",
"rancher_password": "passwdpasswd",
"rancher_vm_user": "vagrant",
"rancher_vm_password": "vagrant",
 "vagrant_pxe_path": "../ipxe-examples/vagrant-pxe-harvester",

Check test data
You can check and modify all related rancher integration test data in ../cypress/fixtures/rancher.json
The test data here is suitable for Rancher v2.6.7 along with the current KDM release version
Please be noted, on new KDM release, you may need to update these value accordingly.
    "rke2_latest": "1.24.4",
    "rke2_stable": "1.23.10",
    "k3s_latest": "1.24.4",
    "k3s_stable": "1.23.10",
    "rke1_latest": "1.24.4",
    "rke1_stable": "1.23.10",

And also need to check the image and ssh user name to fulfill what you used in the Prepare Harvester Image and Prepare Harvester VLAN network test case, here I use focal-server and default vlan1
    "image": "focal-server",
    "network_name": "default/vlan1",
    "ssh_user": "ubuntu",

I use ubuntu 20.04 cloud focal by settings the image name and url in  cypress.env.json
"image":
  {
    "name": "openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso",
    "url": "https://download.opensuse.org/distribution/leap/15.3/iso/openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso"
  }

Execute Test case
Execute npx cypress open or npx cypress run for the test
Test case list

Prepare Harvester Image (On Harvester)
Prepare Harvester VLAN network (On Harvester)
Rancher import Harvester
Harvester import Rancher (On Harvester)
Check Harvester Cluster Status (On Rancher)
Create Cloud Credential
Provisiong RKE2 Cluster
Check RKE2 Cluster Status
Provisiong K3s Cluster
Check K3s Cluster Status
Verify RKE2 CSI driver
Verify RKE2 Cloud Provider
Verify RKE2 DHDP Load Balancer
Create Harvester VIP Pool (On Harvester)
Create RKE2 Pool Load Balancer
Delete Active RKE2 Cluster
Delete Active K3s Cluster
Delete Cloud Credential
Delete imported Harveter cluster

Recommended group of tests

Complete test flow from test 1 to 19, can fulfill from import Harvester, create credential, provisioning RKE2 and K3s cluster, CSI driver, cloud provider and finally cleanup environment to ensure can rerun every time.
Run test 1 to 6 to prepare an imported Harvester ready for more test
Run test 7, 8, 11, 12, 13 ,14, 15, 16, 18, 19, to verify cloud provider and csi driver on RKE2 cluster and cleanup environment
Run cleanup from test 16 to 19 to cleanup the current the environment

Validation before commit

Rancher import Harvester

Harvester import Rancher (On Harvester)

Check Harvester Cluster Status (On Rancher)

Create Cloud Credential

Provisiong RKE2 Cluster

Check RKE2 Cluster Status

Verify RKE2 CSI driver

Verify RKE2 Cloud Provider

Verify RKE2 DHDP Load Balancer

Create Harvester VIP Pool

Create RKE2 Pool Load Balancer

Delete Active RKE2 Cluster

Delete Cloud Credential

Delete imported Harvester cluster

@TachunLin I tried to run these tests and after getting the setup running I got this error when trying to run the rancher_integration.spec.ts with npx cypress run -s testcases/rancher/rancher_integration.spec.ts
  1) Rancher Integration Test
       Rancher import Harvester:
     CypressError: `cy.exec('sshpass -p $VM_PASSWORD ssh $VM_USER@$VM_IP -t "docker ps --format {{.ID}} | xargs docker logs 2>&1 | grep 'Bootstrap Password:' | sed 's/.*Password: //'"')` failed because the command exited with a non-zero code.

Pass `{failOnNonZeroExit: false}` to ignore exit code failures.

Information about the failure:
Code: 6

Stderr:
Pseudo-terminal will not be allocated because stdin is not a terminal.

https://on.cypress.io/exec
      at https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:154919:85
      at tryCatcher (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:13012:23)
      at Promise._settlePromiseFromHandler (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:10947:31)
      at Promise._settlePromise (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:11004:18)
      at Promise._settlePromise0 (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:11049:10)
      at Promise._settlePromises (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:11129:18)
      at _drainQueueStep (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:7719:12)
      at _drainQueue (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:7712:9)
      at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:7728:5)
      at Async.drainQueues (https://rancher-vagrant-vm.local/__cypress/runner/cypress_runner.js:7598:14)
  From Your Spec Code:
      at rancherPage.firstTimeLogin (https://rancher-vagrant-vm.local/__cypress/tests?p=testcases/rancher/rancher_integration.spec.ts:501:12)
      at Context.eval (https://rancher-vagrant-vm.local/__cypress/tests?p=testcases/rancher/rancher_integration.spec.ts:533:22)

@noahgildersleeve, thank you for checking and remind me for the rancher bootstrap login
Currently we can utilize rancher first time login in the following environment

Use ipxe-example vagrant install Rancher and Harvester as stated in https://github.com/harvester/ipxe-examples/pull/45
Setup Rancher and Harvester on separate VM or bare machines

When using ipxe-example to setup environment, we can simply specify user vagrant with password vagrant in the cypress.env.json
  ...
  "rancher_vm_user": "vagrant",
  "rancher_vm_password": "vagrant",

If the Rancher built on VM or bare machine, we need to enable root ssh login to rancher host environment and set the username password as the following:

Enable ssh service on Rancher VM or host machine
Allow SSH login for root user (Take Ubuntu 20.04 for example)

davidtclin@ubuntu-clean:~$ sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
davidtclin@ubuntu-clean:~$ sudo systemctl restart ssh
davidtclin@ubuntu-clean:~$ sudo passwd
New password:
Retype new password:
passwd: password updated successfully

Check the Rancher VM username and password on rancher_vm_user , rancher_vm_password in cypress.env.json
It require using root username and password to actually docker exec interact with rancher container

  "baseUrl": "https://192.168.122.149",
  "rancherUrl": "https://192.168.122.230",
  "rancher_user": "admin",
  "rancher_password": "passwdpasswd",
  "rancher_vm_user": "root",
  "rancher_vm_password": "passwd",

I setup a brand new Ubuntu 20.04 VM with Rancher v2.6.8 to validate the rancher bootstrap login on regular VM
After grant root ssh permission and set the root username, password
Then rerun the single Rancher import Harvester test could get the bootstrap password and login Rancher

And check the basic import Rancher import Harvester flow

I tested this locally. To get it running you needed to change the it.only block on the rancher integration tests. That will cause only the import to run. I tried it running as the vagrant user and got this

I also tried it as root with the associated changes and got this

I saw something similar when trying to run it with cypress open The tab ended up crashing.

@noahgildersleeve , thanks for checking the updated commit, it remind me to test the whole suite in command run mode
In the beginning, I encounter the same failure as your attempts, cypress runner stop and prompt
Chromium Renderer process just crashed
I tried using --browser chrome but still can't improve.
Then I add the adding --disable-dev-shm-usage for chrome: in cypress/plugins/index.js provided in
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/2168#note_190617588

And update Cypress version from 10.3 to 10.8
I found adding these setting make the execution less crash.
And I notice there is an logic error while determine the RKE1 and RKE2/K3s status which cause the provisioning cluster failure if we start it from the scratch.
Also I found we can't use the default openSUSE-Leap-15.3-3-DVD-x86_64-Build38.1-Media.iso in cypress.env.json
Since in Rancher guest cluster creation page, it can't recognize the iso image type.
The original openSUSE DVD will cause too many time downloading image, which increase the resource usage of cypress test
Thus I change it to ubuntu image instead to ensure faster and re-downloadable for repeated trials
But I still encounter error like AssertionError: Timed out retrying after 60000ms: Expected to find element: .title, but never found it.

Under further investigation, I found too frequently login could be possible been rejected by Rancher
Thus I add some wait action to prevent unexpected login rejection

Then I could use cypress open to complete all tests from scratch (brand new rancher instance)

Also using cypress run to complete all tests

And clean up the only tag on each test

Hi @noahgildersleeve, @WuJun2016
I have checked and updated all rancher integration test suite on Rancher v2.7.0-rc11 with Harvester v1.1.1-rc1
Verified can completely finish all RKE2 related test suite from scratch and also checked the K3s test suits

Please help to check when you are available. Thank you.

@WuJun2016 , @n313893254
Many thanks for your detailed check and instruction.
I made the following changes for enhancement:

Rebase with v1.1.1 and use the new Harvester function for prepare image and create vlan
Remove the unused import and function
Handle the popup confirm window of cluster registration in Harvester
Fix some stability issue
Use  LabeledSelectPo to precisely handle dropdown menu selection

And tested on Rancher v2.7.0 with Harvester v1.1.1-rc2
The entire Rancher integration test suite can correctly and smoothly run to the end

Please help to check if I miss any, thank you.

Also update the provisioning k3s cluster using the same LabeledSelectPo  manner
And change the k3s_latest and rke2_latest in cypress/fixtures/rancher.json
Verified can complete all K3s test suite

@khushboo-rancher @TachunLin This PR will be needed for the UI team to continue the cypress multi-tenancy testing development, please help to prioritize it after the v1.2.0 release, thanks. cc @WuJun2016

Close this PR since some of the test cases already been created in https://github.com/harvester/tests/pull/907
For the rest of the test case, we would reference the content here and create new PR to realize them.

authors: TachunLin guangbochen noahgildersleeve

repo: harvester/tests


text:
Two metrics with the same name (accuracy)

When I run "B_DNN_Training" in Colab Notebook, it throws the following error:

ValueError                                Traceback (most recent call last)
 in ()
83 if latest!=None: #If previously there is a trained model with the same configuration will automatically continue the learning process
84     model.load_weights(latest)
---> 85 model.fit(np.transpose(D),train_labels_app, validation_split=0.25, batch_size=512, epochs=50, callbacks=[callbacks_list, tensorboard], shuffle=True)
86
87 print ("\nTraining time : ", time.time()-start, "seconds.")
9 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)
975           except Exception as e:  # pylint:disable=broad-except
976             if hasattr(e, "ag_error_metadata"):
--> 977               raise e.ag_error_metadata.to_exception(e)
978             else:
979               raise
ValueError: in user code:
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py:805 train_function  *
    return step_function(self, iterator)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py:795 step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
/usr/local/lib/python3.7/dist-packages/tensorflow/python/distribute/distribute_lib.py:1259 run
    return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/distribute/distribute_lib.py:2730 call_for_each_replica
    return self._call_for_each_replica(fn, args, kwargs)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/distribute/distribute_lib.py:3417 _call_for_each_replica
    return fn(*args, **kwargs)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py:788 run_step  **
    outputs = model.train_step(data)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py:758 train_step
    self.compiled_metrics.update_state(y, y_pred, sample_weight)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/compile_utils.py:387 update_state
    self.build(y_pred, y_true)
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/compile_utils.py:329 build
    self._set_metric_names()
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/compile_utils.py:349 _set_metric_names
    m._name))

ValueError: Found two metrics with the same name: Symbol_1_accuracy

First import accuracy metric,
from tensorflow.keras.metrics import Accuracy
Then change following line as given,
matriks.append("accuracy") ---> matriks.append(Accuracy(name="Accuracy" + str(active + 1)))
This resolved my problem.

That's because of the newer version of Tensorflow 2.4, you can downgrade to Tensorflow 2.1, or Tensorflow 2.0 as recomendation in my repository to resolve this issue.
Regarding the Tensorflow 2.4 bug, last week I made a report to Tensorflow as you can see here : https://github.com/tensorflow/tensorflow/issues/48690

That's because of the newer version of Tensorflow 2.4, you can downgrade to Tensorflow 2.1, or Tensorflow 2.0 as recomendation in my repository to resolve this issue.
Regarding the Tensorflow 2.4 bug, last week I made a report to Tensorflow as you can see here : tensorflow/tensorflow#48690
By the way, thank you for your issue. Based on your suggestion, now my program can work on Tensorflow 2.4

authors: burakozpoyraz hasanabs


text:
Bump 0.19.0

Description:
Bump version to 0.19.0 for GA release

Codecov Report
Patch and project coverage have no change.

Comparison is base (e6e3a74) 74.44% compared to head (7e793e2) 74.44%.

:exclamation: Current head 7e793e2 differs from pull request most recent head 4647d7e. Consider uploading reports for the commit 4647d7e to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##           release/0.19     #977   +/-   ##
=============================================
  Coverage         74.44%   74.44%
=============================================
  Files                28       28
  Lines              1890     1890
  Branches            355      355
=============================================
  Hits               1407     1407
  Misses              380      380
  Partials            103      103

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Hopefully will be the last bump that you will do manually 🤞

authors: AlfredoG87 codecov-commenter lukelee-sl

repo: hashgraph/hedera-json-rpc-relay


text:
Rarity/invalid response when 'value' property in attributes is different than strings

Description
The problem occurs when I use calculateRarity. I receive 'NaN' as totalRarity when my attributes have value property different than string.
Steps to reproduce
Place JSON files in a directory. Use calculateRarity with your directory location.
Directory content:
1.json
{
  "name": "Example NFT 1",
  "image": "ipfs://QmRUQdj6tRoGhctPUNEnVPLKB94mtuikynHtwofbvfJVz9",
  "description": "This is an example NFT 1",
  "creator": "Hedera",
  "type": "image/png",
  "format": "HIP412@2.0.0",
  "attributes": [{ "trait_type": "color", "display_type": "color", "value": "rgb(255,0,0)" }],
  "properties": { "external_url": "https://nft.com/mycollection/1", "url": "https://nft.com/mycollection/1" }
}

2.json
{
  "name": "Example NFT 2",
  "image": "ipfs://QmQpAy1kFJfPuWPNABDzZZzZDuxqMjkSzxjnvmNvZ7KAny",
  "description": "This is an example NFT 2",
  "creator": "Hedera",
  "type": "image/png",
  "format": "HIP412@2.0.0",
  "attributes": [
    { "trait_type": "color", "display_type": "color", "value": "rgb(255,0,0)" },
    { "trait_type": "hasPipe", "display_type": "boolean", "value": true }
  ],
  "properties": { "external_url": "https://nft.com/mycollection/2", "url": "https://nft.com/mycollection/2" }
}

3.json
{
  "name": "Example NFT 3",
  "image": "ipfs://QmQdjadyPyETfvGtwn73sfJyZC1tFv89r9ZYARTQ14bBCF",
  "description": "This is an example NFT 3",
  "creator": "Hedera",
  "type": "image/png",
  "format": "HIP412@2.0.0",
  "attributes": [
    { "trait_type": "color", "display_type": "color", "value": "rgb(0,0,255)" },
    { "trait_type": "stamina", "display_type": "percentage", "value": 75 }
  ],
  "properties": { "external_url": "https://nft.com/mycollection/3", "url": "https://nft.com/mycollection/3" }
}

Result:
[
  {
    attributeContributions: [ [Object] ],
    totalRarity: '1.00',
    NFT: 1,
    filename: '1.json'
  },
  {
    attributeContributions: [ [Object], [Object], [Object] ],
    totalRarity: 'NaN',
    NFT: 2,
    filename: '10.json'
  },
  {
    attributeContributions: [ [Object], [Object], [Object] ],
    totalRarity: 'NaN',
    NFT: 3,
    filename: '11.json'
  },
]

Additional context

Hedera network
mainnet, testnet, other
Version
@hashgraph/nft-utilities  2.1.5
Operating system
Windows

The HIP-412 specification describes that all regular values for attributes should be strings. The code does convert everything to strings. However, the bug here is that we are trying to calculate the rarity for all display types, which should be skipped in the calculation. I've opened a new PR that fixes this problem by not including them in the overall specification. These display types are usually used for games or aesthetics and don't influence overall rarity.
This PR should fix the issue: https://github.com/hashgraph/hedera-nft-utilities/pull/28

Closed by #28

Closed by #28

authors: kacper-koza-arianelabs michielmulders

repo: hashgraph/hedera-nft-utilities


text:
change topic number to topicID

change topic number to topicID in protobuf
https://github.com/hashgraph/hedera-services/issues/7104

There are exactly two ID values in state prior to this PR, both are id.
The ID values in the public transaction protobufs often refer to an object other than the current, or are expanded to be clearer when translated to other languages (e.g. typescript where id can be a problem).
We should probably discuss in the daily team call which way (name.name_id or name.id) we want to go in the states objects.

restored the branch that it will not break develop

repo: hashgraph/hedera-protobufs


text:
HIP 18

Closes issue : #40 and #41

@rbair23, @SimiHunjan, @donaldthibeau, @steven-sheehy please review the protobufs changes for HIP-18. Thanks!

authors: anighanta qnswirlds


text:
Fix test error

https://swirldslabs.slack.com/archives/C05CU3X8T4P/p1709937005710819

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: leninmehedy swirlds-automation

repo: hashgraph/solo


text:
GHC panic when using effectful-plugin without effectful-core

when i have in my dependencies effectful and effectful-plugin without effectful-core. trying to compile my project with cabal build will cause a GHC panic.
i am using, cabal-install version 3.8.1.0 compiled using version 3.8.1.0 of the Cabal library, The Glorious Glasgow Haskell Compilation System, version 9.2.4.
ghcpanic.zip
here is a zip file containing a minimal project to reproduce the problem

@dark-ether hi, and thank you for this report. :) We're aware of this, please see https://github.com/haskell-effectful/effectful/issues/86 for more information :)

ok, should i close the issue?

i think it will be unnecessary, i already found a workaround and the issue mentions it will give a better error message, to guide others to the workaround

authors: Kleidukos dark-ether

repo: haskell-effectful/effectful


text:
add some references for history of haskell

maybe http://research.microsoft.com/en-us/um/people/simonpj/papers/history-of-haskell/  or something?

What section do you suggest adding this too?

Good question.  Im kinda mulling whether we might want to have a page
focused on resources that are less about learning haskell and rather about
the technical / cultural history that leads into how haskell and associated
tooling has evolved in the way it has. again, this is just me spit balling
an idea. I'm not wedded to the idea at all mind you :)

authors: cartazio gbaz

repo: haskell-infra/hl


text:
Take over the package on Hackage

https://wiki.haskell.org/Taking_over_a_package
http://hackage.haskell.org/package/unicode-show

Sent: https://mail.haskell.org/pipermail/haskell-cafe/2018-July/129549.html

repo: haskell-jp/unicode-show


text:
mafia tries to get non-cabal build tools

I'm getting bulids failing with this during the "build dependencies" phase:
Detected 'unzip' was required to build zip-archive-0.3.2.4
cabal: There is no package named 'unzip'.
You may need to run 'cabal update' to get the latest list of available

zip-archive has the following lines in its .cabal file:
Build-tools:     unzip

I already had unzip on my machine and it was trying to install it from hackage (and its not there obviously)

I think that mafia assumes that all build tools listed in a cabal file are tools that are "cabal installable", like hsc2hs and markdown-unlit. Obviously this is not true for unzip.
I think mafia always installing build tools listed in the cabal file is a mistake. It should first try to see the required tool exists on the $PATH. This would mean it would look for tools like hsc2hs on the $PATH first and only install it if its not there. This would fix your use case for unzip assuming that unzip is already on the $PATH but still give confusing error messages for non-haskell tools that are not installed.
Wanna send a patch?

yeah would love to, be a little while till i find the time to do so though

hmm bit of a problem though, if it already exists in the PATH but is cabal installable, and the version is older and doesnt satisfy the constraints, then a valid version will not get installed.
I think i'll change it so it does attempt to install it from hackage, if that fails and it already exists on the PATH I wont make a it an error for the build

Damn! Just ran into this problem myself. I may beat you to it!

Duplicate of https://github.com/haskell-mafia/mafia/pull/209

Haha! I just ran into this morning and didn't see this issue. Interesting that this feature has been in Mafia for a while, but we all ran into it within two weeks of each other.

I think listing non-haskell build tools in that stanza is a new thing.

authors: amosr domdere erikd tmcgilchrist

repo: haskell-mafia/mafia


text:
Travis

@chrisdone Can you enable travis for this repo ?
I am not able to do it from my account...

Yep

Done!
On 25 April 2018 at 16:39, Alexandre Moine notifications@github.com wrote:

@chrisdone https://github.com/chrisdone Can you enable travis for this
repo ?
I am not able to do it from my account...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/haskell-perf/graphs/issues/1, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAArCwANdSpPdxMb1mOFLef7_lTrYt00ks5tsJirgaJpZM4TjrRj
.

Thanks :)

authors: chrisdone nobrakal

repo: haskell-perf/graphs


text:
mapAccum

This is a part of Issue #89. Ideally, all the functions in container should be provided in unordered-containers. mapAccum has been added with test functions. notMember has also been added since it was trivial to add.

Please rebase and squash the commits so we don't make the history too messy (which would make e.g. git bisect work less well.)

@tibbe, findWithDefault has actually been added here following a brief discussion on the libraries list started by @m-renaud. I hadn't read this discussion before ultimately approving that. Would you like me to revert before release? I'm not a big fan of the function myself; I'd rather have something like
fooLook :: r -> (v -> r) -> k -> HashMap k v -> r

I don't care much at this point to be honest. Up to you.

Here's my current perspective:

I'm not yet convinced that replicating the full Data.Map API in Data.HashMap is a good goal. If there's demand for that, I think it should be discussed with the new maintainers (@emilypi and me in addition to @treeowl) first (in a new issue).

mapAccum[WithKey] doesn't strike me as a particularly in-demand addition. Can't traverseWithKey be used for the same purpose?

The function 'mapAccum' threads an accumulating argument through the map in some unspecified order of keys.

When the order of keys is unspecified, I think it will be only useful for commutative operations, and therefore quite limited…

notMember doesn't pass the Fairbairn threshold for me.

Sorry, that was a bit harsh.
I very much do value contributions, but in this case they should have been coordinated a bit better first. In particular, when we're adopting functionality from containers, we need to consider whether it is still as useful in a context where the order of keys is not ascending and unstable.
My vote is for closing this PR.

Sorry, I forgot about this PR, and I will at least give my perspectives from what I recall.

Here's my current perspective on this PR:

I'm not yet convinced that replicating the full Data.Map API in Data.HashMap is a good goal. If there's demand for that, I think it should be discussed with the new maintainers (@emilypi and me in addition to @treeowl) first (in a new issue).

There are occasions where one needs to a drop in replacement from Map to HashMap or vice versa. It was such an occasion that prompted me to do this PR to begin with. In addition, it removes some cognitive overhead if one get away with using a similar, if not the same, API.

mapAccum[WithKey] doesn't strike me as a particularly in-demand addition. Can't traverseWithKey be used for the same purpose?

The function 'mapAccum' threads an accumulating argument through the map in some unspecified order of keys.

When the order of keys is unspecified, I think it will be only useful for commutative operations, and therefore quite limited…

This is true that the traverseWithKey could be used for the same purpose. However, it conflicts with the first point.

notMember doesn't pass the Fairbairn threshold for me.

That is a fair assessment. However, I would vote that notMember be also removed from containers as well.

I think the main reason I was reluctant to add new functions for completeness sake (compared to Data.Map) is that it makes it harder to improve the library internally. Concretely, any change to the internal data structure typically requires changing the implementation of all functions. More functions means fewer internal improvements due to that work load increase.
On a more philosophical note I feel it's a shame we can't good performance and expressibility in Haskell with only a few operator. For example, in C++ (const) T& operator[] can be used for all single element modifications and access, while we have a whole bunch of functions for each use case. We once tried to use zippers to achieve the same in Haskell but performance was dreadful.

@jcmartin

There are occasions where one needs to do a drop in replacement from Map to HashMap or vice versa.

Yeah. I've wanted to do the same before. The tricky bit is that many Map operations work with the ascending key order.
I suspect that the easiest way to migrate Map code to HashMap and vice versa is to use something like mono-traversable's IsMap class.

However, I would vote that notMember be also removed from containers as well.

That's not unfair. The issue is that once a function is exported, it can be costly to get rid of it.
@tibbe

I think the main reason I was reluctant to add new functions for completeness sake (compared to Data.Map) is that it makes it harder to improve the library internally. Concretely, any change to the internal data structure typically requires changing the implementation of all functions. More functions means fewer internal improvements due to that work load increase.

Yes, that's another important consideration. With the new maintainership it seems more likely that the internals will change in a significant way. Maybe we should hold off on the containers-compatibility issue for a few months.

Closing for the reasons mentioned in https://github.com/haskell-unordered-containers/unordered-containers/pull/91#issuecomment-638779035.
I would welcome a documentation PR that adds a mapAccumish example to the haddocks for traverseWithKey though.

authors: jcmartin sjakobi tibbe treeowl


text:
Use hie-implicit-cradle-0.2.0.1

To make progress fixing https://github.com/haskell/haskell-language-server/issues/417

@wz1000 what would be the best approach to get this bug fix in hls-3, wait for #784?

You can do that, or if you are impatient, you can cherry pick to hls-3.3 on haskell/ghcide(I think) and then bump the submodule.

repo: haskell/ghcide


text:
Update packages

The packages should be updated to the latest version.

I have made the adjustments. Please review and merge the pull request.

repo: hasura/gatsby-gitbook-starter


text:
🛑 Periodic Table is down

In 47cecfd, Periodic Table (https://periodic.arash-hatami.ir) was down:

HTTP code: 504
Response time: 15689 ms

Resolved: Periodic Table is back up in 0201ece after 9 minutes.


text:
🛑 Main Website is down

In 1f2ae56, Main Website (https://arash-hatami.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Main Website is back up in cc5dca0.


text:
Bug: When you replay an event without an active worker, this will currently be in ‘running’ forever

@abelanger5 This can be closed, right?

Closed by #24

repo: hatchet-dev/hatchet


text:
[HxContextMenuItem] Add Href property to support navigation.

Current state
HxContextMenuItem.razor renders as

      icon + text + (content)

It has OnClick property which to the onclick event, but there is no Blazor equivalent for the href  attribute.
Background
If I want to navigate to a detail page from the context menu, I have two options:

Use NavigationManager.NavigateTo in the OnClick handler:
    <HxContextMenuItem Text='Detail' OnClick='()=> NavigationManager.NavigateTo($"detail-page")'>

Use HxNavLink as a child component (I have to set its Text property instead of the HxContextMenuItem's Text property to make the link clickable):
    <HxContextMenuItem>
             <HxNavLink Text="Detail" Href="detail-page" />
    </HxContextMenuItem>

However, both options are not very convenient.
Proposal
I think a better solution would be  to add ability to set href attribute of already present  tag  which would map to the href attribute of the existing  tag:
     <HxContextMenuItem Text='Detail'  Href="detail-page">

This way, I can easily navigate to different pages from the context menu without using extra components or code.

I'm not entirely sure, but I have a feeling we tried this and there was some problem with the Href parameter. @crdo?
Some weird behavior or JavaScript error when closing the context menu on such navigation? External navigation?

I do not recall that. Changing the URL with Blazor while the dropdown menu is open could cause a JS error.
@TPIvan give it a try and submit a PR.

I have created a pull request https://github.com/havit/Havit.Blazor/pull/560.
An internal and external navigation was tested and seems to work.
@hakenr: I think that something was changed in the context menu or in the grid because in past (6 month ago) there was a problem with grid trying to refresh itself whenever the context menu was clicked.

authors: TPIvan crdo hakenr


text:
Add ColorProvider

Have this ready on a private branch to push up, just need to rebase on new master.

Done in 7858aae83a675f4bd9682fa94ee3fe0b7e95881e

repo: hawkerm/monaco-editor-uwp


text:
You can now choose image as a notify parameter

I think this is useful, to really make errors visible in notifications.

Nice, don't know why I didn't add this in the first place. I'm making a change though so that a symbol is passed to #n for the image instead.

authors: LarsFronius hawx

repo: hawx/guard-shell


text:
Webview feature, design update roadmap proposal

Features

[ ] For opening files, adopt behavior that's consistent with the VSCode file explorer: change current tab file on click, and only open new tab on double/middle click. (Spawning a new tab for every click on a component that's not already open makes it difficult to browse the tree freely.)
[ ] Make entire tree searchable, not just the currently visible nodes.
[ ] Handle duplicate nodes by highlighting all when one is selected (don't expand hidden nodes -- user can use expand all if identifying all duplicate nodes is ther intention). The clicked node should have higher opacity or otherwise be emphasized.
[ ] FIX: extension not updating duplicate nodes in other subtrees on file save.

Webview Design

[ ] Bold file nodes to distinguish from react router and third party nodes.
[ ] Consolidate Expand/Collapse icons into one button with two states.
[ ] Don't show props icon for components with no props.
[ ] Move props icon and redux store icon to right of node name for consistent indenting.
[ ] Replace "Navigates to that file" tooltip with some info specific to hovered node.

Keyboard Navigation

[ ] Global hotkey for switching focus to extension (and back to active tab?).
[ ] PageUp/PageDown support.
[ ] Skipping through subtrees with Ctrl/Cmd + arrow
[ ] To top/bottom with Home/End.

These ideas are intended as a starting point for discussion. Any feedback, suggestions, criticism is welcome.

I'd like to add a few things,

if its typescript show props with types
navigate to that prop (open that file and scroll to it) when clicked on it

Make entire tree searchable, not just the currently visible nodes.

this is the default search behaviour of vscode.

That's true for the file explorer, but I think the use case of this extension is a bit different. For file explorer, the search tab provides project-wide search functionality, and the explorer tab's search feature is only intended as a supplement. This isn't the case with this extension. The user will expect to have access to a birds-eye view of the entire project, especially if they're interacting with a full-width search bar. Not to mention requiring users to repeatedly click on individual nodes to set up a particular tree state as the search space hurts usability, especially for larger trees.
We could always add the file explorer's small search popup triggered by ctrl/cmd + F for filtering visible nodes as well. But providing the capability to search the full tree at any time should take priority imo.
Also, I'll add highlighting search matches to the list. Showing the ancestors of matches is a great approach, but with larger trees it becomes very difficult to tell which nodes are search matches and which are there to provide context.

@hb1998 Granted, I don't think making this change is a huge priority at the moment, especially since the user can always expand-all before searching.
However, that would mean losing the tree expand state they had previously set up, and it could be very tedious to restore it with manual clicks. Maybe an expand-all/undo toggle button might be a solution, or potentially being able to store and retrieve snapshots of expand state?
Just brainstorming here. :) I'd love to hear your thoughts.

@MajorLift  we have to somehow figure out a way, without complicating the experience.
there was another mode in vscode explorer where in you can see the filter results in a separate popup and clicking on it will scroll to that node.

@MajorLift we have to somehow figure out a way, without complicating the experience.

Very much agreed!

another mode in vscode explorer where in you can see the filter results in a separate popup and clicking on it will scroll to that node.

Could you share how to access this feature? Unless you're talking about the search tab (Shift + Ctrl/Cmd + F), I don't think I'm familiar with it.


text:
能支援ffmpeg嗎？

看readme似乎有支援，但應該沒有吧？
我有裝ffmpeg，但合成完快轉還是卡卡的。
手動ffmpeg轉完就正常。
想要的效果：輸入url，下載->合成->轉檔，一次完成。

沒有支援，需要安裝ffmpeg後再手動轉檔。

感謝回應，另外剛剛發現有2個PR，看起來好像符合我的需求？ #62 #70
如果可以的話能合併一下嗎？

沒問題，我再補些東西上傳。

感謝，太有效率了!
試了一下應該都正常。
不過轉完的影片名可以跟原來的番號同名嗎？ 目前前面多個"f_"。
另外轉檔參數預設的好慢QQ
附上我的，不過也是網路上抄的，沒啥研究過ffmpeg。
ffmpeg  -hwaccel d3d11va  -i XXX.mp4 -c:v h264_nvenc  -b:v 1500K -threads 5  test.mp4
實測轉檔速度會快很多，差異是會用顯卡加速(看顯卡使用率會飆到99%)，如果顯卡好的話應該會差更多

感謝，太有效率了! 試了一下應該都正常。
不過轉完的影片名可以跟原來的番號同名嗎？ 目前前面多個"f_"。
另外轉檔參數預設的好慢QQ 附上我的，不過也是網路上抄的，沒啥研究過ffmpeg。 ffmpeg -hwaccel d3d11va -i XXX.mp4 -c:v h264_nvenc -b:v 1500K -threads 5 test.mp4 實測轉檔速度會快很多，差異是會用顯卡加速(看顯卡使用率會飆到99%)，如果顯卡好的話應該會差更多

您好，有更新選項了，使用GPU(Nvidia)或是CPU轉檔。

您好，有更新選項了，使用GPU(Nvidia)或是CPU轉檔。

感謝，雖然還沒測試，不過看readme是每次都要輸入y/n？ 能弄個config或是預設值嗎？
不然人就要守在電腦前等下載完輸入y/n

不過轉完的影片名可以跟原來的番號同名嗎？ 目前前面多個"f_"。

還有這個也麻煩了

您好，有更新選項了，使用GPU(Nvidia)或是CPU轉檔。

感謝，雖然還沒測試，不過看readme是每次都要輸入y/n？ 能弄個config或是預設值嗎？
不然人就要守在電腦前等下載完輸入y/n
另外10000K轉出來的檔案不會太大嗎？

好的我再去修改，謝謝您的建議!
因為好像是數字越大越清晰，用了硬體加速後我感覺轉檔速度沒有差太多，所以就用比較大。

已更新。

現在會在下載前詢問是否轉檔、是否使用GPU加速。
轉檔後影片名稱與原來的番號同名。

好的我再去修改，謝謝您的建議!

不客氣，願意長期維護這專案已經讓我們很感謝，辛苦了

因為好像是數字越大越清晰，用了硬體加速後我感覺轉檔速度沒有差太多，所以就用比較大。

對，好像是這樣，但原始影片也沒那麼高吧？至少我木眼看不出有啥區別，可能要看有沒有高手願意指教了。
硬體加速那個你顯卡使用率有飆高嗎？還是你CPU太好？
印象中之前測試
CPU i5-2400 speed 2.X
GTX 750 speed 12X
差了5倍多

好的我再去修改，謝謝您的建議!

不客氣，願意長期維護這專案已經讓我們很感謝，辛苦了

因為好像是數字越大越清晰，用了硬體加速後我感覺轉檔速度沒有差太多，所以就用比較大。

對，好像是這樣，但原始影片也沒那麼高吧？至少我木眼看不出有啥區別，可能要看有沒有高手願意指教了。
硬體加速那個你顯卡使用率有飆高嗎？還是你CPU太好？ 印象中之前測試 CPU i5-2400 speed 2.X GTX 750 speed 12X 差了5倍多

那先這樣暫定10000高畫質，如果有這方面的高手有提出問題後再解決。
我用硬體加速後GPU會飆到96%附近，轉檔速度跟CPU差距也差不多4~5倍。

我12700+1050ti也是從2.4跑到接近12，差不多五倍，用顯卡轉真的快很多
取得 Android 版 Outlookhttps://aka.ms/AAb9ysg

From: hcjohn463 @.>
Sent: Thursday, April 20, 2023 1:48:12 PM
To: hcjohn463/JableTVDownload @.>
Cc: Subscribed @.***>
Subject: Re: [hcjohn463/JableTVDownload] 能支援ffmpeg嗎？ (Issue #96)
好的我再去修改，謝謝您的建議!
不客氣，願意長期維護這專案已經讓我們很感謝，辛苦了
因為好像是數字越大越清晰，用了硬體加速後我感覺轉檔速度沒有差太多，所以就用比較大。
對，好像是這樣，但原始影片也沒那麼高吧？至少我木眼看不出有啥區別，可能要看有沒有高手願意指教了。
硬體加速那個你顯卡使用率有飆高嗎？還是你CPU太好？ 印象中之前測試 CPU i5-2400 speed 2.X GTX 750 speed 12X 差了5倍多
那先這樣暫定10000高畫質，如果有這方面的高手有提出問題後再解決。
我用硬體加速後GPU會飆到96%附近，轉檔速度跟CPU差距也差不多4~5倍。
—
Reply to this email directly, view it on GitHubhttps://github.com/hcjohn463/JableTVDownload/issues/96#issuecomment-1515749201, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUG2XEYN3UA3MQBZD4JSNA3XCDEZZANCNFSM6AAAAAAXEBXXTE.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

拉了下最新版，好像有問題呢。
ffmpeg都會跳錯
XXX.mp4: No such file or directory
轉檔失敗!

拉了下最新版，好像有問題呢。 ffmpeg都會跳錯
XXX.mp4: No such file or directory
轉檔失敗!

不小心刪掉一行程式，已補上。謝謝提醒!

其實沒必要轉檔，下載下來的應該是 mt2s，內容已經是 H264 只要轉封裝格式就可以了
ffmpeg -i ABC-123.mp4 -c copy -tag:v avc1 output_ABC-123.mp4

之前有位大大在這串留這則評論，但是不知道為什麼刪掉了

其實沒必要轉檔，下載下來的應該是 mt2s，內容已經是 H264 只要轉封裝格式就可以了
ffmpeg -i ABC-123.mp4 -c copy -tag:v avc1 output_ABC-123.mp4

我測試了一下，速度快非常多，用他的方法大約是4百多倍
猜測是因為沒轉檔只是單純複製吧，但快轉也不會卡頓
@hcjohn463 要不要改用這方法？

之前有位大大在這串留這則評論，但是不知道為什麼刪掉了

其實沒必要轉檔，下載下來的應該是 mt2s，內容已經是 H264 只要轉封裝格式就可以了
ffmpeg -i ABC-123.mp4 -c copy -tag:v avc1 output_ABC-123.mp4

我測試了一下，速度快非常多，用他的方法大約是4百多倍 猜測是因為沒轉檔只是單純複製，但快轉也不會卡頓
@hcjohn463 要不要改用這方法？

已更新，謝謝！

我測試不轉檔抓下來應該是 AVCHD ， macos 預設沒辦法播放不太方便，建議還是轉檔一下比較好
不過 mac 跑不知道為什麼沒有跳出要不要轉檔的提示（有裝 ffmpeg），我後來是用 Handbrake 轉 :)


text:
Verilator test passes if segfault

A verilator test reports a pass result in the case of a Seg Fault.

I don't think this is a bazel rules hdl bug


text:
🛑 stagin-env is down

In 95e6e2c, stagin-env (https://staging.lessonpal.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: stagin-env is back up in c77831b after 9 minutes.

repo: heIsThePirate/upptime-lessonpal


text:
Implement Formation Exports

closes #76

Also can we document this here similarly to how imports are documented

authors: dillingham mitulgolakiya

repo: headlesslaravel/formations


text:
cmake: Copy tests to the build tree instead of linking them

This PR enables in-source builds, which currently fail on the staging branch.
As discussed offline, we won't restrict the user, even though CMake discourages in-source builds.
Other features of this approach:
PROS:

Less of code. Simpler code.
The same code for both POSIX and Windows platforms.
It prevents the source tree from being polluted with Python bytecode caches for the test framework when running functional tests. For reference, https://github.com/bitcoin/bitcoin/pull/30533 aims for the same goal for unit tests.

CONS:

Approximately 4MB larger build directory. Note that it is smaller than its size just after configuring on the staging branch.

Resolves https://github.com/hebasto/bitcoin/issues/306.

cc:

@achow101 @m3dwards who voted for freedom of the user's choice
@paplorinc as an author of https://github.com/hebasto/bitcoin/issues/306

I'm getting this on Arm Mac
➜ cmake .

CMake Error at cmake/module/AddBoostIfNeeded.cmake:72 (message):
  Building test_bitcoin executable requested but
  boost/test/included/unit_test.hpp header not available.
Call Stack (most recent call first):
  CMakeLists.txt:406 (add_boost_if_needed)

ACK af3b04244ef19d484169356a62e92759e1c82b98
Tested on Arm Mac and x86 Linux. Can replicate problems without and can configue/build/test with PR.

~0. Not sure. After a year of deciding we'll do things the "CMake way", at the last minute we're going to start allowing the thing CMake actively discourages, because of an unintuitive error message? Can't we just provide a more useful error?
The PROs listed here are all pretty weak, and don't point to anything that's actually useful for a developer, doing development. It'd be good to get some example usecases of why someone might want to build in tree, that doesn't (or for some reason can't?) work with out-of-tree builds. As opposed to allowing this just because someone might "want to", and opening us up to also maintaining that can of worms (especially if it's not something we are going to actually use or test).

I tend towards NACK here for the downsides brought up already. I also think adding a flag for changing this behaviour and allowing in-tree builds is not a good alternative - especially absent a clear use-case. I also remember reviewing the script linking behaviour and thinking this was a good improvement.

Please consider an alternative in https://github.com/hebasto/bitcoin/pull/314.

Is it possible to allow in source builds while preserving the symlink behavior for out of tree builds? If I do an out of tree build with this PR, changes I make to the functional tests require an additional cmake invocation for those changes to appear in the build. When working on test changes, that's really annoying.

Is it possible to allow in source builds while preserving the symlink behavior for out of tree builds?

Yes, it is.

If I do an out of tree build with this PR, changes I make to the functional tests require an additional cmake invocation for those changes to appear in the build. When working on test changes, that's really annoying.

That's true.

Rebased.

symlinks should be kept for out-of-tree builds, otherwise it seems like a breaking change to dev experience when editing files

I agree with this point.
However, instead of adjusting this PR, I'm going to close in favour of https://github.com/hebasto/bitcoin/pull/314.
The main reason is that in-source builds with CMake are incompatible with Autotools because the Makefile files are being overwritten.
We can reconsider this idea after completing the migration to CMake.

repo: hebasto/bitcoin


text:
Implement opening files with context manager or raw?

@d-w-moore I'm not sure whether it is recommended to implement file opening as a context manager or just as a raw operation and relying on users to handle closing the files again properly?

References to open irods files (ie data objects) have  been a sticky subject.  If the associated session object goes out of scope before the open "file", you'll have problems because the connection to irods is now closed, so  flushing, closing, etc. won't work.
I think the answer is for a session object to persist as long as the fs object.  Users of fs-irods can do something of the form:
with fs.open_fs("irods://...") as abstract_file:
  # do stuff with abstract_file

The ownership (and object lifetime management) hierarchy will be:
abstract_file

session
open data descriptor

or something similar, and we'll write our del, enter and exit methods appropriately.
This way, we'll allow people to use the abstract_file  object either as context manager or as mundane Python objects that follow the normal rules of object lifetimes.  (ie expiring at the end of their scope, or at interpreter exit).

authors: d-w-moore hechth

repo: hechth/fs-irods


text:
problems running Sagefy

I tried running Sagefy and hit several problems -  I tried following setup.md in docs.

Mounting  /vagrant failed -  turns out my VirtualBox version was incompatible with the version in the Vagrant VM - I had to update my local VirtualBox (I had version 5.0 and needed 5.1)

python3 dev_data.py failed because it had no config.py.   I copied config.dev.example.py into config.py

webpack failed because ERROR in Cannot find module 'babel-core'.  I installed babel-core  (ran npm install bable-core from the '/vagrant/client' dir)

Next I hit a problem that I'm currently stuck in - while trying to log in (or sign up) the server returns "Internal Server Error"  (just string, not JSON).  I exploring how to debug it further, there is nothing related to the error in the pm2 logs output

Hi @Iftahh
Thanks for taking brave road of trying to run it locally :) The process is definitely still pretty messy. I'll look over these notes and get back.
Kevin

Hi @Iftahh
I've updated the setup.md file to include the step to copy config.py file (amazing catch!) and babel-core to the package.json.
The web service is in Python, what's running in pm2 (node) is two things:

a Node server for "isomorphic" rendering
the client-side build tools (CSS, JS, etc)

You might want to try restarting the web service with (within the Vagrant box):
sudo uwsgi --stop /tmp/uwsgi-master.pid
sudo uwsgi --ini /var/www/setup/uwsgi_local.ini

Let me know if that works. It's more fickle than I'd like it to be.

I can confirm that everything is working now - I'm not sure what was wrong the first time I tried.
I had to restart the Vagrant VM  that I left running earlier, as it became unresponsive (100% CPU, ssh stuck). This might have been because my hard-disk became 100% full and all hell broke loose.
Now after the VM restart I ran uwsgi, nginx, npm  as described in setup.md and everything just worked fine.
Excellent !

Yay amazing! Thanks for all the effort, I know it wasn't easy. Let me know what you think! Feedback is more than welcome.
Kevin

authors: Iftahh heiskr

repo: heiskr/sagefy


text:
4.x: Add todo for duplicates in CompositeArrayBufferData and CompositeListBufferData

Description
I've found, that there are many duplicated methods in CompositeArrayBufferData and CompositeListBufferData
For example writeTo(ByteBuffer writeBuffer, int limit)

Maybe I should create the issue, but I'm not sure. The todo can be useful.

TODO in code should not be used. We may have some, but it is a bug, not a feature.

@tomas-langer Thank you for the explanation. Then I'll close this PR.

repo: helidon-io/helidon


text:
Helios 2.0 Design Concerns and Top-level Spec

This is the discussion area for all of the high-level stuff on http://helios-io.github.io/specs/.
Helios' design concerns reflect the following:

Read http://helios-io.github.io/specs/ for more details, but discuss them here.

Updated as of yesterday with actual API specifications http://helios-io.github.io/specs/api.html

repo: helios-io/helios


text:
[Removal]:

Hotspot Name
Soft Pear Stallion
Hotspot b58 Address
111RugPeb1kx6eRvoJogecAL2ErqMk6SXFNnq2WTaFjTD21Rutn
Discord Handle
No response
Hotspot Manufacturer
PantherX
Removal Reason
I bought a used hotspot
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
No response

see comments of #1349

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.

authors: MarvelScavenger abhay lucaschen520

repo: helium/denylist


text:
[Addition]: Samut Sakorn Cluster

Hotspot b58 Addresses
112drVE2yiGcYKMxMavcKPYYAy7MGMVGoziaBjAFMJJM2uNuXC9g
118cwdx1ywxonAzakf2QFJr5pgoRjwpSiMwcPo55bgKRyHhH3my
11umRyTwznyx7wTHtj2vhg1YV2wwxmkJxbAUFDehoN89NE6T1TX
112ha8AbF7NAYQoErCTQt7FLyU5HhQvUaC3GGKfmNHRknTzadhju
112vMSEqcv8aS49kDtE3X6zSjsSUt9y2UpMXBnhypnp5XFjwA6Uk
112hHwGQpyp4oyZGSw82NVit4cz13J6Nk9p1mXG8g7gPaegWC6Dw
112mKinjCCqWdh3YZLToHQpqHEmVTFYrGn7mZ2pX6VGYmrJrZKjy
11UsNLVpbSuXxhwBjLMir8QjKLVSDQcv95LNQSWGsn2ChAKM4cN
112LDVyREL7aULEWxmsuZyNpMFksQZUU5QVTstkgeDW3B2Wtcixe
11WRDTdGEmunEGLwfZHq91xWhiELfP9Yfba1PBbuW4AkaNBz1eb
112paPDWGgAz6pV342W6Spb39SBpPUyYATtCTFrwCbsRqQGMo3x1
112Qj9QP6uKcco5NZzrwmWxFwC8hsA5nscPnvV6tic8Zc9gxKzkg
11qeBRwn1oEYKj4TcxPXccJ8EsrMZEFivK6FDUbJWNMLNBvXMWL
11uWzuKPbF4Ksartknqk8BFxfJGTHaSYPrNdMd3JiUwgPuQds8Z
11T8kky6Kqnu2QodZc7ZzVk5b4es3xK3dHpLZzBraJjpQvaA7f8
11AvAWA22qgGpkDaLbKRuwgp3kqHq1ik1Q1m8rzdHWxa49V1U2b
11LKY4Wg42qaCpHqau3tVZVBw79gokjiw1GfetewR9vQjVtwrs4
11KY1QvNub2ft8oMStcjCzDhDvgnXr857wkfgEkcZtpY1ruq3JC
11rfu9EiHMWbN7Pe3gbEwLpaDebixgGvPMKUUr78fZZjh1zJaTv
11sjkAiCHUnEZQ85RTn4GgpnS9Pk2b9SW6D2fUwpkcAb11vi82W
11ZdbQtdqbhqzuSWENfFnyiMWFjVxyEEa7yWhESm4PkeUBtWn6B
111LtizPoD5mn17fBjN2UUiHqe8sFGZWGMawhGRJtN9HEVsoZt1
Discord Handle
Kenny_PDY
Reason(s)
Was #1550  A cluster of PantherX appears overnight in Samut Sakorn, west of Bangkok. Witness only each other with a typical range of 10-15km. Drove by several of them with mapper and still not detected.  They do witness only among PantherX

Same witnessing pattern for all hotspots

Same witnessing pattern for all hotspots

Could you let me know how to do this graph.  There are several cluster of PantherX that I’ve reported and would like to get this analyse posted as well.

https://etl.dewi.org/question/2503-rssi-snr-chart-for-witnesses-for-hotspot-new-max-min-days?MaxDaysBack=30&MinDaysBack=0

@CTH-Red-Team-Mapping-Service-I002 So what is the action for this case.