text:
Rollup failed to resolve import "XXXXXX/node_modules/@arco-design/web-vue/es/collapse-item/style/css.js"

[x] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version: arco-design-pro-vue@2.3.6
Framework version: 2.18.0
Browser: chrome101.0.4951.41
Reproduction Link: https://github.com/

What is expected?
使用了collapse-item打包时Rollup报错。手动引入样式也没有这个路径的。项目是按需加载

同样遇到了这个问题。

还有这个mport "XXXXXX/node_modules/@arco-design/web-vue/es/icon/style/css.js

你这个应该看看文档中好像有如果你引入了iconfont是因为iconfont不支持按需加载。

一样，下面几个都有问题

@arco-design/web-vue/es/icon/style/css.js
@arco-design/web-vue/es/descriptions-item/style/css.js
@arco-design/web-vue/es/collapse-item/style/css.js
@arco-design/web-vue/es/image-preview-group/style/css.js

以image-preview-group组件为例
在config/plugin/styleImport.ts中，往ignoreList中添加image-preview-group进行忽略就行了

今天试过了，找到config/plugin/styleImport.ts，往replaceList中添加替换成它们的父组件可以，也按你说的忽略也可以，不过除了descriptions-item，其他都可以了，而且这个是默认就在ignoreList中的，至今还是没搞定

以image-preview-group组件为例 在config/plugin/styleImport.ts中，往ignoreList中添加image-preview-group进行忽略就行了

今天试过了，找到config/plugin/styleImport.ts，往replaceList中添加替换成它们的父组件可以，也按你说的忽略也可以，不过除了descriptions-item，其他都可以了，而且这个是默认就在ignoreList中的，至今还是没搞定

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

@gmars hi 这个问题是按需加载打包产生的问题。可以选择升级一下依赖。或者在config/plugin/styleImport.ts中ignoreList里添加报错的对应的组件名即可。

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

@Sanbolee 这个问题可以新开一个issue。提供具体复现信息哈。

@gmars hi 这个问题是按需加载打包产生的问题。可以选择升级一下依赖。或者在config/plugin/styleImport.ts中ignoreList里添加报错的对应的组件名即可。

版本"@arco-design/web-vue": "2.26.0"，"arco-design-pro-vue": "^2.3.6"，config/plugin/styleImport.ts中ignoreList里已添加descriptions-item，其他的都可以，只有它不行

@Sanbolee 因为组件库这边确实做了一些调整。包括类型导出、命名调整以及增加了一下特性。目前的解决方法是，你根据打包的错误提示，把缺失的部分补充或者忽略就行。

@Sanbolee 因为组件库这边确实做了一些调整。包括类型导出、命名调整以及增加了一下特性。目前的解决方法是，你根据打包的错误提示，把缺失的部分补充或者忽略就行。

我现在的做法是在配置build.rollupOptions.external把@arco-design/web-vue/es/descriptions-item/style/css.js加进去，然后打包好，在全局查找它把它删除😅

@Sanbolee 你这路走的有点绕了。不推荐这么搞哈。😓

config/plugin/styleImport.ts中ignoreList里已添加descriptions-item

没办法啊，在config/plugin/styleImport.ts中ignoreList里已添加descriptions-item这项了，但是打包的时候还是忽略不了，其他的诸如：collapse-item、image-preview-group、icon都可以，就只有它不行，好奇怪😂，要是不在build.rollupOptions.external把@arco-design/web-vue/es/descriptions-item/style/css.js加进去，打包不成功😂，又要上线使用，只能这么搞了😂这么搞确实有点麻烦，本来脚本一键部署的，现在还得手工删一次

@Sanbolee descriptions-item 这一项我看了 确实有加。具体报错什么样的？解决方法的话，你试试把这一项放到replaceList里，'descriptions-item':'descriptions'

@Sanbolee descriptions-item 这一项我看了 确实有加。具体报错什么样的？解决方法的话，你试试把这一项放到replaceList里，'descriptions-item':'descriptions'

单独在replaceList里加'descriptions-item':'descriptions'这个也试过了，单独在ignoreList里添加descriptions-item也试过，一起加也试过，都是报错

@Sanbolee ok，我先本地模拟跑跑看。有结果再告知哈。

@Sanbolee ok，我先本地模拟跑跑看。有结果再告知哈。

嗯嗯，好的

@Sanbolee hi 还是按需加载的问题。你把unplugin-vue-components 这个包升级到最新就行了。

@Sanbolee hi 还是按需加载的问题。你把unplugin-vue-components 这个包升级到最新就行了。

可以了，感谢🙏

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

我也遇到了这个问题，怎么解决啊

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

我也遇到了这个问题，怎么解决啊

我的还没有解决

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

我也遇到了这个问题，怎么解决啊

我的还没有解

控制台报了这些错

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

我也遇到了这个问题，怎么解决啊

我的还没有解

控制台报了这些错

你打包成功后直接双击打开index然后出现这个错误的吗？

对了，你们打包后css样式顺序会不会混乱，开发的时候样式正常，打包后就有问题了

我也遇到了这个问题，怎么解决啊

我的还没有解

控制台报了这些错

你打包成功后直接双击打开index然后出现这个错误的吗？

对的，而且路由可以跳转，只是跳转过去的页面部分CSS显示不正常

@Paradox315 @Sanbolee 打包后的样式错乱的问题可以新开一个issue。至于打包后的那部分报错大概率是你的部署环境的缘故。可能是权限或者是配置的问题。 我这边使用http-server简单启动后是能够进行页面访问且不报错。

这是为什么  在config/plugin/styleImport.ts中ignoreList的组件名中添加也没用 别的都没问题

我发现的原因：是因为使用npm命令更新了包。
解决过程：删除node_modules文件夹，然后还原package.json的内容，使用yarn install安装所有包，然后yarn run build打生产包就没有问题。
更新包：没有更新了，如果要更新尝试yarn upgrade

Failed to resolve import "@arco-design/web-vue/es/s-e_-u-r-l/style/css.js" from "src\router\index.js". Does the file exist?

[vite]: Rollup failed to resolve import "/node_modules/@arco-design/web-vue/es/countdown/style/css.js" from "XXX.ts"同样遇到了

@Sanbolee unplugin-vue-components 我用的最新版0.24.1 还是不行,我和你类似,只剩这一个解决不了Rollup failed to resolve import "@arco-design/web-vue/es/breadcrumb/style/css.js"

依赖问题

1592817535
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2023年3月26日(星期天) 晚上7:25
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [arco-design/arco-design-pro-vue]  Rollup failed to resolve import @.***/web-vue/es/collapse-item/style/css.js" (Issue #71)
@Sanbolee unplugin-vue-components 我用的最新版0.24.1 还是不行,我和你类似,只剩这一个解决不了Rollup failed to resolve import @.***/web-vue/es/breadcrumb/style/css.js"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

我发现的原因：是因为使用npm命令更新了包。 解决过程：删除node_modules文件夹，然后还原package.json的内容，使用yarn install安装所有包，然后yarn run build打生产包就没有问题。 更新包：没有更新了，如果要更新尝试yarn upgrade

使用该方式，已解决问题

