text:
How to get returnValue?

Hello,
I have this javascript code on my page: alert(jaxon_formRegistro(jaxon.getFormValues(frm.name,true)));
And this one:
jaxon_formRegistro = function() {
    return jaxon.request(
        { jxnfun: 'ajaxProcess' },
        { parameters: arguments }
    );
};

I'm getting this response:
Sat Aug 26 2017 15:15:40 GMT+0200 (Romance Daylight Time)
RECEIVED [status: 200, size: 157 bytes, time: 1769ms]:
{"jxnrv":true,"jxnobj":[{"cmd":"as","id":"form-errores","prop":"innerHTML","data":""},{"cmd":"as","id":"form-errores","prop":"style.display","data":"none"}]}

But the alert on my first javascript code is showing: 'false'. ¿How to check returnValue ("jxnrv":true)
Thanks

Hi,
I guess you are using asynchronous requests. In this case, your alert() function prints the return value of the Jaxon request, which is by default set to false.
You can change this value by setting jaxon.config.defaultReturnValue = true; before calling the Jaxon function in the web page.
In synchronous mode, you can explicitely set a return value with a call to $response->setReturnValue() in your Jaxon PHP function or class.

Thank you for your response. I think that I don't want to change ˋjaxon.config.defaultReturnValueˋ. I'm using ˋ$response->setReturnValue()ˋ in my php code.
Then, probably I have to change the generated code for ˋjaxon_formRegistroˋ function to be synchronous. ¿How can I do it?

If someone have the same question, you have to change the code for register your function to make the call synchronous.
$jaxon->register(Jaxon::USER_FUNCTION, 'helloWorld', array('mode' => "'synchronous'"));
$jaxon->register(Jaxon::USER_FUNCTION, 'setColor', array('mode' => "'synchronous'"));

authors: feuzeu jatubio

repo: jaxon-php/jaxon-js


text:
flutter build web --wasm failing

With release of flutter 3.22, we can now build flutter web with wasm
Unfortunately, this package prevents that right now.
Migration guide by flutter team:
https://docs.flutter.dev/platform-integration/web/wasm#js-interop-wasm

@satvikreddy can you try latest version of awesome_extensions

@jayeshpansheriya Thanks for the quick response.
I saw your latest commit and I think this won't work as the package still uses dart:html in src/platform/platform_web.dart
Attaching snippet from docs

@satvikreddy its resolved in latest version.

@jayeshpansheriya Thanks!! I confirmed that it is working.

source: gharchive/issue

authors: jayeshpansheriya satvikreddy

license: MIT

license_type: permissive

license_source: github-api


text:
js debug 得不到 internal/modules/file.js 的绝对路径

一旦走到 internal 的模块，找不到filename，就卡主了。

目前没找到太好的办法获得js internal modules 的绝对路径

repo: jayli/vim-easydebugger


text:
Add Bitwarden

https://bitwarden.com/
An awesome, free open-source password manager. Works on Mac, iOS and in browsers. I've been using it for some months now and so far it's great.

Open a PR and I'll approve it. Should go in the Password Managers section.

authors: alichtman panjarek

repo: jaywcjlove/awesome-mac

license_source: bigquery


text:
【备忘清单】 请求: 命令-ps

🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧
注意：请求太多，参考【优先级】快速添加内容
🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧🚧
优先级

[ ] 提交 PR 优先合并(优先处理)
[ ] 提供可复制的[中文/英文]备忘清单资料，优先添加
[ ] 大众化的内容(java/python)，优先搬运(小众内容请提供资料)

说明项目
您可以在这里简单的提供一些资料，方便我们在 Quick Reference 中添加您想添加的备忘清单(速查表)。
【请您在这里介绍一下工具或者语言，这很重要】

如果你有一张不错的备忘清单(速查表) 参考这里 为仓库贡献。
如果您不方便贡献，请在下方参考资料中提供链接地址，方便共建备忘清单(速查表)
这里为您提供了 Markdown 排版示例教程

提供参考资料地址
提供更多参考资料有助于我们整理成备忘清单(速查表)

提供参考地址 https://jaywcjlove.github.io/reference
提供官网地址 https://jaywcjlove.github.io/reference

⚠ 注意: 随着内容越来越多，可能甚至找不到这个工具或者语言的官网，请您在这里提供以便大家共同参与贡献内容

@gaoxianghua 已添加欢迎补充修正

@jaywcjlove high level :thumbsup:

authors: gaoxianghua jaywcjlove

repo: jaywcjlove/reference


text:
Remove obsolete staticfiles check

Description
The toolbar had a check for misconfigured static files directories. However, Django 4.0 added its own check for this situation.  Since the toolbar's minimum supported Django version is now 4.2, the toolbar's check is made redundant by Django's check and can thus be removed.
Checklist:

[ ] I have added the relevant tests for this change.
[X] I have added an item to the Pending section of docs/changes.rst.

The relevant check in Django is staticfiles.W004

The relevant check in Django is staticfiles.W004

Should I add that information to the changelog entry?

No worries, thanks!

source: gharchive/pull-request

repo: jazzband/django-debug-toolbar


text:
Unsafe requirements are no longer included in the requirements.txt generated by pip-compile

After v6.12.0 the unsafe packages pip and setuptools are no longer included in the requirements.txt when --allow-unsafe is used in pip-compile.
There was a change made in writer.py (https://github.com/jazzband/pip-tools/pull/1766)
I think this line should be using unsafe_packages if the user has specified allow_unsafe rather than if they have not:
unsafe_packages = unsafe_packages if not self.allow_unsafe else set()
I think this should be:
unsafe_packages = unsafe_packages if self.allow_unsafe else set()
Environment Versions

Ubuntu 18
Python version: 3.7.11
pip version: 22.3.1
pip-tools version: 6.12.1

Steps to replicate
Ensure requirements.in file includes pip and then run:
pip-compile --verbose --allow-unsafe --output-file requirements.txt requirements.in
Expected result
requirements.txt should end with this:
The following packages are considered to be unsafe in a requirements file:
pip==22.3.1
# via -r requirements.in
Actual result
The unsafe packages are not listed in the requirements.txt at all

If you don't mind sending a PR  with a failing test, it'd be highly appreciated.

requirements.in
pip

requirements.txt
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile --allow-unsafe requirements.in
#
pip==22.3.1
    # via -r requirements.in

I noticed that in previous versions of pip-tools (e.g. 6.6.2) the output would contain "unsafe packages" message at the end:
#
# This file is autogenerated by pip-compile with python 3.7
# To update, run:
#
#    pip-compile --allow-unsafe
#

# The following packages are considered to be unsafe in a requirements file:
setuptools==65.6.3
    # via -r requirements.in

What happened in a larger Python project we have at work, is that after upgrading pip-tools, the unsafe message at the bottom disappeared and setuptools moved "up" among the list of regular packages.
Was that an intended change @atugushev?
@VagueAndroid could it be that instead of not listing the package at all, it was still included but got moved elsewhere in the output?

requirements.in
setuptools

Old version & format:
pip install pip-tools==6.11.0
pip-compile --allow-unsafe

requirements.txt
#
# This file is autogenerated by pip-compile with Python 3.7
# by the following command:
#
#    pip-compile --allow-unsafe
#

# The following packages are considered to be unsafe in a requirements file:
setuptools==65.6.3
    # via -r requirements.in

New version & format:
pip install pip-tools==6.12.0
pip-compile --allow-unsafe

requirements.txt
#
# This file is autogenerated by pip-compile with Python 3.7
# by the following command:
#
#    pip-compile --allow-unsafe
#
setuptools==65.6.3
    # via -r requirements.in

Proposed change fails in tests/test_cli_compile.py::test_allow_unsafe_option

Was that an intended change?

No, that's a regression.

This test is wrong, is not it? https://github.com/jazzband/pip-tools/blob/59816bd581ed887629cea0af61f063bd346abf0e/tests/test_cli_compile.py#L1497-L1507
Considering UNSAFE_PACKAGES={"small-fake-with-deps"}
it should be
small-fake-a==0.1
small-fake-b==0.3

# The following packages are considered to be unsafe in a requirements file:
# small-fake-with-deps==0.1

And why was it patching UNSAFE_PACKAGES only in resolver.py and not in writer.py too

@q0w that was an oversight I guess.

authors: VagueAndroid atugushev georgipopovhs q0w webknjaz

repo: jazzband/pip-tools


text:
Improvement: Redis Sentinel HA Support and Dockerized Travis CI

I have introduced Redis Sentinel Cluster support and (due to the lack of Sentinel service in Travis) I added dockerized tests with Docker Compose instead of pure travis, all changes are here, tell me if you interested in a PR:
https://github.com/danigosa/sorl-thumbnail/commit/d151d40665be5542e03f55bc730f73862fb72119

Not really. Thanks.

authors: camilonova danigosa

repo: jazzband/sorl-thumbnail


text:
Using pushNewScreen don't open navigation bar

I am using the latest version: 4.1.8,
But using pushNewScreen I can't see the navigation bar when withNavBar set true.
            pushNewScreen(
              context,
              screen: CartPage(),
              withNavBar: true,
              pageTransitionAnimation: PageTransitionAnimation.cupertino,
            );

Tab 1 -> Sub page -> using pushNewScreen -> Tab 3
Tab 2
Tab 3
Tab 4
Can you help me from sub page from Tab 1 navigable to tab 3 where navigation bar shows up?

If I understand correctly, you need to use your PersistentTabController and use the jumpToTab method to go to Tab 3. I cand find out why you cant see the navbar after pushing with withNavBar: true. Take a look at this full example which hopefully does what you wanted. Maybe it helps you solve your issue. Otherwise give me feedback on what I got wrong or what still doesnt work :)

