text:
Confine snap

This PR confines the OTBR snap by adding the necessary interfaces to each app:
otbr-setup requires:

network,  network-bind, network-control and firewall-control plugs to set up the network and firewall.
system-observe and system-config-files plugs to access system information and config files in order to set up iproute (/etc/sysctl.* and /etc/iproute2).

otbr-agent requires:

network,  network-bind, `network-control plugs to set up the network.
avahi-observe and  avahi-control plugs to allow DNS-SD-based discovery.
bluetooth-control and bluez plugs for device discovery over Bluetooth Low Energy (BLE).
raw-usb to discover physically connected RCP.
system-runtime-files to access system files (/run/openthread-wpan0.*) during runtime.

otbr-web requires:

network,  network-bind plugs to access and operate the network.
system-runtime-files plug to access system files (/run/openthread-wpan0.*) during runtime.

ot-ctl requires:

system-runtime-files plug  to access system files (/run/openthread-wpan0.*) during runtime.

This PR also removes sudo from scripts during build time, to prevent file permission issues during runtime.
Testing
Build and setup:
snapcraft clean && snapcraft -v --debug

sudo snap remove --purge openthread-border-router
sudo snap install ./openthread-border-router_0.1_amd64.snap --dangerous

# set this if your infra interface is different from the default wlp3s0
sudo snap set openthread-border-router infra-if="eno1"

sudo snap connect openthread-border-router:system-etc-run-files
sudo snap connect openthread-border-router:avahi-control
sudo snap connect openthread-border-router:avahi-observe
sudo snap connect openthread-border-router:firewall-control
sudo snap connect openthread-border-router:raw-usb
sudo snap connect openthread-border-router:network-control
sudo snap connect openthread-border-router:system-observe
sudo snap connect openthread-border-router:bluetooth-control
sudo snap connect openthread-border-router:bluez

sudo snap connections openthread-border-router

Start :
sudo snap start openthread-border-router

Following the steps here to form a Thread Network:

Connect the RCP dongle (A) to a USB port
Use the CTL tool to initialize the Thread network:

sudo openthread-border-router.ot-ctl
> dataset init new
Done
> dataset commit active
Done
> ifconfig up
Done
> thread start
Done

Could you please review this? @farshidtz

Did another test, this time only using the GUI. I could form a network and see the status without an issue.

The testing of commissioning a Thread device into a Thread network, formed by this PR's confined OTBR snap, has encountered several issues.
First, the nRF52840 dongle stores pairing information from previous connections and disable BLE advertisement upon the first successful pairing. This makes the second pairing test impossible. Moreover, after a factory reset (pressing the reset button), the pairing info and disabled BLE advertisement are sometimes left behind, indicating that the factory reset might not be cleaning enough.
Another difficulty is when attempting to commission the Thread device into the Thread network using chip-tool with OTBR snap. The commissioning process can be performed successfully once with the unconfined OTBR snap, but never succeeds when using confined OTBR snap from this PR. This means that some interfaces might be missing for the confined OTBR snap.
Pressing the factory reset button on the nRF52840 dongle sometimes results in a clean factory reset, while other times it does not. This inconsistency makes it challenging to do efficient testing now. So it is best to hold this PR until the testing of commissioning the Thread device into the Thread network passes successfully.

A factory reset of the dongle appears to clear the storage (but not the flash memory). Once done, the application is placed into discovery mode.
To do a factory reset, start the application by opening a serial console with minisim, then hold the large white button for more than 3 seconds.
You would see the following in the logs:
...
[00:00:00.370,941] <inf> chip: [SVR]Fabric already commissioned. Disabling BLE advertisement
...
[00:00:00.634,582] <inf> app: Factory Reset Triggered. Release button within 3000ms to cancel.
...
[00:00:00.971,984] <inf> chip: [DL]CHIP task running
[00:00:00.974,884] <inf> chip: [DL]CHIPoBLE advertising started
[00:00:00.976,684] <inf> chip: [DL]NFC Tag emulation started
[00:00:30.975,219] <inf> chip: [DL]CHIPoBLE advertising mode changed to slow

Discover from another device:
$ bluetoothctl scan le | grep Matter
[NEW] Device CA:5E:86:D1:47:92 MatterLight

authors: MonicaisHer farshidtz


text:
CSS

#CSS
##User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
##Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

updated

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Typo in answer to Exercise 7.48

Should be nothing happened instead of noting happened.

Thank you, the typo has been fixed!

repo: Mooophy/Cpp-Primer

license_source: bigquery


text:
Migrate build configuration from Groovy to Kotlin

https://developer.android.com/build/migrate-to-kotlin-dsl

감사합니다만, 이 프로젝트는 개인 프로젝트로 컨트리뷰션을 받지 않고 있습니다.

source: gharchive/pull-request

authors: easyhooon fornewid

repo: Moop-App/Moop-Android


text:
Warn if --ui option is used without UI being installed

If the --ui option is used but the install-testplan-ui script has not been run, Testplan should warn that the UI needs to be installed and not display a URL to view the report.

was fixed in https://github.com/Morgan-Stanley/testplan/pull/207

repo: Morgan-Stanley/testplan


text:
Provide dynamic image sizing

Currently the requested size for images is hard coded at 400px which is fine for smaller screens but once the screen size starts to grow the invertebrate view starts looking silly.

I'm closing this as beyond the scope of this program. Many of the images we have are not very large. At least by limiting everything to 400x400 we've relative uniformity.

license: mit


text:
第三方软件无法获取播放器音乐信息

基本信息 The basic information
软件版本 Software version：7.0.0-beta1
系统版本 System version：MIUI 12 20.4.27 (Android 9)
反馈内容 Content of the feedback
类似 KWGT 这样的第三方软件无法获取应用的音乐信息，导致在播放音乐时，KWGT 会显示上一个播放器所提供的音乐信息。

已经支持 KWGT

authors: MisaLiu Moriafly

repo: Moriafly/SaltPlayerSource


text:
Error running Morpheus v0.0.5 on macOS Sonoma v14.2 (8gb RAM)

When running without Ollama, OS crashes entirely. Tried installing Ollama and running it with Orca-mini. This is the error that pops-up. Is there a way to fix this?

Yeah the default Mistral model is 14 gigs so 8 gigs would give you an error. It would be good to have Morpheus start with a smaller model like Orca-Mini and upgrade from there based on user hardware.

I figured that was the issue. Still thought it was worth mentioning.

I have the same issue. Could somebody help me to have Morpheus start with Orca-Mini ?

authors: CryptoPol Dannyz123 DavidAJohnston

repo: MorpheusAIs/Morpheus


text:
train vector copy

Trying to train a model  that copies a 10x1 vector, the loss converges, however the read weights seem to be fade. Why is this happening? (I changed  memory_words_num to 20, and   memory_word_size to 20)

Hmmm ... interesting!
It could be possible because the input is small and needs only one memory location, the neural network was able to learn to copy it directly without needing to query the data it wrote in memory. you can check that by running the same trained model with only 1 memory location and see if it still outputs correctly.

Using a memory of size one resulted in an error during the visualization...
Finally to train a vector, I used the train.py instead of train-series.py, which trains with random length. This worked and resulted in something like this

I believe that error in the visualization can be avoided by tweaking the visualize_op method a little. Anyway, I'm glad you got your results eventually!

authors: Mostafa-Samir linamede

repo: Mostafa-Samir/DNC-tensorflow


text:
Always update _fivetran_synced

Make sure to update _fivetran_synced column in the destination with the values coming in from the csv files.

Checked that both upsert and update files will update _fivetran_synced, unless it's set to the synthetic unmodified value.


text:
问题是发生在那种形态的？
Tampermonkey脚本
问题详情
1.我在启动脚本的情况下从通知里的评论回复跳转到专栏，发现有来源未知其它用户的评论，疑似是某个音乐视频的
2.同样情况，偶尔发现评论区显示关闭，但刷新后发现实际存在评论
3.跳转后无法显示作者头像
复现步骤
问题一
1.我在登录自己账号的情况下打开回复通知
2.消息-回复我的-点击回复评论跳转至专栏
3.出现配图1的情况，原专栏投稿于7月30，但评论是多年前的
注：https://www.bilibili.com/read/cv25388694/#reply185784525872
问题二：
操作大致如上
问题三：
从动态里点开专栏后十有八九会这样，要重刷新
问题四：
同样，
消息-回复我的-随便点一个评论回复（导向视频的）
参考数据
网络环境：移动
配图见评论
操作系统
Windows 10
浏览器名称及版本
谷歌新版
脚本版本
No response

1

好像传不上图……

图传百度盘了：（）
链接: https://pan.baidu.com/s/1RQl1OOMKF4lF_USMSlIQjA 提取码: pfya

repo: MotooriKashin/Bilibili-Old


text:
Game build doesn't detect Dedicated GPU (even if you force it)

What you were trying to do
Running terasology latest build on my laptop with dual GPUs (Intel HD:0 , Nvidia GTX970M:1).
What actually happened
Starting the game doesn't auto detect the dedicated card, GPU 1. If you force it in Nvidia Control Panel (by selecting Terasology.x64.exe and setting it to High performance GTX970M GPU) or in Win10 Graphics Settings (by selecting Terasology.x64.exe and setting it to High performance GTX970M GPU), the game STILL doesn't use the dedicated GPU at all (tested using CpuID HWmonitor).
How to reproduce

Step 1 : Go to nvidia control panel / amd settings.
Step 2 : Add custom application in switchable graphics.
Step 3 : Set the application on High performance (so it uses dedicated GPU 1).
Step 4 : Start HWmonitor or any other monitoring application.
Step 5 : Watch if your dedicated GPU 1 is utilized or not.
Step 6 : Open Task Manager > Processes and select Terasology, see the GPU Engine column at the end. (GPU 0 stands for integrated, GPU 1 for dedicated).

Log details and game version
Terasology - Version
Jenkins:
URL: http://jenkins.terasology.org/job/TerasologyStable/78/
Build number: 78
GIT branch: origin/master
Created at: 2019-02-03T04:57:39Z
Computer details
MSI GE72 Apache Pro (Laptop)
https://us.msi.com/Laptop/GE72-Apache-Pro-GTX-970M/Specification

Possible Solution from this forum:
Making the game automatically use the dedicated graphics card by writing a custom javaw.exe/java.exe launcher using the JNI Invocation API .
When this process exports a symbol called "NvOptimusEnablement" as a DWORD with value = 1, then the dedicated graphics card will be used (unless of course the user overrides this in the Nvidia settings).

Closing as "won't fix".

authors: TheHxn skaldarnar

repo: MovingBlocks/Terasology


text:
Organized server-side and client-side debug text with Compass Nav (debug)

Contains
Fix for #1942
How to test
Press F3 in-game.

Can one of the admins please verify this patch?

@GooeyHub: add to whitelist

Hooray Jenkins reported success with all tests good!

@TheHxn do you have time to finish this off?
Would be nice to get those changes made and the PR merged

Superseded by https://github.com/MovingBlocks/Terasology/pull/4513

authors: Cervator GooeyHub Haxsen jdrueckert jellysnake


text:
nothing happens

Hello,
I did every steps then when I launch talk-llama-wav2lip.bat it finishes with the following statement :
G:\talk-llama>pause
Press any key to continue . . .

here is what I've got from when I click on talk-llama-wav2lip.bat :
G:\talk-llama>talk-llama.exe -mw ggml-medium.en-q5_0.bin -ml mistral-7b-instruct-v0.2.Q5_0.gguf -p "Alex" --speak speak --vad-last-ms 200 --vad-start-thold 0.000270 --bot-name "Anna" --prompt-file assistant.txt --temp 1.15 --ctx_size 3548  --multi-chars --allow-newline --seqrep --stop-words Aleks:;alex:;---;ALex -ngl 99 -n 60 --threads 4 --split-after 5 --sleep-before-xtts 1000
Warning: c:\DATA\LLM\xtts\xtts_play_allowed.txt file not found, xtts wont stop on user speech without it
whisper_init_from_file_with_params_no_state: loading model from 'ggml-medium.en-q5_0.bin'
whisper_init_from_file_with_params_no_state: failed to open 'ggml-medium.en-q5_0.bin'
ggml_init_cublas: GGML_CUDA_FORCE_MMQ:   no
ggml_init_cublas: CUDA_USE_TENSOR_CORES: yes
ggml_init_cublas: found 1 CUDA devices:
Device 0: NVIDIA GeForce RTX 4070, compute capability 8.9, VMM: yes
llama_model_loader: loaded meta data with 24 key-value pairs and 291 tensors from mistral-7b-instruct-v0.2.Q5_0.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv   0:                       general.architecture str              = llama
llama_model_loader: - kv   1:                               general.name str              = mistralai_mistral-7b-instruct-v0.2
llama_model_loader: - kv   2:                       llama.context_length u32              = 32768
llama_model_loader: - kv   3:                     llama.embedding_length u32              = 4096
llama_model_loader: - kv   4:                          llama.block_count u32              = 32
llama_model_loader: - kv   5:                  llama.feed_forward_length u32              = 14336
llama_model_loader: - kv   6:                 llama.rope.dimension_count u32              = 128
llama_model_loader: - kv   7:                 llama.attention.head_count u32              = 32
llama_model_loader: - kv   8:              llama.attention.head_count_kv u32              = 8
llama_model_loader: - kv   9:     llama.attention.layer_norm_rms_epsilon f32              = 0.000010
llama_model_loader: - kv  10:                       llama.rope.freq_base f32              = 1000000.000000
llama_model_loader: - kv  11:                          general.file_type u32              = 8
llama_model_loader: - kv  12:                       tokenizer.ggml.model str              = llama
llama_model_loader: - kv  13:                      tokenizer.ggml.tokens arr[str,32000]   = ["", "", "", "<0x00>", "<...
llama_model_loader: - kv  14:                      tokenizer.ggml.scores arr[f32,32000]   = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv  15:                  tokenizer.ggml.token_type arr[i32,32000]   = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv  16:                tokenizer.ggml.bos_token_id u32              = 1
llama_model_loader: - kv  17:                tokenizer.ggml.eos_token_id u32              = 2
llama_model_loader: - kv  18:            tokenizer.ggml.unknown_token_id u32              = 0
llama_model_loader: - kv  19:            tokenizer.ggml.padding_token_id u32              = 0
llama_model_loader: - kv  20:               tokenizer.ggml.add_bos_token bool             = true
llama_model_loader: - kv  21:               tokenizer.ggml.add_eos_token bool             = false
llama_model_loader: - kv  22:                    tokenizer.chat_template str              = {{ bos_token }}{% for message in mess...
llama_model_loader: - kv  23:               general.quantization_version u32              = 2
llama_model_loader: - type  f32:   65 tensors
llama_model_loader: - type q5_0:  225 tensors
llama_model_loader: - type q6_K:    1 tensors
llm_load_vocab: special tokens definition check successful ( 259/32000 ).
llm_load_print_meta: format           = GGUF V3 (latest)
llm_load_print_meta: arch             = llama
llm_load_print_meta: vocab type       = SPM
llm_load_print_meta: n_vocab          = 32000
llm_load_print_meta: n_merges         = 0
llm_load_print_meta: n_ctx_train      = 32768
llm_load_print_meta: n_embd           = 4096
llm_load_print_meta: n_head           = 32
llm_load_print_meta: n_head_kv        = 8
llm_load_print_meta: n_layer          = 32
llm_load_print_meta: n_rot            = 128
llm_load_print_meta: n_embd_head_k    = 128
llm_load_print_meta: n_embd_head_v    = 128
llm_load_print_meta: n_gqa            = 4
llm_load_print_meta: n_embd_k_gqa     = 1024
llm_load_print_meta: n_embd_v_gqa     = 1024
llm_load_print_meta: f_norm_eps       = 0.0e+00
llm_load_print_meta: f_norm_rms_eps   = 1.0e-05
llm_load_print_meta: f_clamp_kqv      = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: n_ff             = 14336
llm_load_print_meta: n_expert         = 0
llm_load_print_meta: n_expert_used    = 0
llm_load_print_meta: rope scaling     = linear
llm_load_print_meta: freq_base_train  = 1000000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_yarn_orig_ctx  = 32768
llm_load_print_meta: rope_finetuned   = unknown
llm_load_print_meta: model type       = 7B
llm_load_print_meta: model ftype      = Q5_0
llm_load_print_meta: model params     = 7.24 B
llm_load_print_meta: model size       = 4.65 GiB (5.52 BPW)
llm_load_print_meta: general.name     = mistralai_mistral-7b-instruct-v0.2
llm_load_print_meta: BOS token        = 1 ''
llm_load_print_meta: EOS token        = 2 ''
llm_load_print_meta: UNK token        = 0 ''
llm_load_print_meta: PAD token        = 0 ''
llm_load_print_meta: LF token         = 13 '<0x0A>'
llm_load_tensors: ggml ctx size =    0.22 MiB
llm_load_tensors: offloading 32 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 33/33 layers to GPU
llm_load_tensors:        CPU buffer size =    85.94 MiB
llm_load_tensors:      CUDA0 buffer size =  4679.55 MiB
..................................................................................................
llama_new_context_with_model: n_ctx      = 3548
llama_new_context_with_model: freq_base  = 1000000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init:      CUDA0 KV buffer size =   443.50 MiB
llama_new_context_with_model: KV self size  =  443.50 MiB, K (f16):  221.75 MiB, V (f16):  221.75 MiB
llama_new_context_with_model:  CUDA_Host input buffer size   =    29.88 MiB
llama_new_context_with_model:      CUDA0 compute buffer size =   521.38 MiB
llama_new_context_with_model:  CUDA_Host compute buffer size =    16.00 MiB
llama_new_context_with_model: graph splits (measure): 3
G:\talk-llama>pause
Press any key to continue . . .

repo: Mozer/talk-llama-fast


text:
开源协议没声明版权所有者

我记得是 #145 的时候改的。

Copyright [yyyy] [name of copyright owner]

这玩意没写。
@rsp4jack 你加一下。

似乎并没有必要，由于没签 CLA，版权所有者有很多。
在文件头附着版权信息不应强制要求。如果要查看代码的版权所有者，可以 git blame。

好好好

repo: Mq-b/Loser-HomeWork


text:
[Feature]: Macro for generating key bindings

What would you like to see added?
Defining keybindings is a very verbose process at the moment:
    let keybinding = DefaultKeybinding::from_iter([(
        (KeyCode::Char('l'), KeyModifiers::CONTROL),
        Box::new(|| {
            Command::new("clear").spawn();
        }) as Box<dyn FnMut()>,
    )]);

A macro similar to the one that penrose has would be great.

resolved by #138

repo: MrPicklePinosaur/shrs


text:
Add PNG example

add a small example of PNG image to the main documentation.
Warning : i cannot build it on windows.
so probably need to be reviewed and edited.
Fix #854

unfortunately i cannot build the version locally.

To build it i use WSL 😄
Maybe i can do it tonight

repo: MrRio/jsPDF


text:
HowTO on windows

Update readme to say how to do setup on windows or make the exe to run
Before going further

If your problem is a bug with the youtube-dl program or a request for new site support please report it here

Make sure you are using the latest youtube-dl-gui version: Options > About tab. If it's not please download & install the latest version for your OS and check if your issue still persists

Make sure you are using the latest youtube-dl version: Click the Update button on the main screen and check if your issue still persists

Make sure you searched the bugtracker for similar issues including closed ones

[ ] I assure that my problem is NOT with youtube-dl
[ ] I've verified and I assure that I'm running youtube-dl-gui 0.3.8
[ ] I assure that i am using the latest version of youtube-dl
[ ] Searched bugtracker

What is the purpose of your issue?

[ ] Bug during the download process (encountered problems after hitting the Download button)
[ ] Bug other (encountered other problems with youtube-dl-gui)
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

Please remove the following section between the (---) if your problem does not belong to the bug during the download process category
Provide the full verbose output as follows:

Add -v flag to Options > Commands tab
Re-try to download the URL
Go to Options > Log tab and click the View Log button
Copy the whole content of the log file and insert it between the triple ``` part

