text:
Fix "UnicodeWarning: Unicode equal comparison failed" warnings for unicode filenames on Python 2

Fixes #64
This change prevents the code from checking image bytes on unicode filenames. (I'm assuming that no-one will be passing in a unicode string for image data.)
It was easier to keep the same if, elif, else ... flow, so I added a maybe_image condition before each string comparison.
Just fixes some annoying warnings in my pytest output for Python 2.7.

Coverage increased (+0.02%) to 95.048% when pulling 9d379679ca1761c7c5b585e3c0a97e0716354d64 on ndbroadbent:fix-python2-unicode-warnings into 42eeed469d47cd5679b74129dd616834f05072eb on hMatoba:master.

Coverage increased (+0.02%) to 95.048% when pulling 9d379679ca1761c7c5b585e3c0a97e0716354d64 on ndbroadbent:fix-python2-unicode-warnings into 42eeed469d47cd5679b74129dd616834f05072eb on hMatoba:master.

Thank you so much.

authors: coveralls hMatoba ndbroadbent

repo: hMatoba/Piexif


text:
XIAOMI MIJIA NEW WIDETECH WDH318 不能加HomeKit

Logger: homeassistant.components.homekit
Source: components/homekit/type_humidifiers.py:114
Integration: HomeKit (documentation, issues)
First occurred: 23:11:24 (1 occurrences)
Last logged: 23:11:24
Failed to create a HomeKit accessory for humidifier.wdh318efw1_cloud_269549
Traceback (most recent call last):
File "/opt/lib/python3.9/site-packages/homeassistant/components/homekit/init.py", line 551, in add_bridge_accessory
acc = get_accessory(self.hass, self.driver, state, aid, conf)
File "/opt/lib/python3.9/site-packages/homeassistant/components/homekit/accessories.py", line 199, in get_accessory
return TYPES[a_type](hass, driver, name, state.entity_id, aid, config)
File "/opt/lib/python3.9/site-packages/homeassistant/components/homekit/type_humidifiers.py", line 114, in init
max_humidity = round(max_humidity)
TypeError: type NoneType doesn't define round method

此设备不支持设置湿度，不支持设置湿度的加湿器不能接入HomeKit。但是可以将其作为风扇接入，需要在添加设备时，修改设备类型。

添加设备时，设备类型取消勾选humidifier，勾选fan。
mapping填写：
{"fan": {"switch_status": {"siid": 2, "piid": 1}, "mode": {"siid": 2, "piid": 2}, "speed": {"siid": 2, "piid": 3}}, "environment": {"relative_humidity": {"siid": 3, "piid": 1}, "temperature": {"siid": 3, "piid": 2}}, "indicator_light": {"switch_status": {"siid": 5, "piid": 1}}, "physical_controls_locked": {"physical_controls_locked": {"siid": 6, "piid": 1}}}
配置参数填写：
{"fan": {"switch_status": {"power_on": true, "power_off": false}, "speed": {"Low": 1, "Midium": 2, "High": 3}, "mode": {"Auto": 0, "On": 1, "Dry Clothes": 2}, "main": true}, "environment": {"relative_humidity": {"access": 5, "format": "uint8", "unit": "percentage", "value_range": [0, 100, 1]}, "temperature": {"access": 5, "format": "float", "unit": "celsius", "value_range": [-30, 100, 1]}}, "indicator_light": {"switch_status": {"power_on": true, "power_off": false}}, "physical_controls_locked": {"enabled": false}}

我用小米帐号自动添加设备, 请问如何修改成fan?

集成页面右下角 添加集成-Xiaomi MIoT-选择你的设备

可以添加了
但在iphone home里面好像开了就关不了
而且出现了这些错误
Log Details (ERROR)
Logger: custom_components.xiaomi_miot_raw
Source: custom_components/xiaomi_miot_raw/init.py:468
Integration: Xiaomi MIoT (documentation, issues)
First occurred: 23:35:27 (8 occurrences)
Last logged: 23:37:23
Control NWT Internet Dehumidifier 18L by cloud failed: [{'did': '360269549', 'siid': 2, 'piid': 3, 'code': -704053100}]
Control NWT Internet Dehumidifier 18L by cloud failed: [{'did': '360269549', 'siid': 2, 'piid': 2, 'code': -704053100}]

错误代码说明：设备在当前状态下无法执行此操作。在关机状态下试图调节风速，会出现此错误。
在家庭里长按风扇卡片，选择“作为单独板块分开显示”，查看能否正常开关。

问题是否已解决？如已解决可关闭 Issue。

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
raytracer-hypertntclown

I wanted to finally learn something new in the field of graphics programming after having mostly learnt webdev and backend stuff, so I wrote a raytracer. It is able to render spheres & triangles, so essentially everything you'd need to construct anything. It renders in two modes: one with an ascii-art-esque post-processing filter, and the second one is just the basic raytraced output. You can switch between those using a boolean switch placed conveniently near the top of the file.
There are also a number of other options to play around with, like for example the resolution, the recursion depth for reflections, line width & letter scale for the ascii-art, as well as options to change the objects in the rendered scene.
Learning the basic concepts of how a raytracing works was quite interesting as it always seemed sort of like a magical black box to me.
I did already have some moderate experience in javascript which definitely helped in the creation of this, but I'm fairly new to graphics programming.

Another classic graphics program. Nice work with it! I challenge you to make an artistic composition with it now.
You've earned your Blot though. I'm impressed with how you made use of the fill commands. Here's the order form.

how'd you make color?

drawLines() supports color! check out https://blot.hackclub.com/docs

source: gharchive/pull-request

authors: BrightTheBackpack HyperTNTClown Lightshayan leomcelroy

repo: hackclub/blot

license: MIT


text:
"Edit this page on GitHub" button broken in workshops

Clicking the "Edit this page on GitHub" button at the bottom of a workshop (I did not test all of them, but I tested a few) gives a 404 page not found error.
Current link for the button on the Personal Website workshop (404):
https://github.com//hackclub/hackclub/edit/master/workshops/personal_website/README.md
Actual link from GitHub's edit button:
https://github.com/hackclub/hackclub/edit/main/workshops/personal_website/README.md
It looks like the issue is due to the button's link targeting a branch named master rather than main.
There is also an extra / in the current link, which does not cause an issue but probably should be removed.

Thanks for the report! Fixed the branch & the slash issue, it’s live now.

authors: jegfish lachlanjc

repo: hackclub/workshops


text:
add jump to today in calander

This PR will fix #253

Perhaps the solution to auto-center / jump to the current day and week while in the dayGridMonth view is more like this solution
https://stackoverflow.com/a/48100619

Yes, automatically center / jump the calendar to the current date / week? Maybe with https://fullcalendar.io/docs/Calendar-gotoDate

@all-contributors add @MhdGhaithAlhelwany for code

@all-contributors please add @MhdGhaithAlhelwany for code

https://github.com/all-contributors please add @MhdGhaithAlhelwany for code

@all-contributors please add @MhdGhaithAlhelwany for code

@all-contributors please add @MhdGhaithAlhelwany for code

@all-contributors please add @alhelwany for code

authors: MhdGhaithAlhelwany allella

repo: hackgvl/hackgreenville-com


text:
antidebug, antivm and persistance updates

Description
Added cool features.
Type of change

Triage Detection (https://tria.ge/)
Disable Factory Reset
ProcessProtection (CriticalProcess)
Disable TaskManager
Disable Registry
Can you remove skuld? yeah easily, even if its enabled these lol all you gotta do is delete the file (in windows/protect) and there go to the file sh and type attrib -h -s and it shows the file and you delete it

Thank's for this PR !
I think the code looks good. I'll make some changes to clean it up before accepting the PR. However, please don't refer to this as skuld v2; it's just a set of features. skuld v2 is a project I'll work on when I have more time (I'm currently very busy).
The features you implemented will help skuld persist on the computer: removing skuld will be more challenging. Therefore, please update the README.md with new instructions for uninstalling skuld.
(I'm really busy, but I'll take care of it if you'd really prefer not to)

@echo off
title skuld remover
cd C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Protect
attrib -h -s
start "" "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Protect"
ECHO PLEASE REMOVE ANY .EXE FILES THAT YOU DONT RECONGIZE!
pause

It disables reg stuff so next step:
UnHook Registry (unhookreg.inf -> creds to Symantec):
[Version]

Signature=”$Chicago$”

Provider=Symantec

[DefaultInstall]

AddReg=UnhookRegKey

[UnhookRegKey]

HKLM, Software\CLASSES\batfile\shell\open\command,,,”””%1″” %*”

HKLM, Software\CLASSES\comfile\shell\open\command,,,”””%1″” %*”

HKLM, Software\CLASSES\exefile\shell\open\command,,,”””%1″” %*”

HKLM, Software\CLASSES\piffile\shell\open\command,,,”””%1″” %*”

HKLM, Software\CLASSES\regfile\shell\open\command,,,”regedit.exe “”%1″””

HKLM, Software\CLASSES\scrfile\shell\open\command,,,”””%1″” %*”

HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,0x00000020,0Step

after, this fixed application issues from unhooking.
[Version]
Signature="$Chicago$"
Provider=Codepulze

[DefaultInstall]
AddReg=UnhookRegKey

[UnhookRegKey]
HKLM, Software\Classes\exefile\shell\open\command,,,"%1 %*"

readme updated

antidebug updated

if you dont want to rely on the code please use : https://github.com/EvilBytecode/GoDefender

authors: EvilBytecode hackirby

repo: hackirby/skuld


text:
[GitHub API] Deprecation notice for authentication via URL query parameters

Get a notice from GitHub's recent API updates.

https://github.com/hackjutsu/Lepton/commit/5f664ec43297b83c91e0617541ab03a4d6b0375d

repo: hackjutsu/Lepton


text:
Generate layout.ld from templates + data

Fix #329
Obvously, k20 is still a special case, but I think this gives a good base on which to build a generator that will work generically accross all supported MCUs. (We still have #109) to track the k20 layout in.
I would make an attempt, but I don't have a k20 board or anything, so maybe @bgamari could take a look at some additions to this generator?
I think the way forward is to have like flash_config: Option[McuFlashConfig] in McuLayout and then struct McuFlashConfig { ... } elsewhere... but that could be a naive  solution that I just came up with at first glance.

Coverage remained the same at 85.657% when pulling c3e54e6e96ce500fbb4714029cdac715f60bd825 on mcoffin:layout-mcu#329 into 64aa605167813f8e360ce6173109acb632dee33b on hackndev:master.

Coverage remained the same at 85.657% when pulling c3e54e6e96ce500fbb4714029cdac715f60bd825 on mcoffin:layout-mcu#329 into 64aa605167813f8e360ce6173109acb632dee33b on hackndev:master.

Looks like rebuilding everything for every example is starting to bit us in the butt a little. Might have to split each example in to it's own jenkins matrix now, which would... suck to say the least. Or at least provide a way to build example subsets until we could finally use cargo's [[example]] again.

authors: coveralls mcoffin

repo: hackndev/zinc

license_source: bigquery


text:
Drafting email for participants

Things to bring

utensils, mugs, etc
Computer, power cord, ethernet cable, etc

Things to install

Basic things like Slack, Git, Python, etc
Check with your team leader

Info

Travel, lodging

I have put together a draft for email to send to the participants and team leaders.
I plan to send it out on Saturday (1 week before hackseq), so let me know if there is anything that I have missed before then.

Need to mention

downloading slack on the phone since that's the main mean of communication
workshops (esp since the Git workshop requires some preparation)
Do they need to buy any ticket for the social?

Thanks @santina - I see you have made the changes:-)
I don't think we are selling tickets for the socials anymore. @adrisua @minisciencegirl - is this correct?

We are not selling tickets for the social. But here is the event detail:

October 15, Saturday, 6pm - Join us for a fun evening to meet fellow hackseq participants at the Pit Pub!

October 17, Monday, 5pm - Amazon AWS sponsored community/ hackseq event at the Gallery! Come meet the Vancouver hacking/ tech/ genomics community!

Thanks @minisciencegirl - I have made these changes. I just took out "Vancouver" because there are so many participants from all over the world that will be attending.
If no-one else has any suggestions, I will send out the email tomorrow.

@Brittdrog: Thank you!
@santina: Here is the eventbrite url for Monday's event if you would like to include this in your email to participants!
https://www.eventbrite.ca/e/hackseq-2016-social-tickets-28463797986

I see @Brittdrog included it. Thanks! I think it looks good. If there's no other comment from the rest of the team, we can send it off tomorrow.

@brunogrande - do you have a list of the emails for everyone who is attending hackseq? If you do, could you send out the email to this list?

@Brittdrog: I'm working on this.

@Brittdrog: You refer to an "attached map". What did you have in mind?

@brunogrande - no worries....if you don't have a list already, I can do it.
I have a map that I made showing where the entrance is.
I will send out the email tomorrow

I already compiled a list of emails. The email draft exists in the Hackseq Gmail account, and it already addresses all participants and team leaders. You can simply add the map and send it off! 😊

@brunogrande - awesome! That was super efficient. I have attached the map, but am going to wait until tomorrow to send it out (as Saturday night is probably not the best time to receive emails).

Sent.

authors: Brittdrog brunogrande minisciencegirl santina


text:
Fix endianness issue in AIX

AIX (always a big-endian) doesn't have __BYTE_ORDER__ defined in any of its header files. GCC for this reason defines __BYTE_ORDER__ in its own header files for AIX. But with XLC compiler, it's not the case.
The issue is exposed while compiling the latest python --> https://github.com/python/cpython/pull/102206/

Thanks for the good catch!
This file comes from an upstream project. Can you submit a PR for this file? https://github.com/FStarLang/karamel/blob/master/include/krml/lowstar_endianness.h I'll approve it immediately and then we can make it trickle down to hacl-star.
Thanks so much!

Thanks for the good catch!
This file comes from an upstream project. Can you submit a PR for this file? https://github.com/FStarLang/karamel/blob/master/include/krml/lowstar_endianness.h I'll approve it immediately and then we can make it trickle down to hacl-star.
Thanks so much!

I just created a PR in the upstream project.

Fixed upstream.

authors: ayappanec msprotz

repo: hacl-star/hacl-star


text:
space before trailing slash

Caught a bug in your template that makes rendering fail for my server:
in themes/avicenna/layouts/partials/header.html line 30,
I changed
30: 	<link rel="stylesheet" type="text/css" media="screen" href={{ "css/main.css" | absURL }}/>
to
30: 	<link rel="stylesheet" type="text/css" media="screen" href={{ "css/main.css" | absURL }} />
and it worked.
I guess it is not a problem for modern server, but it still takes me a while when I try to publish a personal website on my school's server.
c.f. https://stackoverflow.com/questions/462741/space-before-closing-slash
btw thanks for the template!

@linjiawu
Thank you! It's been a year that  I've not worked on this repo. I have a plan to refactor this and make new changes and adding new features.

authors: hadisinaee linjiawu

repo: hadisinaee/avicenna


text:
Activate the read_excel with HTTP Funcationality

Any update on when the main branch will incorporate this pull request to allow for direct reading of http files using read_excel?
https://github.com/hadley/readxl/pull/77

When I'm next working on it.

authors: abresler hadley

repo: hadley/readxl


text:
ebitenmobile compile takes too long

compile is too inefficient，is there ways to implement incremental compilation？

Unfortunately this is inevitable so far. I think the main reason is that Oto requires Oboe, which is written in C++.
https://github.com/hajimehoshi/oto/tree/main/internal/oboe

I have noticed it takes a while, too, but it's less of a hinderance when plugged into an automated pipeline.  I just kick it off and look at other code until it's done.

The situation should be fixed by

https://github.com/golang/go/issues/37902
https://github.com/golang/go/issues/54770

authors: gongzhxu hajimehoshi jacobsalmela

repo: hajimehoshi/ebiten


text:
Log Implementation

Resubmitting log implementation with cleaned up commit history.

OK I've fixed it

Looking great.

repo: hakaru-dev/hakaru


text:
Installing on .Net core ?

How can I install on .Net core? I see ladda in Nuget but when I install it, I cant find /dist or spin.js anywhere.
Thanks

Nuget is not officially supported. I'm not sure who uploaded Ladda there, but it looks like a very old version that isn't being maintained. Please install Ladda via npm to use the latest release.

authors: theodorejb tinmac

repo: hakimel/Ladda

license: mit


text:
Show an URL after deploying a WAR-like artefact

After the user has deployed something which has a context-root
/deployment=foo.war/subsystem=undertow:read-attribute(name=context-root)

show an URL to let the user check whether the deployment was successful.
Depends on #109 and relates to https://issues.jboss.org/browse/WFLY-5321

Resolved as https://github.com/hal/hal.next/commit/5b81a5468f5529f31b03ee91c9df33bdd6619f7b


text:
TypeError when extracting features from deleted revisions

As reported by Danilo on Trello, if we attempting to extract features from a deleted revision such as
https://pt.wikipedia.org/wiki/?diff=40837381&uselang=en
an error occurs:
Extracting features for http://pt.wikipedia.org/wiki/?oldid=40837381&diff=prev
Traceback (most recent call last):
  File "demonstrate_extractor.py", line 72, in <module>
    features = api_extractor.extract(40837381, extractors)
  File "mypath/Revision-Scoring/revscores/api_extractor.py", line 19, in extract
    return [solve(feature, cache) for feature in features]
  File "mypath/Revision-Scoring/revscores/api_extractor.py", line 19, in <listcomp>
    return [solve(feature, cache) for feature in features]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in solve
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in <listcomp>
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in solve
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in <listcomp>
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in solve
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in <listcomp>
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in solve
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 111, in <listcomp>
    for dependency in dependencies]
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 115, in solve
    value = dependent(*args)
  File "mypath/Revision-Scoring/revscores/util/dependencies.py", line 20, in __call__
    return self.f(*args, **kwargs)
  File "mypath/Revision-Scoring/revscores/datasources/revision_diff.py", line 16, in revision_diff
    b = tokenizer.tokenize(revision_text)
  File "/home/helder/.mypyvenv/lib/python3.4/site-packages/deltas/tokenizers/wikitext_split.py", line 10, in tokenize
    text
  File "/usr/lib/python3.4/re.py", line 206, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer

This should be resolved now.

repo: halfak/Revision-Scoring


text:
Frontend

Basic frontend in React with React Router

Please squash the commits before submitting them for review.
Here is how:
https://gist.github.com/longtimeago/f7055aa4c3bba8a62197

Alright, done!

authors: emqi osiewicz

repo: halflajf/HalfLajf

license: WTFPL


text:
How to make this compatible with Svelte Material UI

Hi,
I have been dealing some days with this already but i did not manage to use the components from https://github.com/hperrin/svelte-material-ui
despite the fact that is a pretty straight forward project, i couldn't solve an issue with the svelte-loader.
Particularly this one:
Error: Function called outside component initialization
Mainly coming from Svelte function get_current_component()
Frame: function:'get_current_component', file:'file:///node_modules/svelte/internal/index.js:532:0
Is there any way I can solve this issue or that svelte native supports this library?

SMUI is based on the Material Web Components, which heavily depend on the DOM. I'd like to eventually provide a compatible version for Svelte Native, but that probably won't be for a while.

Yes, svelte component libraries are not likely to work out of the box with svelte-native since most will be based on browser DOM (div, h1, etc) where svelte-native needs native components like listView and actionBar. You can style your nativescript application to be more material like : https://www.nativescript.org/blog/an-early-look-at-the-new-nativescript-core-theme

I'd like to create a preprocessor to basically do things like
<markup env=web>
  ...
</markup>
<script env=native>
  ...
</script>

Then it may be possible.

authors: Egnus halfnelson hperrin

repo: halfnelson/svelte-native


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 198 ms

Resolved: ClamAV performance has improved in 1cae612.

repo: hamboneZA/caffeine


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 197 ms

Resolved: ClamAV performance has improved in ab326d4.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 445 ms

Resolved: ClamAV performance has improved in 455b5c0.


text:
⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in ee266c8.


text:
Using any multimedia key's causing switching chopping/felling mode

I haven't assigned any multimedia key to this action in settings, even not allowed to change mode in config

I'd guess that minecraft doesn't like your keyboard. Could you try some things for me?

Open chat (press t) and press a few multimedia keys
In options > controls, bind some default control like "jump" to the n key (by default, or whatever key is configured to toggle chopping) and see if your multimedia keys cause you to jump?

If pressing multimedia keys for (1) types random letters into the chat box or (2) causes you to jump, then minecraft probably doesn't like your keyboard. You could try updating the keyboard's drivers/firmware if you know how, or just bind the toggleChopping control to a different key.
If not, could you send me the model number of your keyboard?

It works fine, while chat is open - multimedia keys works as intended and it doesn't affect mod
There is some catch. I have no any key assigned to toggle chopping mode (all 3 control keys is empty by pressing esc). Right now, while I'm using multimedia keys, i have messages "chopping ON/OFF", but if I restore default key for toggle (n) and use multimedia keys - I get "Felling ON/OFF". So, for experiment I clear jumping key by esc, and multimedia causes no jump.

Thanks for your response. I tested this issue on 2 computers with 2 different keyboards, but with same config and controls settings. It was SVEN GS-9400 (Fn+F1-F12) and A4tech GR-86 (built-in multimedia keys). How else can I help?

I have no any key assigned to toggle chopping mode (all 3 control keys is empty by pressing esc)

Ahhh okay, sorry, I read your first message wrong. I just tried the same thing and saw the same bug on my setup. Minecraft seems to use a key value of -1 for both "unassigned" and keys it doesn't know, like multimedia keys, so pressing any key it doesn't know about will trigger unassigned controls. It's an easy thing to fix, so I'll post a new version soon. In the meantime, I suppose you can just bind this mod's controls to buttons you'll never use.

Thank you for taking time to solving this issue so promptly and explaining what it causes. Love your mod, good luck!

No problem at all, and thanks! The issue is fixed in version 0.11.2 at https://www.curseforge.com/minecraft/mc-mods/treechop/files/3153719. I'm gonna go ahead and close this issue now. 👍

repo: hammertater/treechop


text:
Plugin apparently affects multilingualism in the panel

With the plugin installed, translations of tab labels of the “Site” view in the panel are ignored. Instead, the English labels from the blueprints are displayed, despite proper translations for the current user language being present in the blueprints.
After removing the plugin, everything works as it should.
Strange enough, this only affects tab labels of the “Site” view. Translated field labels for the “Site” view are displayed in the correct language. And all tab labels are displayed in the correct language when I open any page in the panel. Translations of tab labels are only ignored in the “Site” view as long as the Colors plugin is installed.
This is not a big deal, since I typically set up everything in English as the default language, anyway. And I definitely rely on the plugin’s features. So not using it is not an option. But it is a very strange behavior, totally unrelated to the core functionality of the plugin.

Kirby version 3.9.6.1
plugin version 1.7.3

I noticed the issue when I used the Kirby site starter repo (still a work in progress), which I built over the last few months, to create the first real Kirby site based on it. (I’m just starting with Kirby.)
Steps to reproduce

Clone my Kirby Site Starter repo, run composer install (and optionally npm install) and run the site locally.
Create a panel user and switch its user language to German.
Open http://localhost:8000/panel/site and you will see that all field labels as well as system labels are in German, except the tabs.

Open any page and you will see that the tabs here have German labels.

To reconfirm that translations for the tabs are actually present, you can check the tabs/uploaded-files.yml blueprint. It is included in the site.yml blueprint as well as in the pages/default.yml blueprint.
Delete the site/plugins/kirby-colors folder.
Reload http://localhost:8000/panel/site – and now the tabs have German labels.

Run composer install again to reinstall the plugin.
Reload http://localhost:8000/panel/site again – and the tabs labels have switched back to English.

The only “uncommon” thing I do with the color fields is accessing some of them in my config.php (see https://github.com/MichaelvanLaar/mvlkss/blob/244586d481a09ad14025563768be06149ffcfe49/site/config/config.php#L114) to create a color scheme as site-constants.
I will have a look into that. Perhaps this usage causes the strange behavior.

OK, I just played around with “Site” in the panel. There is definitely more strange stuff going on. I cannot save some German fields. New content is not stored in the respective TXT file. Or the new content is saved to the TXT files, but will not show up in the panel.
I definitely have to go through everything I built and search for the error source.

We use the plugin on a German/English site ourselves and have never run into this issue.

Yes, obviously it is something else. And deleting the plugin just “solved” the tab label error, but was not the cause.
I played around with the official starter kit and had no problems.
So I guess, I have to build the hole thing again bit by bit with multiple languages enabled from the beginning and see which step will cause the error.

Inded, the problem must have been something in the code section of my config.php which I wrote to retrieve the color information that was stored in a structure field directly in the “Site” content.
I took the bugs as an opportunity to rebuild the whole functionality around creating a color palette (with variants for light and dark mode, as well as matching contrast colors for each) and making these colors available as a select field in the panel.
Now, selectable colors are defined directly in config.php by referencing Tailwind CSS utility classes. With the help of a small plugin, I make this information available as an additional page method. This allows me not only to retrieve it in templates and snippets using option(), but also to provide these colors as a dynamic option list in the panel using the query property of select fields.
This has several advantages over the previous solution – not to mention that it does not produce any problems in the panel:

Defining a color palette is not a task for website editors, and therefore doesn't really belong in the panel anyway.

The color values themselves do not have to be defined in two places anymore. Only Tailwind CSS utility classes are referenced in config.php. Brand colors that go beyond Tailwind's own default colors are defined centrally in tailwind.config.js and can then be referenced in config.php in the same way as Tailwind's default colors.

In the templates and snippets, I can now directly output the Tailwind CSS utility classes responsible for the color selected by the website editor. The previous detour via additional CSS custom properties is no longer necessary.

authors: MichaelvanLaar nilshoerrmann

repo: hananils/kirby-colors


text:
xray,nuclei扫描报错

用xray扫描报这个错

用nuclei扫描会报这个错

请问下大佬这个怎么解决

手册这边说的不选择poc则扫全部，但是好像因为不选的话报错了，如果选择某个目录或者指定POC的话就能正常扫描


text:
dependencies issue and importing problem

Added required dependencies and fixed importing them with new interfaces.
This PR resolves the #4 issue.

Will review soon!

Looks good to me.

Thanks again @agn-7 .

repo: handrew/browserpilot


text:
pyhanlp有rasa的组件吗，类似tokenizer_jieba这样的

最近在看RASA, 觉得分词组件还是HanLP好，请问pyhanlp有rasa的组件吗，类似tokenizer_jieba这样的？
tokenizer_jieba在下面的里面有介绍
https://blog.csdn.net/u010505246/article/details/82997100
https://www.jianshu.com/u/4b912e917c2e
https://blog.csdn.net/u010505246/article/details/83276354

你好，感谢反馈。
由于未按要求填写，本issue被自动关闭。请按issue模板认真填写，然后耐心等待下周末处理。
开源项目维护不易，只能在周末受理友好的提问，造成不便还望海涵。

你好，感谢反馈，这是个好主意。

所以 支持吗？？

authors: hankcs hughwang-me xiyuan27

repo: hankcs/HanLP


text:
如何设置替换匹配

我现在在自定义字段中设置了“中国好声音第一季”为音乐专辑类型， 我想后面无论是“中国好声音第二季”还是“中国好声音第三季”等等都可以识别为音乐专辑类型，这个该如何去做？

正则

你好，能否详细说明一下？

就是你自己写规则去匹配， 现在没有这么智能的算法，去实现你说的功能

authors: hankcs intohole kingdeewang


text:
jdk 1.7正常分词，jdk1.8分词数组越界

jar版本1.3.2，我看其他人的issue 好像很多人也有这个问题
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 149
at com.hankcs.hanlp.seg.common.Vertex.compileRealWord(Vertex.java:115)
at com.hankcs.hanlp.seg.common.Vertex.(Vertex.java:99)
at com.hankcs.hanlp.seg.common.Vertex.(Vertex.java:91)
at com.hankcs.hanlp.seg.common.Vertex.(Vertex.java:196)
at com.hankcs.hanlp.seg.Segment.combineWords(Segment.java:380)
at com.hankcs.hanlp.seg.Segment.combineByCustomDictionary(Segment.java:221)
at com.hankcs.hanlp.seg.Viterbi.ViterbiSegment.segSentence(ViterbiSegment.java:57)
at com.hankcs.hanlp.seg.Segment.seg(Segment.java:574)
at com.hankcs.hanlp.tokenizer.StandardTokenizer.segment(StandardTokenizer.java:40)
at test.main(test.java:8)

请仿照示例给出触发代码
    public void testIssue1234() throws Exception
    {
        CustomDictionary.add("用户词语");
        System.out.println(StandardTokenizer.segment("触发问题的句子"));
    }

另外，根据你提供的不完全信息，此问题与你开启了自定义词性有关，与历史issue无关。因为每个人jdk和系统环境千差万别，目前的策略是，由于采用了反射技术,用户需对本地环境的兼容性和稳定性负责，上游只能说尽量提供一些通用的建议。如果你对反射技术很了解，有debug能力，欢迎继续交流，否则请用常规方法修改Nature类来实现自定义词性。
http://www.hankcs.com/program/java/enum-java-examples-of-dynamic-modification.html

懂了，非常感谢回复。

authors: GZJackCai hankcs


text:
LRP for time series forecasting

Hi,
Thanks for the well explained implementations. I want to apply LRP to LSTM for a multivariate time series forecasting task (to predict future values for multiple consecutive days). Will this LRP implementation support the forecasting tasks when the data is tabular?

Thanks for your interest. The implementation only contains LRP rule for fully connected layers, convolutional layers, and pixel domains since this repo only supports visualization on images. Visualizing the relevance score on tabular and using LSTM is beyond the implementation of this repo.


text:
error in running aanet_predict.sh

after dubug, i find the problem comes from deconv,but no error happen in building
my Cuda version:

pytorch version:
pytorch1.2.0
cuda Driver version:

the file exists

I solved it by changing the version of gcc

I would like to ask, how did you change it through gcc?

repo: haofeixu/aanet


text:
Update ruRU.lua

Update RU locale

Thanks for you contribution!

authors: Hollicsh happenslol

repo: happenslol/WarpDeplete


text:
Manager issue: kubeconfig is not defined

Hi Ben, I have downloaded the code with the latest changes including the submodules as you indicated. This time the container node-red-manager is not starting cause kubeconfig is not defined. Here is the log:

k logs pod/node-red-multi-tenant-9b7488646-xmfzt node-red-manager
/usr/src/app/index.js:27
kubeconfig.loadFromCluster()
^

ReferenceError: kubeconfig is not defined
    at Object.<anonymous> (/usr/src/app/index.js:27:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

Is the manager supposed to copy the .kube/config file from my local machine?
Thanks!
Mauricio

No, line 20 should not be comment out.
Fixed, you'll need to re-pull (including submodules)

It worked! Thank you Ben, you saved me!

authors: hardillb tpargmdiaz


text:
Can't find host

Hi! Thanks for putting this together. I have everything running, but can't ping or otherwise resolve the hosts from other machines. I'm very new to mdns, so I'm not sure what to look for or how to interpret what I have found.
avahi-helper log:
dockergen.1 | 2022/04/03 16:52:54 Received event die for container 94a004be6d7e
dockergen.1 | 2022/04/03 16:52:55 Received event stop for container 94a004be6d7e
dockergen.1 | 2022/04/03 16:52:55 Generated 'cnames' from 7 containers
dockergen.1 | 2022/04/03 16:52:55 Running '/usr/src/app/restart.sh'
cname.1    | INFO: Exiting on SIGTERM...
dockergen.1 | 2022/04/03 16:52:55 Contents of cnames did not change. Skipping notification '/usr/src/app/restart.sh'
forego     | starting cname.1 on port 5200
forego     | sending SIGTERM to dockergen.1
forego     | sending SIGTERM to cname.1
dockergen.1 | 2022/04/03 16:52:56 Received signal: terminated

Let's say one of those virtual hosts is test.local.
$ hostname
pi
$ avahi-resolve -n pi.local
pi.local     172.23.0.1
$ avahi-resolve -nv6 pi.local
Server version: avahi 0.7; Host name: pi.local
pi.local     fe80::c401:bdff:fe96:af0f
$ avahi-resolve -n test.local
pi.local     fe80::c401:bdff:fe96:af0f
$ avahi-resolve -n4 test.local
Failed to resolve host name 'test.local': Timeout reached

Note that the hostname and the virtual host resolve to the same v6 ip address, but the virtual host fails to resolve a v4 version. Not sure if that's significant or an issue.
On another machine:
$ ping test.local
Ping request could not find host test.local. Please check the name and try again.

$ ping pi.local

Pinging pi [192.168.68.64] with 32 bytes of data:
Reply from 192.168.68.64: bytes=32 time=5ms TTL=64
...

Where should I go from here? Thanks!

@techiebod Thanks for the tip! I did that, and now the container output looks much more promising. However, the results to the test commands above (avahi-resolve and ping) have the same output. Even though this container reports success, I am not able to resolve the cnames from other machines on the network. Any other thoughts? You said it's working for you, so after starting this container, you can successfully ping (or visit) the urls in the VIRTUAL_HOST environment variable values on your other containers? Thanks!

Yep, all works for me, with the following docker-compose config:
  avahi-proxy:     container_name: avahi-proxy     image: hardillb/nginx-proxy-avahi-helper     privileged: true     volumes:       - /var/run/docker.sock:/tmp/docker.sock:ro       - /run/dbus/system_bus_socket:/run/dbus/system_bus_socket:rw     restart: always
And then a container setup like this (some lines removed for brevity):
homer:     image: b4bz/homer     environment:       - VIRTUAL_HOST=blackbox.local       - VIRTUAL_PORT=8080     ports:       - 8080:8080
So with the above on another machine (i.e. not the host or container) I can ping blackbox.local for example.
To test your local Avahi setup you can do the same from the commandline with: avahi-publish -a -R blah.local <host-ip>
Which whilst it runs, should allow you to ping blah.local from another machine.
Or if you prefer (on a mac) run: dns-sd -G v4 blah.local
HTH

Thanks for the confirmation. It's keeping me going, knowing that you're getting it to work! My config now looks like yours (I have several containers I want to host, so they're all on different ports, but otherwise looks the same), and it's still not resolving. avahi-publish works (while running I can ping from another machine). But nothing that avahi-proxy "sets up" seems to be working. Do you know of any way to debug/check on what it's set up, other than pinging? Thanks again.

If you exec into the avahi-proxy (or whatever you've called it) with:
docker exec -it avahi-proxy bash
Can you see your entries in the cnames file?  Mine has all the entries I have active
How this seems to work is that it scans for docker events to add them to here, and then uses another process which is a bit of python to write them onto the dbus for avahi (if I've understood correctly, and I reserve the right to have completely misunderstood! 😄 ).

Thanks for the further suggestions. Everything checks out though.

Can you see your entries in the cnames file? Mine has all the entries I have active

@twastvedt can you show an example of the names you are trying.

Yes. the cnames file has a list of all 6 of the containers with VIRTUAL_HOST set:
esphome.local
home.local
infinitude.local
node-red.local
portainer.local
zwave.local

@twastvedt dunno if you've sorted this yet, or given up! ;)
But if you want to debug this further, given that you can see avahi-proxy is seeing the changes made in docker-land, the next bit is to work out if avahi is seeing them, a killall -USR1 avahi-daemon will get avahi to dump it's "zone" info into syslog, and then you can see if they appear.  Which then at least let's you see if avahi is getting the messages or not

@techiebod Not sorted. I'm out of my depth here, but I'd still love to get this working and still very much appreciate your help.
I did as you suggest. Initially Avahi's cache dump in syslog did not include any of the cnames from avahi-proxy. I don't believe I actually changed anything, but after some fiddling I restarted the machine and now the cnames show up in the syslog!
(Raspberry Pi's name in the below is "katie")
Jun  7 21:01:26 katie avahi-daemon[693]: Got SIGUSR1, dumping record data.
Jun  7 21:01:26 katie avahi-daemon[693]: ;;; ZONE DUMP FOLLOWS ;;;
Jun  7 21:01:26 katie avahi-daemon[693]: zwave.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: portainer.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: node-red.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: infinitude.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: home.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: esphome.local#011IN#011CNAME katie.local ; ttl=30 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: _services._dns-sd._udp.local#011IN#011PTR _smb._tcp.local ; ttl=4500 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: KATIE._smb._tcp.local#011IN#011TXT  ; ttl=4500 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: KATIE._smb._tcp.local#011IN#011SRV 0 0 445 katie.local ; ttl=120 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: _smb._tcp.local#011IN#011PTR KATIE._smb._tcp.local ; ttl=4500 ; iface=-1 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: 7.a.9.6.e.7.7.9.f.5.1.0.1.e.f.5.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa#011IN#011PTR katie.local ; ttl=120 ; iface=2 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011AAAA fe80::5fe1:15f:977e:69a7 ; ttl=120 ; iface=2 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: 64.68.168.192.in-addr.arpa#011IN#011PTR katie.local ; ttl=120 ; iface=2 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011A 192.168.68.64 ; ttl=120 ; iface=2 proto=-1
Jun  7 21:01:26 katie avahi-daemon[693]: ;;; INTERFACE eth0.IPv6 ;;;
Jun  7 21:01:26 katie avahi-daemon[693]: ;;; CACHE DUMP FOLLOWS ;;;
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011AAAA fe80::5fe1:15f:977e:69a7 ; ttl=120
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011A 192.168.68.64 ; ttl=120
Jun  7 21:01:26 katie avahi-daemon[693]: _services._dns-sd._udp.local#011IN#011PTR _smb._tcp.local ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: _smb._tcp.local#011IN#011PTR KATIE._smb._tcp.local ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: KATIE._smb._tcp.local#011IN#011TXT  ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: ;;; INTERFACE eth0.IPv4 ;;;
Jun  7 21:01:26 katie avahi-daemon[693]: ;;; CACHE DUMP FOLLOWS ;;;
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011AAAA fe80::5fe1:15f:977e:69a7 ; ttl=120
Jun  7 21:01:26 katie avahi-daemon[693]: katie.local#011IN#011A 192.168.68.64 ; ttl=120
Jun  7 21:01:26 katie avahi-daemon[693]: #011CLASS1440#011TYPE41 \# 18 00 04 00 0E 00 00 66 E0 03 88 0A 9D D8 14 DF 51 04 67 ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: _services._dns-sd._udp.local#011IN#011PTR _smb._tcp.local ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: _smb._tcp.local#011IN#011PTR KATIE._smb._tcp.local ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: KATIE._smb._tcp.local#011IN#011TXT  ; ttl=4500
Jun  7 21:01:26 katie avahi-daemon[693]: ;; WIDE AREA CACHE ;;;

Ping still doesn't work though. Is this what the cname lines in syslog should look like?

So that looks good now.  Where are you pinging from?  Can it ping katie.local? If it can ping katie.local based on that info you should be able to ping zwave.local for example.  But this shows that the info has been passed through from docker, and out to avahi, to the proxy is doing it's job :)

Weird. Pinging from my Windows laptop, which is on the same network:
$ ping katie.local

Pinging katie.local [fe80::5fe1:15f:977e:69a7%2] with 32 bytes of data:
Reply from fe80::5fe1:15f:977e:69a7%2: time=5ms
Reply from fe80::5fe1:15f:977e:69a7%2: time=2ms
Reply from fe80::5fe1:15f:977e:69a7%2: time=3ms
Reply from fe80::5fe1:15f:977e:69a7%2: time=2ms

Ping statistics for fe80::5fe1:15f:977e:69a7%2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 5ms, Average = 3ms

$ ping zwave.local
Ping request could not find host zwave.local. Please check the name and try again.

As you say, I guess this is no longer an issue with this project, though now I'm not sure where the issue is!

authors: techiebod twastvedt

repo: hardillb/nginx-proxy-avahi-helper


text:
Disconnect from browser occurs every 20-50 page.GoToAsync()

Hello, following code throws an exception about one time per 20-50 navigations. Every time it is occurs on random link at random time.
  var options = new ConnectOptions();
  options.BrowserWSEndpoint = "ws://127.0.0.1:9222/devtools/browser/dbc9bf45-1b64-4928-a4b3-34e1978237e0b2";

  var browser = await Puppeteer.ConnectAsync(options);
  var page = await browser.NewPageAsync();

  while (true)
  {
      foreach (var website in websites)
      {
          await page.GoToAsync(website, 120_000);
          await Task.Delay(1_000);
      }
  }

Most often exception looks like:
Navigation failed because browser has disconnected! (Connection failed to process Target.attachedToTarget. Protocol error(Page.setLifecycleEventsEnabled): Target closed. (Target.detachedFromTarget).    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at PuppeteerSharp.CDPSession.<SendAsync>d__33.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\CDPSession.cs:line 97 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at PuppeteerSharp.FrameManager.<InitializeAsync>d__44.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\FrameManager.cs:line 83 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at PuppeteerSharp.FrameManager.<OnAttachedToTargetAsync>d__51.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\FrameManager.cs:line 258 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at PuppeteerSharp.FrameManager.<>c__DisplayClass49_0.<<Client_MessageReceived>b__0>d.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\FrameManager.cs:line 216)
List of websites (following list - it is just example. errors occur on any links):
  string[] websites = new[]
  {
      "https://www.codeproject.com/",
      "https://github.com/",
      "https://visualstudio.microsoft.com/",
      "https://code.visualstudio.com/",
      "https://www.spyder-ide.org/",
      "https://nodejs.org/en/",
      "https://en.wikipedia.org/",
      "https://www.jetbrains.com/rider/",
      "https://www.jetbrains.com/pycharm/",
      "https://www.anaconda.com/",
      "https://www.python.org/",
  };

VERSIONS:
Chrome browser: Version 106.0.5249.119 (Official Build) (64-bit)
Chrome was started with args:  --remote-debugging-port=9222
OS: windows 11 home 64bit
RAM: 32gb
PuppeteerSharp : 8.0.0
.NET framework 4.8

Can you try with LaunchAsync instead of ConnectAsync?
Just to narrow the issue.

I did it (option Headless=false) and received same result: "Navigation failed because browser has disconnected!...".

I was able to reproduce it, and I think puppeter already fixed it here

authors: kblok liberration

repo: hardkoded/puppeteer-sharp


text:
Maybe should use callHook instead of hook

I guess here is for allowing other modules to modify the sitemap. So here probably should be call hook
https://github.com/harlan-zw/nuxt-simple-sitemap/blob/79807da608df89d2765bf891254baf97414660d1/src/module.ts#LL129C9-L129C66

Hey! Thanks for the issue, my bad.
Have pushed up fix for it

authors: DanSnow harlan-zw

repo: harlan-zw/nuxt-simple-sitemap


text:
Can this be used in webpack?

I have noticed that for vue 2 you use runtime/installComponents but not for vue 3. Was wondering why. Also is this only for vue cli or can I use it with webpack too?
Thank you!

Hey @MrHBS
To answer your first question, the Vue component API is different between 2 and 3, there are fewer edge cases you need to account for in 3. If you are having issues with it please make an issue.
As for working in webpack in general, not out of the box, you could in theory hook up the loader though but it requires some knowledge of webpack.
The code you'd use is this bit, where the loader is the vue2 or vue3 loader depending on what you're using.
api.chainWebpack((webpackConfig) => {
    webpackConfig.module
      .rules
      .get('vue')
      // add our custom components loader before the vue-loader
      .use('components')
      .loader(require.resolve('./loader'))
      .options(pluginOptions)
      .before('vue-loader')
      .end()
  })

If you want to go down that path you're probably better off forking the package and getting it to work to your use case.

Just to make it clear I don’t need the runtime/installComponents if I am doing Vue 3 only right? It seems all the loaders I see (vuetify-loader, chakra-loader, etc) use that. Thank you so much! @harlan-zw

Just to make it clear I don’t need the runtime/installComponents if I am doing Vue 3 only right? It seems all the loaders I see (vuetify-loader, chakra-loader, etc) use that. Thank you so much! @harlan-zw

They're all for Vue 2. Vue 3 shouldn't need it. Through my testing I didn't run into any issues.
Read my article I wrote on how this work (linked in read me) if you're interested in where the differences would be

authors: MrHBS harlan-zw


text:
Document the Pass Manager

We're missing a lot of passes here.

Those are the ones listed in the C API 😩
Thank you!

authors: CodaFi harlanhaskins

repo: harlanhaskins/LLVMSwift


text:
feat: [pipe-20916]: zustand poc for pr provider

zustand poc for pr provider converted the data provider to use zustand store for all the variables

Will make a followup pr on the comments mentioned @knagurski

repo: harness/canary


text:
missing(?) imports, fix emacs syntax highlighting

While trying to build sbt without sbt, I got compile errors claiming that
util.Random would not be a member of util. The added import statements fixed
this.
The inserted spaces in the comments in project/Sbt.scala are a work around in a
bug in emacs scala syntax highlighting.

@thkoch2001 Hmm, I am worried about impedance mismatch with IDE refactoring. But fair enough.

repo: harrah/xsbt


text:
Title: CSS units Converter Extension

Is your extension request related to a problem? Please describe.
Whenever I am doing some work I mostly need Unit conversion of CSS measurements
like
rem to px
px to em
rem to em
px to percent
and so on ....
Describe the solution you'd like.
I would like to make a Unit converter Extension of css measurements.
Describe alternatives you've considered.
NA
Add any other context or screenshots about the extension here.
No response

I want to work on this under JWOC.


text:
Add other neural net types

It'd be really cool to have something like this: http://karpathy.github.io/2015/05/21/rnn-effectiveness/ in brain.js

So I did several weeks of non-in-depth searching for a js implementation of a recurrent neural net that was general enough for reuse and output a single function for reuse like some of the more popular libraries in js, and I couldn't find one.  The above blog post served me with some serious insight, and I found (low and behold) where @karpathy wrote a very nice javascript implementation that was still in beta, but very well proved the points of what the neural net could do.
After a couple days of experimenting, I ended up creating the branch above.  And as of later today I feel like I really got the ball rolling: here: https://github.com/harthur-org/brain.js/compare/recurrent?expand=1#diff-bc861d9ec4bdd00fbfec14233411cce4R1
I was able to clean up the way the the network is instantiated, so it is like the following:
new RNN({
  needsBackprop: true,
  inputSize: -1,
  hiddenSizes: -1,
  outputSize: -1,
  learningRate: -1,
  decayRate: 0.999,
  smoothEps: 1e-8,
  stepCache: {},
  ratioClipped: null
});

Note: it doesn't yet work, but it will!
Also the solver and the graph I merged into RNN, so rather than creating new ones, we can potentially reuse some of the instantiated objects/methods so there isn't as much memory leakage, though I have not really measured that as of yet, I know, I know, premature optimization... I just didn't feel like creating a ton of different objects when I could do it in one place.  I just saw a lot of usage of new Foo() where the function seemed like it should be a part of the neural network, and/or returned something, thus overriding the whole new concept.
The end goal, I feel, is to create a reusable recurrent neural network in js that matches very closely what @harthur started with the initial brain concept, also that is run very efficiently, can train easily, and when done, can output a single function that wraps the entire functionality of the trained network.

Listing some notes as I find them.  I did find some very nice implementations in

lua: https://github.com/karpathy/char-rnn written by @karpathy
julia: https://github.com/Andy-P/RecurrentNN.jl written by @Andy-P BUT based off the work of @karpathy
c#: https://github.com/zhongkaifu/RNNSharp

You'll notice a theme here... no fully working reusable library in js yet

As for some of the network properties, I've been using http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/43905.pdf which seems to be very straightforward on the mathematical properties.

Also, outstanding illustrations: http://colah.github.io/posts/2015-08-Understanding-LSTMs/

I did finally see this: https://github.com/cazala/synaptic/blob/master/src/architect.js#L52
Not specifically an rnn, but rather a type of rnn, a long short term memory (lstm) neural network.

While I really like the above approach on abstracting into an architect, I don't think it exactly merges with the existing means used in brain.js, but I could be wrong.

Sorry if my question sounds like totally off the planet but I'm just starting with AI and would like to know if this issue would solve my use case.
I'd like to feed lots of text data to brain.js and then have it generate other text. As I understand brain.js capabilities that doesn't seem possible today, right?

There are a number of network types that would work for you.  The current network type in brain.js, a feed forward neural net, wouldn't be ideal.  I believe the exact network type you'd want is either a an rnn, lstm (both of which I'm working on) or a gru, but there are hoards of different types of networks that may be what you are looking for.
This looks like it might fulfil your exact use case: https://github.com/garywang/char-rnn.js
Ironically, it is a port of similar code I'm working on.

Thank you for your quick response. That's really interesting. Unfortunately there doesn't seem to be much documentation for the linked project. Do you have any pointers for work you are currently doing that you mentioned? Will this be something based on brain.js?
Also when you say the feed forward neural net wouldn't be ideal can you elaborate how it could work at all? The way I understand it, after I trained the network, I can only get a score calculated from some other input text that I feed to the network. But I couldn't make it to actually generate text, right?

Thank you for your quick response. That's really interesting. Unfortunately there doesn't seem to be much documentation for the linked project.
I think that is what we're aiming at solving.
Do you have any pointers for the work you are currently doing that you mentioned?
Read this entire article, and look at the mentioned libraries/projects: http://karpathy.github.io/2015/05/21/rnn-effectiveness/
By the end, you may be the expert!
Will this be something based on brain.js?
Short answer: yes, that is the goal.
Long answer: I've started porting @karpathy's work to the style of brain.js, which should give a very simplistic, very minimal format so that the these types of neural nets aren't a mystery, but easily understood (I have been writing code more than half my life, and still feel the best type of code is something I can easily explain to a four year old 😄, but that may be because I'm just not that smart 😛) but it isn't even running as of yet, at least not in something that doesn't result in a runtime exception.

Also when you say the feed forward neural net wouldn't be ideal can you elaborate how it could work at all?
A recurrent neural network (or more specifically an long short term memory network, generally called lstm) keeps some of what it learns over the duration that it runs, it can even imagine or generate things similar to what it has learned.  It can learn to spell, to write sentences, etc. because it can recall patterns that it previously ren through.  A feed forward network has no memory, it is weighted math and is more for classification or pattern recognition.
You could probably devise a means of using a feed forward network, but it would largely be a solution outside of what the network itself is able to produce.

Thanks for this great answer! This made a lot of things much more clear to me 👍

Huge find here: https://github.com/Atyanar/neuraljs
Implementing work done by @karpathy, and apparently working in js, and with the addition of gru's.

breakthrough!  Just got rnn seemingly online.  Still a lot of work to match the strategy outlined in brain.js, but here is what instantiation of a vanilla rnn looks like:
var rnn = new RNN({
  inputSize: vocabData.inputSize,
  outputSize: vocabData.outputSize
});
rnn.input(phraseToIndexes(randomPhrase()));
var prediction = rnn.predict();
console.log(indexesToPhrase(prediction));

as outlined here: https://github.com/harthur-org/brain.js/commit/cdfd34840736080121b8fa36aea006bd6659980c#diff-1c9e38cd442769faa688f4c4536b5073R90

In the past I have used Brain.js and some other JavaScript based machine learning libraries but unfortunately I have found them not matching my needs. That's why, working on my personal projects, I have developed the idea of creating a different approach by myself. So, sorry to be here to talk about another project but I would really like to receive some opinions and suggestions from experienced people that, being into this specific field, could help me to set useful and shared expectations. By the way, thanks for the great support given to Brain.js so far.

Can you ask this in a different issue?  That way it stays focused on the issue at hand.

Both lstm and rnn are now up and running, and should have gru running in a few hours.

all of them up and running, and have to and from json tested.

I've also been reading around karpathys works, specifically their convnet js.
https://github.com/karpathy/convnetjs
This perticular one states that it may not even work as it is, I am still reading around and playing with the demo's they've got on their site.
I am not too new to the idea of neural networks, i've been studying them and the theories behind them for the last year or so, but I've never attempted to implement one, or even work with one.
I've got a bit of experience doing other probabalistic programming though, markov chains and so on.
I am wondering how feasable it would be to take the Feedforward model used in the core of brain and build a convolutional network off of it?
Also, conv net had some other interesting ideas. For example, it was very easy to create different layer types, so one could create a convolutional layer, followed by a simpler feed forward layer, followed by some pooling, some regression neurons, and so on.
Brain doesn't appear to have this ability so much, the layers are kind of locked into a single activation function ( I think that I read it was a tanh?)
I will share my experiments, if I can get a convolutional network out of the brain framework.

I've also been reading around karpathys works, specifically their convnet js.
https://github.com/karpathy/convnetjs

Yea, his mind is fantastic at this stuff, I wish I could follow his code better.  For us mere mortals, I think brain.js's goal is ultimately simplicity, usefulness, and speed.  For example, the toFunction method, when I first saw it, I was struck by how simplistic the implementation: https://github.com/harthur-org/brain.js/blob/master/src/neural-network.js#L497

This perticular one states that it may not even work as it is, I am still reading around and playing with the demo's they've got on their site.

Welcome to the club 😄

I am not too new to the idea of neural networks, i've been studying them and the theories behind them for the last year or so, but I've never attempted to implement one, or even work with one.
I've got a bit of experience doing other probabalistic programming though, markov chains and so on.
I am wondering how feasable it would be to take the Feedforward model used in the core of brain and build a convolutional network off of it?

Absolutely, and I would welcome the idea!  The guidelines would be that it would need to match very close the existing api for the standard feedforward network.

Also, conv net had some other interesting ideas. For example, it was very easy to create different layer types, so one could create a convolutional layer, followed by a simpler feed forward layer, followed by some pooling, some regression neurons, and so on.

I don't mind this so much, but the further we bury the neural network as an abstraction feels like it takes away from the original model, simplicity, usefulness, and speed.  I would much rather see 100 lines of pure convolutional network, than it abstracted into 50, for the simple reason that it may be less composable, less understandable.  Too, "burying in abstraction" is popular, but fine tuning it with simplicity not so much.  End the end though, I'm sure just following simplicity first would end us up with something useful.

Brain doesn't appear to have this ability so much, the layers are kind of locked into a single activation function ( I think that I read it was a tanh?)

tanh and sigmoid for recurrent neural nets, sigmoid for feed forward.

I will share my experiments, if I can get a convolutional network out of the brain framework.

I look forward to working with you!

Going to go ahead and close this issue and continue on new issues:
ANN: https://github.com/harthur-org/brain.js/issues/38
RNN, LSTM, GRU: https://github.com/harthur-org/brain.js/issues/24
Convolutional: https://github.com/harthur-org/brain.js/issues/39
Please post any other types that would be beneficial, but for the time being, closing.

authors: antoniodeluca cburgdorf riatzukiza robertleeplummerjr


text:
[Question]Not able to boot on Cisco UCS

Cisco UCS  B200 M2 Server (rather old) with 96Gig of ram and 320Gb HDD. Installed fine, but not booting up.

@zlojadmin Did you see the GRUB menu? Are you using UEFI mode or legacy mode? Thanks.

@bk201 No, no GRUB menu. Which mode should I use?

@zlojadmin Harvester should support both modes. If you are using UEFI mode, you can check if a correct boot partition is selected in the BIOS menu. For legacy mode, selecting the install disk should be fine.

@bk201 Reinstalled from scratch, no luck booting. Is there a way to get installation logs maybe? There is installers console available after ATLT+F2, but I have no idea what is username/password. I can try to login and check if all components are installed maybe?

@zlojadmin you can log in with rancher/rancher.

Looks like installer is not creating anything for Legacy boot. Tried to enable EFI boot, but server does not support it. I'm not expert on EFI boot at all. Only thing I have noted that none of 6 partitions are marked as "bootable". Tried to Trigger boot flag for first partition - no luck. Also Cisco USC is rather "interesting" platform by itself. Maybe I can provide you some kind of info to try to resolve boot issue for Cisco UCS M2 b200 Blade servers

repo: harvester/harvester


text:
[BUG] Need to add internalization settings for specific strings

Describe the bug
Some strings are not included in the en-us.yaml file and therefore cannot be localized.
To give some examples:

tableheaders.groupRoleNames
tableheaders.restart
tableheaders.data
management.cattle.io.nodedriver

Closing as they are already implemented via #7573. Thanks, @bisht-richa


text:
[BUG] Clone default storage also clone the default annotaion

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to Advanced -> Storage Classes
Clone a storage class which is the default

Expected behavior

The storage class which is cloned from the default storage class should not be the default.
Support bundle

Environment

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

Additional context
Add any other context about the problem here.

@n313893254 thanks for the fix :smile:  - :+1:
I validated on Harvester Version: master-61a6124a-head
That this looks good :smile:


text:
[BUG] The favicon icon is incorrect

Describe the bug

The newly installed harvester-rc4 has an incorrect favicon icon。

According to this pr, we expect the value of v1/management.cattle.io.settings/ui-brand to be equivalent to harvester, which is now  '' . https://github.com/harvester/harvester/pull/3784

To Reproduce
Steps to reproduce the behavior:

Go to '...'

Expected behavior

The expected icon should be the harvester icon
Support bundle

Environment

Harvester ISO version:  harvester-rc4
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.

Tested in Harvester master-a3ee4dcb-head. Validated that Harvester favicon is showing on the main pages and that it is also showing on the support page. Although on the support page it briefly goes to the Rancher icon then it changes back.
If harvester is imported into upstream Rancher the icon stays as rancher even when in the Virtualization management pages. I assume this is by design. Closing as fixed.


text:
Able to exclude partition based on ext filesystem label

Related issue: https://github.com/harvester/harvester/issues/1282

Separate filter to two filter interface: DiskFilter and PartFilter
Add new label filter which excludes partition based on given pattern of filesystem label
Add new cli arg --label-filter and new environment variable NDM_LABEL_FILTER. It accept a comma separated glob patterns describing in path/filepath#Match

Following tasks after merged.

[ ] Update helm chart for harvester/charts repo https://github.com/harvester/charts/pull/34
[ ] For harvester-installer, add a new value to exclude COS_* label https://github.com/harvester/harvester-installer/pull/140

Test plan

You can test the docker image at weihanglo/node-disk-manager:label-filter

Run node-disk-manager with --label-filter arg, e.g. --label-filter "COS_*" to exclude partition with ext label starting with COS_ prefix
Label your partition with that label, e.g. e2label /dev/sda1 MY_LABEL_*
You shall see that periodic scanning removes partitions matching that filter value.

LGTM. It might be better to filter out the disk that contains the unwanted partitions too.

@guangbochen
Just added a logic for applying label filter on disk. If all of its partitions are excluded, the disk would be excluded, too.
Another fix is that in previous implementation, we exclude the whole disk if one of its partition mounted on the excludePaths. That is too restricted, so I separate the logic for each filter to take care only given disk or partition. If you think this change is not what we want, we can revert it. Thanks.

repo: harvester/node-disk-manager


text:
cbs: added a check of data in db

checks that cbs data was updated in last 180 days
https://github.com/hasadna/anyway/issues/1906

running on dev: https://dev-airflow.anyway.co.il/tree?dag_id=cbs

successful on dev: https://dev-airflow.anyway.co.il/log?dag_id=cbs&task_id=check-data-in-datastore&execution_date=2021-09-16T00%3A00%3A00%2B00%3A00
[2021-09-17 17:18:59,298] {bash.py:173} INFO - involved_markers_hebrew: 2021-07-31 23:15:00
[2021-09-17 17:18:59,300] {bash.py:173} INFO - markers_hebrew: 2021-07-31 23:15:00
[2021-09-17 17:18:59,300] {bash.py:173} INFO - vehicles_markers_hebrew: 2021-07-31 23:15:00

released in https://github.com/hasadna/anyway-etl/releases/tag/v0.0.4
successful on production: https://airflow.anyway.co.il/log?dag_id=cbs&task_id=check-data-in-datastore&execution_date=2021-09-17T15%3A19%3A50.069135%2B00%3A00

repo: hasadna/anyway-etl


text:
infographic data overload the server

handle infographic data GET request is for returning 502 HTTP  error

when a call for the news-flash API has been made to the ANYWAY server, a call for all relevant infographic data has been called at the background and saved to server cache. the execution of the infographic data  GET requests in a loop  results in a 502 HTTP  error for some of the data.


text:
חיפוש נסיעות לפי מספר לוחית רישוי

התקבל בדוא"ל:
שלום ותודה על הפרוייקט המדהים שהרמתם,
אשמח שתצרפו למידע ההיסטורי על נסיעות גם את מספר הרישוי של האוטובוס וגם את סידורי העבודה, כלומר שיהיה ניתן לראות לפי מספר רישוי איזה נסיעות הוא ביצע באותו היום.
הנתונים האלה חשובים מאוד לצורך איתור אבידות.
מספר האוטובוס יכול לאפשר לנוסע לנסות ולמצוא בכוחות עצמו את האבידה (כי הוא ידע את מספר האוטובוס, ויוכל לחפש אותו איפה הוא פעיל היום), וסידורי העבודה יכולים לשפוך אור על המסופים בהם ביקר האוטובוס, כלומר המיקום אליו הורידו את האבידה, במידה האבידה איננה על האוטובוס.
מדובר במידע חשוב מאוד שיכול לעזור להרבה אנשים ולחסוך את עוגמת הנפש שיש להם כיום.
כמו"כ, אם ניתן לקבל את סידורי העבודה העתידיים, הרי שניתן לייצר תחזית על איחורי ביצוע (כי אם אוטובוס לא סיים את המסלול הקודם, אין סיכוי שהוא יתחיל בזמן את המסלול הבא)
תודה רבה לכם על הכל ושנזכה כולנו לימים רגועים ושקטים יותר

לפי דעתי מספר האוטובוס שמופיע אצלנו לא תמיד תואם למספר הרישוי, צריך לבדוק את זה

עבור חלק מהחברות המספר ריק, אבל לחלקן המספר נראה תקין. לדעתי אפשר יהיה לפתח פתרון חלקי

אם אין מספר זה בסדר, הבעיה שהבנתי שקיימת היא שברוב המקרים המספר הוא בכלל לא מספר רישוי או שהוא לא תואם בפועל לאוטובוס עצמו

דוא"ל נוסף שהתקבל (השמטתי פרטים מזהים, אם מישהו מתעניין לדעת איזו מועצה ומי איש הקשר, ניתן ליצור איתי קשר בדוא"ל noam.gaash@gmail.com ):
שלום רב.
כאן <שם מלא> מנהל מחלקת תחבורה ושירות לתושב במועצה מקומית <שם מועצה>.
ראשית ברצוני לומר שהפלטפורמה שלכם נהדרת, ואני מוצא את עצמי נעזר בה רבות.
יש לי הצעה להוסיף לאתר אופציה של חיפוש לפי מספר לוחית רישוי של אוטובוס ואני אסביר:
לא פעם פונים אליי תושבים שאיבדו חפץ אישי באוטובוס. כשהתושב פונה אליי עוד באותו היום אז לו רק יכולתי לומר לו היכן האוטובוס כעת ואיזו נסיעה הוא מבצע אזי הייתי יכול לחסוך לו זמן יקר של התרוצצות מול מחלקת אבידות בחברות התחבורה.
הנני בטוח שהדבר אפשרי להקמה.
ניתן ליצור עמי קשר: <מספר טלפון>

@NoamGaash
היי,
אשמח לקחת את המשימה הזו, כיצד תרצו להנגיש את המידע?

@TuvalSimha
אני חושב שכמו שיש מפה לפי קו, כדאי שתהיה אפשרות למפה לפי לוחית רישוי.
אני מדמיין שיש בחירה של תאריך, text input ללוחית רישוי, ואז ייפתח dropdown של בחירה לפי שעת יציאה של הנסיעה. בדומה לדף מפה לפי קו

@TuvalSimha
הי תובל, מה שלומך? אם אתה צריך עזרה מוזמן להתייעץ בקבוצות סלאק ודיסקורד, או כאן בissue

@NoamGaash היי, אשמח לקחת את המשימה הזו, כיצד תרצו להנגיש את המידע?

היי נעם האם הצלחת לפתח את הדבר הזה?

@levik770
הי לא עבדתי על זה, ולא ידועה לי על התקדמות בתחום. אם תרצה, מוזמן :)

@levik770 הי לא עבדתי על זה, ולא ידועה לי על התקדמות בתחום. אם תרצה, מוזמן :)

הייתי עושה זאת עם רק הייתי יודע איך...

@levik770
תודה!
בגדול, השלבים כמו שאני רואה אותם:

לשנות את useVehicleLocation  שיוכל לקבל גם לוחית רישוי לפלטר לפיה
ליצור עותק של single-line-map, ולשנות שבמקום בחירה של מספר קו יהיה אינפוט של לוחית רישוי

מי יכול לעשות את זה?
לי אין מושג ואפילו קלוש בזה...

@levik770
כל מי שרוצה ויש לו רקע בjavascript - זה קוד פתוח :)
מניח שיש עוד אנשים שקוראים את השרשור, ואם מישהו מהם ירצה, המשימה שלו.

היי NoamGaash@,
אני אשמח לקחת על עצמי את המשימה הזו אם היא עדיין רלוונטית.
רק כדי לוודא שאני מבינה נכון:
הכוונה היא להוסיף טאב חדש בסיידבר שמציג מפה לפי לוחית רישוי?
מבחינת הפונקציונליות, המשתמש יבחר תאריך, חברה מפעילה ומספר רכב, ולאחר מכן תוצג לו מפת מסלול יומית של האוטובוס?
אשמח לדעת אם זה הכיוון או שיש הבהרות נוספות

@RGvirer
היי חנוכה שמח, תודה רבה.
באם תוכלי לצלצל אליי אסביר לך את כוונתי
053-3007915
לוי.

@RGvirer
בכללות כוונתי היא שכמו שיש לשונית 'חיפוש לפי קו', תהיה לשונית 'חיפוש לפי לוחית רישוי'.
ואז המשתמש מכניס תאריך, חברה ולוחית רישוי ואז נפתחת רשימה של המסלולים ומספרי הקווים שהרכב הספציפי ביצע באותו יום. (אפשר אולי לוותר על הסינון לפי חברה, ההזנה של לוחית הרישוי כבר מדייקת את החיפוש מספיק).
אם יש עוד שאלות אני זמין.
תודה רבה.

@levik770
תודה על ההבהרה, אני מנסה להתחיל...
אשמח לעוד מידע לגבי אכסון הדאטה של הלוחיות, צריך לקחת את זה מה API של משרד הרישוי? או שהמידע קיים כאן?

@RGvirer המידע על מספר לוחית הרישוי מופיע כשמחפשים קו מסויים באתר. זאת אומרת שהמידע הזה כן קיים באתר. צריך למצוא איך להגדיר שתהיה אפשרות לסנן על פי זה

https://open-bus-stride-api.hasadna.org.il/docs#/
המידע קיים
אם משתמשים בuseVehicleLocation אחד השדות נקרא siri_ride__vehicle_ref ומכיל לוחית רישוי

authors: NoamGaash OriHoch RGvirer TuvalSimha levik770

repo: hasadna/open-bus-map-search


text:
死亡検出の精度を上げる

「復活まであと何秒」だけを見て検出しているが、私の手元では誤検出しないものの
他の環境で誤検出があるため他の部分も同時にみて判断する。
「復活まであと何秒」＆＆「たおした！」　→　死亡理由判定、かな。

ひなさんの stat.ink を見る限り H.264 エンコードされた画像でもチャタリングを
起こさなくなったようなので、とりえあえず大丈夫。
064b91cfb3120c62f0018f4911e637dace7ec8fb

repo: hasegaw/IkaLog


text:
feat(helm): add liveness probe to node

Description
added simple 'httpGet' liveness probe to network node statefulset that hits the prometheus metrics endpoint to determine liveliness for the node
Related Issues
closes #818

:tada: This PR is included in version 0.32.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: instamenta swirlds-automation

repo: hashgraph/full-stack-testing


text:
fix: local chart directory not being taken correctly

Description
This pull request changes the following:

Fix multi command of using ctx.chartPath to be able to local chart directory correctly
Add mocked unit test for network and cluster command to check chart install parameters

Related Issues

Closes #952

@JeffreyDallas , test case failure

:tada: This PR is included in version 0.32.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: hashgraph/solo


text:
Clarify laws of NonDet

NonDet satisfies the "left-catch" law for MonadPlus but not the "left-distribution" law. This is a little surprising, since that makes it more "maybe-like" than "list-like" (Maybe satisfies "left-catch" but not "left-distribution", and vice versa for lists), which isn't quite what I'd expect for a non-determinism monad.
return x `mplus` m = return x -- left catch
(m `mplus` n) >>= k  =  (m >>= k) `mplus` (n >>= k) -- left distribution

In practice this means that:
do
   v <- a <|> b
   f v

is not the same as
(f a <|> f b)

so you can't guard after you <|>, etc.
I don't think it's possible to satisfy "left-distribution" with NonDet as it's currently implemented, since it's implemented with exceptions. So I just think we should say something in the documentation, to save future people some time!

Interesting! I think that's the opposite. I don't know what "algebraic" means in this context, but it sounds like their Choice effect satisfies left-distribution ,which is what I want.
I'll make you a PR :)

repo: haskell-effectful/effectful


text:
haddock-test package needs to be up on Hackage

We need to start versioning and uploading the haddock-test package to Hackage to ensure that users can run the haddock testsuite from Hackage.

Fixed by #522.

authors: Helkafen bgamari

repo: haskell/haddock


text:
Card doesnt work in HA 106.x

Hi,
After upgrade to HA 106 im getthing these errors on the card:
"Attempted to assign readonly property"
"Can´t define property "show_cardname": object is not extensible"
Hope its a easy fix!

@Pocke01 You are more than welcome to test the version in the dev branch. I will release as soon as in HACS

The dev branch works!
Nice work!

@Pocke01 Great I'll release it today in the afternoon. Thanks for testing


text:
CLIENTS: Generate Image

The Ask
We need to develop a Client Method that Generates Images by leveraging Foundation Service.
How to Complete this Task
Here's some steps to complete this deliverable.

Learn what Exposers are here
Watch how The Standard Community developed a similar Client for OpenAI here
If you have any questions - ask The Standard Community here
You cannot start working on this issue until #205 is completed and closed

How to claim this issue?

Post on this issue a comment that says: "I claim this issue"
You will be given 24 hours to complete the issue - if no PR is opened within 24 hours someone else will claim it
If you have an open PR but is inactive for more than 24 hours from the last review comment we will shutdown your PR

I claim this issue

authors: Gummimundur hassanhabib


text:
List out key features, esp. in comparison to similar tools

Features:

Public key based auth
No assumptions about directory structure (configure dockerfile path)
Rollout deployments in any namespace
Easy to fork and customise
Super easy to use and configure

You could add #27, Helm Apps, which falls into the same category... Ease of use.

Key features have been listed in https://github.com/hasura/gitkube/tree/master#features . Keeping this issue open for further addition of comparisons with other tools, etc

authors: coco98 marcellodesales tirumaraiselvan

repo: hasura/gitkube


text:
🛑 Comment Server is down

In 7f9ce95, Comment Server (https://nikas.arash-hatami.ir) was down:

HTTP code: 504
Response time: 15478 ms

Resolved: Comment Server is back up in a5a65e7 after 40 minutes.


text:
🛑 Comment Server is down

In 9821f25, Comment Server (https://nikas.arash-hatami.ir) was down:

HTTP code: 504
Response time: 15597 ms

Resolved: Comment Server is back up in 45f6c43 after 19 minutes.


text:
Hackers nft updates

Removes vault, description, and tier from the NFT and use the IPFS hash for the token ID.
Adds option to permanently stop minting of an NFT or multiple NFTs.
Adds HATHackersNFT to the deployement scripts and deploy to Goerli.
Transfer ownership to Hats governance on deployment.

Hi, so I'm not sure about the comments.

I could add a createAndMint function or something, but I don't think it's in any way unnatural to have the create separated from the minting. The create only happens one, while minting can be called many times. So I think it makes sense to separate them.
To use that "whitelist" to stop minting would mean to delete/ alter the uri of the NFT which is not what we want. And the blacklisting to not be able to ever mint (even though it's only owner) was a requirement Shay asked for.

repo: hats-finance/hats-contracts


text:
openID steam auth

Hello!
I'm trying to use this module for authenticating the steam user.
As far as I know I'm using it correctly(stateless: true)
I'm getting this error unfortunately: http://prntscr.com/8xvsxj
Can anyone help with this?
My code:
var relyingParty = new openID.RelyingParty(
    'http://localhost:3000/steam/success', // Verification URL (yours)
    null, // Realm (optional, specifies realm for OpenID authentication)
    true, // Use stateless verification
    false, // Strict mode
    [] // List of extensions to enable and include
);

app.get('/game/auth/steam', function(req, res) {

	relyingParty.authenticate('http://steamcommunity.com/openid', false, function(error, authUrl) {
		if (error)
		{
			res.sendError(error.message);
		}
		else if (!authUrl)
		{
			res.sendError('Authentication failed');
		}
		else
		{
			res._setSuccess(true);
			res._send({
				action: 'redirect',
				url: authUrl
			});
		}
	});
});

Thanks,
Akos

Sorry! False alarm! The problem was on my side.

repo: havard/node-openid


text:
Update for Gleam 0.34

Updated nibble for Gleam 0.34. I checked that it builds but I haven't checked yet that it works as there are no tests.
There are also some formatting changes which gleam fixes did automatically. I tried to roll back some of them.

Oh lol I didn't even notice #8. :D

repo: hayleigh-dot-dev/gleam-nibble


text:
Re-implement bytecode on top of codetype

Using the builtin code type can guard against future changes to the bytecode format. This is from an SO question:
MyCode= CodeType(
        0,
        0,
        0,
        3,
        64,
        bytes([101, 0, 0,    #Load print function
               101, 1, 0,    #Load name 'a'
               101, 2, 0,    #Load name 'b'
               23,           #Take first two stack elements and store their sum
               131, 1, 0,    #Call first element in the stack with one positional argument
               1,            #Pop top of stack
               101, 0, 0,    #Load print function
               101, 1, 0,    #Load name 'a'
               101, 2, 0,    #Load name 'b'
               20,           #Take first two stack elements and store their product
               131, 1, 0,    #Call first element in the stack with one positional argument
               1,            #Pop top of stack
               100, 0, 0,    #Load constant None
               83]),         #Return top of stack
        (None,),
        ('print', 'a', 'b'),
        (),
        'PersonalCodeObject',
        'MyCode',
        1,
        bytes([14,1]),
        (),
        () )

It is already so (look at https://github.com/haypo/bytecode/blob/master/bytecode/concrete.py in ConcreteBytecode.to_code method). And actually does not solve everything (the example you posted works on 3.5 not 3.6 that use wordcode (2 byes per instruction)).

authors: MatthieuDartiailh xoviat

repo: haypo/bytecode


text:
Can you help me?

Hello bro!
I want to make offside in haxball like this: https://imgur.com/a/f2JN1Uh
How can I do it?

Bro, this is a thing really complicated to make because need a lot of math to get position of players in all ticks; to see if a player is in offside and a function to make this u see in the printscreen.

Bro, this is a thing really complicated to make because need a lot of math to get position of players in all ticks; to see if a player is in offside and a function to make this u see in the printscreen.

When a player is in control of the ball and attempting to pass it forward an offside offence may occur.

Olá mano!
Eu quero fazer o impedimento no haxball assim: https://imgur.com/a/f2JN1Uh
Como eu posso fazer isso?

[ PT-BR ]

Você vai identificar a posição da bola:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#getballposition

Determinar a posição do jogador:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#ongametick

Você pode pegar alguns exemplos no issues do hh host:
https://github.com/haxball/haxball-issues/issues

Olá mano!
Eu quero fazer o impedimento no haxball assim: https://imgur.com/a/f2JN1Uh
Como eu posso fazer isso?

[ PT-BR ]

Você vai identificar a posição da bola:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#getballposition

Determinar a posição do jogador:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#ongametick

Você pode pegar alguns exemplos no issues do hh host: https://github.com/haxball/haxball-issues/issues

I already know all of them but very much possibility is there.

Olá mano!
Eu quero fazer o impedimento no haxball assim: https://imgur.com/a/f2JN1Uh
Como eu posso fazer isso?

[ PT-BR ]

Você vai identificar a posição da bola:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#getballposition

Determinar a posição do jogador:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#ongametick

Você pode pegar alguns exemplos no issues do hh host: https://github.com/haxball/haxball-issues/issues

I already know all of them but very much possibility is there.

https://hbanz.org/realsoccer/

Olá mano!
Eu quero fazer o impedimento no haxball assim: https://imgur.com/a/f2JN1Uh
Como eu posso fazer isso?

[ PT-BR ]

Você vai identificar a posição da bola:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#getballposition

Determinar a posição do jogador:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#ongametick

Você pode pegar alguns exemplos no issues do hh host: https://github.com/haxball/haxball-issues/issues

I already know all of them but very much possibility is there.

https://hbanz.org/realsoccer/

Not supporting offside. I have checked a few months ago.
You can look mate.

Olá mano!
Eu quero fazer o impedimento no haxball assim: https://imgur.com/a/f2JN1Uh
Como eu posso fazer isso?

[ PT-BR ]

Você vai identificar a posição da bola:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#getballposition

Determinar a posição do jogador:
https://github.com/haxball/haxball-issues/wiki/Headless-Host#ongametick

Você pode pegar alguns exemplos no issues do hh host: https://github.com/haxball/haxball-issues/issues

I already know all of them but very much possibility is there.

https://hbanz.org/realsoccer/

Not supporting offside. I have checked a few months ago.

@Skarmunds

Who knows that?

Who knows that?

Entre no discord > https://discord.gg/UWYuxwEKfn
Tem uma pessoa que tem um script de real soccer exatamente como você quer

Has not been solved yet.

authors: byoxygen guguxh hbenormous

repo: hbenormous/haxball-headless-help


text:
Double-Square cards

Add double-square cards that enable players to move to the second square of that color instead of the first

Feature implemented

repo: hcduffey/candyland


text:
🛑 stagin-env is down

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

HTTP code: 0
Response time: 0 ms

Resolved: stagin-env is back up in 514d801 after 7 minutes.

repo: heIsThePirate/upptime-lessonpal


text:
[RFE] Add support to view and manage helm releases

Helm is a widely used kubernetes package manager, having a way to manage helm releases will be a good idea. Maybe we can create this as a plugin for headlamp.

Should this be a plugin or a core feature?
More importantly, does it make sense to be enabled on in-cluster? I think you had mentioned that this would need the helm binary, meaning it'd likely be a desktop-only feature.

@yolossn Is this about providing a UI for all the helm commands or did you have subset in mind?
List would be useful at minimum IMHO. A slightly larger feature set could be taken from the CKAD exam, where they have a set of commands people should know how to use.
For browsing charts, that's basically the feature set of https://artifacthub.io/  / https://github.com/artifacthub/hub Which includes browsing, filtering and such. I can imagine people also wanting to add other (perhaps internal) chart repos.

Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects.

We could link out to Artifact Hub to cover the discovery feature set perhaps?

More importantly, does it make sense to be enabled on in-cluster? I think you had mentioned that this would need the helm binary, meaning it'd likely be a desktop-only feature.

Does it make sense in-cluster? To use Headlamp to explore a cluster that uses Helm, it would be useful to see what helm things are installed there IMHO. Probably you could see this information already in a cumbersome way by exploring config maps(where helm stores its state). Apart from the binary we could run this in-cluster via either the helm Go SDK or by including the helm binary inside our image (or in a separate image) running on the cluster.
@yolossn I was wondering how Flux/Argos fits in here?
https://helm.sh/blog/tools-to-manage-helm-declaratively/

@illume @joaquimrocha sorry for the late reply.

Is this about providing a UI for all the helm commands or did you have subset in mind?
Yes it is about providing a UI for helm, Listing some of the commands at the top of my mind below:

List charts (From artifacthub or other sources)
Install charts
List Releases
Upgrade a Release
Delete a Release
Update the values with which a Release was made

Does it make sense in-cluster?
Should this be a plugin or a core feature?

Like @illume pointed out it is possible to be both an in-cluster feature and an app only feature. It depends on if we prioritize to bundle this feature always with headlamp or make it optional. If we want this to be optional then we have to take the app only route if we want it to be a core feature we can explore using the Helm Go SDK.

I was wondering how Flux/Argos fits in here?

I have limited experience with Flux/Argos but from my first glance I think this expects the cluster to have Argo CI/CD or Flux installed in the cluster which we don't have control over. Maybe we can check if the cluster has Flux/Argo and enable the declarative features selectively. That being said I am not sure about how widely this declarative helm concept is used.

@joaquimrocha Hello, sorry but I don't understand what you mean by "this is done"? Actually I'm looking for a web UI to use with Flux. As you may know this is one of its drawback compared to ArgoCD. An existing web UI named weave-gitops won't be maintained and a specific one is under development named capacitor. That said, I think that'd be great to have basic operations on flux resources in Headlamp.

Hey @Smana We have app-catalog plugin to view and manage Helm charts, but it is available only in the desktop version of Headlamp.

authors: Smana illume joaquimrocha yolossn


text:
WIP: frontend registerAppBarAction: fixes state mutation error

Fixes for issue #1088
Currently:

Similar to the screenshot in the original issue, I am able to replicate the error in the browser console by parsing through the error messages at the root dir of my local dev env. The original screenshot delivers the error for plugins\cop, but I am using the headlamp-pod-counter plugin (the only plugin I ran) and the same error is delivered.
I implemented the suggested change Rene had mentioned when overviewing the issue, changing the newFilters const variable to be a clone.
By changing  const newFilters = { ...state } to const newFilters = _.cloneDeep(state) within the reducer function in headlamp/frontend/src/redux/reducers/ui.tsx, and reloading the home dir in the dev env, I no longer see the error message.
I will continue to look for alternative solutions if this is not a whole fix, including implementation of a redux slice.

Thanks @vyncent-t It's good to know this fixes the issue.
@joaquimrocha made a fix like this in https://github.com/headlamp-k8s/headlamp/pull/1090 for a different error, and then added this change in as well after.

authors: illume vyncent-t


text:
ModuleNotFoundError: No module named 'operon'

can't seem to find the module installed anywhere after running a successful install. Here's my setup:
# Installing operon
export CC=gcc-9
export CXX=gcc-9
# Dependencies
# - TBB - installed via conda
# - Eigen- installed via conda
# - Ceres- installed via conda
# - {fmt}- installed via conda

git clone https://github.com/heal-research/operon
cd operon
# fix version
git checkout a45dd32

# run cmake
mkdir build; cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release  -DBUILD_PYBIND=ON -DUSE_OPENLIBM=ON -DUSE_SINGLE_PRECISION=ON -DCERES_TINY_SOLVER=ON

#install
make VERBOSE=1

python -c "from operon.sklearn import SymbolicRegressor"

I do see operon shared and static objects in the build/ folder:
ls build
buildinfo.hpp  CMakeCache.txt  CMakeFiles  cmake_install.cmake  _deps  liboperon.a  Makefile  _operon.cpython-39-x86_64-linux-gnu.so

installing operon is now part of CI in our regression-benchmarks project. If you have time maybe you can help update the script to get the build working on dev.
this is the install script: https://github.com/EpistasisLab/regression-benchmark/blob/dev/experiment/methods/src/operon_install.sh

Thanks for the report. That's because the module you see in the build folder is an internal module (that's why it's called _operon) that binds the methods from the C++ library almost 1:1. The internal module is wrapped by a pure python module operon which additionally provides the sklearn estimator.
Normally, you would provide an install prefix with -DCMAKE_INSTALL_PREFIX=/path/to/module and then run make install when the build is done. /path/to/module should be in the PYTHONPATH so python can pick it up.
I can update the install script but I would need to know where you want it installed.

Thanks for the report. That's because the module you see in the build folder is an internal module (that's why it's called _operon) that binds the methods from the C++ library almost 1:1. The internal module is wrapped by a pure python module operon which additionally provides the sklearn estimator.
Normally, you would provide an install prefix with -DCMAKE_INSTALL_PREFIX=/path/to/module and then run make install when the build is done. /path/to/module should be in the PYTHONPATH so python can pick it up.
I can update the install script but I would need to know where you want it installed.

Operon should end up in $CONDA_PREFIX/lib/python3.9/site-packages. I just tried providing this as an argument to -DCMAKE_INSTALL_PREFIX with no luck. I also tried creating a test_dir in the operon directory and specifying that, but no files were copied there. I do see the line "-- Python bindings will be installed in /path/to/operon/test_dir" during Cmake build, so maybe it is failing silently.
Could be nice to have the python module install as a python package using a minimal setup.py script and a call to python setup.py install.

Operon should end up in $CONDA_PREFIX/lib/python3.9/site-packages. I just tried providing this as an argument to -DCMAKE_INSTALL_PREFIX with no luck. I also tried creating a test_dir in the operon directory and specifying that, but no files were copied there. I do see the line "-- Python bindings will be installed in /path/to/operon/test_dir" during Cmake build, so maybe it is failing silently.
Could be nice to have the python module install as a python package using a minimal setup.py script and a call to python setup.py install.

This install script works on my ubuntu machine. It seems that CMake is able to detect the correct library path, so I'd recommend omitting CMAKE_INSTALL_PREFIX option so that we don't hardcode the python version.
The module import failure was caused by a name conflict, the file regression-benchmark/experiment/methods/operon.py should be renamed to something else like OperonRegressor.py.
# Installing operon
export CC=gcc-9
export CXX=gcc-9
# Dependencies
# - TBB - installed via conda
# - Eigen- installed via conda
# - Ceres- installed via conda
# - {fmt}- installed via conda

git clone https://github.com/heal-research/operon
cd operon
git checkout 79617d76c97838d91293cff5d4e4fda7230b904b
# run cmake
mkdir build; cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_PYBIND=ON -DUSE_OPENLIBM=ON -DUSE_SINGLE_PRECISION=ON -DCERES_TINY_SOLVER=ON

# build
make VERBOSE=1 -j pyoperon

# install
make install

After configuring and installing and renaming the regressor, I was actually able to run a small experiment:
time python evaluate_model.py -ml OperonRegressor Poly-10.csv -seed 1234 -results_path ./results/

This install script works on my ubuntu machine. It seems that CMake is able to detect the correct library path, so I'd recommend omitting CMAKE_INSTALL_PREFIX option so that we don't hardcode the python version.
The module import failure was caused by a name conflict, the file regression-benchmark/experiment/methods/operon.py should be renamed to something else like OperonRegressor.py.
# Installing operon
export CC=gcc-9
export CXX=gcc-9
# Dependencies
# - TBB - installed via conda
# - Eigen- installed via conda
# - Ceres- installed via conda
# - {fmt}- installed via conda

git clone https://github.com/heal-research/operon
cd operon
git checkout 79617d76c97838d91293cff5d4e4fda7230b904b
# run cmake
mkdir build; cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_PYBIND=ON -DUSE_OPENLIBM=ON -DUSE_SINGLE_PRECISION=ON -DCERES_TINY_SOLVER=ON

# build
make VERBOSE=1 -j pyoperon

# install
make install

After configuring and installing and renaming the regressor, I was actually able to run a small experiment:
time python evaluate_model.py -ml OperonRegressor Poly-10.csv -seed 1234 -results_path ./results/

ah ok. Adding make VERBOSE=1 -j pyoperon; make install worked like a charm. and i've fixed the name conflict. Would be good to get this in the documentation. Thank you!

ah ok. Adding make VERBOSE=1 -j pyoperon; make install worked like a charm. and i've fixed the name conflict. Would be good to get this in the documentation. Thank you!

Thanks! Just one last thing: it's maybe better to not fix the revision number in the install script, (at least not right now) since there are still some minor issues in the sklearn wrapper that need to be ironed out.

Thanks! Just one last thing: it's maybe better to not fix the revision number in the install script, (at least not right now) since there are still some minor issues in the sklearn wrapper that need to be ironed out.

authors: foolnotion lacava

repo: heal-research/operon


text:
Reconfirmation is triggered again if email is set to current unconfirmed_email

Environment

Ruby 3.0.0
Rails 6.0.3.4
Devise 4.7.3

Current behavior
user.email # => 'old@example.com'
user.update(email: 'new@example.com') # => sends reconfirmation
user.update(email: 'new@example.com') # => sends reconfirmation again

Expected behavior
user.email # => 'old@example.com'
user.update(email: 'new@example.com') # => sends reconfirmation
user.update(email: 'new@example.com') # => does not send reconfirmation again

background
We have a form and graphql API where users can edit all their attributes at once. When users change e.g. their name while they still have an unconfirmed_email, they unexpectedly get another confirmation mail. Our current workaround to prevent this is as follows:
new_attrs.delete(:email) if new_attrs[:email] == user.unconfirmed_email
user.update(new_attrs)

It definitely makes sense not to trigger another confirmation email if you're updating the model but not changing the email itself. I believe you are using/displaying the unconfirmed email in your form then? (based on the check you're doing to prevent the update of the email field?)

It definitely makes sense not to trigger another confirmation email if you're updating the model but not changing the email itself. I believe you are using/displaying the unconfirmed email in your form then? (based on the check you're doing to prevent the update of the email field?)

authors: carlosantoniodasilva jaynetics

repo: heartcombo/devise