Full code example
import 'package:flutter/material.dart';
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
void main() => runApp(PersistenBottomNavBarDemo());
class PersistenBottomNavBarDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Persistent Bottom Navigation Bar Demo',
home: TabView(),
);
}
}
class TabView extends StatefulWidget {
TabView({Key key}) : super(key: key);
@override
_TabViewState createState() => _TabViewState();
}
class _TabViewState extends State {
PersistentTabController _controller;
@override
void initState() {
super.initState();
_controller = PersistentTabController(initialIndex: 0);
}
List _buildScreens() {
return [
Tab1(controller: _controller),
Tab2(controller: _controller),
Tab3(controller: _controller),
Tab4(controller: _controller),
];
}
List _navBarsItems() {
return [
PersistentBottomNavBarItem(
icon: Icon(Icons.home),
title: "Tab1",
),
PersistentBottomNavBarItem(
icon: Icon(Icons.search),
title: "Tab2",
),
PersistentBottomNavBarItem(
icon: Icon(Icons.add),
title: "Tab3",
),
PersistentBottomNavBarItem(
icon: Icon(Icons.message),
title: "Tab4",
)
];
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Navigation Bar Demo')),
body: PersistentTabView(
context,
controller: _controller,
screens: _buildScreens(),
items: _navBarsItems(),
navBarStyle: NavBarStyle.style1,
),
);
}
}
class Tab1 extends StatelessWidget {
final PersistentTabController controller;
Tab1({this.controller});
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("Tab 1"),
ElevatedButton(
onPressed: () {
pushNewScreen(context,
screen: SubPage(controller: controller), withNavBar: true);
},
child: Text("Go to subpage"),
),
],
),
),
);
}
}
class SubPage extends StatelessWidget {
final PersistentTabController controller;
SubPage({this.controller});
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("Sub Page"),
ElevatedButton(
onPressed: () {
this.controller.jumpToTab(2);
},
child: Text("Go to Tab 3"),
),
],
),
),
);
}
}
class Tab2 extends StatelessWidget {
final PersistentTabController controller;
Tab2({this.controller});
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: Text("Tab 2"),
),
);
}
}
class Tab3 extends StatelessWidget {
final PersistentTabController controller;
Tab3({this.controller});
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: Text("Tab 3"),
),
);
}
}
class Tab4 extends StatelessWidget {
final PersistentTabController controller;
Tab4({this.controller});
@override
Widget build(BuildContext context) {
return Container(
child: Center(
child: Text("Tab 4"),
),
);
}
}


text:
Subtle bug in cal_futureonly.pl

Here's a head banger:
futureonly.pl does a great job in cutting excess entries, but...
If an event is entered in Google Calendar, and you set it as a repeating event, futureonly adds an additional event for the following day (for the original and repeating events)
Ex:  Add an event in google cal for 8 Oct (all day), and set it to repeat every 2 weeks.
Downloading the .ics and running only ical2rem produces the desired output for remind (8 and 22 Oct, 5 and 19 Nov, etc).
If you run futureonly on the .ics file before ical2rem, you end up with 8, 9, 22 and 23 Oct, and 5, 6, 19 and 20 Nov (and continuing).

Is this only on all day events, or does it happen on shorter events?

When I made a timed (15-1600), repeating every 2 weeks, it came out fine.  Upside, is that it cleared the original problem, and I couldn't get it to duplicate.
Must've been something funky in the original .ics file that isn't here anymore.
Thanks for your help!

authors: jbalcorn mlmatlock


text:
feat(get pid from sock): utility function to get the pid

See #142 Added the way to get the pid if None was passed (since then the pid is affected by the system)

@hube12 Hello! I haven't forgotten about this but #101 has been taking up all of my time recently. I'm hoping it'll add some major improvements that are much needed around logging/debugging/code maintainability. My main focus right now is stabilizing and improving debugging but I will absolutely try to get around to this in 0.6.1.

Hi @hube12! Could you rebase this and I'll get it merged? #154 is finally up to address #101.

repo: jbaublitz/neli


text:
Missing r3 packets

See https://github.com/merbanan/rtl_433/issues/1758

debugging? (does not need -R 166)
rlt_433 -f 915M -R 175
still including the incorrect breezepro iding as an R3

repo: jbjonesjr/rpi-weather


text:
TypeError: can't pickle _thread.RLock objects

Hi:
when we use your tool img_split.py,  meet the error TypeError: can't pickle _thread.RLock objects,
happens        " patch_infos = pool.map(worker, zip(infos, img_dirs))" , looks like multiprocessing problem , can you suggest us how to solve the problem， thanks

@kelek2 have you solved your problem?  i am confused , too


text:
Connecting to multiple servers from one computer

Hello, I will connect to multiple servers from one computer. I should save the data I received from these servers to the list after a mathematical process.
Is there any way to know the server with which ip address the data is coming from?
// In this way, I can find out which one is triggered, but properties such as ip address and port come as non-static properties.
private void EthernetDataReceived(object sender, DataReceivedFromServerEventArgs e) { 	SimpleTcpClient client = (SimpleTcpClient)sender;        }
Also, is it right to use only one EthernetDataReceived for each server?
client.Events.DataReceived += EthernetDataReceived;
Is there an example of multi connection? If available, can you share?

Hi there @saklanmazozgur your use case is one I had not thought of; having multiple instances of SimpleTcpClient connecting to different servers, but sharing the same event handlers.
Right now the server information isn't exposed as public in the SimpleTcpClient, nor is it exposed in the event args.
Let me amend the event args so that you get the server information with it.  Stay tuned.  And thank you for bringing this up!

Hi @saklanmazozgur please try v2.2.0, just posted to NuGet.
Please use the DataReceivedEventArgs instead of the previous DataReceivedFrom(Server|Client)EventArgs.
The IpPort property is there for both client and server.
Please re-open if this doesn't solve the issue.  Thanks for making the library better!
NuGet: https://www.nuget.org/packages/SuperSimpleTcp/2.2.0
Commit: https://github.com/jchristn/SimpleTcp/commit/3d6dfcc381193ddc2d81281aee685d317588095b

Perfect speed. Thank you so much. I will try it at my project workplace tomorrow morning and come back. Thank you again.

Please use the DataReceivedEventArgs instead of the previous DataReceivedFrom(Server|Client)EventArgs.

could you pls write this information to first page change log ??

Hi @asenyurt I did add it to the README as well as the CHANGELOG.  Is there another place where I should post?
Cheers, Joel

Hello @jchristn , I still can't access Ip and Porta even though I have updated the package. My code is as follows, what's the problem?
IpPort feature still seems to be not visible.
selectedclient = (SimpleTcpClient)sender;             var ipPort = selectedclient.IpPort;

Hi @saklanmazozgur the IP/port are not exposed in the client object, but rather in the DataReceived event arguments, i.e. DataReceivedEventArgs:
static void DataReceived(object sender, DataReceivedEventArgs e)
{
  Console.WriteLine("[" + e.IpPort + "] " + Encoding.UTF8.GetString(e.Data));
}

Sorry, Sorry, my fault there is no problem. Thank you.

No worries my friend, have a good one!

I want to add a little detail. The return value of IpPort is IpAddress + Port. There are no signs such as ":" to distinguish between the two. This can sometimes cause problems.
For Example; Ip Address : 192.168.1.23  Port : 23
The returned value is "192.168.1.2323". In this case, there are multiple options.
Maybe IpAddress : 192.168.1.23 Port : 23
Maybe IpAddress : 192.268.1.232 Port : 3
Maybe IpAddress : 192.168.1.2  Port : 323
It's ok for me now but it can be fixed for future change.

Ah, I will look at it tomorrow morning. Not sure how I missed that.
I'll also expose IpPort off of the client itself too.
Cheers, Joel