[delete me and insert your log content here]

Please remove the following section between the (---) if your problem does not belong to the first two categories (bug report)
What operating system do you use ?
List of actions to perform to reproduce the problem:

..
..
..

What is the expected behaviour ?
What happens instead ?

Description of your issue, suggested solution and other information. Please make sure the description is worded well enough to be understood.

Providing updated windows executables is tracked in https://github.com/MrS0m30n3/youtube-dl-gui/issues/138

authors: CheweyZ nodiscc

license: unlicense


text:
Not catching all exceptions during reading.

"Permission denied" will be logged.

@dd-morphi thanks for your contribution. your patch is included in 0.5.3 release https://www.nuget.org/packages/VaultSharp.Extensions.Configuration/

authors: MrZoidberg dd-morphi


text:
Space Shooter Game

Type of change

[X] Added new project
[ ] Bug fix
[ ] New features
[ ] Enhanced documentation

Changes proposed in this pull request

Project name : Space Shooter

Short description : A space shooter game built with pygame.

Checklist

[X] The code is Python 3 compatible
[X] I have added relevant comments in my file to make code understandable
[X] I have added my project in a folder which includes all the necessary files

I have successfully added 5 projects i built using python, the code should be readable and understandable to those just starting out with python. Once i build more i would definitely add them here.
Awaiting admin to merge the PRs.