跟一个楼，如果使用了vite-plugin-style-import导入acro vue也出现了对应的问题，可以采取为resolveStyle补一段黑名单代码，把不存在的目录排除出去。可以这么干：
       createStyleImportPlugin({             libs: [                 {                     libraryName: '@arco-design/web-vue',                     esModule: true,                     resolveStyle: (name) => {                         const exclude = ['tab-pane','row','col']                         if (exclude.indexOf(name) > -1) return ''                         return@arco-design/web-vue/es/${name}/style/css.js                     },                 }             ]         }

Error: [vite]: Rollup failed to resolve import "C:/Users/wangn/Desktop/享鸿(一)/shiro-engineering-project/node_modules/@arco-design/web-vue/es/card-meta/style/css.js" from "s
为啥 我忽略了 还是不可以 ignoreList 加了card-meta 还是不可以

我也用到同样的问题，但是最后检查代码发现是同事乱用标签导致的，因为官方都没有a-span标签，它却在页面里使用，导致官方组件库加载不到这个css.js文件所以一直打包有问题，最后我让他把a-span换成span就可以打包

我今天也遇到了，后来发现arco-desgin的动态打包工具识别名称过于简单粗暴，把明明我自己写的组件也识别成自己的组件了

所以解决方法就是改名字，看起来不能使用以“a”为开头的组件名称，这也太不合理了，建议官方改一下

cc @sHow8e  配合 rsbuild 的时候同样遇到相关的问题，想问下会有一个明确的解决方案么 , 是否可以提供一下使用非 vite构建工具的配置方案呢，感谢

authors: 169358 BlueBiuBiu GSZS GreenHand-wt Paradox315 Sanbolee Trojan0523 arect deng-gl dingfeipeng gmars houlovegu mingbai2006 sHow8e shaoerkuai superaotu yuandonghua zemel1988

repo: arco-design/arco-design-pro-vue


text:
[DesignLab] Can't reset/revert style changes on Shadow

[ ] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version: 2.27.2
System: -
Browser: -
Reproduction Link: https://arco.design/themes

What is expected?
All changes on Shadow should be resettable, and now I can't release theme package because I don't know what's changed on Shadow.
Steps to reproduce

已支持批量撤销

source: gharchive/issue

authors: Kimi-Gao PengJiyuan

repo: arco-design/arco-design

license: MIT

license_type: permissive

license_source: github-api


text:
Theme does not load with emacs --daemon

If emacs is started with emacs --daemon, the nord theme will not properly load, but will instead display as grey-on-white; there are many messages like the following:
Unable to load color "brightblack"
Unable to load color "brightcyan"
Unable to load color "brightblack" [5 times]
Unable to load color "brightblack"
Unable to load color "brightcyan"
Unable to load color "brightblack" [2 times]
Unable to load color "brightcyan"
Unable to load color "brightblack" [5 times]
Unable to load color "brightcyan"
Unable to load color "brightblack" [2 times]
Unable to load color "brightcyan" [3 times]
Unable to load color "brightblack"
Unable to load color "brightcyan"
Unable to load color "brightblack"
Unable to load color "brightcyan"
Unable to load color "brightblack" [5 times]

I believe that this is because in daemon mode there is no terminal, and thus nothing to send the colour names to. I think that the fix is to use the color class system as documented in Defining Faces.

To avoid the load-on-every-frame problem I whipped up a variant using cl-labels.
(if (daemonp)
    (cl-labels ((load-nord (frame)
                           (with-selected-frame frame
                             (load-theme 'nord t))
                           (remove-hook 'after-make-frame-functions #'load-nord)))
      (add-hook 'after-make-frame-functions #'load-nord))
  (load-theme 'nord t))

Note that this requires lexical-binding: t. Without lexical binding something like cl-letf would need to be used instead of cl-labels.

Sorry again for the delay. There's another issue about the ANSI color definitions so maybe I'll check how to better implement these to avoid the named "bright" colors listed above in the error log.

Sorry for the long absence, I've been busy again with my job and work on the official Nord Docs with the goal to finally have a single-source-of-truth for all of Nord's port projects. Anyway, I'd like to get some of the long-time queued issues of some port projects done, including this one.
@somesoup emailed me and submitted #68 that includes a fix for the daemon mode problem. @zvbuhl posted some ideas how to solve it using the faces and @jaccarmac also proposed another way how this could be done. @slippycheeze offered to help for some problems of this project in https://github.com/arcticicestudio/nord-emacs/issues/66#issuecomment-421123819 and maybe has some ideas and opinions.
It would be really nice if we can discuss together what's the best solution to fix this. I'm happy about any help! It bothers me a lot that I could not solve some of the open issues in this repository due to the missing experience with Emacs and the fact that even after searching through many documentations and tutorials not able to find a up-to-date or correct solution. There are also not always ways to reproduce some of the problems.
In short: OSS lives from contributors and I welcome any help for this very much :smile:
I tried to reproduce the log posted in the initial post, but when I run emacs --daemon it starts without any errors but only a warning:
Warning: due to a long standing Gtk+ bug
http://bugzilla.gnome.org/show_bug.cgi?id=85715
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Loading hl-line...
Loading hl-line...done
Loading linum...
Loading linum...done
Loading paren...
Loading paren...done
Starting Emacs daemon.

It also works fine running Emacs without the GUI (emacs -nw).
Like I said I'm not a Emacs user and I have no experience with Lisp so I rely on community help.

@slippycheeze Thanks, this helps a lot and looks like the way to go. Absolute no problem for the delayed response time. Unfortunately, I have the same problem that the day only has 24h and necessary real life tasks absorbing almost all of it :unamused:
Since this is a open source project, everyone is free to go for it and submit a PR if it should be merged into this project. As soon as I'm done with porting all documentation and assets of all Nord's port project to the new  official website of Nord there is hopefully more time to work on all the issues and PRs waiting in the queue.

Might look at PR'ing this. Are there guidelines for what the Nord colors are in smaller color spaces or should I just eyeball it for 24-bit and 16-color displays?

The newest release made this a lot worse. Basically no colors seem to be available and @accarmac init.el addition fails to connect to the daemon completely, with no output.  (emacs just briefly flashes and then quits). The daemon is running, but there is no way to connect to it.

@rien333 I just upgraded to 0.4.0 (20190616.1757) and it seems to work okay. Still loads as light-blue on white, but I’m able to load the theme manually once I’ve got an X frame open, and then proceed as normal.

Fixed by using the code from PR #64 (that adds a proper 24-bit check) and the daemon solution provided by the "ghost account". When using the solution provided by @jaccarmac my emacsclient  just doesn't connect, and I havent been able to get useful debug info from it. (I've seen emacs complain about cl-labels before, maybe it's something about that. Manually loading the theme also works fine now.
btw, I'm using emacs-26.2.

@rien333 Thanks for your feedback, this helps to decide which of the already four proposed solutions might work the best for latest and older versions 👍

@rien333 Are you using lexical-binding: t? That's probably the easiest way cl-labels would fail. Perhaps I should whip up a non-lexical solution so it works for more people.

That variable is nil, according to emacs. I also don't alter in my init.el, nor does setting it to t have any effect. It's somewhat weird actually if I'm the only one that has problems with your snippet, I probably need to bisect my init.el.
As an aside, I'm using the kitty terminal emulator, with 24-bit support in emacs made available by a .terminfo file tailored to the true color spec kitty uses. (not sure if that's relevant but yeah)

It needs to be set with a file-local variable as in my config (see top), otherwise cl-labels will not work properly in that snippet. Otherwise you'll need to use cl-block or cl-letf; I just set my init file as lexical so can't tell you exactly how to do so.
Further information about lexical-binding: Emacs manual, Chris Wellons's blog

Here’s an attempt not to rely on the setting at daemon-start time. It’s a mechanical translation, and it’s embarrassingly unabstracted, but … maybe it’s a start?
https://github.com/zvbuhl/nord-emacs/tree/theme-tty

@jaccarmac, the addition on top of the file did the trick, thank you for your assistance and the resources on lexical-binding; I wan't completely familiar with the subject yet.

So... I'm having a bit of a different issue than most folks here. I'm running emacs off systemctl --user using emacs --fg-daemon.
The theme works great in either terminal (emacsclient -t) or as a frame in X (emacsclient -c). The problem is that it doesn't work in both... it's one or the other (whichever starts first). This is an issue for me because I don't use emacsclient directly but instead have an "editor" script that will use console if I launch in console or a frame otherwise:
#!/bin/bash

if [ -z "$(pgrep emacs)" ]; then
    systemctl --user restart emacs
    sleep 10
fi

SOCKET=$(lsof -c emacs | grep $USER | grep server | grep STREAM | awk '{print $9}' | sort | uniq)
PARAMS="--socket-name=$SOCKET"

if [[ $TMUX || $SSH_CLIENT ]]
then
    PARAMS+=" -t"
else
    PARAMS+=" -c"
fi

exec  /usr/bin/emacsclient $PARAMS $@

Note: I can "switch" the working one by manually calling load-theme in an emacsclient in either terminal  or in X, but it'll break the other.

It might be that I'm missing something important, but it seems to me as if you start emacs the same way I do. I can use the nord-theme fine in either an X frame or in my terminal, and my systemd unit file shows that I also start emacs with emacs --fg-daemon. Is there something different about your setup? Not sure if it's relevant to you, but I remember all my problems going away when I patched with PR #64 and added @jaccarmac solution to my init.el.

@rien333 thanks for your input! unfortunately that still didn't solve it for me... if it makes a difference, I'm running tmux inside terminator for the console. I've got the nord-theme set up for terminator and using set -g default-terminal screen-256color in tmux.

I'm seeing the same behavior as you if I run tmux with set -g default-terminal screen-256color.
However, if I use TERM=kitty-24bit emacsclient -t in  tmux---a terminfo file I need to use in order for emacs 24-bit support and my terminal to work together---it works fine. Not sure if I'm telling you stuff you already know, but yeah the TERM variable/terminfo or tmux could be the problem.

@rien333 thanks! yeah just figured that out... after a bit of googling I finally got it working following this post, with the difference that I went ahead and put TERM=screen-24bit in my .zshrc

I've submitted and merged #88 (superseded #64 due to stale state and merge conflicts) as a first step to fix the problem(s) documented in this issue.
A way better fix will be a refactoring of the theme colors to make use of defined faces (also mentioned by @zvbuhl and @slippycheeze) in combination with capability tests for display feature/color support.
Anyway, the next release version will include the changes from #88 and I'd really appreciate feeback if it's a step forwards better compatibility :smile:

@arcticicestudio this is the first time I upgraded nord-theme without it breaking my colors and me having to manually intervene, so it's definitely a step forward in compatibility for my setup (I do have some other fixes from this thread applied to my init.el, though.). Thanks for your time and your continued support!

Can't speak to the issues folks are having in the console, but I still need my delayed-load hack for the theme to load under a daemon properly.

EMACS version: 28.0.5
nord-theme version: 20200108.833
I encounter this issue and I have this as a fix:
(defvar my:theme 'nord)
(defvar my:theme-window-loaded nil)
(defvar my:theme-terminal-loaded nil)

(if (daemonp)
    (add-hook 'after-make-frame-functions(lambda (frame)
                                          (select-frame frame)
                                          (if (window-system frame)
                                              (unless my:theme-window-loaded
                                                (if my:theme-terminal-loaded
                                                    (enable-theme my:theme)
                                                  (load-theme my:theme t))
                                                (setq my:theme-window-loaded t)
                                                )
                                            (unless my:theme-terminal-loaded
                                              (if my:theme-window-loaded
                                                  (enable-theme my:theme)
                                                (load-theme my:theme t))
                                              (setq my:theme-terminal-loaded t)
                                              )
                                            )))

  (progn
    (load-theme my:theme t)
    (if (display-graphic-p)
        (setq my:theme-window-loaded t)
      (setq my:theme-terminal-loaded t)))
  )

I forgot where I found that snippet but credits to the owner.
It works pretty well when I open it in the GUI with emacsclient -nc, but when I run emacsclient -t in the terminal, the theme is different, and I see the Unable to load color errors.
Weird thing is that when I run emacsclient -t BEFORE opening emacs in a GUI, it loads correctly, but when I run it AFTER running emacsclient -nc (GUI), the terminal colors get messed up.  You can check the screenshot attached:
Left side is terminal while right side is the GUI:

Interesting. I don't really use terminal Emacs, but decided to see how my fix fared in the same situation. And it turns out that if I start a daemon and then open a terminal client before a graphical client, the graphical client doesn't load the correct colors. If a graphical client is opened before everything plays together nicely.

@iamriel Thanks for your help 👍
I've also noticed the exact same behavior while trying to reproduce the problem and thought it was my fault and lack of experience/usage with Emacs, but it's "good" to see that this is not scoped to my system. I'll keep this on my list for things that requires manual testing when the faces for theme colors are implemented.

Hey, still seeing this on:

nord-theme-20200620.1122 (0.5.0)
emacs 28.1
X on linux
Running emacs in daemon mode

Is https://github.com/arcticicestudio/nord-emacs/issues/59#issuecomment-611610832 still the way to go?

authors: EdwardIII aiguofer arcticicestudio iamriel jaccarmac rien333 robert-uhl zvbuhl

repo: arcticicestudio/nord-emacs


text:
Glitch on Safari iOS

Hey,
Noticed a glitch on Safari iOS. The counters are hanging out in the top-left corner instead of being centered in the middle of the gauge.

Fixing this would be awesome for iphone users.
Let me know if you need more info!

Thanks for reporting this! Should be fixed with version 1.1.1. Are you able to confirm for both iOS Safari and macOS Safari? (I borrowed an iPhone to test and I don't have a Mac.)

Thanks!
It works perfectly now


text:
Issue: Panic on line deletion

Describe the bug
As mentioned here there's a panic on line deletion.
Panic occurs if there's no newline at the end of the file and you try to delete line by hostname.
To Reproduce
Steps to reproduce the behavior:

Delete last empty line from hosts file by hand
Use hosty to delete a line by hostname
Panic

Expected behavior
As per deletion-by-ip, deletion should occur even without empty lines at the end of the file

Actually this is fixed but while removing by hostnames we're matching every possible hostname (it seams) so the file is cleaned up except for comments

repo: areYouLazy/libhosty


text:
add error reporting to block

Errors are not reported and displayed on production. This mr is based on https://github.com/area17/twill/issues/2540 issue and based on a discussion on discord https://discord.com/channels/811936425858695198/811986440569356308/1219656775125700748

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

source: gharchive/pull-request

authors: AidasK CLAassistant


text:
Android upload images

Change region settings and test, uploads now working.
New bug raised for issue reloading after upload has occurred.
https://trello.com/c/yogNKOAL/15-bug-after-image-upload-the-block-has-loading-spinner-indefinitely

I've changed this to make the android branch the base.

authors: Foosballfan riglar

repo: aredotna/case

license: mit

license_source: bigquery


text:
Project abandoned?

Hi @areebbeigh ,
Have you abandoned this project, last release in 2018.
My team under qld-gov-au org is using this python plugin and would like to keep it maintained.
Are you able to provide myself @duttonw and @ThrawnCA admin rights to this project as well as maintainer access to  https://pypi.org/project/profanityfilter/ (username: duttonwz ) .
With that I can build out the GitHub Actions CICD pipline to allow auto version deployment to pypi as well as incorporate our downstream 'fixes' we have open on https://github.com/areebbeigh/profanityfilter/pull/26

Hey. Yes, I haven't been able to keep up with maintenance because of time constraints and more so because there seem to be better alternatives available.
I don't mind handing over the project's maintenance if it helps current users. I will be adding you as a maintainer to the repository here and on PyPI.

Hi @areebbeigh ,
Can you enable 'pages' under settings  "source" be GitHub Actions. then under environment, for 'environment'  github-pages update the 'Deployment branches and tags' to allow develop,  master and  main.
This will then create the doc's like https://duttonw.github.io/profanityfilter/

CICD for auto pypi deployments is now configured and i've cut 2.1.0 from the work @ThrawnCA  did on our fork.
https://github.com/areebbeigh/profanityfilter/actions/runs/12019968973
https://pypi.org/project/profanityfilter/2.1.0/
This should make it easier to support going forward.

Just ran the doc's action and its all happy.
https://github.com/areebbeigh/profanityfilter/actions/runs/12059353024
site: https://areebbeigh.github.io/profanityfilter/
will be kepted up to date on branch update.

@areebbeigh Which alternatives did you mean? https://pypi.org/project/profanity-filter/ is also unmaintained and its repository https://github.com/rominf/profanity-filter is archived.

authors: ThrawnCA areebbeigh duttonw

repo: areebbeigh/profanityfilter


text:
InternalResolutionError does not account for ambient modules

Example: https://arethetypeswrong.github.io/?p=highlight.js%4011.9.0
Using ambient modules in this way should probably be a different problem kind

I think we're getting the same issue for @sveltejs/kit. It's unclear to me if we're actually doing something wrong. If so, it would be helpful if the error message could also suggest some possible fixes as I'm not sure in what other way we should write the types.

Ambient module declarations should only be used to type imports that do not invoke a file-to-file module resolution algorithm at runtime/bundle-time, i.e., environmental built-ins like "fs" or things that a bundler/compiler will strip away no matter the location of the importing file on disk. They should not be used to type imports that will resolve (at runtime/bundle-time) by walking up node_modules. They are not a way to bundle the types for multiple runtime modules into one file like https://github.com/Rich-Harris/dts-buddy tries to do.
arethetypeswrong has a bug here and it will report the wrong (and more severe) kind of problem, but there are so few instances where it’s correct to use an ambient module declaration that it feels likely that SvelteKit is misusing them. When I fix this, I’ll write accompanying docs about the consequences of misusing ambient module declarations.

authors: andrewbranch benmccann


text:
simplify execution control

I think the system could be simplified greatly. Execution control has two purposes:

Set the includeScriptOutput flag. This is immutable and we can use the ARGO_INCLUDE_SCRIPT_OUTPUT flag.

Fixed in feat(controller) Emissary executor. (#4925) I think.

repo: argoproj/argo-workflows


text:
[argo-ui] css loads Heebo font from the internet

Is this a BUG REPORT or FEATURE REQUEST?:
Bug report
What happened:
While loading the Argo UI, the CSS tries to load Heebo from fonts.googleapis,.com.
BUT, in air-gapped environments, users workstations do NOT have any internet connection
-> It can take more than 1 to 2 minutes before the page renders (I guess CSS falls back to browser fonts instead)
-> The fallback font used in the left navbar popovers is rendered all blurred
What you expected to happen:
Bundle the fonts in the docker image and serve them from disk
Environment:

Argo version: v2.3.0
Kubernetes version : v1.13.4

Any update on this?

same issue
access https://fonts.googleapis.com/css?family=Heebo:300,400,500,700

Should combine with #2760

authors: ZhengRongTan alexec devlounge

repo: argoproj/argo


text:
Select: introduce a new prop to allow empty selection

Motivation
Currently you can set a default value for select boxes. If not set, the first non-disabled item will be used.
I have a scenario where the select box is optional and I don't want to auto select it.
My idea is to add a property to allow empty values:
Attribute	                       Type	Description	                                                       Default
allowEmptySelection	boolean	Whether the collection allows empty selection.	false

Usage example
      <Ariakit.SelectProvider allowEmptySelection={true} />

Requirements

If allowEmptySelection is set to true the select box should allow empty values
Introduce a placeholder component that will render when there are no values

Workaround
https://github.com/ariakit/ariakit/issues/3150#issuecomment-1840743063
Possible implementations
No response

Is this a duplicate of #2516?
Currently, you can pass an empty string ("") as the value and directly render the placeholder as the Select element's children:
<Select>
  {value || "Select an animal"}
</Select>

siiii it's similar. i tried with null and undefined but the typecheck failed. thanks for the info with the empty string

this a duplicate of https://github.com/ariakit/ariakit/issues/2516?

authors: diegohaz johnsonthedev

repo: ariakit/ariakit


text:
🛑 cp is down

In 1b73ffd, cp (https://cp.udns.site) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cp is back up in 3cb1c6d after 25 minutes.


text:
Generate code to embed magnet in go pgrm

with go generate and jennifer?
Before that simplify as much as possible magnet. (-> embed in function)

//go:generate in import
//go:generate before main
//go:generate within main

to avoid the constraind of having the binary in $PATH use go:generate go run gthub.com/ariary/magnet/cmd/generator instead

https://pkg.go.dev/github.com/dave/jennifer/jen

repo: ariary/magnet

license: Unlicense


text:
🛑 kahve.com is down

In f6d84d0, kahve.com (https://www.kahve.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kahve.com is back up in 52e3974 after 10 minutes.

repo: aribatturan/hcdev


text:
reload.extensions doesn't automatically close in Chrome 55

Kind of seems like the extension is doing what it's supposed to be doing, but it doesn't seem to be working anymore. I tried to fix on my own but had no luck.
Seems kind of like two things are going on.
First, redirectUrl doesn't seem to respect chrome-extension:// URLs anymore. I was able to make a data-url work as the redirect, and I was able to make a normal HTTP URL work as the redirect, but no love from chrome extension URLs.
The second thing I tried was to just self-host the close page and redirect to it. This kind of works in that at least the redirect is respected, but the tab doesn't close in this fashion. The console offers some clue as to why: "Scripts may close only the windows that were opened by it."
Here's the HTML file I self hosted if you want to give it a try: http://static.tdg5.com.s3.amazonaws.com/close.html
I tried to look in the changelog for Chromium for reference to any of these changes, but didn't see anything, though I was mostly looking for references to onBeforeRequest.
I haven't dug into this much further and am not familiar with the extension, but if you have any other suggestions for getting the tab to auto-close, please let me know.
Thanks!

If you end up looking at this, please reach out with any questions. As I've dug into this issue more, it seems likely that the reason that tab wasn't being closed was because it was the selected tab. Not sure why that would have changed or how that would be different, but it is something to consider when looking into this issue.
I made an aggressive tab closer branch here if it's of any interest to you or anyone else who wants more aggressive tab closing: https://github.com/tdg5/chrome-extensions-reloader/commit/da2eec0ede2158fc69b2e9a21151fa703c9fb9bc

@tdg5 have you considered submitting a pull request for this?

Please reopen if issue still occurs

authors: arikw felixfbecker tdg5

repo: arikw/chrome-extensions-reloader


text:
Add InfluxDB support

Enhancement summary
At the moment, to configure Telegraf on EOS devices using AVD, we have to add all the configuration in the eos_cli field.
An improvement on this, if the user is knowledgable enough, is to build a custom eos_config_cli template that will generate the configuration.
The enhancement request is to have eos_design functionality to generate the configuration for Telegraf to stream to InfluxDB.
Which component of AVD is impacted
eos_designs
Use case example
To configure Telegraf on EOS devices to stream to InfluxDB.
Describe the solution you would like
The desired solution would :

Allow for Telegraf configuration to be defined in group_vars yaml definitions
eos_designs would pick up these definition and generate the corresponding eos_cli_config_gen structured_config
eos_cli_config_gen would generate the corresponding configuration for EOS devices

Nice to have:

eos_validate_state would verify that Telegraf is running as expected on EOS devices, when such definitions are defined in structured_config

Describe alternatives you have considered

Adding configuration under eos_cli. This solution is not in line with defining the configuration is a structured format.
Custom eos_cli_config_gen to generate the configuration . This solution is not portable to other users, and would require each user to manually add it. Further more, it is not in line with the strategy to capture as much intended state through eos_designs. It does not allow for future development example : eos_validate_state checking telegraf state.

Additional context
No response
Contributing Guide

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

Thank you for taking this on yourself. Please create separate PRs per role. Easiest to start with eos_cli_config_gen.

authors: ClausHolbechArista chetryan

repo: aristanetworks/ansible-avd


text:
Add class name to controls

Hi there
How can I add custom class name to kirki controls (for styling with css).
Thanks a lot

Hey there!
Controls already have their own custom classes, you shouldn't have to add anything!
What is it exactly that you want to style?
I'd suggest you also take a look at the develop branch as all the styling has been re-coded from scratch there.

authors: DevelopOnline aristath

repo: aristath/kirki


text:
JSCS and dev Task

Related to #821
Use grunt dev —force to get live sass compilation and live JSCS feedback each time you hit save on a sass or JS file

:+1:

authors: aristath guillaumemolter


text:
Change the dialog size

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[] iOS
[X] Android
[] UWP
[] PCL

Version of OS(s) listed above with issue
Version of ACR UserDialogs Library
6.3.3
Expected Behaviour
The dialog with a fixed size.
Actual Behavior
If applicable, please include entire exception - type, message, stacktrace
I need to download some grouped items. My dialog is showing like this:
==================
SPINNER
Getting Items...
3 of 1388
========================
SPINNER
Getting Inventory Group Items...
100 of 970
I have a lot of different groups and the dialog keeps dancing on the screen. My client complained to me about this.
My question is: it is possible to fix the dialog size? I tried to insert blank space at the beginning and at the end of title but seems the dialog trims the string.
Thank you very much.
Code of Conduct

No Library Update Requests
No Timeline Requests
Please read through the documentation and FAQs
Please be respectful of my time. I put a lot of effort into my libraries.  I try to support the issue requests within a day.  I'm not psychic, so please take the time to fill out the above form as complete as possible

This isn't something I would plan to do.  The progress dialog simply wasn't meant to be a huge control and it truncates intentionally to prevent this.  You are welcome to submit a PR if you would like to see this implemented in some fashion.

authors: aritchie marcelojaf

repo: aritchie/userdialogs


text:
inputType: InputType.NumericPassword does not work on Windows Phone

NumericPassword on Windows Phone does not work correctly. See the screenshots on the various platforms with the following code:
var pin = await UserDialogs.Instance.PromptAsync("Please enter your pin", title: "Verification", inputType: InputType.NumericPassword);

This is resolved in the upcoming 4.1.0

Upgraded to 4.1.1 and the behaviour on Windows Phone 8/8.1 is sill the same with full keyboard as opposed to numeric keyboard with { inputType: InputType.NumericPassword } as on iOS and Android

Sorry.  I knew I misfiled something.  This actually can't be fixed as the passwordbox doesn't accept an inputscope


text:
Streamline the included copy of Qt

ariya.hi...@gmail.com commented:

We have minimalistic Qt source imported (see issue 226). Now it's time to streamline the build even further.
Example: we don't need to build most of the legacy widgets (QDial, QLCDNumber), as well as unrelated modules like state machine, graphics view, etc.

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #414.
:star2:   2 people had starred this issue at the time of migration.

Not applicable anymore.

authors: Vitallium ariya

repo: ariya/phantomjs


text:
Drag & Drop issue still unsolved?

I've searched for a solution to simulate drag & drop for a long time. But since the document says:

For 'mousemove', however, there is no button pressed (i.e. it is not dragging).

It seems to be no way to do this thing? I find that someone said they found a solution (https://github.com/ariya/phantomjs/issues/10586), but it seems that they still have problems with their implementation(I tried to look for their code but got a 404 page) and it never works for me.
Does anyone have a workaround?

I got Drag&Drop tests working under Selenium+Nightwatch+PhantomJS.
My versions:
├── nightwatch@0.6.15
├── phantomjs@1.9.18
└── selenium-standalone@4.6.1

To simulate drag&drop from #foo to #bar:
  browser
//(...)
  .moveToElement('#foo',5,5)
  .mouseButtonDown('left')
  .moveToElement('#bar',5,5)
  .mouseButtonUp('left')

References:

http://nightwatchjs.org/api#moveToElement
http://nightwatchjs.org/api#mouseButtonUp
http://nightwatchjs.org/api#mouseButtonDown


text:
cont3xt enhancement - Submit indicator(s) for import to indicator management platform

Support for submitting indicators for import into a user configurable/selectable indicator management platform.
i.e. Anomali, MISP, Vertex...

Would there need to be a new UI to set other fields that were unique per platform?

authors: WilliamSalusky awick

repo: arkime/arkime


text:
merge package from arlac77/npm-package-template

package.json

chore(package): documentation@^8.0.1
chore(package): semantic-release@^15.7.2

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


text:
Expose Ephemeral Key Interface

Hey, I want to expose the ephemeral key interface by adding the appropriate few lines of code in generate.rs and resources.rs.  Since it's used in conjunction with payment_intents and setup_intents, my intention is to add it to the "core" functionality.
Is it okay, if I do this and get this pulled into mainline after?

Hey Arlyon, I finished this.  Let me know if and when you're ready for the pull request.  Do you need me to look at some of the other issues?  I can't do everything, but I can take a look at some of them if you need some help.

I appreciate your continued input. PRs welcome, I'm getting round to them (slowly!).

authors: arlyon erichCompSci

repo: arlyon/async-stripe


text:
Missing wallet type Link

Describe the bug
I'm getting the following error
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: JSONSerialize(Error { path: Path { segments: [Map { key: "data" }, Seq { index: 0 }, Map { key: "payment_method_details" }, Map { key: "card" }, Map { key: "wallet" }, Map { key: "type" }] }, original: Error("unknown variant `link`, expected one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`", line: 78, column: 26) })'

To Reproduce
Fetch a charge item with type Link
Expected behavior
Not crash
Code snippets
No response
OS
Linux
Rust version
1.68.1
Library version
async-stripe 0.18.1
API version
2020_08_27
Additional context
No response

Here is the changelog from Stripe: https://stripe.com/docs/changelog#april-6,-2023
My guess is that they consider this a backwards-compatible change, even if it is not for us.

I think this is addressed.

authors: arlyon barlindhaug ferocious-ferret


text:
Feature Request: Use toggleterminal to run commands

It would be pretty nice if instead of firing up a terminal that hides our vi session if toggleterminal could be leveraged to handle the terminal. This would actually allow the user to connect to the devcontainer and have the terminal as a floating window, a horizontal split, or a vertical split. I believe it would even be possible to stow the window and come back to it.
I have played around with TermExec cmd="devcontainer exec --workspace . zsh" dir=<project> and it looked promising. The main part missing from that command is that I wasn't sure how to auto-populate the dir portion.

One issue I have run into trying to just make a keybinding for this is that when I run 103TermExec cmd="devcontainer exec --workspace . zsh" dir="." without ever having used <M-3> (the default keybinding defined when loading the plugin) it fails with an InvalidRange error, since I guess this terminal doesn't exist yet. But it works if I have used the original keybinding and I am able to them use <M-3> to hide the terminal and then bring it back up. Anyway, seems promising.

I was able to get things to work with a function like the following:
exec_toggle = function(opts)
  local Terminal = require("toggleterm.terminal").Terminal
  local term = Terminal:new { cmd = opts.cmd, count = opts.pid, direction = opts.direction }
  term:toggle(opts.size, opts.direction)
end

opts.direction can be "float", ""horizontal", or "vertical". opt.size can be nil and opt.cmd = "devcontainer exec --workspace-folder . zsh. Obviously the shell should be an option and the workspace-folder should be inferred in some way.

I'm definitely interested in this, I will explore it further once I have time. If you can provide a pull request if would be awesome! The way the terminal is created should depend on the tool nvim config, and there should be different ways allowed! The more the btter!

Just FYI currently if you work with tmux and open nvim inside the tmux, in case you use this tools another tmux window is created with access to the devcontainer.
https://github.com/arnaupv/nvim-devcontainer-cli/blob/5bd6ab58095d60d6b961dff42bdd7b936f23389a/bin/open_shell_in_devcontainer.sh#L6

I didn't recognize that it was doing that. Maybe that was why I had extra tmux sessions that I didn't recognize.

There are some issues with the method I outlined. First, the simple one to fix, the keymap <leader>De is difficult to use to toggle the terminal as for me hitting escape doesn't always seem to enter normal mode.
Second, the command TermExec forwards commands to a terminal, in the case I posted above the ID is 104. Now this seems cool, cause I was able to then send compile commands and such, but if you change the directory things then run in that directory. So there are some caveats to this approach. But I think there is still something to this.

I currently do not have time to implement this, but PRs are more than welcome 🚀 !

authors: arnaupv erichlf

repo: arnaupv/nvim-devcontainer-cli


text:
🛑 NWTFV is down

In 2697129, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in f6978a6.

repo: arnef/status


text:
🛑 NWTFV is down

In fcd45c4, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in 04bb5a5.


text:
🛑 GEKI is down

In ac2d6fe, GEKI (https://geki-piano.com) was down:

HTTP code: 500
Response time: 10731 ms

Resolved: GEKI is back up in 1687c35.


text:
🛑 NWTFV is down

In 86be4d2, NWTFV (https://nwtfv.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NWTFV is back up in 9089a8d.


text:
Update blog.config.js

修复无法编译运行的bug

哇哇，谢谢作者酱

repo: aron-xx/kiki-s-blog


text:
Switch from uniform radius to bfactor based radius in tube representation with setParameters

Hi, I have some problems to switch from uniform radius to bfactor based radius, and viceversa, in tube representation using setParameters. Which parameters should I change?

Thanks, i was missing the scale factor.

repo: arose/ngl


text:
Why is intersectBed -sorted slower than unsorted?

I have a big chip-seq.bedGraph file (7,617,673 rows) and a small windows.bed file (413 rows), both sorted, and based on reading the manual I thought that the fastest method would be
$ time intersectBed -a windows.bed -b chip-seq.bedGraph -sorted > overlap-sorted.bedGraph
real	154m10.653s
user	153m2.188s
sys	0m20.204s

but actually it is much faster without -sorted. Why is that? (the results of the two are the same)
$ time intersectBed -a windows.bed -b chip-seq.bedGraph > overlap.bedGraph
real	0m8.733s
user	0m7.932s
sys	0m0.728s

If this is a bug, can you please fix it?
If it is a feature, can you please document it?
data files can be downloaded here
http://cbio.ensmp.fr/~thocking/data/overlap-benchmark.tgz

by the way this is with Version: 2.14.3-1

With version 2.21.1, -sorted is more than twice as fast as without. There have been many, many improvements to that algorithm over the last two years. I suggest an upgrade!
➜ bedtools --version
bedtools v2.22.1
➜  time bedtools intersect -a windows.bed -b chip-seq.bedGraph -wa -wb > /dev/null
10.79s user 0.99s system 99% cpu 11.783 total
➜  time bedtools intersect -a windows.bed -b chip-seq.bedGraph -wa -wb -sorted > /dev/null
3.45s user 0.05s system 99% cpu 3.507 total


text:
Gorilla Mux

show some common patterns, etc...

Maybe a Gorilla vs httprouter? (https://github.com/julienschmidt/httprouter)

@jcmartins how about 2 screencasts covering each one instead?

:+1:

:+1:

:+1:

authors: arschles gotjosh jcmartins surfeurX vdemario


text:
Reset all filters at once

Is there a possibility to reset all filters at once? I would like to add a button on the sidebar below the filters to reset all filters.

you can achieve this by clearing the session state. See an example below:
def clear_cache():
    keys = list(st.session_state.keys())
    for key in keys:
        st.session_state.pop(key)

st.button('Reset filters', on_click=clear_cache)

authors: arsentievalex johanneswerner

repo: arsentievalex/streamlit-dynamic-filters


text:
Pointer Hand [ICON REQUEST]

Describe the icon you'd like to be added
Simple pointer right hand
Sample icon

Hi @GeekMina, the pointer-hand icon has been added.

authors: GeekMina artcoholic

repo: artcoholic/akar-icons


text:
Add format versions count report

Connected to #93
This PR implements the "Format versions count" report in the UI and API, with support for limiting results by start and end date. This commit also removes the Bootstrap alerts from the report selection template, as there is no longer the need for any "Coming soon"-type messages, and users should be able to tell that their reports are loading in a new tab without these alerts.
NB: With reference to this conversation in https://github.com/artefactual-labs/AIPscan/pull/65#discussion_r534446391, I suspect that some changes will need to be made around implementing the start_date and end_date parameters before merging. This might mean changing this report to use files' ingestion Event date or it might mean modifying the "File format count" report to use AIP.create_date, as I've done here. My rationale for using AIP.create_date is that that date is likely the most visible date for Archivematica users, since it is displayed in both the Archival Storage tab and the Storage Service's Package tab. But honestly, I'm not really sure which is the better approach and would like some input, as I'd like to set a standard practice and use that moving forward wherever possible.
In many cases, file ingestion dates and AIP creation dates will be the same, or at least similar. But in some cases, as in the case of files that are stored in a transfer backlog for weeks or months prior to becoming part of a SIP (and, eventually, an AIP), they may end up being quite different.
So when we say "start date" and "end date" in relation to something like this report, or the "File format count" report, do we mean when the file was first ingested into an Archivematica instance, or when it became part of an AIP? Might that answer change for other reports? How might we better communicate what these dates mean to users? (I've tried in the API documentation with some success, I think, but am more at a loss for what to do in the GUI)

@tw4l thanks for this. Overall I can see this is a high quality PR, although I have to step into it in more detail.
I feel like AIP created date is exactly the right date to use here as I think this is specifically AIP level reporting. You might be interested in this ticket I mentioned about the archival storage tab too: https://github.com/archivematica/Issues/issues/731
I have left some initial comments about the date handling which are good additions and I look forward to seeing applied to other existing reports.
What I am a little bit stuck on before I start to review in more detail, is the similarity in the shape of the data between the two data functions:

curl -X GET "http://127.0.0.1:5000/api/data/aip-overview/1" -H "accept: application/json"
curl -X GET "http://127.0.0.1:5000/api/data/format-version-count/1" -H "accept: application/json"

It reminds me of a conversation before, but the similarity feels too hard to ignore, and there should be something done to (my preference - consolidate, rather than duplicate or remove). So I'd just like to ask more about the rationale for 2 over 1. And I think we need to understand what happens to both now, with respect for what each of them offer. My initial instinct is that 2. should probably not have been created without acknowledgement of 1. I could be wrong, the partial duplication might be fine. Maybe this really is a case of repository level reporting, vs. starting to implement functions to support preservation watch and treatment?

Thank you for the feedback @ross-spencer! As always I appreciate your sharp mind and generosity.

I feel like AIP created date is exactly the right date to use here as I think this is specifically AIP level reporting. You might be interested in this ticket I mentioned about the archival storage tab too: archivematica/Issues#731

Fantastic, and thanks for the helpful context with that issue! Given that, I will plan to add a commit in this PR that modifies the "Format count report" view to also use the AIP created date, to bring the reports into line with each other.

I have left some initial comments about the date handling which are good additions and I look forward to seeing applied to other existing reports.

Thanks, these comments make a lot of sense! I agree with your insight that we'd be better off decoding early and always returning a datetime object, and will make changes accordingly.

What I am a little bit stuck on before I start to review in more detail, is the similarity in the shape of the data between the two data functions ... It reminds me of a conversation before, but the similarity feels too hard to ignore, and there should be something done to (my preference - consolidate, rather than duplicate or remove). So I'd just like to ask more about the rationale for 2 over 1.

This is fair, and truthfully it's just the result of an oversight on my part. I started with the UI report and worked backwards from there (i.e. deciding what the report looks like, then writing the Data endpoint accordingly, and finally adding the API endpoint to keep good coverage there). I suspect that the similarity and potential to extend what was already there would have been much more apparent to me if I had worked in the reverse order. But you're also right that we've had similar conversations before, so apologies for making us cover this ground again.
Given what you've pointed out, I see a few potential ways forward:

Keep both sets of Data endpoints and API endpoints.
Remove the new Data and API endpoints, and use the existing Data.aip_overview endpoint (adding file size, date limiting, and testing comparable to Data.format_versions_count) for the "Format versions count report" in the UI.
Hybrid approach: Keep the new Data.format_versions_count Data endpoint and continue to use it for the "Format versions count report" in the UI, but remove the new API endpoint in favour of the existing aip_overview API endpoint. We could potentially also supplement the aip_overview API endpoint by adding aggregate file size, date limiting, and tests so that nothing's lost to consumers by dropping the format_version_count API endpoint.

I agree with you that having both API endpoints as they are doesn't add much value currently (your thought about "repository level reporting, vs. starting to implement functions to support preservation watch and treatment" is intriguing, but I'm not sure we're there yet) so that rules out approach 1 for me.
My first thought was to go with approach 2, even though it would mean throwing out a lot of the work in this PR. However, as this would require first fetching data from the Data.aip_overview endpoint and then (in another Data endpoint function or the Reporter view) significantly transforming the shape of that data and sorting it for use in the UI template, there would be costs in terms of speed and complexity vs. leaning on the database/ORM to do the heavy lifting and return the data in the shape we need. Personally, I don't see the benefits of this approach outweighing those costs.
We could also consider the inverse of approach 2 (i.e. keeping the new endpoints and removing the old), but I see value in keeping the API endpoints a bit generic so that other systems can consume them and use them for their own purposes and I think the aip_overview API endpoint exemplifies that well.
So as I write this, I'm inclined to go with the hybrid approach 3. In essence, I see this as optimizing for speed in the reporting UI and thoroughness/generality in the API endpoint. What do you think? Does that sound reasonable to you?

Thanks @tw4l for laying these options out. It's really helpful. I'm thinking through them. I was thinking it might benefit me to share some previous context/thinking here in person and I wonder impact any particular approach might have one some of the decisions we make in development moving forward, so I requested a Google Hangout with yourself and Peter if that sounds good?
Going through some of this again I don't feel is that big a deal. It's really timely. There's more that I could have done here to signpost intentions - and what I think might be a somewhat orphaned function in the data module/API endpoint certainly doesn't help! It's going to come up more for other folks as we get others contributing.

Sounds good, thanks @ross-spencer! Looking forward to discussing further this afternoon.

To sum up how we left the offline conversation:

I will move the format_version_count Data and API endpoints to a new module and namespace respectively so that there is a clear differentiation between endpoints that are for generic data consumption vs. endpoints that are feeding raw data for reports implemented in the UI.
I will assess the other existing endpoints for inclusion in the new module/namespace and move the ones that should be moved - e.g. the largest file report endpoints.
@ross-spencer will complete code review for this PR, with the understanding that I will be moving the endpoints and making the suggested changes to the helper for parsing date strings into datetime objects, but have not done so yet.

Hi @ross-spencer - I believe I've now responded to each of your suggestions and comments, and that this PR is now ready for code review. Thanks again for the great suggestions here!
In addition to responding to the in-line comments, I've moved the report endpoints to a new Data.report_data module and API.namespace_report_data namespace. This required a lot of changes in the Data, API, and Reporter blueprints and updates to the tests, so the diff might be a bit larger. I've made sure that all tests are passing and done a quick test of each of the API endpoints and UI reports to make sure everything looks good following the change.
Along the way I discovered a bug in the agents_transfers endpoint that sometimes cause that report and API endpoint to raise an AttributeError, which I filed an issue for here: https://github.com/artefactual-labs/AIPscan/issues/104.

I realized right after marking this PR as ready for re-review that I forgot to update the "File format count" report to use AIP.create_date for date filtering, so I've added a follow-up commit with that change.

repo: artefactual-labs/AIPscan


text:
Problem: all README.md development documentation links broken

Describe the bug
Clicking any of the links in the README.md https://github.com/artefactual-sdps/enduro#development-documentation-resources section results in a 404 "File not found" error.
To Reproduce
Steps to reproduce the behavior:

Go to https://github.com/artefactual-sdps/enduro#development-documentation-resources
Click on any link in that section
A 404 "file not found" error is returned

Expected behavior
Clicking a documentation link should load the relevant documentation page.

I will fix later today, including the links to the new locations of the manuals:

https://enduro.readthedocs.io/user-manual/
https://enduro.readthedocs.io/dev-manual/

authors: djjuhasz sevein

repo: artefactual-sdps/enduro


text:
Add keycloak artifacts

Add keycloak artifacts to the lib folder to support jaas keycloak login modules.

Done in v1.0.14


text:
🛑 Matrix (server) is down

In 4fc7816, Matrix (server) (https://matrix.artemislena.eu:8448/_matrix/static) was down:

HTTP code: 502
Response time: 340 ms

Resolved: Matrix (server) is back up in ffd515c after 10 minutes.

repo: artemislena/upptime


text:
🛑 Ntfy is down

In fb342ee, Ntfy (https://ntfy.artemislena.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ntfy is back up in b27b3ab after 6 minutes.


text:
🛑 Mailcow (SMTP) is down

In 0811cc7, Mailcow (SMTP) (mail.artemislena.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mailcow (SMTP) is back up in b9f04bb after 2 hours, 4 minutes.


text:
How notify on vue router beforeRouteEnter?

I have a component with beforeRouteEnter() to fetch some data with AXIOS before navigate and init the component like so:
// Post.vue
beforeRouteEnter(to, from, next) {
      axios.get(`/posts/${to.params.postId}`)
        .then((response) => {
          next((vm) => {
            vm.setPost(response.data);
          });
        })
        .catch((error) => {
          next(false);
          // Now I need to notify the error with snotify.
        });
    },

I know in this situation I don't have access to the component as it has not been created yet. I also tried in the router instance file but I am in the same situation.
// Post.vue
beforeRouteEnter(to, from, next) {
      axios.get(`/posts/${to.params.postId}`)
        .then((response) => {
          next((vm) => {
            vm.setPost(response.data);
          });
        })
        .catch((error) => {
          const errorJS = new Error(error.data);
          next(errorJS);
        });
    },

// index.js
Vue.use(Router);

const router = new Router({
    mode,
    routes,
});

router.onError((error) => {
  // eslint-disable-next-line
  console.log(error);
  // Same situation here, either of following doesn't work.
  vm.$snotify...
  Vue.$snotify....;
});

export default router;

How can I notify when user can't access to the route?

In the near future, I will add the ability to work with a router

authors: artemsky jgrandar

repo: artemsky/vue-snotify


text:
Concept List generation script

Hi,
Thanks for publishing and open-sourcing this amazing work. I am working on a similar kind of project and was wondering how did you generate the concept list. I was going through your paper but was unable to comprehend in detail the procedure involved in generating the concept lists. So, if possible can you guys please share the script for the concept list generation?
Cheers,
Adi

Hi,
Thanks for publishing and open-sourcing this amazing work. I am working on a similar kind of project and was wondering how did you generate the concept list. I was going through your paper but was unable to comprehend in detail the procedure involved in generating the concept lists. So, if possible can you guys please share the script for the concept list generation?
Cheers, Adi

Good question! I was wondering about this myself too!
I asked ChatGPT to answer this question based on the content of the pdf of the paper:
How are concepts extracted?
ANSWER:
Concepts are extracted for the knowledge graph using the following multi-step process:

Data Source
•	Titles and abstracts from approximately 2.44 million papers were analyzed, including data from repositories like arXiv, bioRxiv, medRxiv, and chemRxiv.

Initial Extraction with RAKE
•	The Rapid Automatic Keyword Extraction (RAKE) algorithm was applied to extract potential concepts.
•	RAKE identifies phrases based on statistical co-occurrence and word frequency analysis.
•	It focuses on multi-word expressions that frequently appear together in the text.

Filtering Rules
•	Only certain phrases were retained based on criteria:
•	Two-word concepts needed to appear in at least nine articles.
•	Concepts with more than three words had to appear in at least six articles.
•	This reduced the candidate list to 726,439 concepts.

Refinement and Error Removal
•	Automated tools were developed to refine concepts and remove:
•	Phrases that were not actual concepts (e.g., verbs or conjunctions).
•	Domain-independent errors from RAKE’s output.
•	This process resulted in a list of 368,825 refined concepts.

GPT and Manual Validation
•	GPT-3.5 was used to review and remove irrelevant concepts further.
•	Around 286,311 concepts were discarded at this stage.
•	Wikipedia was utilized to restore 40,614 valid entries that were mistakenly removed.

Final Output
•	The final list included 123,128 unique concepts.
•	These concepts were from natural sciences, social sciences, and humanities, ensuring broad applicability.

This comprehensive process ensures that the extracted concepts are both meaningful and relevant for scientific research and knowledge graph construction.

Hi,
Thanks for publishing and open-sourcing this amazing work. I am working on a similar kind of project and was wondering how did you generate the concept list. I was going through your paper but was unable to comprehend in detail the procedure involved in generating the concept lists. So, if possible can you guys please share the script for the concept list generation?
Cheers, Adi

Describe in painstakingly detail the RAKE algorithm (Rapid Automatic Keyword Extraction )
The Rapid Automatic Keyword Extraction (RAKE) algorithm is a domain-independent method for extracting keywords or phrases from a text based on their statistical and positional properties. Below is a detailed explanation of the algorithm, step by step:

Input and Initialization

RAKE requires:
•	A text document as input.
•	A stop word list, which contains common words (e.g., “the”, “and”, “is”) that are not meaningful for keyword extraction.
•	Optionally, a list of punctuation marks to identify boundaries in the text.

Text Preprocessing

RAKE preprocesses the text by:
1.	Splitting the text into sentences using punctuation marks (e.g., “.”, “!”, “?”) as delimiters.
•	Each sentence forms a unit for further processing.
2.	Tokenizing sentences into words using spaces or other delimiters.

Stop Word Removal and Phrase Extraction

Words are classified as either stop words or candidate keywords:
•	Stop words are identified using the predefined stop word list.
•	Remaining words are treated as potential keywords.
Each sentence is divided into phrases:
•	Stop words and punctuation act as boundaries, breaking the sentence into chunks.
•	Example:
•	Sentence: “AI models, such as GPT-4, are transformative.”
•	Stop words: “such”, “as”, “are”.
•	Phrases: “AI models”, “GPT-4”, “transformative”.
The resulting phrases consist of contiguous sequences of non-stop words.

Word Co-occurrence Matrix

RAKE builds a co-occurrence graph:
1.	Each unique word from the extracted phrases is a node.
2.	A co-occurrence link (or edge) is established between words that appear in the same phrase.
•	Example:
•	Phrases: [“AI models”, “GPT-4 transformative”]
•	Co-occurrence pairs: (AI, models), (GPT-4, transformative).

Word Scoring

RAKE calculates two main metrics for each word:
1.	Degree (d(w)):
•	The number of other words it co-occurs with (i.e., the number of edges connected to the word in the co-occurrence graph).
•	Example:
•	“AI” in the phrase “AI models” has a degree of 1 (it co-occurs with “models”).
2.	Frequency (f(w)):
•	The number of times the word appears in the entire text.
3.	Degree-to-Frequency Ratio (d(w) / f(w)):
•	This ratio highlights words that are strongly connected to others but not overly frequent, balancing specificity and importance.

Phrase Scoring

For each candidate phrase:
1.	Compute the score of the phrase by summing the scores of all words in the phrase.
•	Example:
•	Phrase: “AI models”.
•	Word scores:  \text{Score(AI)} + \text{Score(models)} .
•	Phrase score =  (\frac{d(\text{AI})}{f(\text{AI})}) + (\frac{d(\text{models})}{f(\text{models})}) .
2.	Phrases with higher scores are ranked as more significant.

Output

RAKE outputs:
•	A ranked list of phrases, where higher-ranked phrases are considered more important keywords for the text.
Advantages of RAKE
1.	Domain Independence: It does not rely on pre-trained models or domain-specific knowledge.
2.	Simplicity: The algorithm is computationally efficient and easy to implement.
3.	Customizability: The stop word list can be tailored to suit specific domains or languages.
4.	Phrase-Based: Unlike single-word extraction methods, RAKE identifies meaningful multi-word phrases.
Example Walkthrough
Input Text:
“Artificial intelligence models like GPT-4 are transformative tools in research.”
Step-by-Step Process:
1.	Split into Sentences:
•	Sentence: “Artificial intelligence models like GPT-4 are transformative tools in research.”
2.	Tokenize and Remove Stop Words:
•	Stop words: “like”, “are”, “in”.
•	Result: [“Artificial intelligence models”, “GPT-4”, “transformative tools”, “research”].
3.	Extract Co-occurrence Pairs:
•	Phrases: [“Artificial intelligence models”, “GPT-4”, “transformative tools”, “research”].
•	Co-occurrence pairs:
•	From “Artificial intelligence models”: (Artificial, intelligence), (Artificial, models), (intelligence, models).
•	From “transformative tools”: (transformative, tools).
4.	Calculate Word Scores:
•	Degree (d):
•	“Artificial” = 2, “intelligence” = 2, “models” = 2, etc.
•	Frequency (f):
•	“Artificial” = 1, “intelligence” = 1, etc.
•	d / f:
•	“Artificial” = 2, “intelligence” = 2, etc.
5.	Score Phrases:
•	Phrase “Artificial intelligence models” = 2 + 2 + 2 = 6.
•	Phrase “transformative tools” = 2 + 2 = 4.
6.	Rank and Output:
•	Ranked Phrases:
1.	“Artificial intelligence models” (Score: 6).
2.	“transformative tools” (Score: 4).
3.	“GPT-4” (Score: 2).
Applications
RAKE is used in:
1.	Summarization of documents.
2.	Topic modeling and content analysis.
3.	Preprocessing for machine learning pipelines in NLP tasks.

Hi,
Thanks for publishing and open-sourcing this amazing work. I am working on a similar kind of project and was wondering how did you generate the concept list. I was going through your paper but was unable to comprehend in detail the procedure involved in generating the concept lists. So, if possible can you guys please share the script for the concept list generation?
Cheers, Adi

Good question! I was wondering about this myself too!
I asked ChatGPT to answer this question based on the content of the pdf of the paper:
How are concepts extracted?
ANSWER:
Concepts are extracted for the knowledge graph using the following multi-step process:

Data Source
•	Titles and abstracts from approximately 2.44 million papers were analyzed, including data from repositories like arXiv, bioRxiv, medRxiv, and chemRxiv.

Initial Extraction with RAKE
•	The Rapid Automatic Keyword Extraction (RAKE) algorithm was applied to extract potential concepts.
•	RAKE identifies phrases based on statistical co-occurrence and word frequency analysis.
•	It focuses on multi-word expressions that frequently appear together in the text.

Filtering Rules
•	Only certain phrases were retained based on criteria:
•	Two-word concepts needed to appear in at least nine articles.
•	Concepts with more than three words had to appear in at least six articles.
•	This reduced the candidate list to 726,439 concepts.

Refinement and Error Removal
•	Automated tools were developed to refine concepts and remove:
•	Phrases that were not actual concepts (e.g., verbs or conjunctions).
•	Domain-independent errors from RAKE’s output.
•	This process resulted in a list of 368,825 refined concepts.

GPT and Manual Validation
•	GPT-3.5 was used to review and remove irrelevant concepts further.
•	Around 286,311 concepts were discarded at this stage.
•	Wikipedia was utilized to restore 40,614 valid entries that were mistakenly removed.

Final Output
•	The final list included 123,128 unique concepts.
•	These concepts were from natural sciences, social sciences, and humanities, ensuring broad applicability.

This comprehensive process ensures that the extracted concepts are both meaningful and relevant for scientific research and knowledge graph construction.

Hi,
Thanks for your response. I emailed the author a month ago, and she shared me the link for the code. Here's the link, if you are interested:
https://github.com/artificial-scientist-lab/Impact4Cast/tree/main/create_concepts
Cheers,
Adi

Hi Jan and Adi,
Thank you for reaching out! Apologies for missing the earlier message. Here's an overview of our approach to concept extraction:

Initial Concept Extraction:
We analyzed the titles and abstracts of approximately 2.44 million papers from four preprint datasets using the RAKE algorithm, enhanced with additional stopwords, to extract potential concept candidates.

Initial filtering retained two-word concepts appearing in at least nine articles.
Concepts with more than three words were retained if they appeared in six or more articles.
This process significantly reduced the concept list.

Quality Improvement:
To enhance the quality of identified concepts, we implemented a suite of automated tools to address domain-independent errors commonly associated with RAKE. We then manually reviewed and removed inaccuracies such as non-conceptual phrases, verbs, and conjunctions. For further details, refer to the Impact4Cast Paper and our GitHub code for concept extraction.

Further Refinement with GPT:
We used GPT-3.5 to refine the concepts further, which resulted in the removal of 286,311 entries. Using Wikipedia, we restored 40,614 mistakenly removed entries, resulting in a final, refined list of 123,128 concepts. For details on prompt engineering, refer to the appendix of the SciMuse paper.

You can find the code for generating and refining concepts in this repository:
GitHub - Impact4Cast Concept Extraction.
Please let me know if there’s anything else you’d like to discuss!

repo: artificial-scientist-lab/SciMuse


text:
[BUG] authkey is logged even when insecurely_log_authkey is false

Describe the bug
authkey is logged even when insecurely_log_authkey is false
To Reproduce
Steps to reproduce the behavior:
 - name: Configure Tailscale
      ansible.builtin.include_role:
        name: tailscale
      vars:
        insecurely_log_authkey: false
        tailscale_authkey: "tskey-auth-SECRET-VALUE"

Expected behavior
The authkey would not be shown in the logs.
Screenshots
TASK [tailscale : Gather Up Arguments] *****************************************
ok: [35.85.207.202] => {
    "ansible_facts": {
        "tailscale_up_args": "--authkey=tskey-auth-SECRET-VALUE"
    },
    "changed": false
}

Target (please complete the following information):

OS: Ubuntu
Ansible version: 2.12.2
artis3n.tailscale version: v4.1.0

Reproduced by running ansible with increased verbosity. (Let me know if you encountered under some other condition)

Going to have to think about how to rework https://github.com/artis3n/ansible-role-tailscale/blob/9a19bf1e94c76149af7b1700f9060c6fe677eda9/tasks/lib/up-state.yml#L9-L11
The redaction occurs without a lot of smarts with this pattern, which wouldn't work for a set_fact module: https://github.com/artis3n/ansible-role-tailscale/blob/9a19bf1e94c76149af7b1700f9060c6fe677eda9/tasks/install.yml#L112
But excluding the authkey from that set fact will interfere with state idempotence...or perhaps not... 🤔

Fixed in https://github.com/artis3n/ansible-role-tailscale/pull/320


text:
Pass options to model.toJSON()

Definitely surprised by why options weren't being passed through to toJSON. See https://github.com/jashkenas/backbone/blob/master/backbone.js#L1326

Ah thanks, just an oversight. Could you please try adding a test for this?

Thanks for the pull request! I added this fix in this PR https://github.com/artsy/backbone-super-sync/pull/34 let me know if you have any other issues.

authors: craigspaeth wookiehangover

repo: artsy/backbone-super-sync


text:
Artworks contain Artists or a Cultural Makers

new api for Artwork Artists lists either a collection of artists or a string saying a cultural maker.

I have moved this to Jira: https://artsyproduct.atlassian.net/browse/SELL-527

authors: ashfurrow orta

repo: artsy/eidolon


text:
feat(onyx-1259): home view sections use use behaviors.viewAll.href field for navigation

This PR resolves ONYX-1259
Description
Follow-up for https://github.com/artsy/metaphysics/pull/5963. Adds navigation links (from MP) to new home view sections.
PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
#nochangelog

Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against d482426077d9e23790e3689b7b0a3047d90313be

authors: ArtsyOpenSource nickskalkin

repo: artsy/eigen


text:
[Onboarding] only keep papertrail for trial users.

This was meant to go in the last PR, but it got merged before I was able to push :)

:+1:

1 Warning

:warning:
Found unstubbbed networking requests

ARArtworkFavoritesNetworkModelSpec in test_getFavorites__makes_request_if_no_request_is_in_progress
ARArtworkViewControllerBuyButtonSpec in test_buy_button__posts_order_if_artwork_has_no_edition_sets
ARCreateAccountViewControllerSpec in test_warning_view__displays_a_message
ARCreateAccountViewControllerSpec in test_warning_view__displays_a_message
AREmbeddedModelPreviewViewControllerSpec in test_iPhone_peek__shows_favorite_and_follow_buttons_for_logged_in_user
AREmbeddedModelPreviewViewControllerSpec in test_iPhone_peek__shows_favorite_and_follow_buttons_for_logged_in_user
AREmbeddedModelPreviewViewControllerSpec in test_iPhone_peek__passes_artwork_to_share_controller
ARFairViewControllerSpec in test_creates_an_NSUserActivity
ARGeneViewControllerSpec in test_creates_an_NSUserActivity
ARGeneViewControllerSpec in test_creates_an_NSUserActivity
ARTopMenuViewControllerSpec in test_navigation__favorites__logged_in__tab_behavior__already_selected__pops_to_root

  Generated by :no_entry_sign: danger

DANGER!

authors: ArtsyMobile alloy orta


text:
Call out staff flag earlier

With af3d259 I moved the staff stuff together, but upon further investigation, this was wrong. If you don't set that flag prior to installing pods you'll get the wrong fonts and be confused. This happened to me and I fixed it by accident. Later, I was reading the Podfile and figured out what happened.
This commit calls attention to the flag being set before the pods are installed.

Cool, this is what I meant in this comment: https://github.com/artsy/energy/pull/254#discussion_r95640516
Good to merge on green 🍏

🤗

authors: jonallured orta

repo: artsy/energy


text:
@kanaabe => Article caption link color

closes https://github.com/artsy/force/issues/47
closes https://github.com/artsy/force/issues/180
Links in article caption are same color as surrounding text.

🌟

authors: eessex kanaabe

repo: artsy/force


text:
@eessex => RSS updates for Flipboard integration

Refactors the router to use positronql instead -- no more setTimeout as a result!
Addresses https://artsyproduct.atlassian.net/browse/GROW-516

Ok to merge @eessex ?


text:
@kanabe => Revise animations

Waypoints have mostly been taken out, and many css transitions have been replaced by pixel-by-pixel animations (for vertical lines in body) -- this is currently very laggy so today I'm going to investigate using GSAP instead of jQuery.  Let me know if you have ideas on this!

Beginnings of responsive theming
Support for additional writer fields
Uses resized cloudfront images

Minor comments inline. Let me know what you think about GSAP - I've never used it before but I see they have an NPM package which is great. I guess you can also install it as a jQuery plugin which could be useful for our semi one-off situation. We can discuss.
We should also start putting in some tests for the client stuff if you're feeling pretty set on the pixel by pixel animation. I know you've been holding off until you sort out the animation/waypoint stuff but it feels like it's in a good place now. 👍

@kanaabe - made some of these changes and I've just started a new branch for testing. Having some trouble getting this set up, maybe we can pair on this tomorrow if you have time?

Yep, sure. Mergin this one for now!


text:
Add patches for (hopefully) better mod compatibility

PR добавляет патчи для следующих модов:

Vanilla Plants Expanded
Vanilla Plants Expanded - More Plants
Vanilla Brewing Expanded - Coffees and Teas
Vanilla Cooking Expanded - Sushi
Vanilla Factions Expanded - Medieval

Я проверил внутри игры, но не пропатчил:

VFE Insectoids/Vikings/Classical
Vanilla Genetics Expanded
Alpha Mechs
Vanilla Cooking Expanded
Vanilla Cooking Expanded - Stews
Vanilla Brewing Expanded

Потому, что стандартные унаследованные значения вроде бы работают с точки зрения баланса — насколько я смог проверить за день. Есть несколько моментов, которые я бы хотел отметить.

Балансировал все цифры либо относительно уже существующих в NoMoreRiceWorld, либо фишек модов, например, в Vanilla Plants Expanded - More Plants они решили, что ананасы растут долго, но более питательны, поэтому я подумал, что будет логично привязаться к тому, что они пытались добавить в игру. Скрещиваю пальцы, чтобы это было хоть сколько-нибудь сбалансированно, но должно быть всё равно лучше, чем только 100% углеводов по-умолчанию. То, что я сразу хотел поправить — добавить белки растениям, потому что иначе колония вегетарианцев будет в невыгодном положении, играя с этим модом. Я отдельно предложу PR для ванильных растений на случай, если такие изменения — это не то, что планировал автор.
Я не стал разбираться, как работает алкоголь, и есть ли в исходном коде что-то, что как-то на эту категорию влияет — уже устал к тому времени подбирать сбалансированные цифры для всего остального, но алкоголь даёт какое-то мизерное, 5%, кажется, повышение углеводов, что, на мой взгляд, и так сойдёт, особенно, на фоне других источников питательных веществ, поэтому этих патчей пока должно быть достаточно до первых жалоб. В VFE - Medieval ещё, например, бочкам, которые производят вино, не добавили гизмо для дебага, поэтому единственный способ посмотреть, как работает весь процесс — это ждать долгие внутриигровые дни. Я жду выхода пары модов и буду начинать новую партию в RimWorld, тогда посмотрю на это ещё раз в течение ближайших месяцев.
В Alpha Mechs есть робот Pristine slurrypede, который примерно раз в день производит Dusgusting nutrient paste meal из ничего (фактически энергии) — я не уверен, нужно ли это патчить каким-то образом, потому что ингридиентов он не использует, но при этом даёт по 25% всех питательных веществ. Наверное, здесь то же самое, что и с алкоголем, и поскольку ингридиентов у этой пасты нет, если что-то будет совсем несбалансированно, всегда можно добавить XML-патч конкретно для этого.
Мод Alpha Animals довольно популярен, но я никогда с ним не играл, и он добавляет очень много животных, поэтому сходу предположу, что для него тоже могут понадобиться какие-то патчи — просто для информации, если кто-то будет спрашивать. Я пока это трогать не хочу.

У меня нет твёрдого мнения на счёт цифр в этих патчах, возможно, я даже слишком сильно сфокусировался на том, чтобы найти какую-то общую точку между тем, что NoMoreRiceWorld делает, реальной жизнью и карикатурной симуляцией в игре, но, опять же, довольно тяжело сразу сбалансировать такое большое количество еды, поэтому, конечно же, приветствую какие-угодно изменения к этому предложению.

Забыл добавить, сейчас все растения получают только кучу углеводов, может быть, имеет смысл для общей совместимости с другими модами давать растениям не 100% углеводов, а, например, не знаю, 0.4 витаминов, 0.5 углеводов и 0.1 белка? Или какие-то другие минимальные цифры. На случай, если кто-то будет играть с модом, для которого у NoMoreRiceWorld нет патча — чтобы не обделить такого игрока витаминами и белком. Что я могу здесь упускать?

⛔ Сейчас обнаружил, что некоторые патчи взрываются в зависимости от того, какой набор модов запускается — это происходит из-за перекрещивающихся условий, не смерживай пока, пожалуйста, я проверю все комбинации по отдельности, чтобы в мастер не улетело. Напишу здесь, если не сегодня, то завтра.

Большое спасибо за проделанную работу, действительно впечатляющий патч. Предлагаю обсудить пару момент, затем я потрачу немного времени на тестированию и приму этот пр и зарелизжу новую версию. Не забудь добавить информацию о проделанной работе и свой профиль как контребьютор(если есть желание конечно).

По поводу добавления белков растениям. Моей изначальной задумкой было то, что бы заставить даже вегетарианские колонии держать животных ради получения, того что называется animal products. Но кажется что стоит сбалансировать таким образом что бы количество получаемых белков не позволяла получить баф(Возможно стоит сделать это на уровне кода, введя кап для растений)
Получаемый nutrition из алкоголя не окажет большого влияния на показатели
Предположим мех генерит еду из энергии путем конвертации ее в материю. Думаю ок, если он балансирует ингредиенты.
Опять же говоря про растения, по моему мнению, не должно быть достаточно просто выращивать всю еду и получать все бенефиты от этого. Хочется что бы была мотивация держать животных, даже если не ешь их;
Но все мои утверждения я готов обсудать.
Еще раз спасибо за предложенные патчи, я обязательно приму их после обсуждения и тестирования.

По поводу добавления белков растениям. Моей изначальной задумкой было то, что бы заставить даже вегетарианские колонии держать животных ради получения, того что называется animal products. Но кажется что стоит сбалансировать таким образом что бы количество получаемых белков не позволяла получить баф(Возможно стоит сделать это на уровне кода, введя кап для растений)

Опять же говоря про растения, по моему мнению, не должно быть достаточно просто выращивать всю еду и получать все бенефиты от этого. Хочется что бы была мотивация держать животных, даже если не ешь их;

Тогда лучше всего будет придерживаться изначальной концепции — было бы странно ворошить авторскую идею мода. Дай мне несколько дней, пожалуйста, я погоняю игру в фоне и попробую посмотреть, какое минимальное значение протеинов на какое кол-во колонистов будет достаточно тормозить насыщение протеинами при стандартных настройках мода — может быть, дешевле с точки зрения времени будет не добавлять программный кап для растительных белков, а просто найти какую-то максимально разумную точку, что-нибудь в духе, мол, ты можешь вырастить 20 соевых бобов (или, не знаю, там, в 3 раза больше картошки) и иметь возможность избегать дебафа при изготовлении простых блюд для 3-х колонистов, а можешь завести всего несколько животных и бафнуться от души. Соответственно, чем больше колонистов, чем крупнее сама колония, и чем сложнее сами блюда, тем выгоднее иметь источник животного белка.
Иначе говоря, мне нравится идея того, что растительные протеины (но далеко не все) позволяют избегать дебафа — что это у нас, меньше 25% у колониста вроде, на самом деле, невелико значение, хочу сказать, здесь есть смысл, чтобы слишком сильно не наказывать игроков, которые по какой-то причине не имеют, возможно, временно, доступа к животным белкам или крупным фермам, все очень по-разному играют в эту игру, ну а животные источники будут своего рода апгрейдом для белков, давая возможность без особых проблем получить баф на ~80%. Я начну с очевидных соевых бобов из мода про суши, попробую посчитать этот максимум для растительных белков, а потом размажу какую-то кривую прогрессию в меньшую сторону для всех белковых растений. Напишу здесь, как что-то будет известно, а там попробуем более конкретно переговорить, будет ли это работать, вообще.

Не забудь добавить информацию о проделанной работе и свой профиль как контребьютор(если есть желание конечно).

Думаю, нет необходимости.

Только что осознал, о чём была речь с капом растительных белков — разумеется, если каждый день будет профицит белков, рано или поздно полоска доберётся до 75%, и низкие цифры никогда не будут работать. Не знаю, о чём я думал, когда всё это писал.
Если говорить о реализации капа растительных белков (если имелся в виду предел в буквальном смысле), было бы здорово скрыть кап и позволять полоске заполняться до 100%, не давая бафа, чтобы игроки не недоумевали, почему белок не поднимается выше 70%, и не выделяться на фоне стандартного интерфейса. Единственное, меня смущает, что кап, как бы он ни был реализован, это в любом случае что-то скрытое, может быть, это решается подсказкой в описании NeedDef или даже уведомлением письмом — имеет смысл об этом подумать.
Я планирую отправить на днях в оба PR обнуление белков, чтобы их можно было смержить в текущем виде в ближайшие недели, а если ты когда-нибудь решишь добавить логику конкретно для белков, я лучше открою ещё один.

authors: artur-shamigulov awgv

repo: artur-shamigulov/NoMoreRiceWorld


text:
feat(tabs): add support for multi row tabs

adds support for multi row tabs
#206

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


text:
DataClassContainsFunctions - allow conversion function

Hello, added "extension" for DataClassContainsFunctions rule. #434

@arturbosch @vanniktech @schalkms Please review it :)

repo: arturbosch/detekt


text:
🛑 Cujae is down

In 1bcda59, Cujae (https://cujae.edu.cu) was down:

HTTP code: 403
Response time: 520 ms

Resolved: Cujae is back up in 63251f8 after 25 minutes.


text:
Unable to Deploy using mup deploy

I'm super new to the whole meteor thing, so it might be something simple... but here's what I have.
Local Machine:
OS: Ubuntu 14.04
Meteor Version: 1.0.1
Node Version: 0.10.36
MUP Version: Latest. Just installed yesterday.
Server:
OS: Ubuntu 12.04.5
Meteor Version: ?? meteor --version is returning a command not found error
Node Version: 0.10.33
mup setup did not receive any errors.
mup deploy received the following error:
Started TaskList: Deploy app 'myApplication' (linux)
[255.255.255.255] - Uploading bundle
[255.255.255.255] - Uploading bundle: SUCCESS
[255.255.255.255] - Setting up Environment Variables
[255.255.255.255] - Setting up Environment Variables: SUCCESS
[255.255.255.255] - Invoking deployment process
[255.255.255.255] x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
ver/npm/npm-bcrypt/node_modules/bcrypt',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Warning: File `../binding.gyp' has modification time 4.2e+02 s in the future
make: warning:  Clock skew detected.  Your build may be incomplete.
gyp info ok
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) couldn't connect to host
Latest deployment failed! Reverted back to the previous version.
-----------------------------------STDOUT-----------------------------------
arget) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
make: Leaving directory `/opt/myApplication/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'
> fibers@1.0.1 install /opt/myApplication/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js

`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
underscore@1.5.2 node_modules/underscore

semver@2.2.1 node_modules/semver

source-map-support@0.2.5 node_modules/source-map-support
??? source-map@0.1.29 (amdefine@0.1.0)

fibers@1.0.1 node_modules/fibers
Waiting for MongoDB to initialize. (5 minutes)
connected
myApplication stop/waiting
myApplication start/running, process 27870
Waiting for 15 seconds while app is booting up
Checking is app booted or not?
myApplication stop/waiting
myApplication start/running, process 27936
----------------------------------------------------------------------------

These errors show up in the mup logs -n 400
/opt/myApplication/app/programs/server/node_modules/fibers/future.js:173
throw(ex);
^
Error: Can't find npm module 'body-parser'. Did you forget to call 'Npm.depends' in package.js within the 'iron_router' package?
at Object.Npm.require (/opt/myApplication/app/programs/server/boot.js:113:17)
at assert (packages/iron:router/lib/body_parser_server.js:1)
at /opt/myApplication/app/programs/server/packages/iron_router.js:1255:4
at /opt/myApplication/app/programs/server/packages/iron_router.js:1441:3
at /opt/myApplication/app/programs/server/boot.js:168:10
at Array.forEach (native)
at Function..each..forEach (/opt/myApplication/app/programs/server/node_modules/underscore/underscore.js:79:11)
at /opt/myApplication/app/programs/server/boot.js:82:5
error: Forever detected script exited with code: 8
error: Script restart attempt #6
/opt/myApplication/app/programs/server/node_modules/fibers/future.js:173
throw(ex);
^
Error: ENOENT, no such file or directory '/opt/myApplication/app/programs/server/packages/accounts-base.js'
at Object.fs.openSync (fs.js:438:18)
at Object.fs.readFileSync (fs.js:289:15)
at /opt/myApplication/app/programs/server/boot.js:83:19
at Array.forEach (native)
at Function..each..forEach (/opt/myApplication/app/programs/server/node_modules/underscore/underscore.js:79:11)
at /opt/myApplication/app/programs/server/boot.js:82:5
error: Forever detected script exited with code: 8
Kadira: completed instrumenting the app

I think you want your server version to be Ubuntu 14 as well. Also consider trying mupx (the dev branch version) to resolve problems like this.

I am having the same issue:
Started TaskList: Deploy app 'superApp' (linux)
[xx.xx.xxx.xxx] - Uploading bundle
[xx.xx.xxx.xxx] - Uploading bundle: SUCCESS
[xx.xx.xxx.xxx] - Setting up Environment Variables
[xx.xx.xxx.xxx] - Setting up Environment Variables: SUCCESS
[xx.xx.xxx.xxx] - Invoking deployment process
[xx.xx.xxx.xxx] x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/opt/superApp/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp info ok
npm WARN package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused
Latest deployment failed! Reverted back to the previous version.
-----------------------------------STDOUT-----------------------------------
nsi-regex
ansi-styles@1.1.0 node_modules/ansi-styles

chalk@0.5.1 node_modules/chalk

escape-string-regexp@1.0.3 node_modules/escape-string-regexp

strip-ansi@0.3.0 node_modules/strip-ansi

supports-color@0.2.0 node_modules/supports-color

has-ansi@0.1.0 node_modules/has-ansi

eachline@2.3.3 node_modules/eachline

type-of@2.0.1 node_modules/type-of

amdefine@1.0.0 node_modules/amdefine

asap@2.0.3 node_modules/asap

underscore@1.5.2 node_modules/underscore

meteor-promise@0.5.0 node_modules/meteor-promise

promise@7.0.4 node_modules/promise

source-map-support@0.3.2 node_modules/source-map-support

semver@4.1.0 node_modules/semver

source-map@0.1.32 node_modules/source-map

fibers@1.0.5 node_modules/fibers
Waiting for MongoDB to initialize. (5 minutes)
connected
superApp stop/waiting
superApp start/running, process 532
Waiting for 15 seconds while app is booting up
Checking is app booted or not?
superApp stop/waiting
superApp start/running, process 597
----------------------------------------------------------------------------

Completed TaskList: Deploy app 'superApp' (linux)
This happened to me before, just when I had an important meeting. I don't know what the cause is.
I am running om Amazon with Ubuntu 14.04.
I will try mupx right now.

Excellent well also consider extending the deploy wait time via deployCheckWaitTime to 120+ to be sure about that as well. Please post your mup settings if you're still having a problem with mupx too.

Hi the fix was actually going on the server in the /opt folder and remove the node 0.10.36 and the app.
Then I update mup config to Node 0.10.40 and ran mup setup again and deploy after.
That seemed to fix it for now

@mattiLeBlanc - Sorry for the needed hand holding. How do you remove the node from just the opt folder (or did you mean uninstalling it completely)? I tried just deleting the myApplication and the nodejs folder from under /opt. Ran mup setup with 0.10.40 in the mup config file... and it still didn't deploy properly. If that wasn't what you did, can you point me in the right direction?

Had the same issue @mattiLeBlanc solution solved it for me too.
@ftkendrakuhl delete /opt/nodejs (rm -r /opt/nodejs) and /opt/appname. Then mup setup && mup deploy.

@louwers - Thanks! That's what I tried... and it didn't fix my issue, so I'll keep plugging away.

Bummer! Perhaps try mupx. Also, have you seen this:
 Error: Can't find npm module 'body-parser'. Did you forget to call 'Npm.depends' in package.js within the 'iron_router' package?

@ftkendrakuhl  Don't apologise buddy, I know how annoying it is to experience these difficulties.
Any way, as @louwers said, I did exactly that PLUS a reboot of the server (not sure if that is necessary but I thought it might clear up memory or processes that were stuck).
Did you do a mup logs -f while running the mup deploy (in another terminal). It did give me a good indication what was wrong.
Also, make sure that you are not running another version of node on your server (the one you would nstall with apt-get). I am not sure if it makes a difference but if I remove the node from /opt I want to have no node at all on the server in case that might cause an issue.

@mattiLeBlanc - Thanks, I will give that a try! (I did change my mup file already...)

I'd be interested to know if you have to delete /opt/nodejs because setup & deploy should replace it? If it doesn't it must be a bug and then something should do that for you as part of deploy?

I imagine when you delete node from your opt folder MUP replaces it. If you
don't delete it, it skips the node installation.
When I changed my mup file to a newer node version but did not delete node
from the opt folder, it did not resolve the issue for me. Only after
removing node manually did it resolve
On 16 Oct 2015 1:03 pm, "Master James" notifications@github.com wrote:

I'd be interested to know if you have to delete /opt/nodejs because
setup & deploy should replace it? If it doesn't it must be a bug and
then something should do that for you as part of deploy?
—
Reply to this email directly or view it on GitHub
https://github.com/arunoda/meteor-up/issues/694#issuecomment-148575723.

Okay is see now. This is a big difference in mup vs mupx. so if mupx works it's preferable.
IMAOO The Docker route seems a better approach for many reasons, but not all. (You can control various settings well, and if necessary build a custom image BTW).
mupx launches a base image https://github.com/meteorhacks/meteord
from https://github.com/arunoda/meteor-up/blob/mupx/templates/linux/start.sh
for various prepackaged Container targets (mongo, meteor, etc.).
But with mup the install node shell script...
https://github.com/arunoda/meteor-up/blob/master/scripts/linux/install-node.sh
extracts a specific '.tar'  NodeJS Distribution from nodejs.org/dist
Where it looks to my eye at a quick glance like it should be removing that there?!
https://github.com/arunoda/meteor-up/blob/master/scripts/linux/install-node.sh#L34
I suppose it doesn't get there for some reason. Looks like a bug at first glance, it needs looking into.
I would say the simplest fix is to set the defaults (& docs) to the .40 for the node version.
Maybe a way to use "latest" is a better default and easy to override?
https://nodejs.org/dist/latest/
As a quick patch for mup at least. I think getting the mupx branch to work is a better route for the person deploying.
Then there's mup2 for large scale production deployment. (I've not even noticed until now!)
https://github.com/arunoda/meteor-up/tree/mup2
Anyway thanks for the feedback, thoughts or pull requests on this I'm sure are welcome.

authors: MasterJames ftkendrakuhl louwers mattiLeBlanc

repo: arunoda/meteor-up


text:
Fixed Bugs on Panel Dashboards

Fixed the bugs for previous dashboards including

elpd
pcc
forest

modify the notebooks to align with the current file structure

Resolves #48

@yilinxia we typically keep the tracking issue open until the PR has been approved. Then when you make a PR, you want to mark it with Resolves #<number of the issue>. You will see GH link the two together. That way when the PR is merged, the issue gets automatically closed.

also, ty for this fix

authors: amaloney yilinxia