Should be fixed in v2.2.0.1 (https://www.nuget.org/packages/SuperSimpleTcp/2.2.0.1), commit is here (https://github.com/jchristn/SimpleTcp/commit/502b8913feb96a3843d1e307f5659ba6121af821).
I've also:

Exposed ServerIpPort from the SimpleTcpClient object
Updated the README with more details on the breaking changes

Thank you so much. You fixed the problems very quickly.
Should I open a separate title?
Now I can do it myself in different ways. But in order to be better, the system that keeps the data from different ip in separate lists and can control these lists can be very useful in case of multiple connections.
It makes data management easy. For example; I've created two links 192.168.1.20:23 and 192.168.1.21:23. Writing the data from here to a list called 192.168.1.21 as soon as it arrives and checking this list can increase efficiency.
I don't know if this is necessary or unnecessary.

Hi @saklanmazozgur not sure I understand what you're asking here, could you ask it a different way?

Hi @jchristn ,
Now, in my project, I have to write the data from different ipaddresses into separate lists. I am having a problem in how I will record in what order.
The number of connections can be 500. The user can close and open connections as they wish. In case he closes the connection, no registration should be made for that list.
For example; The ip address 192.168.1.20 - 192.168.1.30 - 192.168.1.40 is three connections. I know from which ip address the data comes from but I cannot control which list I should write the data to.
I have 3 lists named Log_1 Log_2 Log_3. In case of opening the connection, I can record respectively. When he closes the 2nd connection and then reconnects, the queue will be shifted and this will make my administration difficult. How can I get out of this situation?

You could always use a ConcurrentDictionary<string, Queue>.  https://docs.microsoft.com/en-us/dotnet/api/system.collections.concurrent.concurrentdictionary-2?view=net-5.0
The key for the dictionary would be the IpPort of the sender, and the value would be a queue of data specifically from that sender.  i.e. in your server's DataReceived event, add the data to the queue using the client's IpPort as the dictionary key.  When a client connects, initialize the queue and add it to the dictionary.  When a client disconnects, remove the queue from the dictionary (or force it all to be processed).

Thanks, this seems to work for me. I tried and failed. The problem is that FullData.TryAdd (Key, TValue) in EthernetDataReceived; When I do, it adds once for each key and then it does not add.
When the first data arrives, it adds up and then does not. How can I solve this problem. I'm new and I don't know some things. Please don't be sorry.

I fixed problem. Thank you for helps.
ConcurrentDictionary<string, Queue<byte[]>> FullData = new ConcurrentDictionary<string, Queue<byte[]>>();
DataReceived Code
var queue = FullData.GetOrAdd(e.IpPort, (key) => new Queue<byte[]>());             queue.Enqueue(Data);

@saklanmazozgur hocam selamlar yukarıda belirttiğin kodlar multi server kullanımı için mi?

@AdemKinatas burada türkçe konuşmak doğru olmayabilir saklanmazozgur@gmail.com adresine mail atarsan yardımcı olabilirim. (It may not be correct to speak Turkish here, if you send an e-mail to sakmazozgur@gmail.com, I can help.)

@saklanmazozgur ok thanks for your answer.I send email to your mail address

authors: AdemKinatas asenyurt jchristn saklanmaz saklanmazozgur

repo: jchristn/SuperSimpleTcp


text:
P035: Implemented correct solution

Also fixed requirements encoding

Codecov Report

Merging #1 (497ce60) into master (e8da567) will increase coverage by 0.33%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
+ Coverage   79.47%   79.81%   +0.33%
==========================================
  Files          31       32       +1
  Lines         955      976      +21
==========================================
+ Hits          759      779      +20
- Misses        196      197       +1

Impacted Files
Coverage Δ

euler/problem_35.py
95.23% <95.23%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8da567...497ce60. Read the comment docs.

authors: codecov-io jcthomassie

repo: jcthomassie/euler


text:
非要满屏才能上拉加载？

非要填满整个屏幕才能以上的才能上拉加载？

你好，一般情况下是这样的。

authors: jdsjlzx mytaihong

repo: jdsjlzx/LRecyclerView


text:
change task directory

right now the directories .config/rtx/tasks and .rtx/tasks are hardcoded and cannot be changed. This should be configurable.

I think this makes sense just as a setting. I think serde has a serializer config that you could use to make it parse ":" as a deliminator

Is there a simple way for projects to share settings with contributors (within mise's conventions)?
The ergonomics of a project using a different/additional task root and then requiring users to run some additional mise commands (other than install) seems a little lackluster.
Not a huge deal, but my experience working on declarative tools is people want that to mean zero imperative steps. The reality is probably minimal imperative steps, but we just hide those with helper scripts anyway.

You just put the settings onto .mise.toml. Is that what you mean?

Yes, which I now see is already possible :facepalm:. From the docs I thought env vars were the only local override.

that said I thought through a downside with settings. Settings are global so you can't have different settings in different files. You might have a nested structure with different task directories in different directories.
I would like to avoid a new top-level task_config property but that might be the best we can do for now.

Trying to get insight from other projects:

Make

Probably only good for deciding what not to do

Just

More sane then Make, but still doesn't align well because a justfile is more script than config

Task

Nice feature set and more config-like, but tasks are at the top-level of configuration so it's really just slicing the aggregate config across partials.

Gulp

Uses JS module structure so not really relevant here

So a few options I see are:

Add a top-level property just for configuring task directories
Add a top-level object for task config with task directory configuration as a property
Make the Task type an ADT(enum) and have a mix of a regular tasks and meta tasks which operate like Task's include objects
Reserve a special task name like _, _includes, __imports, or some permutation of under/dunder/includes/imports which will be parsed like directives to configure task directories.
Same as 3, but with reserved names like 4.

Not sure what the least of all the evils is here, but #2 is probably the least invasive and still relatively extensible.

I think we should go with #2, we can always change this later

authors: Ajpantuso jdx

repo: jdx/mise


text:
Ruby build not defaulting to using the Mise host to fetch versions

Describe the bug
Looking at the documentation over here:
https://mise.jdx.dev/configuration.html#mise-use-versions-host
Describes that this setting is default and should use the mise host instead of Github to fetch the current versions list and understand what to download.
Locally I am testing this and not seeing this behaviour, its constantly going to Githubs API to fetch the available versions. Reason this has come up is because we have been getting rate limited on the API and this seems to be the cause.
I looked into the code base to try and understand deeper and can only see this path being the only function that does not early return or use the fetch_remote_versions_from_mise function, so would be going to Github by default:
https://github.com/jdx/mise/blob/f8ce139c1d0b41006dbbf1707801bf665f201ec6/src/plugins/core/ruby.rs#L355
I am not a Rust developer so this is as far as my skillset will allow me to debug further unfortunately.
I even tried to override the environment variable MISE_USE_VERSIONS_HOST=true to see if the default wasn't working, but this had the same result.
To Reproduce
Install a version of ruby on your machine with --verbose mode and see mise fetching the version from Github instead of the mise URL.
λ mise install --verbose
[DEBUG] ARGS: /opt/homebrew/bin/mise install --verbose
[DEBUG] Config {
    Config Files: [
        "~/.mise.toml",
    ],
    Env: {
        "MISE_USE_VERSIONS_HOST": "true",
    },
}
[DEBUG] Toolset: postgres@15.4, redis@7.0.14, python@3.11.7, gcloud@460.0.0, yarn@1.22.19, node@20.5.1, ruby@3.2.4, java@temurin-17.0.0+35, kubectl@1.27.4
[DEBUG] $ /Users/lucasteligiordis/Library/Caches/mise/ruby/ruby-build/bin/ruby-build --version
[DEBUG] GET https://api.github.com/repos/rbenv/ruby-build/releases/latest
[DEBUG] starting new connection: https://api.github.com/
[DEBUG] GET https://api.github.com/repos/rbenv/ruby-build/releases/latest 200 OK
running ruby-build

Expected behavior
Use the mise host instead of Github to prevent being rate limited.
mise doctor output
version: 2024.4.12 macos-arm64 (2024-04-30)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Tue, 30 Apr 2024 23:30:07 +0000
  Rust Version: rustc 1.77.2 (25ef9e3d8 2024-04-09) (Homebrew)
  Profile: release

shell:
  /opt/homebrew/bin/bash
  GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin23.2.0)
  Copyright (C) 2022 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

dirs:
  data: ~/.config/mise
  config: ~/.config/mise
  cache: ~/Library/Caches/mise
  state: ~/.local/state/mise
  shims: ~/.config/mise/shims

config_files:
  ~/.mise.toml

backends:
  cargo
  go
  npm
  pipx
  ubi

plugins:
  bun        (core)
  deno       (core)
  gcloud     https://github.com/jthegedus/asdf-gcloud.git#00cdf06
  go         (core)
  java       (core)
  kubectl    https://github.com/asdf-community/asdf-kubectl.git#cbe6df4
  node       (core)
  packer     https://github.com/asdf-community/asdf-hashicorp.git#197e3ec
  postgres   https://github.com/smashedtoatoms/asdf-postgres.git#4592b64
  python     (core)
  redis      https://github.com/smashedtoatoms/asdf-redis.git#d5a67c5
  ruby       (core)
  terraform  https://github.com/asdf-community/asdf-hashicorp.git#197e3ec
  yarn       https://github.com/twuni/asdf-yarn.git#376c540

toolset:
  postgres@15.4
  redis@7.0.14
  python@3.11.7
  gcloud@460.0.0
  yarn@1.22.19
  node@20.5.1
  ruby@3.2.4            (missing)
  java@temurin-17.0.0+35
  kubectl@1.27.4

env_vars:
  MISE_USE_VERSIONS_HOST=true
  MISE_SHELL=bash

settings:
  activate_aggressive = true
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = false
  cargo_binstall = true
  color = true
  disable_default_shorthands = false
  disable_tools = []
  experimental = false
  go_default_packages_file = "~/.default-go-packages"
  go_download_mirror = "https://dl.google.com/go"
  go_repo = "https://github.com/golang/go"
  go_set_gopath = false
  go_set_goroot = true
  go_skip_checksum = false
  jobs = 4
  legacy_version_file = true
  legacy_version_file_disable_tools = []
  node_compile = false
  not_found_auto_install = true
  paranoid = false
  plugin_autoupdate_last_check_duration = "7d"
  python_compile = false
  python_default_packages_file = "/Users/lucasteligiordis/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  raw = false
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = true
  ci = false
  debug = false
  trace = false
  log_level = "info"
  python_venv_auto_create = false

  [status]
  missing_tools = "if_other_versions_installed"
  show_env = false
  show_tools = false

No warnings found
No problems found

Additional context
This might be intended behaviour here in which case, any suggestions are welcomed!
I know I can fall back to using the asdf plugin which just has the build version hard coded and does a git fetch instead of using the API at all, but would rather keep the core plugin here and see what can be done before doing that. Appreciate any help! :)

It uses the version host to check for new ruby versions but what you're seeing is it checking for new versions of ruby-build which the versions host does not track.

Is there anyway we can force this to use non-github requests here somehow? The rate limit kills us.
If I can't change this I'll have to go back to using the asdf ruby plugin in mise, but I'd rather use the core ruby plugin here.

it just shouldn't crash if it can't detect the ruby-build version

Crash? Nothing is crashing, everything is working as expected. Its just when we have mise running on our CI hosts, we get smashed with the rate limit due to the huge concurrency so its a bit of a deal breaker for that network.
Just has a large impact.

in this case ruby-build is already installed, it just is throwing an error not allowing anything to proceed because it can't check if that version isn't the latest. In that case we can probably still use ruby-build just fine and should.

in other words, this is an error that should just be a warning

Does this code change you just made mean that calls to Github are only made when necessary?
Not sure if there is a bug, but it looks like somewhere in our chain even though we have ruby updated and ruby build installed, Github calls are being made constantly. (we check the ruby version on practically every CI run to ensure it has the right version installed)

Ah I see the code change won't make a difference with calls to Github as the call to latest_ruby_build_version is made unconditionally to check the latest version against the installed one.
The core of the issue I raised is to see how we can avoid that call to Github entirely, without caching the version list like mise does with all the other core versions, is there a way I can force mise to not look for a latest release anywhere with an env var or something? Pretty much if I have a version of ruby-build installed I am happy to use that until I deem it necessary to update.
I'd prefer to have a cached version on the mise endpoint like the others and have it auto-update but don't know what the effort that is to get ruby-build there as well.