I am accepting this pull request as it contain all your contributions,
you may close other pull requests 👍

authors: DevTomilola-OS Mrinank-Bhowmick


text:
Hit count and track count structs are unfilled

As Dave reported in PR #118, the global hit count and track count structs are currently unfilled. We think some code got lost in a recent merge

Just saw this again while doing the update for v6. I don't know where the original code for filling HitCount when but it is now back in and will be included in v06_00_00

Done in #217


text:
SSN Mask seems to Jump

Bug type
Component
Component name
Masking
What happened?
Using the SSN Masking on the Text Field component, seems to Jump when entering data into the component.
Expected behavior
No jumping
Reproduction link
https://try.mudblazor.com/snippet/mOcQuowvTzGrCmfT
Reproduction steps

...
Relevant log output
No response
Version (bug)
6.0.9
Version (working)
No response
What browsers are you seeing the problem on?
Microsoft Edge
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

What do you mean by Jump. I did not reproduce the issue.

Same as described here.

@carumsoft @henon On blazor server when applied masking to text field cursor jums at the end while typing.
please refer to the video below.  I am really stuck at it and at a very crucial time. your comments would be helpful.
Thanks
https://user-images.githubusercontent.com/38009549/192199248-bf1e8ae5-e092-4d2a-92e5-0e69c35b4924.mp4

Try trimming, it reduces the size of the mudblazor assemblies drastically because the icons and all the not used stuff is cut away. We have an issue about this: #2424

@henon i have tried to trim by reading many solutions online, but none worked for me. my published filder contains botd .dll and .dll.br but it always serve .dll in browser. any idea what i might be doing wrong? or you have any working example or documentaion.
i have added a Stack Overflow question but not any helpful replies. If you can check the question and suggest some answer it would be very helpful. Thanks.

@henon OKay thanks, @ScarletKuro can you please give me a hint?

Hi.
.br(Brotli) is not related to trimming at all, its compression mechanism.
If we talk about trimming, to enable it you need to set this in your WASM project
<PublishTrimmed>true</PublishTrimmed>
<TrimMode>link</TrimMode>

in .net 7 trimming will be enabled by default.
I don't really understand why you set the BlazorWebAssemblyEnableLinking=false
To understand if trimming is working, you need to publish you application and then go in your _framework of your published app and pay attention to dlls sizes, they should shrink. For example, a non trimmed MudBlazor is about ~8mb, if it's less then trimming is working.
Can't really help your with the brotli tho.

@ScarletKuro Thanks for the useful info, I tried
<PublishTrimmed>true</PublishTrimmed> <TrimMode>link</TrimMode>
but still published folder contains 73 MB of dlls including .dll, .br, and .gz file for each dll.
also, MudBlazor dll size is still 8.3MB and Mudblazor.dll.br size is 976kb.
I am unable to figure out why trimming is not working.

If it's possible to upload the code or at least make a small repro then I can have a better look. Since as for now I have no ideas since usually this should be a trivial https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-6-0#enable-trimming

@ScarletKuro i was using mudblazor version 6.0.9, updating it to 6.0.16 fixed the issue. Thanks.

Nice. Yea, I didn't think of the version, the trimming was added in 6.0.11+

@ScarletKuro Thanks for your help and time. i find very useful info in the document you provided.
some libraries that don't have trimming enabled by default I am changing it using.
<ManagedAssemblyToLink Condition="'%(Filename)' == 'SixLabors.ImageSharp'">   <IsTrimmable>true</IsTrimmable>   <TrimMode>link</TrimMode>  </ManagedAssemblyToLink>
and the size reduces quite a bit. really helpful. Thanks again

authors: ScarletKuro Yomodo carumsoft henon stevewasielewski zubairkhakwani

repo: MudBlazor/MudBlazor


text:
Buttons: Fix exception doesn't flow to ErrorBoundary.

Description
Fixes: https://github.com/MudBlazor/MudBlazor/issues/8365
See: https://github.com/MudBlazor/MudBlazor/issues/8365#issuecomment-1997916812 and https://github.com/dotnet/aspnetcore/issues/54543
PR that introduced regression: https://github.com/MudBlazor/MudBlazor/pull/8203
How Has This Been Tested?
New unit tests for MudButton / MudFab / MudIconButton that check that ErrorBoundary is now working for button.
Also checked on @danielchalmers repro https://github.com/danielchalmers/ScrollToTopBeforeNavigate that the old behaviour with scrolling to top is not back with this change
Types of changes

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

Checklist:

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

@henon @danielchalmers I think we have no other choice but use this compomise with
public abstract class XXX : MudComponentBase, IHandleEvent
{
    Task IHandleEvent.HandleEventAsync(EventCallbackWorkItem callback, object? arg) => callback.InvokeAsync(arg);
}

if we want this to be fixed https://github.com/MudBlazor/MudBlazor/issues/8365 and not come back to this issue https://github.com/MudBlazor/MudBlazor/discussions/8151
That's the only combination to be working. Luckily the MudButton / MudFab / MudIconButton only have single EventCallback which is OnClick.

We need to check if MudAlert, MudChip, MudLink, MidMenuItem, MudNavLink, MudScrollToTop, MudSnackbarElement got the same problem, or it's just the buttons in case it's somehow related to MudElement?

We need to check if MudAlert, MudChip, MudLink, MidMenuItem, MudNavLink, MudScrollToTop, MudSnackbarElement got the same problem after #8281, or it's just the buttons in case it's somehow related to MudElement?

They are affected :disappointed_relieved:
We might need to partially revert https://github.com/MudBlazor/MudBlazor/pull/8281 and just leave the fixed tests and it will be just buttons from this PR.

God that's depressing 😭 and such an unpleasant workaround. It was a good optimization too
MudMenuItem EventUtil.AsNonRenderingEventHandler<TouchEventArgs>(OnTouchHandler) was important to my app. Is it just not feasible with this new approach?
When are you targeting a new release? Is it possible to hold off until MS has an answer? They're usually pretty quick

Is it just not feasible with this new approach?

I couldn't make it work with EventUtil no matter how I tried.

MudMenuItem

Well, technically we could add the IHandleEvent.HandleEventAsync to it too, as it has only single eventcallback that doesn't require re-render.

When are you targeting a new release? Is it possible to hold off until MS has an answer? They're usually pretty quick

I haven't yet reverted anything tho, @henon will have to decide what to do with this and about the release too.
But in general I'd say that ErrorBoundary is more important that the scroll issue.

@ScarletKuro We'll revert the problematic changes for now, or use the workaround you have found, whichever appropriate per component. Reverting has proven to be a good solution in the past because otherwise we are drowned in issues and questions on discord and we can't know when microsoft will fix the bug.
So is this PR ready to merge?

So is this PR ready to merge?

I will fix the typo tonight after work then merge this PR.
Then create another PR with reverting the https://github.com/MudBlazor/MudBlazor/pull/8281 and apply the workaround where applicable.

[ ] MudAlert
[ ] MudChip
[x] MudLink - https://github.com/MudBlazor/MudBlazor/pull/8375
[ ] MudMenuItem
[ ] MudNavLink
[ ] MudScrollToTop
[ ] MudSnackbarElement

Unfortunate but let me know if I can help to get things working again. Thanks for all the work on managing this stuff

authors: ScarletKuro danielchalmers henon


text:
Null reference exception when using NavigationManager with HeadOutlet

I get:

System.NullReferenceException: 'Object reference not set to an instance of an object.'

on this line of code:
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
This happens when I try and redirect from one of my components:
@using System.Web;
@inject NavigationManager Navigation

@code {
    [Parameter]
    public string ReturnUrl { get; set; } = null!;

    protected override async Task OnInitializedAsync()
    {
        var loginEndpoint = "Login?redirectUri=" + HttpUtility.UrlEncode(ReturnUrl);
        Navigation.NavigateTo(loginEndpoint, forceLoad: true);
        await base.OnInitializedAsync();
    }
}

A little luck, but still not sure what to do. I found this on another thread: https://github.com/dotnet/aspnetcore/issues/33868#issuecomment-925968851
I notice both the _Host and the Index have @page "/" at the top of them.
Any ideas?

Repro: https://github.com/VictorioBerra/MudBlazorHeadOutletIssue

Hi.
I believe the issue is not related to MudBlazor or the Templates, but please correct me if I'm mistaken. The problem seems to be caused by a 17 line in the App.razor: <MudText Typo="Typo.h3" GutterBottom="true" Style="@($"color:{Theme.Palette.Error};")">Access Denied</MudText>
By commenting out this line, everything seems to work fine. However, even if you replace it with a different non-native MudBlazor component, such as <InputFile></InputFile>, the error still occurs. I'm unable to provide a clear explanation for this behavior, so it would be advisable to ask in the aspnetcore repository.

Thank you.

authors: ScarletKuro VictorioBerra

repo: MudBlazor/Templates


text:
Remove ability to unload default worlds.

People unloading the default nether causing nether portals to not work on 1.16 is happening far too often. This will prevent that. Also, adds potentially useful API method to get default world names.

I didn't review the changes yet, but I'm not sure I like this idea. Maybe we should simply warn that unloading a default world will affect portal usage and ask them to type /mv confirm.