what is it you're running exactly that is causing this check? it should only be checking the ruby-build version if it is about to actually install a new version of ruby-build or if it's configured not to use the versions host.
Another solution is you could create a github token (doesn't need any roles) and assign it to GITHUB_API_TOKEN which will get around the rate limit problem and that's a convention used throughout both mise and asdf.

Here is an output to the API on the network we have this mise ruby install happening:
x-github-media-type: github.v3; format=json
x-ratelimit-limit: 60
x-ratelimit-remaining: 0
x-ratelimit-reset: 1714525541
x-ratelimit-resource: core
x-ratelimit-used: 60
content-length: 280

Even though ruby is already installed, in CI we run a mise install ruby to ensure CI is kept up to sync with the Git repo. 99/100 its a no-op as our ruby version rarely changes.
But I guess somewhere in the code there is still a call being made somewhere to the Github API even though there is actually no ruby to install? So then we get rate limited etc... and engineers (non CI) is impacted when they need to have ruby installed on their machines with the rate limit error. (might be a fresh machine)

anything using that ip address may be hitting github, how do you know it's mise?

when I run mise install ruby it definitely doesn't connect to the github api:
mise  main   ❯ mise install ruby --verbose
[DEBUG] ARGS: mise install ruby --verbose
[DEBUG] Config {
    Config Files: [
        "~/src/mise/.mise.local.toml",
        "~/src/mise/.mise.toml",
        "~/src/mise/.mise/config.toml",
        "~/src/mise/.tool-versions",
        "~/src/mise/.node-version",
        "~/.config/mise/config.toml",
        "~/.tool-versions",
    ],
    Env: {
        "FOO_FROM_FILE": "foo_from_file",
        "FOO": ".mise.local.toml",
        "FOO_NUM": "1",
        "THIS_PROJECT": "/Users/jdx/src/mise-/Users/jdx/src/mise",
    },
    Path Dirs: [
        "/Users/jdx/src/mise/target/debug",
    ],
    Aliases: {
        ForgeArg("tiny"): {
            "abc": "1",
        },
    },
}
[DEBUG] GET http://mise-versions.jdx.dev/go
[DEBUG] starting new connection: http://mise-versions.jdx.dev/
[DEBUG] GET http://mise-versions.jdx.dev/go 200 OK
[DEBUG] Toolset: tiny@1, go@prefix:1.21, python@latest, shellcheck@0.10, shfmt@3, cargo:cargo-edit@latest, cargo:cargo-show@latest, cargo:git-cliff@latest, npm:markdownlint-cli@0.38, npm:prettier@3, jq@latest, node@lts/hydrogen, ruby@latest, java@22

Because I just migrated mise to the machines and replaced it from asdf and thats when we started seeing the issue.
Also your output above is exactly what I experienced locally as well (on my machine). So perhaps it was still catching up over the migration and doing the initial load of ruby.
This still means without the GITHUB_API_TOKEN I'll get rate limited whenever we do a ruby update/install.

yes, but it shouldn't cause a real problem. Unless you're connecting to github for other things, but then those other things would probably be hitting rate limits anyways.

in the asdf plugin this isn't a problem because they hardcode the ruby-build version—the downside of that is anytime a new version of ruby comes out you have to update the plugin before you will see the new version of ruby. If you want that behavior though you can just install asdf-ruby into mise.

The real problem is that unfortunately these CI machines run from our "main" office, which is under a single public IP.
So when these machines do a ruby update due to a new version that we've likely bumped, means all our engineers will need this same update, anyone in the office will be rate limited and not able to install ruby etc...
That was the actual problem that we faced.

anyone in the office will be rate limited and not able to install ruby etc

but this is what my patch fixes

you can just install asdf-ruby into mise

totally get it, looked at their source code and saw that its hard coded, just wanting to initially avoid that as I'd rather support the core mise plugins initially.

thinking it through just now, I suppose there is an edge case that I can sort out. If it can't detect the ruby-build version right now it just uses the old one but it's probably better to just attempt to update if it can't get the version

but this is what my patch fixes

Yeah so the patch would mean that if we have people who have bootstrapped already and have a version of ruby-build then it wouldn't block them and it would carry on right? Unless its a new machine entirely.

then it wouldn't block them and it would carry on right

yes, with the old version of ruby-build, but I'm going to change this slightly to attempt to update anyways

Unless its a new machine entirely.

new machines don't need to check the version, it's assumed to be out of date

new machines don't need to check the version, it's assumed to be out of date

Oh right, okay so maybe now that we're all up and running and updated and everything is migrated over and there is no mass onboarding of it. In theory we should have reduced hits to Github's API and even a new machine shouldn't be impacted?

slightly to attempt to update anyways

No worries, happy to test out as well if you want some test-cases.

while you wait for a fix you could delete ~/.cache/mise/ruby/ruby-build before installing ruby which would prevent it from attempting to check the version

Okay thats not a bad workaround! Can you TL;DR me in that case how it understand what version to even install without hitting the Github API to check what to download?

lol: https://github.com/jdx/mise/blob/main/src/plugins/core/ruby.rs#L108-L109
lmk if you don't get it

Oh haha, yeah thats obvious now that I think about it 🙃

authors: jdx lucasteligioridis


text:
Does this works with Fragments

Like title says , in the demo app and readme only mentions Activity, will it work with Fragments?

Yes, normally.

Ok cool , i see that you updated the readme to avoid further confusions
Thanks

@CristianSarac / @jeancsanchez : Did you tried with Fragments? If yes could you please share code? I was trying but it's not working, so many errors 😥. Mainly errors on this & runOnUiThread keyword, i tried replacing this with getActivity()/getContext() but not working.
Thank you in Advance...!

Can you share the code and logs?

Thank you reply, kindly find below screenshot and code for your reference.
Thank you for your help.
Have Nice Day...!

public class Fragment extends android.support.v4.app.Fragment {

private JcPlayerView player;
private RecyclerView recyclerView;
private AudioAdapter audioAdapter;
public static String[] titleArray = {
        "Google"
};

public static String[] playurl = {
        "https://google.com/abc.mp3",
        };

@SuppressLint("ClickableViewAccessibility")
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    @SuppressLint("InflateParams")
    View rootView = inflater.inflate(R.layout.fragment_layout, null, false);
    ImageView imageView = rootView.findViewById(R.id.navIcon);
    final MainActivity mainActivity = (MainActivity) getActivity();
    imageView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            assert mainActivity != null;
            mainActivity.drawerLayout.openDrawer(mainActivity.navView, true);
        }
    });

    recyclerView = rootView.findViewById(R.id.recyclerView);
    player = rootView.findViewById(R.id.jcplayer);

    ArrayList<JcAudio> jcAudios = new ArrayList<>();
    //Integer arrayLength = (Integer) url.length;
    for (int i = 0; i < titleArray.length; i++)
        jcAudios.add(JcAudio.createFromURL(titleArray[i], playurl[i]));

    player.initPlaylist(jcAudios, this);
    adapterSetup();

    return rootView;
}

@Override
protected void onStop() {
    super.onStop();
    player.createNotification(R.mipmap.ic_launcher);
}

protected void adapterSetup() {
    audioAdapter = new AudioAdapter(player.getMyPlaylist());
    audioAdapter.setOnItemClickListener(new AudioAdapter.OnItemClickListener() {
        @Override
        public void onItemClick(int position) {
            player.playAudio(Objects.requireNonNull(player.getMyPlaylist()).get(position));
        }

        @Override
        public void onSongItemDeleteClicked(int position) {
            Toast.makeText(MainActivity.this, "Delete song at position " + position,
                    Toast.LENGTH_SHORT).show();
//                if(player.getCurrentPlayedAudio() != null) {
//                    Toast.makeText(MainActivity.this, "Current audio = " + player.getCurrentPlayedAudio().getPath(),
//                            Toast.LENGTH_SHORT).show();
//                }
            removeItem(position);
        }
    });
    LinearLayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);
    recyclerView.setLayoutManager(layoutManager);
    recyclerView.setAdapter(audioAdapter);

    ((SimpleItemAnimator) Objects.requireNonNull(recyclerView.getItemAnimator())).setSupportsChangeAnimations(false);

}

@Override
public void onPause() {
    super.onPause();
    player.createNotification(R.mipmap.ic_launcher);
}

@Override
protected void onDestroy() {
    super.onDestroy();
    player.kill();
}

@Override
public void onPathError(@NotNull JcAudio jcAudio) {
    Toast.makeText(this, jcAudio.getPath() + " with problems", Toast.LENGTH_LONG).show();
//        player.removeAudio(jcAudio);
//        player.next();
}

@Override
public void onPreparedAudio(@NotNull JcStatus status) {

}

@Override
public void onCompletedAudio() {

}

@Override
public void onPaused(@NotNull JcStatus status) {

}

@Override
public void onContinueAudio(@NotNull JcStatus status) {

}

@Override
public void onPlaying(@NotNull JcStatus status) {

}

@Override
public void onTimeChanged(@NonNull JcStatus status) {
    updateProgress(status);
}

@Override
public void onJcpError(@NonNull Throwable throwable) {
    Toast.makeText(this, throwable.getMessage(), Toast.LENGTH_LONG).show();
}

private void updateProgress(final JcStatus jcStatus) {

    runOnUiThread(new Runnable() {
        @Override
        public void run() {
            // calculate progress
            float progress = (float) (jcStatus.getDuration() - jcStatus.getCurrentPosition())
                    / (float) jcStatus.getDuration();
            progress = 1.0f - progress;
            audioAdapter.updateProgress(jcStatus.getJcAudio(), progress);
        }
    });
}

private void removeItem(int position) {
    ((SimpleItemAnimator) Objects.requireNonNull(recyclerView.getItemAnimator())).setSupportsChangeAnimations(true);

    //        jcAudios.remove(position);
    player.removeAudio(Objects.requireNonNull(player.getMyPlaylist()).get(position));
    audioAdapter.notifyItemRemoved(position);

    ((SimpleItemAnimator) recyclerView.getItemAnimator()).setSupportsChangeAnimations(false);
}

@Override
public void onStopped(@NotNull JcStatus status) {

}

/**
 * Called when leaving the activity
 */
@Override
public void onPause() {
    if (mAdView != null) {
        mAdView.pause();
    }
    super.onPause();
}

/**
 * Called when returning to the activity
 */
@Override
public void onResume() {
    super.onResume();
    if (mAdView != null) {
        mAdView.resume();
    }
}

/**
 * Called before the activity is destroyed
 */
@Override
public void onDestroy() {
    if (mAdView != null) {
        mAdView.destroy();
    }
    super.onDestroy();
}

}

authors: CristianSarac guttevikas7 jeancsanchez

repo: jeancsanchez/JcPlayer


text:
Missing NetBeans plugins

Using latest version of JEDDICT 5.2 plugins:
Product Version: Apache NetBeans IDE 10.0 (Build incubator-netbeans-release-380-on-20181217)
Java: 1.8.0_192; Java HotSpot(TM) 64-Bit Server VM 25.192-b12
Runtime: Java(TM) SE Runtime Environment 1.8.0_192-b12
System: Linux version 4.15.0-46-generic running on amd64; UTF-8; en_CA (nb)
User directory: /home/stevyn/.netbeans/10.0
Cache directory: /home/stevyn/.cache/netbeans/10.0
see attached pic.

As download page list binaries, hope you are trying to install Jeddict v5.2 binary compatible with NetBeans IDE 10.0 : http://plugins.netbeans.org/download/plugin/9878
You may also checkout full bundle : https://github.com/jeddict/jeddict/releases/download/5.2/Jeddict_5.2_with_Apache_NetBeans_IDE_10.0.zip

Hello:
Your first link gives me "Not Found" when selecting top item in select box.  Your third link in message also gives "Not Found" message.
This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not the intended reader, then you must destroy this communication immediately.
On Wednesday, March 13, 2019, 9:14:21 p.m. PDT, Gaurav Gupta <notifications@github.com> wrote:

As download page list binaries, hope you are trying to install Jeddict v5.2 binary compatible with NetBeans IDE 10.0 : http://plugins.netbeans.org/download/plugin/9878
You may also checkout full bundle : https://github.com/jeddict/jeddict/releases/download/5.2/Jeddict_5.2_with_Apache_NetBeans_IDE_10.0.zip
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks for reporting, I have updated those broken links.

There is also problem with netbeans 11

Netbeans 11.1 is out. Could you please add support for NB 11.X ?

NetBeans 11.1 maven artifacts release is still due https://mvnrepository.com/artifact/org.netbeans.api/org-openide-util. Once it will be available, a new version of Jeddict will be release with NetBeans v11.1 support.

Closing ticket as Jeddict 5.3 released with Apache NetBeans 11.1 support: https://github.com/jeddict/jeddict/releases/tag/5.3

authors: jGauravGupta slavb18 stevyrino

repo: jeddict/jeddict


text:
[Documentation] Windows Documentation

Overview
Windows Documentation
Proposed feature
There is lacking documentation for setting up and running the program on Windows devices. Having better documentation for the operating system will help users how to run the program under a Windows system.

I want to work on this . But since its my first contribution can you guide me ?

@AnushkaSharma04 You can start by forking the repository and editing the README.md file to have better instructions on setting up the project in Windows systems. I use Ubuntu to run the project, so I don't have the best understanding of how to run the project on Windows. Once you have your changes, make a pull request with your changes and I can review it.

repo: jedrm/MediaGrapher


text:
系统通知的撤销功能存疑

版本号：
3.0
问题描述：
在测试系统通知功能的时候，发现admin账号创建并发布的通知，作为临时角色的jeecg账户却能够撤销。请问这是bug还是有什么原因设计成这样？
截图&代码：
友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；
描述过于简单或模糊，导致无法处理的，会被直接删掉；

默认不做权限，可以自己加权限注解

repo: jeecgboot/jeecg-boot


text:
Docker 模式启动后端链接 redis 失败

版本号： 3.4.4
前端版本：vue3
问题描述：
在没有修改任何代码的情况下，按照这个文档： http://doc.jeecg.com/2043889 来启动 jeecg boot 后端以 docker 模式启动后，有一些接口失效。
Docker 模式启动后端链接 redis 失败，具体表现是 http://localhost:8080/jeecg-boot/doc.html 这里可以正常登录，但是要用到 redis 的地方会失败，比如 login 这个接口：

jeecg-boot-system 的 docker container 日志：

截图&代码：
我的 host：

不好意思，我粗心大意了，刚开始在 application-dev.yml 里面吧 redis 拼错了，后来改回来忘了重新 mvn clean install 一下，现在可以了。


text:
jeecg-boot 3.6.3 版本无法正常启动

版本号：
jeecg-boot 3.6.3
前端版本：vue3版？还是 vue2版？
vue3
问题描述：
jeecg-boot 3.6.3 版本无法正常启动
截图&代码：

17:46:38.219 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:218)
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176)
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171)
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126)
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1218)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:329)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:251)
at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:214)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:166)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:156)
at org.yaml.snakeyaml.composer.Composer.checkNode(Composer.java:93)
at org.yaml.snakeyaml.constructor.BaseConstructor.checkData(BaseConstructor.java:124)
at org.yaml.snakeyaml.Yaml$1.hasNext(Yaml.java:509)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:199)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:166)
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:88)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)
at org.springframework.boot.context.config.StandardConfigDataLoader.load(StandardConfigDataLoader.java:54)
at org.springframework.boot.context.config.StandardConfigDataLoader.load(StandardConfigDataLoader.java:36)
at org.springframework.boot.context.config.ConfigDataLoaders.load(ConfigDataLoaders.java:108)
at org.springframework.boot.context.config.ConfigDataImporter.load(ConfigDataImporter.java:132)
at org.springframework.boot.context.config.ConfigDataImporter.resolveAndLoad(ConfigDataImporter.java:87)
at org.springframework.boot.context.config.ConfigDataEnvironmentContributors.withProcessedImports(ConfigDataEnvironmentContributors.java:116)
at org.springframework.boot.context.config.ConfigDataEnvironment.processWithProfiles(ConfigDataEnvironment.java:311)
at org.springframework.boot.context.config.ConfigDataEnvironment.processAndApply(ConfigDataEnvironment.java:232)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:102)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:94)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:102)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:87)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:178)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:145)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:344)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
at org.jeecg.JeecgSystemApplication.main(JeecgSystemApplication.java:30)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125)
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:183)
... 43 common frames omitted
友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
描述过于简单或模糊，导致无法处理的，会被直接删掉；
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；

目前也是这个问题，怎么解决呢?

目前也是这个问题，怎么解决呢?

具体原因不清楚，每次启动都要先clean才能启动成功。。。。。。。


text:
tee in create-new-user-bulk.sh

I think you should use the tee -a command. Because your tee script without a flag overwrites the create-new-user-bulk.sql file with the last executed line. i use it in Debian 10.

Thanks for the report, I'll take a look and add some logic for this

authors: jeekkd neowhizz

repo: jeekkd/iRedMail-scripts


text:
Can't import v2.0.0

Hi @jeff-hykin!
Sadly the latest version doesn't work if you import it f.e. in a virtualenv:
(venv_ez_yaml) gdubicki@locahost ~
$ python3
Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ez_yaml
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/gdubicki/venv_ez_yaml/lib/python3.11/site-packages/ez_yaml/__init__.py", line 1, in <module>
    from .__dependencies__ import ruamel
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'ez_yaml.__dependencies__'

Duplicate of https://github.com/jeff-hykin/ez_yaml/issues/3, caused by the GitHub outage. :P


text:
Multi step transform example

I've not yet located a transform example that consists of multiple steps. Is there an example available? Thank you.

Not sure why the "insert code" option doesn't like the code... Only part seems to format correctly when previewing.
So you might need to copy/paste it into your editor if it isn't clear:
`const myLogic = createLogic({
type: 'INIT',
debounce: 1000,
transform({ getState, action, cancelled$, deps }, next, reject) {
// EXAMPLE 1:
const transform1$ = Observable.of(action)
.map(action => {
// do calculations, return transformed action, or make it a mergeMap and
// return an Observable that emits the transformed action
})
.mergeMap(action => {
// more transformations, async example
return Observable.of(action)
.map(action => action)
})
  const transform2$ = transform1$
    .map(action => {
      // do more stuff, or mergeMap and return an Observable that emits the transformed action

    })

  return transform2$
    .map(action => next(action)); // signal next()

  // EXAMPLE 2:

  return Observable.create(observer => {
    transform1$.subscribe((action) => {
      // side effects...

      // then..
      observer.next(action); // ...or another observable/subscription.
    });
  })
    .map(action => {
      // more side effects...

      // finally...
      next(action);
    })
}

});`