Won’t effecting portal usage be a large enough reason for people to not unload the world?

I think so, but I don't think we should disallow it. We should just let them know it will affect portal usage and let them decide.

And I just realized, this will prevent people from regenerating default worlds right? I don't think we want that.

You can actually regen the default overworld even now, it’s just about the nether and end. It’s weird that they allow but cause breaking issues.

You can regenerate the default nether and end though without errors right?
Regarding portals breaking on regening them, I fixed that and sent a PR to Spigot.

With the new queue command system merge, I don’t mind having a confirm command for default world unloading / deleting

probably not needed

repo: Multiverse/Multiverse-Core


text:
End Portals send entities into a "null" world, causing entity loss and invalid entities

When an entity goes into a linked END_PORTAL, it'll be sent into a null world, not the correct linked world. Nether portals work fine.
[12:23:56 WARN]: DROPPED_ITEM going to: Location{world=null,x=0.5,y=100.0,z=0.5,pitch=0.0,yaw=0.0}
[12:31:56 WARN]: LLAMA going to: Location{world=null,x=0.5,y=100.0,z=0.5,pitch=0.0,yaw=0.0}

Is that custom logging that you have added? I've added some and can't seem to reproduce this

Closing as stale

repo: Multiverse/Multiverse-NetherPortals


text:
one file in data analysis added

Pull Request Description

This pull request was created when I added one file in the data analysis folder in which I performed data visualization techniques over the Titanic dataset, during my learning period.
Changes Made

Added DataVisualization_perforned_on_Titanic_Dataset.ipynb file
performed some techniques on Titanic dataset
practiced and tried to learn something new.

Screenshots (if applicable)

Related Issues

Checklist

[x] I have read and followed the contribution guidelines.
[x] I have tested my changes.
[x] My code follows the project's coding standards.

I have resolved all these issues, have a look and let me know if there is any other.
Thanks


text:
关于删除小助手指令