@scriptjs thanks for the question and thanks @ugility for responding with a nice detailed answer.
About the only clarification I might make is that the transform step is expecting next (or reject) to be called exactly once. So while process hook can dispatch multiple times the intercept hook (transform/validate) only can call next/reject once.
However the example above is still valid if you are doing multiple things to be able to do that single next call.
If you need to dispatch multiple times then I'd recommend using the process hook instead.
Alternatively you could get sneaky and add your store.dispatch method as a dep and be able to dispatch multiple times however doing things that way, those dispatches would not be governed by redux-logic cancellation since you would be calling store.dispatch directly.
Here's an example of how you could give your store.dispatch as a dep.
const logicMiddleware = createLogicMiddleware(logic, deps);
const store = createStore(reducer, applyMiddleware(logicMiddleware);
const additionalDeps = {
  storeDispatch: store.dispatch   // providing a way to dispatch directly
};
logicMiddleware.addDeps(additionalDeps);

Then you would have an additional dependency injected called storeDispatch which you could call anywhere in your hooks to dispatch any number of times, but remember that these are outside of the control of redux-logic cancellation.

@ugility @jeffbski  Thank you for these detailed answers and for the library.  I think I need to explore a bit further. From what I have gathered thus far, transform is a alias of validate. I think perhaps it needs to grow a transform method that is not an alias to handle a sequence of methods in a way that could be handled in series or parallel. That is for me what is missing at this point.

@scriptjs could you maybe provide an example of what you mean? I'm not saying a disagree with you, because I've actually modified the library to do exactly what you're proposing. But it's for a completely different reason than what I think you're trying to describe. So if you could post an example it'd help me better understand what you're envisioning, and maybe some of the mods I've made to the library could help

@ugility What I am looking for is analogous to piping transformations using a node stream.

authors: jeffbski scriptjs ugility

repo: jeffbski/redux-logic

license: mit


text:
ErrorBag and BaseError

Dear @jeffijoe ,
thanks a lot for this awesome package. I toyed a bit around, and i quite liked it!
However, i came across the following use-case i would like to discuss with you.
I would like to introduce some kind of ErrorBags , where i can add errors. Consider, for example, the following situation: The api consumer submits data and the API answers with a lot of exceptions, based on the errors the user made. For example:
{
  status: 400,
  errors: [
    {
      type: "BadRequest",
      message: "E-Mail not properly formatted",
      status: 400,
      meta: {
        timestamp: 1234567890,
        url: "some/url/here",
      },
      attribute: "user.email"
    },
    {
      // another error here
    },
    {
      // and another error here
    }
  ]
}

It would be benefitial to define the class as follows:
export class ErrorBag {
  errors: BaseError[];
}

however, the BaseError must be properly typed because it is generic. How can i solve this issue? Am i missing something? I most likely cannot add the typing in the ErrorBag itself, as the ErrorBag may contain different errors (e.g, validation errors, authentication errors and whatever-other-type of errors)..
All the best and thanks a lot for your time / help!
PS: Would it be good to add this to the package as well? What do you think?

You can use errors: BaseError<{}>, replace {} with whatever shared props all your errors may have. 😄

wow, that was fast..
what do you think about the ErrorBag in general? Should / would that be good to add it to the fejl package?

I don't think it warrants being included in a library, it's just an array of errors. 😄

basically, yes.. however, i would also add a "status" as well (because you may want to have an additional status code for the response if the errorBag holds different types of errors) and meta information..

thanks a lot for your time helping me with this issue!

No problem!
Regards,
Jeff Hansen
On 24 Jun 2019, 16.38 +0200, Johannes Schobel notifications@github.com, wrote:
thanks a lot for your time helping me with this issue!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/jeffijoe/fejl/issues/9?email_source=notifications&email_token=AATDWATP2JWH4HSVNNS56STP4DL7XA5CNFSM4H26RPY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYNERPY#issuecomment-505039039, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AATDWAQWZ45YIIPQGAYWYH3P4DL7XANCNFSM4H26RPYQ.

authors: jeffijoe johannesschobel

repo: jeffijoe/fejl


text:
line-height 导致的div尺寸偏差

问题：
line-height 导致的div尺寸偏差
描述：
line-height 导致的div尺寸偏差，测试时发现发现活动页面的间隔要比正常的多了一点点，将重置line-height, 设为initial则表现正常.

已解决！
如果是文字行高的影响，直接进行相应的设置，重置行高，必要时使用ｐａｄｄｉｎｇ设置间隔。
但，这个ｂｕｇ问题的根源与此有关，是图片的行高所影响，图片本身为行内元素，理解起来是一样的。
这里的解决是设置图片display:block;变成块级元素就迎刃而解了。

repo: jeneser/hpuHelper


text:
Add issue forms (preparation for moving hosting to GitHub issues

See:

https://github.com/timja/repository-permissions-updater/issues/new/choose
https://github.com/timja/repository-permissions-updater/issues/1

Other forms are imported from https://github.com/jenkinsci/.github/tree/master/.github/ISSUE_TEMPLATE

I'm not sure this repo needs documentation or feature request but looks good to me.

actually at the moment, i think this repo should only get hosting requests as issues.

actually at the moment, i think this repo should only get hosting requests as issues.

there can be bugs/ feature requests, e.g. https://github.com/jenkins-infra/ircbot/issues/103

authors: halkeye timja


text:
chore: bdd-spring-1580982905 to 0.0.1

chore: Promote bdd-spring-1580982905 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
chore: bdd-spring-1574779552 to 0.0.1

chore: Promote bdd-spring-1574779552 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
chore: bdd-spring-1573121257 to 0.0.1

chore: Promote bdd-spring-1573121257 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
chore: upgrade go to 1.22

fixing issues with upgraded lint
removing use of github.com/pkg/errors
related to jenkins-x/jx#8670

/test lint

/retest

/retest

/test pr

/cc tomhobson JordanGoasdoue Skisocks

repo: jenkins-x-plugins/jx-pipeline


text:
feat: allow a kp-strategy.yaml file to optinally define merge strategies    for kpt to use on a foldler by folder basis

Note - this removed the jx gitops kpt --stratagy flag. I was going to keep it but then figured we should help folks do things the right way and make sure any strategy changes are committed to git using the new kpt-strategy.yaml file so anyone that upgrades the repo will use the same strategy.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign rawlingsj
You can assign the PR to them by writing /assign @rawlingsj in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

authors: jenkins-x-bot-test jstrachan rawlingsj

repo: jenkins-x/jx-gitops


text:
chore(deps): upgrade jenkins-x/jx3-pipeline-catalog to version 3.9.6

from: https://github.com/jenkins-x/jx

/retest


text:
fix: faulty dependency updates in changelog

need to commit earlier so the report is committed before jx changelog is run

/cc ankitm123 tomhobson babadofar


text:
fix certificate null pointer exception when conjur plugin is used in combination of JCASC plugin

This fix allow conjur plugin to work correctly with the JCASC plugin avoiding a null point exeception when the conjur certificate is configured in the jenkins CACERTS instead of .p12 uploaded as a jenkins certificate.

Michelle,
Could you please resubmit, for some reason it is failing checks.
Thanks

Michelle,
Could you please resubmit, for some reason it is failing checks.
Thanks

Please resubmit... it is not passing checks.

How I can resubmit this PR?

Please resubmit... it is not passing checks.

How I can resubmit this PR?

Hi, I did an empty PR but it still failing some test.

Hi, I did an empty PR but it still failing some test.

Included in #4

Already included in main/master branch update.

authors: cyberark-bizdev mbuccarello

repo: jenkinsci/conjur-credentials-plugin


text:
uid and gid as ENV variables

Issues and Contributing
Is it possible to add uid and gid as ENV variables to have an ability to change it during the docker run?
It would be very helpful to run container on the machine with another uid/gid for the jenkins user than 1000/1000 and when mount should be used.

+1 not sure why its hardcoded to run under uid 1000..

You don't need an ENV variable to change the user. That can be done at run time with flags like:
docker run --user 1001

UIDs tend to be set in the Dockerfile to ensure that by default the container doesn't run as root. You can always map the UID/GID of the container at run time to another ID.
If you'd like to dive more into it a good reference is here: https://medium.com/@mccode/understanding-how-uid-and-gid-work-in-docker-containers-c37a01d01cf

By using --user option, we can change the uid to run the container. However, if the uid isn't included in the /etc/passwd, which is the case in most cases, we get errors including "I have no name!" described in the above Medium article. I understand we can't resolve this issue even if we can set uid/gid using ENV.
The issue here for me is that 1000 is the uid Linux system assigns first. The uid is already taken by a real user and if we attach a volume for the jenkins_home, we should make it writable to the user uid=1000 in the host system.
Do you think it is possible to change the uid used in the container to a more uncommon one, such ash 10000 or so? Then, I can create a user/group for jenkins in the host system with the ids.

You don't need an ENV variable to change the user. That can be done at run time with flags like:

Yes "I" need it. Running it in synology under docker DOES NOT work with flags. Every other docker image I used until I tried to use jenkins uses env variables. Don't see any issue doing that then.

@Subtixx did you solve this?

No, just resorted to using a VM instead.. Shame that they don't care.

I think we could take a PR for this, it would require a test, and also needs a change to the script that runs on startup to crown the files to the new owner of required

Setting a user with a fixed UID inside an image is a good practise to ensure that there is NO dependency with the underlying host: it allows the image to have deterministic behavior ("immutable image" pattern).
It is recommended to use Docker named volumes to ensure that the UID is not an issue, instead of sharing a directory on the host (it is the same thing under the hood, but with named volume, Docker managed the UID, GID, mask and paths for you):
$ docker volume create jenkins_data

Creating the user on runtime (instead of buildtime) could be done but at the cost of additional complexity that need to be written and tested. It is not on the priorities, but anyone interested in contributing can.

Please keep in mind that:

- It is re
- User Namespacing must keep working with the "runtime user creation"  https://docs.docker.com/engine/security/userns-remap/

Thanks for all that info @dduportal, also fyi @MarkEWaite
It sounds like the above should be documented as the recommended way? as there's a number of issues where people have hit this

That is a really good point. I initially assumed that the existing documentation was enough (ref. 2nd part of https://github.com/jenkinsci/docker#usage), but in fact it could be greatly improved since end users are still facing issues: it means there is room for improvement. Any help on this is welcome, as I'm not a native English speaker and I fear that I might not write correctly.

The "create at runtime" requires running chmod/chown on each container startup. This can be slow if there are a lot of jobs in Jenkins, or if the underlying filesystem is slow
chmod/chown could be run if uid is the different that set by parameter. it will be fast in most cases

I doubt it will be that fast, once you get a lot of jobs it will take a long time.
Is there a reason that you don't want to use named volumes?

As I understand, named volumes will produce files with ownership of user from container (uid/gid). For example, if I have jenkins user id 1000 in container, everything that was created by jenkins will have owner 1000 on the host machine.
Am I wrong?

@ikutergin yes, but inside the volume managed by docker (that is stored in /var/lib/docker/volumes/<volume id>/_data). Please note that you have to enable https://docs.docker.com/engine/security/userns-remap/ if the UID 1000 should be used on your host machine: it will allow to map the UID 1000 of the container to another UID on the host machine.

@ikutergin what is the use case you have to would be incompatible with the named volume?

@ikutergin yes, but inside the volume managed by docker (that is stored in /var/lib/docker/volumes/<volume id>/_data). Please note that you have to enable https://docs.docker.com/engine/security/userns-remap/ if the UID 1000 should be used on your host machine: it will allow to map the UID 1000 of the container to another UID on the host machine.

As I understand, userns-remap configured for whole system. If I have multiple independent containers on the host, all of them will use this option.

Yes, but without any information on your use case it is only a hard guess. Can you describe what you want to achieve to help us understand please ?

Le 20 juil. 2021 à 13:23, ikutergin @.***> a écrit :

@ikutergin yes, but inside the volume managed by docker (that is stored in /var/lib/docker/volumes//_data). Please note that you have to enable https://docs.docker.com/engine/security/userns-remap/ if the UID 1000 should be used on your host machine: it will allow to map the UID 1000 of the container to another UID on the host machine.
As I understand, userns-remap configured for whole system. If I have multiple independent containers on the host, all of them will use this option.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

You don't need an ENV variable to change the user. That can be done at run time with flags like:

Yes "I" need it. Running it in synology under docker DOES NOT work with flags. Every other docker image I used until I tried to use jenkins uses env variables. Don't see any issue doing that then.

I can only repeat myself.

This suggests you should be able to use named volumes with synology? https://community.synology.com/enu/forum/1/post/133301

uses

+1 to this issue. uid/gid needs to match that of the Jenkins container and uid/gid 1000 is very common.

You don't need an ENV variable to change the user. That can be done at run time with flags like:

Yes "I" need it. Running it in synology under docker DOES NOT work with flags. Every other docker image I used until I tried to use jenkins uses env variables. Don't see any issue doing that then.

I can only repeat myself.

+1 to this issue. uid/gid needs to match that of the Jenkins container and uid/gid 1000 is very common.

+1 here as well. My org has centralized auth and 1000:1000 belongs to somebody. Because of the centralized auth, /etc/subuid and /etc/subgid already map users and are not available for docker userns-remap. I had to fork the repo and hack the Dockerfile for uid/gid, so I'm no longer pulling the official image. What bothers me is that there appears to be no way to pass in build-args for uid and gid via the Makefile. I wouldn't have to fork (and thereby track) the repo if there were even a way to do something that simple.

I can make the sacrifice of building from source if there's a way to pass in uid and gid to make without hacking

Hello @cbcunc , for what it's worth it, you can avoid hacking and specify the uid/gid through the "docker-bake.hcl" manifest file.
This "manifest" is used by the docker buildx bake command to get the correct build settings for a given image (path to dockerfile, build args, names, etc.).
The Makefile is only a remnant from the past, kept for executing commands: it should not be used to persist informations.
You have an example of build arg already there: https://github.com/jenkinsci/docker/blob/master/docker-bake.hcl#L177-L182
which sets the build-arg from the value of the respective environment variables.
You could add another with your expected uid/gid on the image you want to build, because it's exposed through build-args: https://github.com/jenkinsci/docker/blob/master/11/debian/bullseye/hotspot/Dockerfile#L34-L41 .
Would it help you?

For those who need a different uid/gid, which one should it be?
If there would be a specific combination, we could try to file a PR which adds another build variant. But I guess we all need different combinations. e.g. containers running root-less on Openshift would need a docker build with uid=1001 and gid=0.
PR #1342 shows how to add a custom build with different uid/gid. Be sure to build with a recent docker version.
build it with e.g.:
VERSION=2.332.3
SHA=$(curl -sL "https://get.jenkins.io/war-stable/${VERSION}/jenkins.war.sha256" | cut -d' ' -f1)
make build-rhel_ocp_ubi8_jdk11 JENKINS_VERSION=$VERSION JENKINS_SHA=$SHA

authors: Subtixx cbcunc dduportal dmc5179 flozzone ikutergin ksato9700 sahilshah6196 timja vospascal zloveless

repo: jenkinsci/docker


text:
POM updates

@reviewbybees

Thanks for the note that using pom 3.0 is not supported with old Jenkins versions.  I'll need to assure that neither the git plugin nor the git client plugin versions use pom 3.0 until they have switched to use at least Jenkins 2.60.

authors: MarkEWaite jglick

repo: jenkinsci/git-client-plugin


text:
WebUI: sticky Filter wird auch an falscher Stelle verwendet

a) Wenn in der Ansicht "Programme und Verknüpfungen">"Programme & Zentralenverknüpfung" in der 1. Spalte "Name" ein Filter gesetzt ist, dann wirkt dieser Filter fälschlicherweise auch beim Aufruf der Seite "Status und Bedienung">"Geräte" im rechten Bildteil auf die 1. Spalte "Kanal".
Dies tritt immer bei Aufruf der Geräte-Seite über das Hauptmenü auf. Wird danach auf der Geräte-Seite ein Gerät ausgewählt, hebt dies den "falschen" Filter auf.
b) Die Seiten "Programme und Verknüpfungen">"Programme & Zentralenverknüpfung" und "Status und Bedienung">"Systemvariablen" verwenden in der 1. Spalte "Namen" den selben Filter, d.h. wird auf einer der zwei Seiten ein Filter hinterlegt/gelöscht, gilt dies auch für die andere der zwei seiten.
Das Problem besteht bei mir auf der RaspberryMatic 3.59.6.210703 auf "ELV-Charly" RPi3 mit RF-Mod, als Browser verwende ich Chrome 92.0.4515.131

Ja, die lieben sticky Filter.
Da klemmt's an einigen Stellen. Es gibt (gab) ja schon mehrere Tickets dazu.
Auch von mir... #953

Duplicate of #953

authors: Baxxy13 NorfolkXX jens-maus

repo: jens-maus/RaspberryMatic


text:
"Zweite Zeile" beim Schalten von Geräten

Describe the issue you are experiencing
Wenn man unter Status und Bedienung -> Geräte z.B. eine Schaltsteckdose ein- bzw. ausschaltet bekommt man eine "zweite Zeile" mit den Ein- und Aus-Buttons:

Describe the behavior you expected
Keine "zweite Zeile"
Steps to reproduce the issue

...
What is the version this bug report is based on?
3.61.5.20211113
Which base platform are you running?
rpi4 (RaspberryPi4)
Which HomeMatic/homematicIP radio module are you using?
RPI-RF-MOD
Anything in the logs that might be useful for us?
Firefox 94.0.1
Google Chrome 96.0.4664.45

Additional information
Keine

#1467


text:
Update previous_schema regex to account for Rails 7

Rails 7's schema.rb looks similar to ActiveRecord::Schema[7.0].define(version: 2022_01_26_205052) which breaks how the regex works, causing assert HairTrigger::migrations_current? to fail. This PR fixes that.

👍 - came across the same issue and same solution

released in https://rubygems.org/gems/hairtrigger/versions/1.0.0

authors: jenseng maestromac myxoh


text:
Date range comparison for time switch and filter node

Add a comparison operator for dates and date ranges to time switch and filter nodes.
Example operators:

before a specific date
after a specific date
at a specific date
between two dates
outside of a date range

During development it turned out that nodes get too complicated and there is too few benefit to justify this.

repo: jensrossbach/node-red-contrib-chronos


text:
🛑 Wanted Gigs is down

In 529ae88, Wanted Gigs (https://www.wanted.co.kr/gigs) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wanted Gigs is back up in 7c64927.

repo: jeongsk/upptime


text:
Log messages routed to home/java.log

In some cases log messages are being routed to the default log file location for JUL. This may be an opportunity to switch to logback.

After further investigation the log files going to the default log file location for JUL was caused during unit testing. This ticket is being changed from a bug to an enhancement request to change from JUL to logback (or other logging framework).

In lieu of a all-out migration off of JUL, in the interim, could you just modify the owasp JUL logging so that it respects the global JUL configuration?  My logging.properties file is this:
handlers=java.util.logging.ConsoleHandler
.level=OFF
And I have stderr and stdout redirected to /dev/null.  When I run the dependency check plugin I still get "INFO" log statements from the following loggers written to ~/java0.log:
org.owasp.dependencycheck.Engine
org.owasp.dependencycheck.data.update.StandardUpdate
org.owasp.dependencycheck.data.update.task.DownloadTask
org.owasp.dependencycheck.data.update.task.ProcessTask

JUL is no longer in use.

authors: jaypatrickhoward jeremylong

repo: jeremylong/DependencyCheck


text:
backward compatibility database ?

Is it possible to use one external DB for different versions of DC ?
For example version 2.9 and 3.0.
In my company a lof of people use DC with different versions.
So it's a lot of work to provide a new database for every DDL change.

Schema changes have been rare. I will look into changing the schema version check to be more of a minimum version. Initial thoughts we would ensure any instance of DC using the 3.x schema could use any higher 3.x schema. If we had to implement a breaking change we would increment to 4.x.

A change has been made so that if the major schema version number is the same and the expected minor database schema number is less then or equal to the expected minor version the database can be used.  Not sure if that reads correctly - so here are a few examples.
dependency-check 1.3.5-SNAPSHOT uses a schema version of 3.0. When new schema versions are released with new versions of dependency-check (this is rare) 1.3.5-SNAPSHOT will be able to use databases with a schema version of 3.1, 3.2, 3.3, .... However, when the database schema version is changed to 4.0 dependency-check 1.3.5-SNAPSHOT will not be able to use the database.
Note, only a version of dependency-check with the exact same schema version can perform an update on the database.

This functionality will be released with 1.3.5.

authors: jeremylong kaimago


text:
[FP]: use a negative rule for cpe:2.3:a:grpc:grpc:::::::: suppression matching for Maven artifacts

Package URl
pkg:maven/(?!io.grpc/).*
CPE
cpe:2.3:a:grpc:grpc::::::::
CVE
multiple
ODC Integration
{"label"=>"Gradle Plugin"}
ODC Version
11.1.1
Description
I propose using a negative regex in a suppression rule for gRPC. We already had numerous FPs for this one, because having grpc in a package name is relatively common in the wild. OTOH, the CPEs using grpc in the co-ord are limited to io.grpc group in Maven ecosystem. The benefit of switching would be twofold:

no need to manually add suppressions for those cases in the future,
possibility of removing existing redundant suppression rules for it

Example rule:
    <suppress base="true">
        <notes><![CDATA[
        Match only actual `io.grpc` Maven packages to this CPE
        ]]></notes>
        <packageUrl regex="true">^pkg:maven\/(?!io.grpc\/).*$</packageUrl>
        <cpe>cpe:/a:grpc:grpc</cpe>
    </suppress>

We do have a precedent of having this kind of rules in the base suppression file, so I think changing this would be reasonable.

I'm more than willing to do the PR here etc. if that's of any use.

Suppression now also published in the hostedSuppressions

authors: FyiurAmron aikebah


text:
Feature request: Bounce cell to reveal actions

Swipe actions are not always easy to discover by users. It would therefore be nice to have SwipeCellKit provide an easy mechanism to bounce a selected cell after x seconds to make the swipe discoverable.

Hi @pepejeria - This would probably best be addressed by a swipeOffset property and asetSwipeOffset(animated:) method.  That should give enough flexibility to the app to bounce however it needs.
Thoughts?

Hi @jerkoch, sounds good. I guess this would work for both orientations right?

Good point. Two options that I can see:

A negative offset would expose right-side actions, and a positive offset would expose left-side actions.

setSwipeOffset(offset:orientation:animated:) would be clearer but retrieving the current swipe offset wouldn't work as a single property.

I'll think some more about it.

Would wrapping the offset in an SwipeOffset enum be a viable solution? It seems to be an OK case for an enum – the two directions are mutually exclusive.
Something along the lines of:
enum SwipeOffset {
  case left(distance: UInt)
  case right(distance: UInt)

  func changed(to newDistance: UInt) -> SwipeOffset {
    switch self {
    case .left:
      return .left(distance: newDistance)
    case .right:
      return .right(distance: newDistance)
    }
  }

  mutating func change(to newDistance: UInt)  {
    self = changed(to: newDistance)
  }
}

Hey @Uupis - Good idea. I think it could work!  👍
Probably should add a .center case without an associated value, which would be the equivalent of .left(0) or .right(0).  And also a computed distance property that simply returns the UInt in cases where left or right isn't relavent.
I'll play around with this a bit when I get a chance.

Hi @Uupis - I scraped the .center idea since things got dicey trying to support + and - operators.   Here's where I landed:
public enum SwipeOffset: Equatable {
    case left(distance: Int)
    case right(distance: Int)

    public var distance: Int {
        switch self {
        case let .left(distance): return distance
        case let .right(distance): return distance
        }
    }

    public static func ==(lhs: SwipeOffset, rhs: SwipeOffset) -> Bool {
        switch (lhs, rhs) {
        case (let .left(distance1), let .left(distance2)): return distance1 == distance2
        case (let .right(distance1), let .right(distance2)): return distance1 == distance2
        default: return false
        }
    }

    public static func +(lhs: SwipeOffset, rhs: Int) -> SwipeOffset {
        switch lhs {
        case let .left(distance): return .left(distance: distance + rhs)
        case let .right(distance): return .right(distance: distance + rhs)
        }
    }

    public static func -(lhs: SwipeOffset, rhs: Int) -> SwipeOffset {
        switch lhs {
        case let .left(distance): return .left(distance: distance - rhs)
        case let .right(distance): return .right(distance: distance - rhs)
        }
    }
}

Hey @jerkoch – looks good!

👍 I was thinking this would be useful for my implementation too.
Happy to help out building the feature if needed.

Hey @Mutix - Thanks for the offer! 🍻
I had already started on this when I got sidetracked with a few other pull requests.  I'm hoping to get it finished this weekend.  If that doesn't happen, I'll gladly reach back out to you for help!

Thank you for implementing this, could you please provide an example how to slightly bounce the cell like iOS 6-7 did to reveal the camera on the home screen?

Sorry, I see now that setting a negative offset is required to expose the right side.

Is there any way of not triggering the willStart/didEnd delegate callbacks when using this? I need to tell if the user initiated the swipe or it's the programmatic setSwipeOffset(). Is there any other way of doing this?

authors: Mutix Uupis jerkoch nameghino pepejeria

repo: jerkoch/SwipeCellKit


text:
Bucket (ET) calculation seems too big

What happened?
I have upgraded to V2. Very happy user of V1. Can I ask you to run your eye over my sensor definitions. I am calculating the solar radiation (in the Modules page), but all other sensors are from my weather station updating every 10 minutes. Following is a screenshot of the Bureau of Meteorology calculation of an ET of 4.3 (for 2nd October a hot day) but Smart Irrigation is calculating a larger number of 8 and today (4th October) is cooler than yesterday.  In V1, none of my annual Evapotranspiration numbers went over 4.8. Perhaps my sensor configuration is wrong or the unit conversion routines have problem.
Following is a screenshot of the zones, sensors and sensor values. The Diagnostic file is also included.

config_entry-smart_irrigation-8d7b5fdb8f8a1c549bfa3c78d9a7935e.json (1).txt
How to reproduce
Update Zones then Calculate all zones.
Relevant log output
Everything is normal in Logs.

Which version are you running?
V2023.9.3-alpha-4
Diagnostics file

[X] I have attached a diagnostics file

Additional information
Transferred from Community as requested.

Giorgio, the "update zones then calculate all zones" was done at 1400 hrs i.e. 14 hours of weather data since the automatic reset. The bucket or ET is a cumulative number. I could have waited to 23.30 for the automatic calculation but the ET number was already too large. I dont think it is related to your issue.

@Dave-Bryant how often do you calculate per day?

I have the auto calculation happening at 23.00. Here is the panel.

thanks, so it looks like the ET value was -3.7 so that does not seem to very much out of line with the ET value of 4.3 that you reported, right? So your bucket was updated with -3.7, since it was already set to -4.3, the total bucket was set to -8.0. Note that that is not the value for that one day, but rather over two days. I think those ET values (4.3, 3.7) are very much in line with what the weather service reported so I don't think there is a problem here. If you want to have your bucket represent the daily value you should (like in V1) reset the buckets. Are you doing that? If you don't then the bucket will update with every new ET value.

Jeroen, you are correct. My reset isnt working.  I use the following code but it is not working or giving an error. Any thoughts?
self.call_service("smart_irrigation/reset_bucket", entityid = "sensor.smart_irrigation_lawns")
Do you use a different namespace or domain in V2?

The scheme is  sensor.smart_irrigation_[zone-name]. Have a look for your sensors name under settings -> devices -> entities.

Yes the entityid is correct i.e. sensor.smart_irrigation_lawns

Jeroen, you are correct. My reset isnt working. I use the following code but it is not working or giving an error. Any thoughts? self.call_service("smart_irrigation/reset_bucket", entityid = "sensor.smart_irrigation_lawns") Do you use a different namespace or domain in V2?

smart_irrigation.reset_bucket, not sure where the / came from?

When I make this change the Appdaemon compile shows an error of 'ValueError: Invalid Service Name: smart_irrigation.reset_bucket'
I read on the Community board that 'the “/” is just the syntax for the appdaemon method that calls the home assistant service. The appdaemon call_service method “translates” the “/” to a “.”  https://community.home-assistant.io/t/struggling-to-get-call-service-working-again/222931/2

Jeroen, The service with the dev tools works fine. The problem is with me, not your integration. Thx for your help. Pls close the issue.

I am sorry I cannot be of more help. Hope you get it resolved!

authors: Dave-Bryant gatonero jeroenterheerdt

repo: jeroenterheerdt/HAsmartirrigation


text:
Lineage imputation and sample subgraph plots

Code for imputing the Pango lineage of nodes in an inferred tree sequence. This uses a a 2-step procedure of (1) copying the parent’s or a child’s lineage whenever possible (if the connecting edge doesn’t have any lineage-defining mutations on it), and (2) imputing the lineage of a node based on that of its parent + the lineage-defining mutations on the connecting edge. These steps are run iteratively over the ts until everything has a lineage assigned. WIP, and I need to add some tests here.
Also function in utils for visualising the history of a given sample node (tracing up through the ARG until other sample nodes are reached, showing any recombinations on the way).

Looks great, thanks @a-ignatieva!
A few minor things:

The consensus_mutations.json is 8.5 MB which is too big really for storing in a git repo like this. Maybe we could just add a comment in the code saying where to download the file, and provide the path as an argument to the imputation function?
Can you run black on the code please? (Black is the best thing that's happened to me in years, it saves soooo much time and energy not having to think about code layout!)

Other than that I think we can merge and iterate - although I guess we'll have to rebase and squash the commits in order to get rid of hte big JSON file completely from the history.

This guide for squashing might come in handy

Sorted I think.

Merged, thanks @a-ignatieva!

authors: a-ignatieva jeromekelleher


text:
An issue about JSON.stringify

When executing the testcase below, the result when the second argument of JSON.stringify is [] is different from when the parameter is a non-empty array. According to the ES6.0, the expected output should be {}. And when executing this testcase on other engines, (like chakraCore, v8, and spiderMonkey) I get the expected output.  This may be an issue about JSON.stringify.
version
bd1c4df
testcase
var NISLFuzzingFunc = function (nislMutationParameter0, nislMutationParameter1, nislMutationParameter2) {
        return JSON.stringify(nislMutationParameter0, nislMutationParameter1, nislMutationParameter2);
};

var nislMutationArgument0 = {"4664":false,"18836":true};
var nislMutationArgument1 = [];
var nislMutationArgument2 = "abc";
var NISLCallingResult = NISLFuzzingFunc(nislMutationArgument0, nislMutationArgument1, nislMutationArgument2);
print(NISLCallingResult);

output
{
abc“4664":false,
abc”18836":true
}

expected output
{}

Contributor:@YuanWangC

Disclaimer: The issue report may or may not be valid, I haven't checked. But. According to git rev-list --count bd1c4df..master, the reported revision is 104 commits older than master at the time of writing my comment. Please, do update your local copy more frequently!

authors: NWU-NISL akosthekiss

repo: jerryscript-project/jerryscript


text:
Assertion 'page_p != list_p->data.last_p || (index * list_p->item_size < list_p->data.last_position)' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):280.

JerryScript revision
Commit: a6ab5e9
Version: v3.0.0
Build platform
Ubuntu 18.04.5 LTS (Linux 4.19.128-microsoft-standard x86_64)
Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)
Build steps
python ./tools/build.py --clean --debug --compile-flag=-fsanitize=address --compile-flag=-m32 --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --system-allocator=on --stack-limit=20

Test case

poc.js

class JSEtest {
  #m = async function() { return 'test262'; };

  method() {
    return this.#m();
  m
}

let c = new JSEtest();

c.method().then((value) => assert.sameValue(value, 'test262'))
  .then($DONE, $DONE);

Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js

ICE: Assertion 'page_p != list_p->data.last_p || (index * list_p->item_size < list_p->data.last_position)' failed at jerryscript/jerry-core/parser/js/js-parser-mem.c(parser_list_get):280.
Error: ERR_FAILED_INTERNAL_ASSERTION
[1]    35666 abort      jerry poc.js

Duplicate of #4930.

authors: FlydragonTy rerobika


text:
Support for Arm architectures

I have a kubernetes cluster running ElasticSearch 7.14 and would really like to use ElastAlert2 to monitor it. It should be as simple as adjusting your build pipeline to build for multi architectures:
docker buildx build --platform linux/amd64,linux/arm64 -t jertel/elastalert:2.3.1 . --push
This command will take quite a bit longer, so not desirable during development iterations, just release.
I cloned the repo and ran it myself, and it seems to work fine.

This is implemented for Docker Hub only. Currently the latest tag has amd64 and arm64. armv7 is always problematic due to rust/crypto/cffi broken deps so I've opted to leave it out. If there's demand I may also push multi-arch up to the GitHub CR, but for now arm64 is only available on Docker Hub.

authors: jertel rdomloge


text:
Route files are not being compiled with babel polyfill

It looks like route files are not being compiled with babel polyfill. The use of async throws an Unexpected token function error.

I'll take a look! Mind posting your .babelrc or config flags and the command you use to run? I'll try to repro and get a fix in!

I don't have a .babelrc file. My understanding is that micro is taking care of babel support for async/await functionality. A quick fix has been to use node 7 and harmony flags. This is what my npm start script looks like node --harmony-async-await ./node_modules/.bin/micro But I feel this is more of a last resort.

For sure! in node v7.6+, things should run natively, and below that micro uses async-to-gen to add async/await support. If you're transpiling, what is your deployment target and build process?

I will be deploying to zeit. I'm not sure whether I need a build process as such, my understanding is that micro should take care of it. Am I wrong?

Mainly what I'm after is a way to reproduce your issue! I'm using this lib on zeit right now without any issues, so I figure there must be something in your setup preventing the routes from being transpiled properly.

Node async/await is LTS now, and this issue is likely irrelevant. Please re-open if I closed in error!

authors: jesseditson zooshme

repo: jesseditson/fs-router


text:
openai.error.APIError

当出现openai.error.APIError: HTTP code 502 from API时，书籍已经翻译到第六章，那么后续该怎么处理才能不从头开始翻译呢？

如果用的是最新的版本，有进度json文件在目录下。直接再次运行即可从中断处继续翻译。
On Mon, Mar 20, 2023 at 7:34 PM SamClarks @.***> wrote:

当出现openai.error.APIError: HTTP code 502 from
API时，书籍已经翻译到第六章，那么后续该怎么处理才能不从头开始翻译呢？
—
Reply to this email directly, view it on GitHub
https://github.com/jesselau76/pdf-epub-GPT-translator/issues/3, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AJUSHGHFLKHCXZJMERIYSYTW47273ANCNFSM6AAAAAAWAVCOH4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

重新尝试还是连不上API，是不是API 服务器的暂时故障或过载造成的？

那可能是API暂时屏蔽了部分ip.我这里是没有问题的。
On Mon, Mar 20, 2023 at 8:02 PM SamClarks @.***> wrote:

重新尝试还是连不上API，是不是API 服务器的暂时故障或过载造成的？
—
Reply to this email directly, view it on GitHub
https://github.com/jesselau76/pdf-epub-GPT-translator/issues/3#issuecomment-1475719019,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJUSHGBGRXG6RXUPLY5MGHDW476JBANCNFSM6AAAAAAWAVCOH4
.
You are receiving this because you commented.Message ID:
@.***>


text:
V12 Support

Not currently installable on Foundry V12. Will this be supported on the V12 release?

heres hoping ... this is a big help and would love to see it still working for Ver 12


text:
Feature Request: Non-Staff Magical Items

Would love to see some more functionality in this module, allowing for modifications on the typical Staff-Spell implementation.
Items that could have a custom formula and independent well of charges, cast spells for non-spellcasters, choose how they recharge on rests or things like that.
I just keep thinking about items like say, a Necklace of Fireballs or Artificer Spectacles that grant spells with their own independent charges.
Could use a custom "Trait" tag from the Homebrew options on the item to flag it for the module to scrape and implement.
Piggybacking off that (but perhaps a bit overreaching for this module) a way to grab Activated Effects from items (things like Belt of Regeneration or the Titan's Grasp) and add them to the Actions tab would make it even more flexible.

This module was developed through a commission. I'm happy to merge a pull request if you'd like to make one. Otherwise feel free to reach out to me on Discord enso#0361 if you'd like to discuss funding these features.


text:
Added two remote companies

Added Fetlife and Core-Apps.

Thanks! Are you able to add company profiles? Merging as-is for now.

authors: ShaunaGordon jessicard

repo: jessicard/remote-jobs


text:
Update Yulakia

https://steamcommunity.com/workshop/filedetails/?id=2950257727

It's up to date : https://atlas.plan-ops.fr/maps/arma3/yulakia