删除小助手
bash <(curl -sL https://git.io/JUO6r)

不提PR了

可以更短一些：
bash <(curl -s https://git.io/JUO6r)

貌似并不凑效

貌似并不凑效

少写了一个字母 L

很棒

authors: MustangYM kangfenmao

repo: MustangYM/WeChatExtension-ForMac


text:
build from source failed

Just followed https://docs.sui.io/build/fullnode#building-from-source, and met the error below:

~/sui# cargo run --release --bin sui-node -- --config-path fullnode.yaml
Updating crates.io index
error: failed to select a version for the requirement phf = "^0.11"
candidate versions found which didn't match: 0.10.1, 0.10.0, 0.9.0, ...
location searched: crates.io index
required by package workspace-hack v0.1.0 (/root/sui/crates/workspace-hack)

OS: ubuntu 18

save issue here

Hey all,
If you did not install the Rust, please install it first from the following doc:
https://docs.sui.io/build/install#rust
If you keep continue to get this error please reboot your OS. I experienced the similar issue and that's fixed my issue.
Sarp

/cc @Clay-Mysten @randall-Mysten this is probably a call to have a very big banner pointing towards installing rust with rustup.

Thanks for the heads up, we'll get this updated

I had same problem just now running ubuntu 18 on AWS M5.large instance. Fix below:
sudo apt remove rustc
curl --proto '=https' --t1sv1.2 -sSf https://sh.rustup.rs | sh
sudo apt-get update
then exited and reentered the powershell
it fixed the problem but then I got another problem.
turns out the cmake version needs to be greater than 12 to run parallel = 2
So did following to find out the version:
cmake --version
It was version 10+ so had to remove it and install the latest revision.
sudo apt remove cmake
git clone https://github.com/Kitware/Cmake/; cd CMake
./bootstrap && make && sudo make install
Finally one last problem: clang was not installed. Did the following:
sudo apt-get install clang
After that fired her up again and all went well.
Goodluck!

/cc @Clay-Mysten @randall-Mysten this is probably a call to have a very big banner pointing towards installing rust with rustup.
Testing this on a docker container of a vanilla ubuntu may also be a good way to get quickly at perfectly reproducible instructions.

We already link from the fullnode doc to the Install > Prerequisites section where Rust is covered in detail as you describe here:
https://docs.sui.io/build/install#rust
Still, since this comes up regularly, I've added language emphasizing the need to keep packages updated and calling out Rust explicitly in:
https://github.com/MystenLabs/sui/pull/3879
All, please take a look. Thanks for the report and input!

I had same problem just now running ubuntu 18 on AWS M5.large instance. Fix below: sudo apt remove rustc curl --proto '=https' --t1sv1.2 -sSf https://sh.rustup.rs | sh sudo apt-get update
then exited and reentered the powershell it fixed the problem but then I got another problem. turns out the cmake version needs to be greater than 12 to run parallel = 2 So did following to find out the version: cmake --version It was version 10+ so had to remove it and install the latest revision.
sudo apt remove cmake git clone https://github.com/Kitware/Cmake/; cd CMake ./bootstrap && make && sudo make install
Finally one last problem: clang was not installed. Did the following: sudo apt-get install clang
After that fired her up again and all went well. Goodluck!

Thanks, @allansford2625. It sounds like you are running Linux. I would love your input on:
https://docs.sui.io/devnet/build/install#prerequisites
And whether we should try and cover update explicitly as we do install.

Thankfully, @huitseeker also points to this user-generated doc:
https://github.com/kadrkn/Sui_Devnet_Update
I am asking if we should incorporate any of that into:
https://github.com/MystenLabs/sui/tree/main/docker/fullnode#readme
For instance this:
sed -i 's/stable/main/' docker-compose.yaml

I see stable here:
https://github.com/MystenLabs/sui/blob/main/docker/fullnode/docker-compose.yaml
I'm adding our fullnode experts for help.

authors: Clay-Mysten FredYuuu allansford2625 huitseeker randall-Mysten satatocom wcw84

repo: MystenLabs/sui


text:
[verifier] Module initializer verification

The recently implemented (#337) module initializers support leaves verification of the initializer functions' properties out at the moment.
An initializer function has three properties:

has a pre-specified name, currently it's init
only one argument of type &mut TxContext
it's private
it does not return any values

One thing to decide is how is how strict the verifier check should be. For example, we could enforce all these properties at the verifier level for functions named init, but this would mean that this name becomes "reserved" and cannot be used in any other function in Move code.

I am not sure we still want to do it at the moment (@sblackshear) so I am closing this one to be possibly revisited in the future.


text:
Optimize sui CLI response format

Description
Optimize sui CLI response format

Test Plan
How did you test the new or updated feature?

If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.
Type of Change (Check all that apply)

[ ] protocol change
[x] user-visible impact
[ ] breaking change for a client SDKs
[ ] breaking change for FNs (FN binary must upgrade)
[ ] breaking change for validators or node operators (must upgrade binaries)
[ ] breaking change for on-chain data layout
[ ] necessitate either a data wipe or data migration

Release notes

Thanks @howtosui

authors: howtosui stefan-mysten


text:
Add cost per tx byte and use new cost constants

This is the last PR before we can enable new cost tables
Thie PR adds the following:

ability to charge based on TX size
cost calibration for Cast*
measurement functions which transform measured values into real cost times. This is because the measured values can contain parasitic instructions (usually Pop)

Next steps:

Cut over to using new cost table values. This requires coordinating with dependent services
Storage rebate/non-rebate improvements

Thanks! I have a few questions:

Why do we need u128 for the size?

Simply because it was the largest deterministic size. I'm flexible on this.

How to ensure that when a data structure is modified (e.g. fields are added), the calculated size also changes?

Good question: I will do something similar to what I did here for checking DBMaps except I'll check all struct members impl the deterministic size trait.

What does the transaction size-dependent fee represent in terms of computation cost? i.e. which part of our computation depends on the tx size. Is it mostly the signature verification?

Good question: we will have a max TX size, so this size dependent pricing serves as one way to bound TX sizes. It's also the fee for validators deserializing off of the network.

It seems that until we implement something better for the module verification cost, size-based linear cost is still going to be much better than a constant flat cost. What's your thought there?

I lean towards the argument for flat fee because we already charge for TX size (which includes the package being published), and object storage.
Plus the feedback from @sblackshear  and @tnowacki was to keep things flat.
But we can always model this as a linear equation with a base constant set to to 0, and we can tweak as we go. I think that's a good middle ground which also maintains backward compat.

Good question: we will have a max TX size, so this size dependent pricing serves as one way to bound TX sizes. It's also the fee for validators deserializing off of the network plus any other book-keeping.

How does size-dependent pricing serve as TX size bound? I assume we would simply compare the tx size to a constant for the size bound.

I lean towards the argument for flat fee because we already charge for TX size (which includes the package being published), and object storage. Plus the feedback from @sblackshear and @tnowacki was to keep things flat.

TX size must not include package verification cost because it's generic to all TX. Now, there are definitely benefits of keeping things flat: it's simple. But I find it conflicting that we choose to charge TX fee based on size (which is much more complex to implement), but not charge package verification based on size. What's the rational behind the feedback?

Good question: we will have a max TX size, so this size dependent pricing serves as one way to bound TX sizes. It's also the fee for validators deserializing off of the network plus any other book-keeping.

How does size-dependent pricing serve as TX size bound? I assume we would simply compare the tx size to a constant for the size bound.

Right. We can set the the gas_per_tx_byte such that gas_per_tx_byte * tx_size_bytes deters abuse. For example I could spam a validator (intentionally or not) with a ton of large bogus TXes which I may not be able to pay for, but the validator will have done book-keeping for. The idea is people will now think more about how to structure their TXes to minimize fluff.

I lean towards the argument for flat fee because we already charge for TX size (which includes the package being published), and object storage. Plus the feedback from @sblackshear and @tnowacki was to keep things flat.

TX size must not include package verification cost because it's generic to all TX. Now, there are definitely benefits of keeping things flat: it's simple. But I find it conflicting that we choose to charge TX fee based on size (which is much more complex to implement), but not charge package verification based on size. What's the rational behind the feedback?

I think the rationale was indeed simplicity over implementing something which was complex and potentially unfair due to verification nuances.

I lean towards the argument for flat fee because we already charge for TX size (which includes the package being published), and object storage. Plus the feedback from @sblackshear and @tnowacki was to keep things flat.

TX size must not include package verification cost because it's generic to all TX. Now, there are definitely benefits of keeping things flat: it's simple. But I find it conflicting that we choose to charge TX fee based on size (which is much more complex to implement), but not charge package verification based on size. What's the rational behind the feedback?

I think the rationale was indeed simplicity over implementing something which was complex and potentially unfair/misguided due to verification nuances.

I think it is quite difficult to come up with a cost for verification, though it is conceptually possible. I think the size maybe isn't the best estimator here because you can have very short programs that take a long time to verify quite easily.
I still think we should consider running verification in certificate generation with a time out to help alleviate this problem a bit (it would make me feel better with the flat fee. If we had X gas per ms as a baseline, then added the timeout as 500 ms, we could then do 500 * X as the flat fee.

Using time is tricky as validators are heterogenous and could have varying levels of load, which may cause more or less actual compute time.
For now I will model this as a size-dependent linear equation and we can adjust the offset and gradient as we go.

@lxfind @tnowacki
This PR has diverged a lot. I will make another one with the comments addressed and close this out.
However for the unanswered questions: they're tracked here

Calibration PR is here

Two items left:

Deterministic sizing: we will use @aschran solution
Calibration formulae: I will add this in subsequent PR

authors: lxfind oxade


text:
feat(site-builder): on publish raise an error when a file is empty

So far the site-builder was silently ignoring empty files.
This PR adds a check that raises an error when an empty file is included in the directory that is to be published.
Also, the check should be done before trying to create a walrus blob id.
i.e.
❯ ./target/release/site-builder --config site-builder/assets/builder-example.yaml publish examples/snake/

...
Parsing the directory examples/snake/ and locally computing blob IDs ...
Error during execution
Error: error while reading resource `examples/snake/empty.txt`

Caused by:
    0: Walrus sites does not support empty files.
    1: The file examples/snake/empty.txt is empty.

Thanks again @Tzal3x ! sorry for the pedantic nit 😬

Any feedback is always valuable 😁

repo: MystenLabs/walrus-sites


text:
🛑 POST to DRM is down

In 7f4238a, POST to DRM (https://mysteryexe.xyz/drm.php?) was down:

HTTP code: 403
Response time: 297 ms

Resolved: POST to DRM is back up in dad11a0 after 7 minutes.

repo: Mysteryexe/uptime-checker


text:
Validate checkpoint simulation

We have prototype of checkpoint simulation. We need to be confident that it works before trying to integrate it into the scheduler

Test that making a checkpoint makes it independent from the original engine
Test that restarting from a checkpoint produces the same results as re-simulating from the beginning
Any other edge cases we come up with

Branch: prototype/duplicatable-sim-engine
### Tasks
- [x] Design a test procedure to check that it works
- [ ] Fix any bugs that come out of testing
- [x] Try on clipper model to see if memory explodes

@mattdailis and @adrienmaillard met about this on Slack, here are Matt's notes:
Goal: Determine as soon as possible whether this will work
Tasks:

Unit testing
See if it is feasible on the clipper model

Visualize memory usage on a realistic plan (e.g. 6 years)
Set breakpoints in simulation

Memory observation procedure:

Check out and build Aerie on 1.14.0 with added memory logging
Load recent Clipper mission model into Aerie
Create 6 year plan with some activities

Randomly? Or use a plan from Megan

Just run a normal simulation and observe memory usage
Check out and build Aerie using the duplicatable sim engine branch
Just run a normal simulation with no checkpoints and observe memory usage
Duplicate the simulation engine before each activity start
Observe memory using Java API and logging

Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()

Questions to answer:

How many checkpoints before we run out of memory?
Approximately how big is a single checkpoint? Does this vary?
In order to test this, we need access to the old engine as well as the new engine in the same program

Action items

[ ] Preserve ability to run old simulation engine and old threaded tasks for testing purposes

[ ] Allow for selecting which engine to run through environment variable?

Tests are on the duplicatable-sim-engine-test-clipper.

authors: adrienmaillard dandelany mattdailis

repo: NASA-AMMOS/aerie


text:
[AERIE-1756] Initial barebones coexistence goal

Tickets addressed: AERIE-1756
Review: By commit
Merge strategy: Merge (no squash)

Description

This PR adds an extremely simplistic version of the Coexistence goal. This version basically allows the user to specify "clean-up" activities. For example, this goal makes sure that every time a banana is picked, it is then immediately peeled:
export default () => Goal.CoexistenceGoal({
  forEach: "PickBanana",
  activityTemplate: ActivityTemplates.PeelBanana({ peelDirection: 'fromStem' })
})

The version in this PR hard-codes that the new activity must start at the end time of the old activity.
Verification

I've added a unit test to SchedulingDSLCompilationServiceTests.java as well as an integration test to SchedulingIntegrationTests.java. You can run these with ./gradlew scheduler-server:test.
Documentation

I've updated the Scheduling Guide with the coexistence goal.
Future work

Flesh out the forEach clause of the CoexistenceGoal to include:

Richer ActivityExpressions
Resource expressions
A way to specify a temporal relationship to the identified windows

Enforce that the clean-up activity starts causally after the existing activity. The current implementation may have some subtle concurrency issues, since the end time of the existing activity overlaps with the start time of the new activity.

In the latest force push, I rebased onto develop, and re-ordered the commits to move all of the refactoring commits before the functionality-changing commits.
Here is the current grouping of commits:
Update libraries (there is a bugfix in 0.2.6 that we need)

Bump aerie-ts-user-code-runner to 0.2.6

Pure Refactoring

Add NodeKind enum
Use sum parser for goal types

Bug fix

Set ActivityInstance duration if it is controllable

New functionality

Add another sample activity to TypescriptCodeGenerationServiceTest
Generate ActivityType enum and ActivityTypes global
Add basic CoexistenceGoal to EDSL
Add parser for Coexistence goal
Instantiate CoexistenceGoal from goal definition
Add test for Coexistence Goal


text:
Add call to action to STAC creation notebooks

Once the veda-data repo is public we should add a call to action on the STAC creation notebooks advertising it as the place to open issues for new dataset requests.

I've just seen this issue @jsignell. I believe this is the same thing that I was referring to in this ticket.
Happy to take on this issue and add a call to action for STAC creation notebooks - but wanted to clarify my understanding of the two processes.

Yeah feel free to pick this up. I think I probably just meant to add a line to the end of the notebook that says "go open an issue on veda-data"

Ok. 👍 Thanks, should be easy enough! That being said, as a new user of the platform I'm a bit confused on some components of the process and could probably add a few more lines in the documentation to clarify things. We've got a mtg to discuss this - so should be good to go after that.

Solved for in PR #98

authors: jsignell kathrynberger

repo: NASA-IMPACT/veda-docs


text:
Updated Cray compiler flags for LIS with -O2.

Description
Updated -O2 compiler flags for Cray compiler for LIS.

In the interest of time, I will merge my own pull request so I can create a new rc4 tarfile for HPC11.
Breaking the law, breaking the law
Breaking the law, breaking the law

repo: NASA-LIS/LISF


text:
Phase 1: InstrumentLanding Pages Modules Implementation

💡 Description

📆 01/2024 status: Deferring these landing pages to next build. This website delivery spans several builds, so no impact on delivery.

📆 05/2024 status: Start delayed 1 sprint. No impact on delivery.

📆 06/2024 status: Start delayed 2 additional sprints due to delays in https://github.com/NASA-PDS/portal-wp-tasks/issues/60. No impact on delivery.

📆 07/2024 status: Replanned to do instrument landing pages before bundle/collection. In work.

📆 08/2024 status: In work, on schedule

repo: NASA-PDS/portal-wp-tasks


text:
Error in running bigslice rule: Not in index, query string too large

run_status is now FEATURES_EXTRACTED
Building GCF models...
Dumping in-memory database content into /datadrive/data2/bgcflow/data/processed/strepto_combine/bigslice/cluster_as_6.1.1/result/data.db... Traceback (most recent call last):
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/bin/bigslice", line 1828, in main
    clustering = BirchClustering.run(
                 ^^^^^^^^^^^^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/bigslice/modules/clustering/birch.py", line 177, in run
    features_df = features_df.loc[bgc_ids]
                  ~~~~~~~~~~~~~~~^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexing.py", line 1073, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexing.py", line 1301, in _getitem_axis
    return self._getitem_iterable(key, axis=axis)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexing.py", line 1239, in _getitem_iterable
    keyarr, indexer = self._get_listlike_indexer(key, axis)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexing.py", line 1432, in _get_listlike_indexer
    keyarr, indexer = ax._get_indexer_strict(key, axis_name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 6113, in _get_indexer_strict
    self._raise_if_missing(keyarr, indexer, axis_name)
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 6176, in _raise_if_missing
    raise KeyError(f"{not_found} not in index")
KeyError: '[62043] not in index'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/bin/bigslice", line 1902, in <module>
    return_code = main()
                  ^^^^^^
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/bin/bigslice", line 1069, in main
    with Database(data_db_path, use_memory) as output_db:
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/bigslice/modules/data/database.py", line 26, in __exit__
    self.close()
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/bigslice/modules/data/database.py", line 150, in close
    self.dump_db_file()
  File "/datadrive/data2/bgcflow/.snakemake/conda/c53188cf74abfdc284d24b807d803856_/lib/python3.11/site-packages/bigslice/modules/data/database.py", line 162, in dump_db_file
    out_db.executescript(query)
sqlite3.DataError: query string is too large

Hi @matinnuhamunada ,
I dont think I had this issue on smaller datasets.
Ran into this issue again on a dataset of 71 k BGCs.
This time I didn't get the second error : sqlite3.DataError: query string is too large
Building GCF models...
Dumping in-memory database content into /datadrive/bgcflow/data/processed/mq_strepto/bigslice/cluster_as_7.0.0/result/data.db... 148.1952s
Traceback (most recent call last):
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/bin/bigslice", line 1902, in <module>
    return_code = main()
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/bin/bigslice", line 1828, in main
    clustering = BirchClustering.run(
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/bigslice/modules/clustering/birch.py", line 177, in run
    features_df = features_df.loc[bgc_ids]
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexing.py", line 1073, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexing.py", line 1301, in _getitem_axis
    return self._getitem_iterable(key, axis=axis)
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexing.py", line 1239, in _getitem_iterable
    keyarr, indexer = self._get_listlike_indexer(key, axis)
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexing.py", line 1432, in _get_listlike_indexer
    keyarr, indexer = ax._get_indexer_strict(key, axis_name)
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6113, in _get_indexer_strict
    self._raise_if_missing(keyarr, indexer, axis_name)
  File "/datadrive/bgcflow/.snakemake/conda/26e7e769f1f6f064495b3c7cb06b8207_/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6176, in _raise_if_missing
    raise KeyError(f"{not_found} not in index")
KeyError: '[33221] not in index'

I found that one of the region genbank file had issues in the feature extraction step.
This entry 33221 was not found in the temporary output result/cache/bgc_features_1.pkl. This entry is present in the data.db file.
Attaching the genbank file below for replicating the issue.
NZ_AP024135.1.region004.zip

repo: NBChub/bgcflow


text:
mvp

true

This issue used for marketing, see https://gist.github.com/brianzelip/34c7ae7fae90122c45d624fb20aa670b

repo: NCBI-Hackathons/arvos


text:
decide how to support Polar Data Planning Summit

Pertinent links:
Polar Data Planning Summit
IARPC posting about Polar Data Planning Summit
Details
22 - 24 May 2018
University Memorial Center
University of Colorado Boulder
Boulder, Colorado  USA
Stated goal:
"The focus of the Summit will be to generate detailed plans on how best to mobilise existing and soon-to-be initiated funded activities to develop a particular international data sharing case study or scenario"

The meeting is being be co-led and co-organized by key polar data projects and programs. As of writing, organizers include:

IASC/SAON Arctic data Committee
SCAR Standing Committee on Antarctic Data Management
Southern Ocean Observing System
Global Cryosphere Watch and related WMO activities
GEO Cold Regions Initiative
Arctic Spatial Data Infrastructure
Polar View
Arctic Portal
International Arctic Social Sciences Association and representatives from the Arctic Social Science Community; National Institute of Polar Research in Japan
University of the Arctic
EU Arctic Cluster including 8 current EU funded projects
U.S. Interargency Arctic Research Policy Committee (Arctic Data Sub-Team, association agencies and projects)
Canadian Polar Data Workshop Network
Canadian Consortium on Arctic Data Interoperability
National Institute of Polar Research, Japan
Research Data Alliance.
Inuit Circumpolar Council is part of the Summit.

Efforts are being made to support Indigenous organizations in engaging.
The Summit is being support by the U.S. National Science Foundation and contributions from the organizers.

Hi @vlraymond - Thanks for this. I recently spoke to Matt about this since he's been in contact with Peter Pulsiver about it.  I will put it on my calendar since it's right here in Boulder, and I'll send an email to Peter and Heidi about us attending.  I'll cc: you and Matt and Kathryn, and we can discuss who all will go.

authors: csjx vlraymond

repo: NCEAS/arctic-data-outreach


text:
Change to reconnect/1 API

Would you be open to changing the API of reconnect/1 to also accept the same options as connect/2?
Use Case
If you are working with an authenticated websocket server and your token expires (403), you'll want to refresh the token and then reconnect with a new query param. If reconnect/1 also took the same options as connect/2, you could handle the token refresh in response to a 403 and rebuild the uri inside of handle_disconnect.
I am open to helping out here, but I wanted to check first if the changes made sense. What do you think? Or is there a better way to handle this scenario?
Thanks

You are absolutely right, immediately connecting due to an invalid request is correct. It did not cross my mind that connect/2 could be reused inside of a handle_disconnect. Perhaps I could contribute an example around token auth and refreshing tokens when they expire.

repo: NFIBrokerage/slipstream


text:
4 Governance token distribution model

(DRAFT VERSION IN BUSINESS PLAN V3)

NFT-DAO TOKEN DISTRIBUTION MODEL
The NFT-DAO will look at a token distribution model that covers five key domains. These are:

Operational Fund;
Incentive Fund;
Investment Fund;
Community Discretionary Fund;
Community Token Offering.

The Operational Fund
15% of total token circulation will be allocated to developing collaboration culture by funding operational holons, including Development, Marketing and Community. Team members and teams (in-house and out-sourced) within these holons will receive Paid Equity in the form of NFD tokens per rateable hours, as agreed by Holon consensus.
The Incentive Fund
15% of total token circulation will be allocated to incentivizing innovation and participation within the DAO network. Incentivization metrics will include Sweat Equity (for casual pro bono work contributed within the community); Social Equity (through a trust score metric shared between community members); incentivization’s for BOXCAR trailblazers whose markets are stimulating growth within the community; incentives for governance voting contributions; and dividend payments in the form of one-off or recurring token drops.
The Investment Fund
15% of total token circulation will be allocated to shared governance by building a community-driven investment fund. The fund will generate revenue from an NFT-DAO Global transaction fee (set at a fixed-rate of 1% plus a variable-voteable rate of x%); Marketplace Liquidity Mining – Fees and earning of NFD tokens by minting, selling, and buying NFTs; Stake pools; DeFi Offerings – including NFT liquidity pools and revenue rights granting NFTs; and Equity Investments in Internal and External ventures. Investment and the deployment of dividends from the Investment Fund can be voted for by the community through a bounties and proposals process, as patterned after Project Catalyst (for instance: after an epoch, 50% of the Global Fee may be applied to the Operational Fund while 50% may be deployed to token holders through an NFT drop).
Community Discretionary Fund
5% of total token circulation will be allocated to a Community Discretionary Fund. This fund may act as a surplus fund to be accessed under special conditions, as agreed by community consensus. Deployment of tokens from the Discretionary Fund can be voted for by the community through a bounties and proposals process, as patterned after Project Catalyst. The fund may support future network development, stimulate further growth in high yield areas, fund under capitalized projects or be gifted as a charity to people in need.
Community Token Offering
50% of total token circulation will be allocated as a Community Token Offering once the NFD token is launched. This may be offered as an IDO in conjunction with the launch of the NFT BOXCAR platform. It may also be a staged approach with tokens released at 5-10% instalments (split equally between the retail market and NFT-DAO membership). These staged or staggered token offerings can align with the funding requirements of the DAO’s developmental roadmap. It is the desire of the DAO to enable transferability between NFD’s, BOXCAR-minted NFT’s (NFB’s), Off-DAO NFT’s and ADA.
The framework will be merged with the Our Strategy section of the NFT-DAO Business Plan, which will be uploaded here: https://github.com/tttroyyy/Governance-HOLON/tree/main/Business-Plan/11-Our-Strategy

DELIVERABLE UPDATE
It is estimated that this deliverable is currently 90% complete.
The final stage of this deliverable will require expertise review and sign-off by core contributors.

authors: stephen-rowan tttroyyy

repo: NFT-DAO/Governance-HOLON


text:
独立使用nz-range-picker，nz-week-picker等选择时弹出的popup框 日历日期选择器

What problem does this feature solve?
使用日历日期选择器，单独组件，可以以日历视图呈现用户选择的日期，多选的日期。可以和outlook一样，日期选择和任务预约实时同步，更友好的展示
What does the proposed API look like?
<nz-week-picker-calendar>
<nz-range-picker-calendar>
~~~<!-- generated by ng-zorro-issue-helper. DO NOT REMOVE -->

how can we use the popup of data-range-picker like
 <date-range-popup></date-range-popup>

目前还没有开放的计划😦

Has supported nzInline in 11.2.0

repo: NG-ZORRO/ng-zorro-antd


text:
Benchmark commands respond with  message

Describe the bug
When a benchmarkable command is used with "benchmark" in the message, Idea will respond with the  message ("I'm sorry, did you say KILL ALL HUMANS?") instead of the execution time.
To Reproduce
Steps to reproduce the behavior:

Send @Idea benchmark ping
See PONG response for ping command
See  response for benchmark

Expected behavior
Idea responds with the results of the benchmark
Additional context
IdeaTest was running on GCloud

Fixed

repo: NGnius/IdeaBot


text:
change_dir_if_bundle() can't find binary path if JULIA_HOME is overriden

Currently, some packages require you to manually define JULIA_HOME in order to compile correctly.
This is because, currently, JULIA_HOME is not set to the normal value when compiling through juliac. The fix for this is found here:
https://github.com/JuliaLang/PackageCompiler.jl/issues/47#issuecomment-379583982
However, change_dir_if_bundle() is relying on this modified behavior to detect the location of the static binary during execution. Fixing JULIA_HOME, therefore, breaks change_dir_if_bundle().
This could be fixed if change_dir_if_bundle() was able to access argv[0], but that is not available  when compiled with juliac: https://github.com/JuliaLang/PackageCompiler.jl/issues/54.

Fixed by 95098a4 and c6bf03d.


text:
DNS Over TLS SNI missing

Hello, my DNS Over TLS via Quad9 is not causing any problems, but I have now noticed that when I say unbound use: tls-use-sni: yes, the Cloudflare website shows me that Unbound does not use SNI, what am I doing wrong with the setting? Otherwise Unbound carries out TLS handshakes. Here is a picture of it.

my config:
'''''''' server: ''''''''
# If no logfile is specified, syslog is used
# logfile: "/etc/unbound/unbound.log"
verbosity: 0
interface: 127.0.0.1
port: 5335
do-ip4: yes
do-udp: yes
do-tcp: yes

# May be set to yes if you have IPv6 connectivity
do-ip6: no

# You want to leave this to no unless you have *native* IPv6. With 6to4 and
# Terredo tunnels your web browser should favor IPv4 for the same reasons
prefer-ip6: no

# Use this only when you downloaded the list of primary root servers!
# If you use the default dns-root-data package, unbound will find it automatically
#root-hints: "/etc/unbound/root.hints"

# Certificates used to authenticate connections made upstream.
tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt

# If not "", lists files with 80 bytes of random contents that are
# used to perform TLS session resumption for clients using the Un-bound server.
tls-session-ticket-keys: “”

# Set the list of ciphers to allow when serving TLS. Use "" for default ciphers
tls-ciphers: “”

# Set the list of ciphersuites to allow when serving TLS. This is for newer TLS 1.3 connections. Use "" for default ciphersuites.
tls-ciphersuites: “”

# Enable  or disable sending the SNI extension on TLS connections.
# Default is yes.  Changing the value requires a reload.
tls-use-sni: yes

# QNAME minimisation in strict mode. Do not fall-back to sending full
# QNAME to potentially broken nameservers. A lot of domains will not be
# resolvable when this option in enabled.
# This option only has effect when qname-minimisation is enabled.
qname-minimisation-strict: no

# Harden against queries that fall under dnssec-signed nxdomain names.
harden-below-nxdomain: yes

# Trust glue only if it is within the server's authority
harden-glue: yes

# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes

# Aggressive NSEC uses the DNSSEC NSEC chain to synthesize NXDOMAIN
# and other denials, using information from previous NXDOMAINs answers.
aggressive-nsec: yes

# trust anchor signaling sends a RFC8145 key tag query after priming.
trust-anchor-signaling: yes

# use SO_REUSEPORT to distribute queries over threads.
# at extreme load it could be better to turn it off to distribute even.
so-reuseport: yes

# Number of ports to open. This number of file descriptors can be opened per thread. Must be at
# least 1. Default depends on compile options. Larger numbers need extra resources from the
# operating system. For performance a very large value is best, use libevent to make this possible.
outgoing-range: 450

# Permit Unbound to open this port or range of ports for use to send queries.A larger number of
# permitted outgoing ports increases resilience against spoofing attempts. Make sure these ports
# are not needed by other daemons. By default only ports above 1024 that have not been
# assigned by IANA are used. Give a port number or a range of the form “low-high”, without spaces.
outgoing-port-permit:32768

# The number of queries that every thread will service simultaneously. If more queries arrive that
# need servicing, and no queries can be jostled out (see jostle-timeout:), then the queries are
# dropped. This forces the client to resend after a timeout; allowing the server time to work on
# the existing queries. Default depends on compile options.
num-queries-per-thread: 4096

# Number of outgoing TCP buffers to allocate per thread. If set to 0, or if do-tcp: no, no TCP
# queries to authoritative servers are done. For larger installations increasing this value is a good idea.
outgoing-num-tcp: 1000

# Number of incoming TCP buffers to allocate per thread. If set to 0, or if do-tcp: no, no TCP
# queries from clients are accepted. For larger installations increasing this value is a good idea.
incoming-num-tcp: 1000

# buffer size for UDP port 53 incoming (SO_RCVBUF socket option).
# 0 is system default.  Use 4m to catch query spikes for busy servers.
so-rcvbuf: 1m

# buffer size for UDP port 53 outgoing (SO_SNDBUF socket option).
# 0 is system default.  Use 4m to handle spikes on very busy servers.
so-sndbuf: 1m

# the amount of memory to use for the negative cache.
# plain value in bytes or you can append k, m or G. default is "1Mb".
neg-cache-size: 4m

# Number of bytes size of the message cache. A plain number is in bytes, append ‘k’, ‘m’ or ‘g’ for kilobytes, megabytes or gigabytes (1024*1024 bytes in a megabyte).
msg-cache-size: 50m

# Number of bytes size of the RRset cache. A plain number is in bytes, append ‘k’, ‘m’ or ‘g’ for kilobytes, megabytes or gigabytes (1024*1024 bytes in a megabyte).
rrset-cache-size: 100m

# Number of slabs in the message cache. Slabs reduce lock contention by threads. Must be set to a power of 2. Setting (close) to the number of cpus is a reasonable guess.
msg-cache-slabs: 2

# Number of slabs in the key cache. Slabs reduce lock contention by threads. Must be set to a power of 2. Setting (close) to the number of cpus is a reasonable guess.
key-cache-slabs: 2

# Number of slabs in the infrastructure cache. Slabs reduce lock contention by threads. Must be set to a power of 2.
infra-cache-slabs: 2

# Number of slabs in the RRset cache. Slabs reduce lock contention by threads. Must be set to a power of 2.
rrset-cache-slabs: 2

# Timeout used when the server is very busy. Set to a value that usually results in one roundtrip to the authority servers.
jostle-timeout: 200

# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no

# Reduce EDNS reassembly buffer size.
# IP fragmentation is unreliable on the Internet today, and can cause
# transmission failures when large DNS messages are sent via UDP. Even
# when fragmentation does work, it may not be secure; it is theoretically
# possible to spoof parts of a fragmented DNS message, without easy
# detection at the receiving end. Recently, there was an excellent study
# >>> Defragmenting DNS - Determining the optimal maximum UDP response size for DNS <<<
# by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
# in collaboration with NLnet Labs explored DNS using real world data from the
# the RIPE Atlas probes and the researchers suggested different values for
# IPv4 and IPv6 and in different scenarios. They advise that servers should
# be configured to limit DNS messages sent over UDP to a size that will not
# trigger fragmentation on typical network links. DNS servers can switch
# from UDP to TCP when a DNS response is too big to fit in this limited
# buffer size. This value has also been suggested in DNS Flag Day 2020.
edns-buffer-size: 1232

# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes

# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
num-threads: 1

# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10

forward-zone:
name: "."
forward-tls-upstream: yes
forward-first: no
forward-addr: 9.9.9.9@853#dns.quad9.net
forward-addr: 149.112.112.112@853#dns.quad9.net
forward-addr: 9.9.9.11@853#dns11.quad9.net
forward-addr: 149.112.112.11@853#dns11.quad9.net

OK, Google Chrome passes the secure sni test, it must be some setting on my internet browser, it's not an unbound issue, but thanks for the help if you get an answer.

repo: NLnetLabs/unbound


text:
AppDomain.CurrentDomain.ProcessExit logging?

Type : Question / Bug
NLog version: 4.4.11
Platform: .Net 4.6.2
Current NLog config: any log to File, for example default one.
NLog  doesn't provide any output in AppDomain.CurrentDomain.ProcessExit handler. No errors (in internal log too), and no output.
Any tips?

Maybe if you make sure to register your own event-handler to AppDomain.CurrentDomain.ProcessExit before you initialize / access any NLog-objects (Be aware of static initialization of NLog-logger-objects).

@snakefoot You are right, all ok now, thanks a lot.

It's inconvenient to register own ProcessExit before any logging, because I one usually init private static Logger log as the first line in the class. I would prefer something like
LogManager.DisableAutoShutdown();
 AppDomain.CurrentDomain.ProcessExit += (s, e) =
{
    // ... own code
    LogManager.Shutdown();
};

@xmedeko NLog 4.6.8 introduces the following property (Can also be configured in NLog.config):
NLog.LogManager.AutoShutdown = false;

authors: kirsan31 snakefoot xmedeko

repo: NLog/NLog


text:
eckit (1.18.0) fails to build with intel on macOS

Here is the original issue posted by @kgerheiser in the eckit github repository: https://github.com/ecmwf/eckit/issues/44. Having an issue here will help us remember.

We are using eckit@1.19.0 - need to check if this is still a problem.

The next version of spack-stack will have eckit@1.20.2 as default. We haven't tried yet whether newer versions than 1.18.0 build on macOS with Intel

OS: MacOS Big Sur
Compiler: Intel 2022.2.1 (oneAPI 2021.7.1 and how spack sees it)
I can attest that the problem persists with 1.20.2. As a workaround, I created a patch (hack really), placed it in spack/var/spack/repos/builtin/packages/eckit, and added it to the eckit package.py file and eckit built correctly. It really needs either conditionals in the package.py file around the patch() command for platform and compiler, or logic like @kgerheiser suggested in the Log.cc source file of eckit.
Notes:
I'm sure this is explained in the documentation, but it took me a while to realize that once you add a patch or change a package.py file you need to rerun concretize with the -f flag for spack to pickup that you made changes.
I also found it necessary to add:
        if self.spec.satisfies("platform=darwin"):
            env.append_flags("CXXFLAGS", " -DNO_CLANG_BUILTIN ")

to the     def setup_build_environment(self, env): section at the bottom of spack/var/spack/repos/builtin/packages/eckit/package.py to prevent eckit from expecting __builtin_rotateleft64 (a clang builtin) to be available in src/eckit/utils/xxHashing.cc (line 15) via the third party include src/eckit/contrib/xxhash/xxhash.h (line 1594).
My patch file is the follow simple hack I only expect to work for MacOS using the Intel Compilers and would break any other configuration:
--- a/src/eckit/log/Log.cc 2023-01-12 13:41:47.000000000 -0500
+++ b/src/eckit/log/Log.cc 2023-01-12 14:22:26.000000000 -0500
@@ -33,6 +33,9 @@

 //----------------------------------------------------------------------------------------------------------------------

+#undef _GNU_SOURCE
+#define _POSIX_VERSION 200112L
+
 #if defined(_GNU_SOURCE)

 /* To use with GNU libc strerror_r */

Thanks a lot, @rjdave ! Do you mind creating a PR with those bug fixes?

What I've done is really just hacks that I fear may cause more harm than good. Even the -DNO_CLANG_BUILTIN should likely also depend on using the Intel compiler and possibly other constraints.

@rjdave Since Intel has decided to stop supporting macOS with its new LLVM-based compilers (icx, icpx, ifx) and since icc and icpc will be deprecated in the second half of 2023 (ifort will follow later), we decided to not support Intel on macOS in spack-stack / spack.
You may want to try seeking help from the spack user community by submitting an issue on their github page (https://github.com/spack/spack) or by joining their slack channel.

authors: climbfuji rjdave

repo: NOAA-EMC/spack-stack


text:
Scaling load

I am reading the RTS-GMLC data by using the following code:
using Pkg; Pkg.activate(".")
using PowerSystems
using Dates
using TimeSeries

RTS_GMLC_DIR = "../RTS-GMLC/RTS_Data";
rawsys = PowerSystems.PowerSystemTableData(
    joinpath(RTS_GMLC_DIR, "SourceData"),
    100.0,
    joinpath(RTS_GMLC_DIR, "FormattedData", "SIIP", "user_descriptors.yaml"),
    timeseries_metadata_file = joinpath(RTS_GMLC_DIR, "FormattedData", "SIIP", "timeseries_pointers.json"),
    generator_mapping_file = joinpath(RTS_GMLC_DIR, "FormattedData", "SIIP", "generator_mapping.yaml"),
);

sys = System(rawsys; time_series_resolution = Dates.Hour(1));
horizon = 24
interval = Dates.Hour(24);
transform_single_time_series!(sys, horizon, interval);

To run this code successfully, I had to remove the following line from storage.csv:
313_STORAGE_1,313_TAIL_STORAGE,0.15,0.075,NA,0.,50

Otherwise, the package was not able to parse it.
Then, to see the forecast load, I ran the code below:
using Plots

loads = get_components(PowerLoad, sys);
total_loads = 0.0
total_ts_loads = zeros(24)
for l in loads
    ts = get_time_series_array(Deterministic, l, "max_active_power"; ignore_scaling_factors=false)
    total_loads += l.max_active_power
    total_ts_loads .+= values(ts)
end
plot(ones(24)*total_loads, label="nominal")
plot!(total_ts_loads, label="forecast")

It looks like the scaling was not done properly. What did I miss from the code above?

Thanks for reporting. @claytonpbarrows has been improving the code for the storage, could this be part of the issue?
About the time series, you are collecting only the 0.0- 1.0 values of the time series. It seems that time series aren't applying the scaling factor. Can you try this to confirm please
for l in loads
    ts = get_time_series_array(Deterministic, l, "max_active_power"; ignore_scaling_factors=false)
    total_loads += l.max_active_power
    total_ts_loads .+= values(ts)*l.max_active_power
end

Thanks for the quick response.
The first suggestion looks correctly scaled, as seen below. But, the second suggestion did not change anything.

This may not be a question for this repo. As you can see, I am using the RTS-GMLC data, where reactive load forecast does not exist. Does it make sense to scale max_reactive_power as well in order to get a reactive load forecast? Do you have any suggestion?

The RTS dataset doesn't have a separate time series for reactive power so it isn't included in the time series dataset. So we advise users to do
for l in loads
ts = get_time_series_array(Deterministic, l, "max_active_power"; ignore_scaling_factors=false)
total_loads += get_max_reactive_power(l)
total_ts_loads .+= values(ts)*get_max_reactive_power(l)
end

Also, it is strongly suggested to use the accessor functions provided rather than the dot access. If your script changes the base power of the system or others, the dot access won't match.

Thanks @jd-lara ! All my questions have been answered.
I can open a separate issue for parsing storage.csv, if you want.

Thanks for using and reporting issues in PowerSystems.jl. Please open an issue for the storage, I will keep this issue open to look into why get_time_series_values isn't making the expected conversion.

I ran the code above and got expected results when passing ignore_scaling_factors to get_time_series_values (true and false). I suspect that something else may be going on.

@daniel-thom Can you be more specific? What are the expected results? I can confirm that get_time_series_values behaves the same as get_time_series_array does; that is, I still need to multiply get_max_reactive_power(l) to values(ts). Is this expected?

I'm not sure what the issue is. I'm only addressing the question raised by @jd-lara as to whether the scaling factors are being applied correctly - they are. Can you run this same test?
julia> method1 = [get_time_series_values(Deterministic, l, "max_active_power"; ignore_scaling_factors=false) for l in loads];
julia> method2 = [get_time_series_values(Deterministic, l, "max_active_power"; ignore_scaling_factors=true) * get_max_active_power(l) for l in loads];
julia> method1 == method2
true

@kibaekkim we can close the issue since it seems to be related to the usage. We need to improve the documentation about the time series.

So... just to understand the usage correctly, I can use this below:
for l in loads
    ts = get_time_series_array(Deterministic, l, "max_active_power"; ignore_scaling_factors=false)
    total_loads += get_max_active_power(l)
    total_ts_loads .+= values(ts)*get_max_active_power(l)
end

or equivalently,
for l in loads
    ts = get_time_series_values(Deterministic, l, "max_active_power"; ignore_scaling_factors=false)
    total_loads += get_max_active_power(l)
    total_ts_loads .+= values(ts)*get_max_active_power(l)
end

That is, both get_time_series_array and get_time_series_values should return the same value.
And, if I set ignore_scaling_factors=true, then it should be
for l in loads
    ts = get_time_series_values(Deterministic, l, "max_active_power"; ignore_scaling_factors=true)
    total_loads += get_max_active_power(l)
    total_ts_loads .+= values(ts)*get_max_active_power(l)*get_max_active_power(l)
end

Is that correct?

You don't need to call values when using get_time_series_values and don't need to multiply twice by get_max_active_power in the last version.
The difference between get_time_series_values and get_time_series_array is that get_time_series_array returns a time array and get_time_series_values returns the values directly without the time stamps.

The default behavior of both get_time_series_array and get_time_series_values is to apply the scaling factor multiplier to the time series array. It may read non-straightforwardly, but that is ignore_scaling_factors = false. In this case the scaling factor multiplier is get_max_active_power(l). So, you should be able to do this:
for l in loads
    ts_vector = get_time_series_values(Deterministic, l, "max_active_power")
    total_loads += get_max_active_power(l)
end

In another case above you wanted to get reactive power. For that case you will need to set ignore_scaling_factors = true and then apply get_max_reactive_power yourself.

Sorry that I may be circling the issues...

This figure is obtained by the code below:
total_loads = zeros(24)
total_ts_loads = zeros(24)
for l in loads
    ts_vector = get_time_series_values(Deterministic, l, "max_active_power")
    total_loads .+= get_max_active_power(l)
    total_ts_loads += ts_vector
end
plot(total_loads, label="nominal")
plot!(total_ts_loads, label="time series")

@jd-lara gave me https://github.com/NREL-SIIP/PowerSystems.jl/issues/862#issuecomment-1058841323. I think I am confused now...

@kibaekkim why do you think the figure is incorrect? The max_active_power value in the RTS is calculated as the peak over the whole year and you are grabbing the load curve for January 1 of the data.

@kibaekkim I think that in the RTS the thermal gen capacity is below the whole system load but not the total generation considering Hydro and Renewables. @claytonpbarrows can you confirm?

I addressed the above issue comments WRT the version of RTS-GMLC here

authors: claytonpbarrows daniel-thom jd-lara kibaekkim


text:
Fix list parameters

Fix list parameters - affects Gradients and Thicknesses

Unintentionally created as PR to main repo, closing. (Created self-PR instead at https://github.com/softwareengineerprogrammer/GEOPHIRES-X/pull/34)

repo: NREL/GEOPHIRES-X


text:
Unable to build SAM project

Hi,
I am trying to run the following command
cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES="Debug;Release"  -DSAM_SKIP_AUTOGEN=1 -DSAMAPI_EXPORT=0 -DSAMPRIVATE=0 -DCMAKE_SYSTEM_VERSION=10.0 ..
I am getting the following error
`CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GTESTD_LIB
linked by target "Test" in directory D:/Projects/solar/sam_dev/ssc/test
GTEST_LIB
linked by target "Test" in directory D:/Projects/solar/sam_dev/ssc/test
-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.`

I am using the same version mentioned in the Windows Build Instructions

@shahid28 Your environment configuration looks correct based on the screenshots that you showed. Can you confirm gtest built correctly? Screenshots of googletest/build/lib would be helpful. The expected filenames can be found in the blocks below https://github.com/NREL/ssc/blob/599881565c45d08880902ccbea1de041d4ef24ac/test/CMakeLists.txt#L76

@shahid28 Any luck with those suggestions? I'm inclined to close this if we don't hear back soon.

repo: NREL/SAM


text:
How to optimize hyper-parameters?

If the dataset size grows considerably, say if I were to rank for a larger dataset, with a 200,000 vocab_size , how should I approach to optimise the hyper parameters? For Match Pyramid as well as for DRMM_TKS , would the default iteration=400, learning_rate=1.0 and default adadelta optimiser suffice to provide a solid result?  Thoughts on this ?

We have auto hyper-parameter tuning in 2.0, which will be released this month. Stay tuned (pun intended).

authors: shaheenkdr uduse

repo: NTMC-Community/MatchZoo


text:
Replace read_table with read_csv

FutureWarning: read_table is deprecated, use read_csv instead.

Related to #623 , but not fully fixed.
matchzoo/embedding.py::matchzoo.embedding.Embedding
matchzoo/data_generator/histogram_data_generator.py::matchzoo.data_generator.histogram_data_generator.HistogramDataGenerator
matchzoo/data_generator/histogram_data_generator.py::matchzoo.data_generator.histogram_data_generator.HistogramPairDataGenerator
tests/unit_test/test_embedding.py::test_embedding
  /home/bo/Documents/open-source/MatchZoo/matchzoo/embedding.py:101: FutureWarning: read_table is deprecated, use read_csv instead.
    skiprows=1)

tests/unit_test/test_embedding.py::test_embedding
  /home/bo/Documents/open-source/MatchZoo/matchzoo/embedding.py:107: FutureWarning: read_table is deprecated, use read_csv instead.
    quoting=csv.QUOTE_NONE)

has been solved in 2.1.


text:
RPi-#4. Add methods for the use of CLI and socket

What is this PR for?
Add some methods (not all) that has no relationship with server and controller, and the sample usage for CLI and socket.
What type of PR is it?
[Feature]
Todos
What is the Github issue?
https://github.com/NTUEELightDance/LightDance-RPi/issues/4
How should this be tested?
None.
Screenshots (if appropriate)
None
Questions:

Do the license files need updating? No
Are there breaking changes for older versions? Yes
Does this need new documentation? Yes

Do you have a code formatter ?

repo: NTUEELightDance/LightDance-RPi


text:
Fix incompatible data type in DataFrame creation

Do not specify a dtype when creating a DataFrame when the table has heterogeneous data types.  In this case, the table has float and string types.

This fixes an error when running --all benchmarks that looks like this:
Traceback (most recent call last):
  File "/workspace/jetson_benchmarks/benchmark.py", line 130, in <module>
    main()
  File "/workspace/jetson_benchmarks/benchmark.py", line 49, in main
    benchmark_table = pd.DataFrame(latency_each_model, columns=['GPU (ms)', 'DLA0 (ms)', 'DLA1 (ms)', 'FPS', 'Model Name'], dtype=float)
...
ValueError: could not convert string to float: 'inception_v4'