text:
SmartThings improvement using aiohttp

SmartThings componenent reviewed to use aiohttp instead requests (more compliant with HA)
Now ST methods are async and media_player module use async call for update.
Next step should be the review of other methods that use requests (as ping and HTTP app list update)
Better to do several test before release this change, performance improvement is important but moving from sync to async may cause some unexpected issues.

this is gonna be a bitch to test and review

I Know, but solve expecially situation when sometime network connection is not available. Personally I'm running it from a couple of days at it works fine!

I've created a conflict with your PR with this commit: https://github.com/jaruba/ha-samsungtv-tizen/commit/9c37012592c13416183b5bc3cd5e128f51348ec1

Solved the confict

Hi,
For the moment I closed this pull request because I understand that the change done my side is really big, and I still have some idea.
Anyway I will appreciate any suggestion and help from you in my revision.
My goal is to make configuration as simple as possible, creating a very simple and powerful control.
My next step is to remove also device_name parameter and create a config_flow for installation.
Wait for your feed-back.
Ciao.

Sorry, I don't have much time to look over it now, I will at some point, just probably not this weekend.

repo: jaruba/ha-samsungtv-tizen


text:
each does not return the list

The docs [http://underscorejs.org/#each] say "Returns the list for chaining." which I presumed meant I could return _.each(myarray, ...) but I got undefined back.
A simple test in console gives the same results:
> _.each([{a:1},{b:2}], (v) => { v.foo = JSON.stringify(v); })
undefined

Got: undefined
Expected: [{a:1, foo: "{a:1}", b:2, foo:"{b:2}"}] (i.e. the list)

Seems I was using an old version of underscore.

source: gharchive/issue

repo: jashkenas/underscore

license: MIT

license_type: permissive

license_source: github-api


text:
Add Composite Predicate Functions

Cross posting from lodash/lodash#1072. We already have _.negate for negating predicate functions, how about adding something similar to and and or logic for composing predicate functions. This would allow pretty nifty filtering like:
_.filter(array, _.allPass(_.isObject, _.negate(_.isArray))); // #2123

Re: https://github.com/jashkenas/underscore/issues/2008

Note: I canned the _.none and _.nonePass, I was doing the wrong logic tables. :grimacing:

:+1:

Got a few more real-world use case examples up your sleeve?

Searching through the codebase for the right && is impossible. :pensive:
I've used patterns like the following, vs their functional eqivalent:
_.filter(collection, function(model) {
    return model.isActive && model.method();
});

// or
var call = function(method) {
    return function(obj) { return obj[method](); };
};
_.filter(collection, _.allPass(_.property('isActive'), call('method')));

and
_.findIndex(array, function(obj) {
    obj.isActive && !_.isEmpty(obj.els);
});

// or
_.findIndex(array, _.allPass(_.property('isActive'), _.compose(_.isEmpty, _.property('els'))));

Right, and in both of those cases, the former is way nicer than the latter. Not super persuasive for a core feature...

Neither of the functional examples would look bad if the helper methods were already defined.
_.filter(collection, _.allPass(isActive, call('method')));
_.findIndex(array, _.allPass(isActive, emptyEls));

Maybe @megawac will be able to find one of his uses quicker than I am? But I like this because of how nifty they don't require me writing a function. Kind of like _.filter(collection, 'isActive').

My use cases generally tend to need anyPass more often than allPass are usually to determine if a, b or c are true
For example, from some acorn AST parsing I'm working on
_.chain(findImports(ast.body))
 .filter(_.anyPass({type: 'AMDImport'}, {type: 'ImportDeclaration'}, {type: 'CJSImport'}))
 .filter(...)
 .map(...)

I'm :+1: for this.  I would find it useful for creating predicates that verify types.
var isCollection = _.anyPass(Array.isArray, _.isPlainObject, _.isArguments);

function takesACollection(arg1) {
  assert(isCollection(arg1));
  //...
}

I would think of them as and and or operations.

Should we call them _.and and _.or then?

_.and(f, g) might be confused for (f, g) => f && g rather than (f, g) => f() && g() -- a simple logic operation, rather than combining predicates.
Ramda calls the simple logic operator R.and, and the function that combines predicates R.allPass.
Personally, I like _.and and _.or better, since they're shorter.  I also see myself using predicate combinators more often than wrappers around operators.

Are there any other lang equiv names in haskell or smth?

In Clojure there is some-fn and every-pred.  (A bit strange that the names are not symmetric.)

@jdalton Haskell actually has a concept that is far more general than this. Because functions are applicative functors, we can "lift" any function that operates on some type to a function that operates on functions that operate on that type. This example should make that explanation clearer:
λ> let a = const True
λ> let b = const False
λ> import Control.Applicative
λ> (liftA2 (&&)) a b 0
False
λ> (liftA2 (||)) a b 0
True
λ>

A JavaScript version of liftA2 specialised to functions would look like this:
function liftA2(combine) {
  return function(f, g) {
    return function(){
      return combine(f.apply(null, arguments), g.apply(null, arguments));
    };
  };
}
let and = (a, b) => a && b;
let f = x => x > 0;
let g = y => y > 2;
liftA2(and)(f, g)(5) // true
liftA2(and)(f, g)(1) // false

Of course, being JavaScript, we could allow a liftA that accepts a combining function of any arity and any number of functions to apply to the lifted function.

+1

After much bikeshedding I went with the names _.conj and _.disj for conjunction and disjunction. This avoids the any/all - some/every issue and connects well with _.negate.

source: gharchive/pull-request

authors: aearly jashkenas jdalton jridgewell megawac michaelficarra tilmanpotthof


text:
Powerflow Animation Time Outs becoming frequent

Hello everyone.
Running firmware 24.44.0 with no recent changes and wifi access to local tedAPI.
Two PW+ inverters.   Four power walls.   Four Strings.

Getting some frequent time outs the last 2 days or so.   Firmware shown is also incorrect.
anyone else experiencing this?    Otherwise stable install for months other than recent update for the wonderful return of temps.
Tesla coming out to fix some MCI's on my west panels today as well.
Thanks
Stephen

HI @s0schen  - Can you pull some diagnostic info for us?
./verify.sh

# Check logs for odd errors before restart
docker logs pypowerwall

# Remove and rebuild pypowerwall
docker stop pypowerwall
docker rm pypowerwall
./compose-dash.sh
docker logs pypowerwall -f

-e Verify Powerwall-Dashboard 4.6.0 on  - Timezone: America/Chicago
-e ----------------------------------------------------------------------------
-e This script will attempt to verify all the services needed to run
-e Powerwall-Dashboard. Use this output when you open an issue for help:
-e https://github.com/jasonacox/Powerwall-Dashboard/issues/new
-e
-e
-e Checking pypowerwall
-e ----------------------------------------------------------------------------
-e -n  - Config File pypowerwall.env:
-e GOOD
-e -n  - Container (pypowerwall):
-e GOOD
-e -n  - Service (port 8675):
-e ERROR: Not Listening
-e  - Version: Unknown
-e  - Powerwall State: ERROR: Not Connected - Firmware: Unknown
-e  - Powerwall Gateway TEDAPI: Not Available (192.168.91.1)
-e  - Cloud Mode: NO
-e
-e Checking telegraf
-e ----------------------------------------------------------------------------
-e -n  - Config File telegraf.conf:
-e GOOD
-e -n  - Local Config File telegraf.local:
-e GOOD
-e -n  - Container (telegraf):
-e GOOD
-e  - Version: Telegraf 1.28.2 (git: HEAD@8d9cf395)
-e
-e Checking influxdb
-e ----------------------------------------------------------------------------
-e -n  - Config File influxdb.conf:
-e GOOD
-e -n  - Environment File influxdb.env:
-e GOOD
-e -n  - Container (influxdb):
-e GOOD
-e -n  - Service (port 8086):
-e ERROR: Not Listening
-e -n  - Filesystem (./influxdb):
-e GOOD
-e  - Version: Unknown
-e
-e Checking grafana
-e ----------------------------------------------------------------------------
-e -n  - Config File grafana.env:
-e GOOD
-e -n  - Container (grafana):
-e GOOD
-e -n  - Service (port 9000):
-e ERROR: Not Listening - Logs:
-e ---
logger=context traceID=00000000000000000000000000000000 userId=0 orgId=0 uname= t=2024-12-27T13:09:28.3386684Z level=info msg="Request Completed" method=GET path=/ status=302 remote_addr=192.168.0.117 time_ms=16 duration=16.49834ms size=29 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 t=2024-12-27T13:09:28.345476121Z level=error msg="Failed to look up user based on cookie" error="user token not found"
logger=context traceID=00000000000000000000000000000000 t=2024-12-27T13:09:39.340286539Z level=error msg="Failed to look up user based on cookie" error="user token not found"
logger=context traceID=00000000000000000000000000000000 t=2024-12-27T13:09:49.124118485Z level=error msg="Failed to look up user based on cookie" error="user token not found"
logger=http.server t=2024-12-27T13:09:49.173740312Z level=info msg="Successful Login" User=srchen@me.com
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:09:49.357578435Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=1 duration=1.068007ms size=0 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:10:08.786222359Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=1 duration=1.37222ms size=0 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:17:57.820758341Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=1 duration=1.378656ms size=0 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:41:36.11995646Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=1 duration=1.334852ms size=0 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:43:02.291954033Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=37 duration=37.521947ms size=0 referer= traceID=00000000000000000000000000000000
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2024-12-27T13:43:43.722850543Z level=info msg="Request Completed" method=GET path=/api/live/ws status=0 remote_addr=192.168.0.117 time_ms=1 duration=1.31891ms size=0 referer= traceID=00000000000000000000000000000000
-e ---
-e -n  - Filesystem (./grafana):
-e GOOD
-e  - Version: Grafana CLI version 9.1.2
-e
-e Checking weather411
-e ----------------------------------------------------------------------------
-e -n  - Container (weather411):
-e GOOD
-e -n  - Service (port 8676):
-e ERROR: Not Listening - Logs:
-e ---
Weather411 Server [0.2.3]

Configuration Loaded [/var/lib/weather/weather411.conf]

Weather411 - Debug: False, Activate API: True, API Port: 8676
OpenWeatherMap - Key: 074d92923d844c2da3f0c27c88d42478, Wait: 10, Units: imperial
OpenWeatherMap - Lat: 29.710330, Lon: -95.440440, Timeout: 10
InfluxDB - Enable: True, Host: influxdb, Port: 8086, DB: powerwall, Field: weather, User: , Pass:

Starting threads

fetchWeather thread
apiServer thread - Listening on http://localhost:8676
-e ---
-e  - Version: Unknown
-e
-e One or more tests failed.

12/27/2024 11:56:23 AM [proxy] [INFO] pyPowerwall [0.12.0] Proxy Server [t66] - HTTP Port 8675
12/27/2024 11:56:23 AM [proxy] [INFO] pyPowerwall Proxy Started
12/27/2024 11:56:26 AM [pypowerwall.tedapi] [ERROR] Unable to connect to Powerwall Gateway 192.168.91.1
12/27/2024 11:56:26 AM [pypowerwall.tedapi] [ERROR] Please verify your your host has a route to the Gateway.
12/27/2024 11:56:26 AM [pypowerwall.tedapi] [ERROR] Error Details: HTTPSConnectionPool(host='192.168.91.1', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc4168c2500>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
12/27/2024 11:56:26 AM [pypowerwall.tedapi] [ERROR] Failed to connect to Powerwall Gateway
12/27/2024 11:56:29 AM [pypowerwall.tedapi] [ERROR] Unable to connect to Powerwall Gateway 192.168.91.1
12/27/2024 11:56:29 AM [pypowerwall.tedapi] [ERROR] Please verify your your host has a route to the Gateway.
12/27/2024 11:56:29 AM [pypowerwall.tedapi] [ERROR] Error Details: HTTPSConnectionPool(host='192.168.91.1', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc4168c2e00>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
12/27/2024 11:56:32 AM [proxy] [INFO] pyPowerwall Proxy Server - Local Mode
12/27/2024 11:56:32 AM [proxy] [INFO] Connected to Energy Gateway 192.168.91.1 (Unknown)
12/27/2024 11:56:50 AM [pypowerwall] [ERROR] Failed to get /api/system_status/grid_status
12/27/2024 11:56:55 AM [pypowerwall] [ERROR] Failed to get /api/system_status/grid_status
12/27/2024 11:57:00 AM [pypowerwall] [ERROR] Failed to get /api/system_status/grid_status
12/27/2024 11:57:05 AM [pypowerwall] [ERROR] Failed to get /api/system_status/grid_status

-e - Powerwall Gateway TEDAPI: Not Available (192.168.91.1)
...
12/27/2024 11:56:26 AM [pypowerwall.tedapi] [ERROR] Unable to connect to Powerwall Gateway 192.168.91.1

This is a key to the problem. Your host running the dashboard cannot access the Powerwall endpoint (192.168.91.1). Did you originally set up a route from your system to that endpoint?  If not, I would try:
ping 192.168.91.1

# If it cannot reach that, you can try adding the route again:
./add_route.sh
ping 192.168.91.1

# If you know the IP address of your Powerwall
ping x.x.x.x # replace with IP address of Powerwall to ensure it can connect

Otherwise, you can change the IP address in pypowerwall.env to point to the correct IP address for your Powerwall (or PW Gateway) and restart pypowerwall.

ugh..  figured it out.   I was seeing it on the router side but couldn't ping it.   Turned out I had locked it to the Wifi Access point in the Garage to keep it from roaming.   That access point just failed 3 weeks ago and I swapped it with another one and took the original one off line.

Glad you were able to find and fix it! Thanks for reporting back.

repo: jasonacox/Powerwall-Dashboard


text:
Fix: readme docker link outdated

Change Log:

update readme

Problem:

Solution:

Issue Tracking: #

pr check not trigged


text:
ImportError: libpocketsphinx.so.1: cannot open shared object file: No such file or directory

hello,
I just installed the jasper image and am getting the above error.  I tried reinstalling the pocketsphinx twice and am still getting the same error.  I saw that someone else was having the same problem on another forum but didn't see an answer.  please help.  I have the log of the install but nothing out of the ordinary seems to be going on.
I get
:~/git/jasper-client/client$ python main.py
Traceback (most recent call last):
File "main.py", line 3, in
from conversation import Conversation
File "/home/patrick/git/jasper-client/client/conversation.py", line 2, in
from musicmode import *
File "/home/patrick/git/jasper-client/client/musicmode.py", line 6, in
from mic import Mic
File "/home/patrick/git/jasper-client/client/mic.py", line 17, in
import pocketsphinx as ps
ImportError: libpocketsphinx.so.1: cannot open shared object file: No such file or directory

"sudo ldconfig" did the job for me!

repo: jasperproject/jasper-client

license: mit

license_source: bigquery


text:
Had to uninstall

Hi, I love this mod, but I had to uninstall it because it was interferring with MassFarming's grid and I think other aspects of the cultivator (e.g. the PlantEverything mod destroy item with middle mouse button).
Unfortunately, even after uninstalling OCDheim, I cannot remove the "align to world" aspect of the cultivator. I'm kind of sad. I'm not sure what to do.
You see, MassFarming is supposed to allow me to plant on a grid. The grid is supposed to line up with the plants I put down so that when I push the hotkey (shift) a chunk of plants would be planted. But, now, when I push the MassFarming hotkey, the planting aligns with the world grid (see image). I am unable to toggle this function (align with world) off.

First of all - sad to see you go, you were my best "issuer".
As for the interference... Wasn't simply pressing LEFT-ALT to disable GRID MODE enough? The very first thing that OCDheim always does when you use the hoe / the cultivator is check if GRID MODE is enabled. If not - it doesn't do anything at all. If it helps - the next version of OCDheim will show an obnoxious visual cue when GRID MODE is enabled ;)
As for the behaviour post "deinstallation"... Are you 100% sure you removed the .dll file? OCDheim doesn't persist anything to disk, trust me on this one. It's virtually impossible for OCDheim to keep affecting Valheim in any way after the .dll is removed. But maybe MF somehow broke due to the interaction with OCDheim?
I would first try removeling these carrots and see if that helps. If not - I would try farming a completely fresh spot. If still not - I would completely reinstall MF.
Good Luck!

I installed and uninstalled mods all day yesterday. I'm stumped. Since I couldn't change the behavior no matter what I did, I reinstalled OCDHeim. The modpack we use is published on Thunderstore - its called GamingGroupies modpack by Jade.
The LEFT-ALT disables GRID MODE in OCDHeim with the cultivator and block placement, but not in MassFarming. In MassFarming, the OCDHeim GRID MODE seems to stay active. MassFarming uses the SHIFT key to activate the grid planting. Does the SHIFT key have any function in OCDHeim?

Also, I don't see a configuration file in the server for OCDHeim. Is that expected behavior? I am used to being able to configure hotkeys and behavior in mods so that they will get along. :)

UPDATE:  This issue is a non-issue now. I figured out that when I want to rotate the MassFarming planting grid, I must do it without having the hotkey pressed down. This isn't in the documentation ... I just had to keep horsing around with it. So, I'm closing this as a "not OCDHeim issue" :)  Thanks again for writing this mod.

authors: java-devil ncottrill

repo: java-devil/OCDheim


text:
[Test@SQLite] - FreemarkerSpec's Test failing

Hi
I am having the following error while running the tests under SQLite:
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.22 sec <<< FAILURE! - in org.javalite.activejdbc.FreemarkerSpec
shouldRenderRowProcessor(org.javalite.activejdbc.FreemarkerSpec)  Time elapsed: 0.013 sec  <<< ERROR!
org.javalite.test.jspec.TestException:
Test object:
java.lang.String == <Person: John  Smith, graduation date:
Person: Leylah  Jonston, graduation date: 1974-04-03
Person: Muhammad  Ali, graduation date: 1963-01-04
Person: Joe  Pesci, graduation date: 1964-02-23>
and expected
java.lang.String == <Person: John  Smith, graduation date:
Person: Leylah  Jonston, graduation date: Apr 3, 1974
Person: Muhammad  Ali, graduation date: Jan 4, 1963
Person: Joe  Pesci, graduation date: Feb 23, 1964>
are not equal, but they should be.
	at org.javalite.activejdbc.FreemarkerSpec.shouldRenderRowProcessor(FreemarkerSpec.java:99)

Seems to be a data formatting issue. Any idea why?

@jfcabral did you make any changes to code?

sorry, I see the same, need to look into it

@jfcabral I looked into it, and to my surprise, the SQLite driver is returning char[] values from the table. Interestingly, it does not support date types: https://stackoverflow.com/questions/5425557/sqlite-jdbc-rs-getdate-gettimestamp-etc-all-return-wrong-values.
I'm fixing it with an ugly if/else statement to test different output for SQLite.

authors: ipolevoy jfcabral

repo: javalite/activejdbc


text:
Javascript-obfuscator together with angular-cli

Hey guys,
I have a big Angular app with multiple lazy loading chunks I would like to obfuscate while building for production.
I'm working with angular-cli 6 (soon to be 7) and would like to add it in my release flow so that it runs automatically each time I release to production.
Preferably, without having to eject the angular-cli configuration.
Is this possible? If so, is there a sort of tutorial on how to do this?
thanks for the library!
Best regards,
Lander

While there is a webpack plugin of this obfuscator as you said you would need to eject the webpack config at the moment as angular cli does not support webpack plugins.
What I did was use the gulp plugin or you can also use the grunt plugin if you prefer that. Then you can run the ng build command and afterwards run gulp.
If you use sourcemaps you need to combine the ones that angular cli outputs with the ones that are generated from this obfuscator. There you can use https://github.com/azu/multi-stage-sourcemap.
This obfuscator works relatively well with angular code but sometimes there can be incompatibilities with uglify which is used to minimize code in angular-cli and this obfuscator so I would recommend you to always test the obfuscated code before you deploy it.

@markuszm can you share your config of Gulp?  Specifically the combination of the sourcemaps.  I'm trying to set this up and that would be helpful

Here is our gulpfile.js.
https://gist.github.com/markuszm/a76ec4ed2d8cf912b504b731dd60f996
At the moment, there is no plugin for the multi-stage-sourcemap which is why we created a custom function for that which combines the sourcemap from angular with the one from the obfuscator.
We deactivated some obfuscator options to prevent breaking the angular application so you might need to set some options different.

Closed as old. Please recreate a new issue if you will have additional questions.

authors: LanderBeeuwsaert markuszm sanex3339 stephengardner


text:
🛑 Paseo de Extremadura, 298 is down

In f2f0e67, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Paseo de Extremadura, 298 is back up in 29ae1bb.

repo: javisu/monitor


text:
🛑 Paseo de Extremadura, 298 is down

In 7684b2d, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Paseo de Extremadura, 298 is back up in 33a82cf.


text:
🛑 Rodriguez Marin, 88 is down

In 762341b, Rodriguez Marin, 88 (http://159.65.204.200:7057/) was down:

HTTP code: 502
Response time: 18679 ms

Resolved: Rodriguez Marin, 88 is back up in 467e9ad.


text:
🛑 Norma, 357 is down

In c481eb6, Norma, 357 (http://159.65.204.200:7044/) was down:

HTTP code: 502
Response time: 18777 ms

Resolved: Norma, 357 is back up in e2aa312.


text:
🛑 Paseo de Extremadura, 298 is down

In 7672229, Paseo de Extremadura, 298 (http://159.65.204.200:7046/) was down:

HTTP code: 502
Response time: 18653 ms

Resolved: Paseo de Extremadura, 298 is back up in f2656c9.


text:
How to use it to solve the problem in batches?

Hi @jayanthkoushik , You have provided an example of how to use the library for solving for a single instance. Is there support for solving the problem in a batches?
Thanks for your time and support

Hi, do you mean obtaining solution paths (for different regularization values)? Yes, that is supported. Please see https://github.com/jayanthkoushik/torch-gel#solution-paths.

No I mean solving the optimization problem for a batch of examples together i.e. passing the input Y to be of the shape [no_of_samples, feature_len]. Although I am not sure of the existence of such an algorithm

multiple Y (feature_len) can be solved separately because the solutions are independent (direct solving is not supported)

authors: jayanthkoushik rangwani-harsh

repo: jayanthkoushik/torch-gel


text:
挂起状态的提醒

todo

用terminal状态栏颜色来提示

https://github.com/jayli/vim-easydebugger/commit/5f722fe0513248d57a86c6eb0678022a75373c5e
fixed

repo: jayli/vim-easydebugger


text:
Update information in toolbar after htmx request

I have a django application that uses htmx. So when I load a page I see the debug toolbar and e.g. all SQL queries that were executed. When I now click on a button that triggers a htmx request and some view response with a htmx response that replaces or add somethings to the DOM like a modal/sidebar/.... In the view some SQL queries where executed as well, but the debug toolbar does not update any of the information, it is still the same as were shown after I loaded the initial page.
I would have expected it to update the information. Is this something that does not work at the moment?
I added all my configuration regarding debug toolbar below:
In my django.py settings file:
# Debug Toolbar
IS_RUNNING_TESTS = 'test' in sys.argv

if DEBUG and not IS_RUNNING_TESTS:
    INSTALLED_APPS += ['debug_toolbar',]
    MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware',]

def show_toolbar(request: HttpRequest) -> bool:
    if DEBUG and not IS_RUNNING_TESTS:
        if request.META['REMOTE_ADDR'] not in INTERNAL_IPS:
            logger.error(
                'Local remote address not found in internal IPs',
                error={'remote_addr': request.META['REMOTE_ADDR'], 'internal_ips': INTERNAL_IPS},
            )
        return True

DEBUG_TOOLBAR_CONFIG = {
    'SHOW_TOOLBAR_CALLBACK': show_toolbar,
    'INSERT_BEFORE': '<head>',
    'ROOT_TAG_EXTRA_ATTRS': 'hx-preserve',
}

INTERNAL_IPS = [
    '127.0.0.1',
    'localhost',
    '192.168.176.1',  # Internal docker ip
]

In my urls.py:
if DEBUG and not IS_RUNNING_TESTS:
    urlpatterns += debug_toolbar_urls()

In my _base.html template:
In the header:
    {% if debug %}
      <script>
          document.addEventListener('htmx:afterSettle', (event) => {
              if ('djdt' in window) {
                  window.djdt.init();
              }
          })
      </script>
    {% endif %}

At the end:
  {% if debug %}
    <script>
        if (typeof window.htmx !== 'undefined') {
            htmx.on('htmx:afterSettle', function(detail) {
                if (
                    typeof window.djdt !== 'undefined' &&
                    detail.target instanceof HTMLBodyElement
                ) {
                    djdt.show_toolbar();
                }
            });
        }
    </script>
  {% endif %}

A few other questions:

Does the history panel show the requests?
What versions of django, the toolbar are you using?
Are you using async views or channels?
The line 'INSERT_BEFORE': '<head>', seems incompatible. The toolbar should be inside of the body tag at least.

@tim-schilling thanks for the quick reply, my answers:
Does the history panel show the requests?
Yes, the request are shown in the history panel
What versions of django, the toolbar are you using?
toolbar: version = "4.4.6"
django: version = "5.1"
Are you using async views or channels?
No,  I don't use any async views or channels.
The line 'INSERT_BEFORE': '', seems incompatible. The toolbar should be inside of the body tag at least.
I also had </head> and did not setting 'INSERT_BEFORE' at all. But having it like this it is not flickering anymore for me when a new page is loaded. All different variants seem to behave the same for me, except that the toolbar is flickering when I don't set it like this.
I also noticed that after I opened a modal the toolbar does not react to any input, but when I open it a second time it reacts to input again. But I guess this is not related, maybe something with my CSS, idk yet? Also for this changing INSERT_BEFORE  to </head> or don't set it all does not change anything.

I'm having a tough time fully understanding what's happening and what you'd like to change. If the toolbar has the history panel and the htmx requests show up in there after clicking refresh (or enabling UPDATE_ON_FETCH), to me that means the toolbar is working as expected.
If you're replacing the entire DOM and want the toolbar to be supported, you may need to tell htmx to not swap that part.

Oh, I was not aware about 'UPDATE_ON_FETCH': True, that does exactly what I wanted. Thanks for your time :)
I still have a bug that when I every other htmx request, the toolbar becomes frozen (clicking does not do anything) and after doing another htmx request it works again (clicking on e.g the SQL button opens the sql view). But for that I guess I need to make some small reproducible example.

Oh, I was not aware about 'UPDATE_ON_FETCH': True, that does exactly what I wanted. Thanks for your time :)
I still have a bug that when I every other htmx request, the toolbar becomes frozen (clicking does not do anything) and after doing another htmx request it works again (clicking on e.g the SQL button opens the sql view). But for that I guess I need to make some small reproducible example.

For anyone who comes across this, having `'INSERT_BEFORE': '', is not good, mixes up the whole html structure. I had importmaps that stopped working and all my  content was moved into the  content. Only use  or , but it now flickers again for me when I load a new page.

authors: thacoon tim-schilling

repo: jazzband/django-debug-toolbar


text:
Modern Django support

Is this project still being supported? if not, could you please add me as a collaborator? otherwise, i can fork this and create an updated version

Hi there. Indeed I didn't find anytime to maintain this project in anyway.
Since you seem to be willing to take some responsibility, what do you think about moving this project over to jazzband? It is a rather nice approach to give these django projects a more sustainable future.
You would be willing to maintain it in this organisation then. Is this an option for you?
See https://jazzband.co/about/faq

Okay, I'm all signed up!

Hi @panatale1. I have transfered the project over to the jazzband organisation. The jazzband-bot created a checklist that needs to be done before it can be completed: #31
Maybe can you start doing the README updates etc in a pull request? Once this PR is done, and merged, I will add you as maintainer to the repository.
I will take care about the permission tasks in pypi and readthedocs mid next week. I'll set myself a reminder to have this completed until Wednesday.

Hi @gregmuellegger sure thing, I'll get cracking on that checklist!

repo: jazzband/django-superform


text:
Avoid logging anonymous sessions

I have a Django server in aws, and there is a process that pings the index page to check the health status every few seconds. My problem is that this health check fill the user session table with non-releveant data, is there a way to avoid logging the activity of anonymous/not logged users?
Thanks a lot!

This would be a nice addition. Would you be interested in writing this yourself and submitting a PR?

authors: Kailegh blag

repo: jazzband/django-user-sessions


text:
pushNamed not working

In the example, if I change the onPressed method in the MainScreen widget to use pushNamed, Navigator doesn't work.
onPressed: () {
  pushNewScreenWithRouteSettings(
    context,
    settings: RouteSettings(name: '/home'),
    screen: MainScreen2(),
    pageTransitionAnimation:
    PageTransitionAnimation.scaleRotate,
  );
},

to this
onPressed: () {
  Navigator.of(context).pushNamed('/first');
},

but this works
onPressed: () {
  Navigator.of(context).push(
    MaterialPageRoute(builder: (_) => MainScreen2())
  );
},

Am I doing something bad?
Why this is not working?
Thank you very much

In the example, the first PersistentBottomNavBarItem in the _navBarsItems function has no routeAndNavigatorSettings like the other items have. So it should work if you push the button on another tab, or if you add the following to the first item as well:
routeAndNavigatorSettings: RouteAndNavigatorSettings(
  initialRoute: '/',
  routes: {
    '/first': (context) => MainScreen2(),
    '/second': (context) => MainScreen3(),
  },
),

I hope it works for you then :)

For a custom PersistentBottomNavBar, you have to specify your routes in PersistentBottomNavBar.custom like this:
PersistentBottomNavBar.custom(
  ...
  routeAndNavigatorSettings: CustomWidgetRouteAndNavigatorSettings(
    initialRoute: '/',
    routes: {
      '/first': (context) => MainScreen2(),
      '/second': (context) => MainScreen3(),
    },
  ),
...
)

The route settings will apply to every tab in this case. For the custom navbar, the route settings in the PersistentBottomNavBarItem are ignored.

Nice. I really appreciate your help. Thank you


text:
Can not install on windows

Collecting jpegtran-cffi
  Using cached jpegtran-cffi-0.5.2.tar.gz
    Complete output from command python setup.py egg_info:
    _cffi__x7983a02axcdb1023.c
    src\epeg_private.h(5): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
    Traceback (most recent call last):
      File "C:\Python35\lib\distutils\_msvccompiler.py", line 382, in compile
        self.spawn(args)
      File "C:\Python35\lib\distutils\_msvccompiler.py", line 501, in spawn
        return super().spawn(cmd)
      File "C:\Python35\lib\distutils\ccompiler.py", line 909, in spawn
        spawn(cmd, dry_run=self.dry_run)
      File "C:\Python35\lib\distutils\spawn.py", line 38, in spawn
        _spawn_nt(cmd, search_path, dry_run=dry_run)
      File "C:\Python35\lib\distutils\spawn.py", line 81, in _spawn_nt
        "command %r failed with exit status %d" % (cmd, rc))
    distutils.errors.DistutilsExecError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\ffiplatform.py", line 49, in _build
        dist.run_command('build_ext')
      File "C:\Python35\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "e:\soft-activity\api\win_build_env\lib\site-packages\setuptools\command\build_ext.py", line 75, in run
        _build_ext.run(self)
      File "C:\Python35\lib\distutils\command\build_ext.py", line 339, in run
        self.build_extensions()
      File "C:\Python35\lib\distutils\command\build_ext.py", line 448, in build_extensions
        self._build_extensions_serial()
      File "C:\Python35\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
        self.build_extension(ext)
      File "e:\soft-activity\api\win_build_env\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
        _build_ext.build_extension(self, ext)
      File "C:\Python35\lib\distutils\command\build_ext.py", line 533, in build_extension
        depends=ext.depends)
      File "C:\Python35\lib\distutils\_msvccompiler.py", line 384, in compile
        raise CompileError(msg)
    distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-u1k_gd7v\jpegtran-cffi\setup.py", line 5, in <module>
        import jpegtran.lib
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-u1k_gd7v\jpegtran-cffi\jpegtran\__init__.py", line 1, in <module>
        from jpegtran.transform import JPEGImage
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-u1k_gd7v\jpegtran-cffi\jpegtran\transform.py", line 5, in <module>
        import jpegtran.lib as lib
      File "C:\Users\ADMINI~1\AppData\Local\Temp\pip-build-u1k_gd7v\jpegtran-cffi\jpegtran\lib.py", line 39, in <module>
        libraries=["jpeg"])
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\api.py", line 438, in verify
        lib = self.verifier.load_library()
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\verifier.py", line 114, in load_library
        self._compile_module()
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\verifier.py", line 211, in _compile_module
        outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\ffiplatform.py", line 20, in compile
        outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
      File "e:\soft-activity\api\win_build_env\lib\site-packages\cffi\ffiplatform.py", line 56, in _build
        raise VerificationError('%s: %s' % (e.__class__.__name__, e))
    cffi.error.VerificationError: CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ADMINI~1
\AppData\Local\Temp\pip-build-m0pmhtw8\jpegtran-cffi\

Looks like the unistd.h header file is missing on Windows :/ I currently don't have a Windows machine with a development environment at my disposal, so it's probably going to take a while before I can tackle this issue.
If you know C, you could modify the code to see if any of the approaches discussed in this SO thread works and create a PR.

I removed including unistd.h and it works. It generate thumbnails. Can it affect somehow later?

Wow, you're right. The tests run flawlessly as well. Seems like I was a little too eager with the includes in t his case, thank you for finding that out!

Is there a release coming that includes this fix?

authors: jbaiter kosmos342 zwn

repo: jbaiter/jpegtran-cffi


text:
Can't schedule io_scheduler in generator function

That'd be extremely useful!

Could you add an example here of exactly what you are looking for? I think I understand but always good to clarify with a code snippet!

Of course :smile:
https://gist.github.com/niansa/1cd2b593471a377bf7b3a54c10039606

Seems like you are looking for something like this?

https://github.com/lewissbaker/cppcoro#async_generatort

I haven't added support to the coro::generator<T> to support anything other than basic co_yield yet, so its probably a pretty good uplift to get this implemented.  Give me some time to think on this one, but based on what you're doing this is a fairly similar example of the server handling a recv and then send back: https://github.com/jbaldwin/scopuli/blob/327664f3fc23b3147fce5dfa885c1dd55007f9f0/src/scopuli.cpp#L108
Can you compose your send function in a similar way as this example or similarly?

thanks a lot!

authors: jbaldwin niansa

repo: jbaldwin/libcoro


text:
Allow extensions to be defined in Rust

Since mylang's evaluator is written in Rust we could allow extensions to be written in Rust rather than C?
Probably worth working out how mylang would load mylang functions/values first.

What do we think?

Since mylang aims to provide JIT and AOT compilation as well, how do we propose such extensions would interact with a compiled mylang program? If we consume (possibly dynamic) libraries for our extension mechanism we could make those directly available but we would likely need less glue in the compiled world - in the ideal case, a (compiled) mylang program should be able to call into a function from a dynamic library with no overhead, but this differs from the case for the interpreter / evaluator.
Unless it doesn't; which is to say that we require extensions to be provides as a pure C-compatible (or Rust-compatible) DSO plus some "definition" (equivalent to the C header) that allows the mylang interpreter to load those functions and call them, and allows the mylang compiler to perform type checking and other useful checks, before emitting code that simply relies on the undefined symbol to be linked in or loaded as normal in a C program.

Why does README mention JIT if based on this issue JIT is not a thing?

JIT will be added in the fullness of time.

Closed in error

authors: Zireael07 ajbennieston jbcoe

repo: jbcoe/mylang


text:
URL content ingestion when not needed

If the slack thread has something with a URL, the code seems to scrape the page and tries to insert it into the API call. This can blow out the context window.

Fixed incidentally in another branch

repo: jbdamask/wkid-smaaht


text:
SocketTimeOut with dovecot IMAP server

Hi
SMSBackup+ version : 1.5.10
Repository : F-Droid
When I try to save or restore SMS on my IMAP server (TLS enabled with a Let'sEncrypt certificate on port 993) the process is stuck on identification.
Log on SMSBackup+ :
29-09 20:03 Sauvegarde demandée (manuel)
29-09 20:03 Démarrage de la sauvegarde (MANUAL)
29-09 20:03 Sauvegarde en cours (25 SMS, 1 MMS, 4 appels)
29-09 20:03 Utiliser la configuration BackupConfig{imap=BackupImapStore{uri=imap+tls://PLAIN:XXXXXXXXXXXXXXXXXXXX@mail.xxxxxxxx.org:993}, skip=false, currentTry=0, maxItemsPerSync=-1, groupToBackup=ContactGroup{_id=-1, type=EVERYBODY}, backupType=MANUAL, debug=true, typesToBackup=[SMS, MMS, CALLLOG]}
29-09 20:04 Erreur générale : Unable to connect (exception: com.fsck.k9.mail.MessagingException: Unable to connect, underlying=java.net.SocketTimeoutException)
29-09 20:04 BackupState{currentSyncedItems=0, itemsToSync=0, backupType=MANUAL, exception=com.fsck.k9.mail.MessagingException: Unable to connect, state =ERROR}
29-09 20:04 Sauvegarde effectuée
And then on the server side
Log on IMAP server :
Sep 29 20:04:58 server_1 dovecot: imap-login: Disconnected (no auth attempts in 60 secs): user=<>, rip=176.183.xxx.xxx, lip=94.23.xxx.xxx, TLS handshaking: Disconnected, session=

Can you try again with the latest beta? (from https://github.com/jberkel/sms-backup-plus/releases)

Hi
The problem is still there.
This time the local sms_backup_plus.log is empty
On IMAP server :
Nov  8 19:14:27 dovecot: imap-login: Disconnected (no auth attempts in 60 secs): user=<>, rip=176.xx.xx.xx, lip=94.xx.xx.xx, TLS handshaking: Disconnected, session=<0rVpHM5AWgCwt2p5>

There are some newer betas you can try, but it looks like a normal network problem

Thanks I'll try one

@llebegue Is this still a problem for you?
If it is still a problem, some things to consider.
As jberkel mentioned, this was probably a network issue, as both ends see the other as having disappeared.
Does this happen when you're connected via WiFi, or UMTS (mobile data), or both?
Do you have any kind of "firewall" installed on your phone?
Is it rooted?

It looks OK with the latest version downloaded from Google store.
Thanks
PS : I made a donation ;-)

Thankyou!

authors: jberkel kurahaupo llebegue

repo: jberkel/sms-backup-plus


text:
Workouts: View Previous Workout Performance in Current Workout

Add the ability to view your performance of an exercise in your previous workout (e.g. "315 x 3 reps on 1/2/2016"). If this is the first time performing this workout then we should probably also consider falling back to displaying the previous performance of that exercise as part of ANY program, not just the current one.

This only works within the same program. Ideally when starting a new program you would be able to see the previous performance of an exercise, regardless of what program it was in, so you have an idea on the starting weight to use.

repo: jbload/Muscularity


text:
Move all imports to the top

Just wondering if it would be nice to add a feature where it moves all imports to the top and deduplicates them?

PS very useful package!

I think that could be a useful feature in some circumstances. But, in others it would be a problem. For example, I use this primarily to join my dissertation chapters into one document before conversion to PDF. What I need (and wrote) is something that elides certain cell types. I'll release that code as a separate repo soon. I'll keep this open as a reminder to ping you when I do.
Your idea would be a good contribution to that library!

authors: ghandic jbn

repo: jbn/nbmerge


text:
JBMETA-425 Merge ejb method interface enum in ejb3 subsystem and meta…

…data-ejb
https://issues.redhat.com/browse/JBMETA-425

Thanks, @chengfang

authors: bstansberry chengfang

repo: jboss/metadata


text:
Cache timer doesn't seem to update when a commit is pushed

The default option is 1 day or until the next commit, but I can't get it to update when a commit is pushed. Changing the option or setting it to a lower setting works for now, but is there anything you can recommend to solve this?

Sorry I didn't realize that the hooks had to be installed for it to update.
Possibly showing a warning or putting it into the guide would keep this from popping up again.

Great :)
http://redmine-git-hosting.io/get_started/#step-9-finish-installation---configuration

authors: TakSuyu n-rodriguez


text:
Need more description how to run it

Hi!
I want to use youtube-audio-dl, but I can't.
I try
git clone https://github.com/jcalazan/youtube-audio-dl.git
pip install -U -r requirements.txt
./manage.py runserver
But I got this error:
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 399, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 261, in fetch_command
commands = get_commands()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 54, in getattr
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 132, in init
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'youtubeadl.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named settings
Maybe can you help to solve it?

Hey sorry, didn't put much info as I plan to rewrite it (current code is ugly, wrote it on a weekend).
The issue is because I separated the settings file.  Simply do ./manage.py runserver --settings=settings.local

Thank you!!!!
Now ./manage.py runserver --settings=settings.local works perfect.
I try to create database with ./manage.py syncdb --settings=settings.local
but I get an error.

Hey aspats,
What's the error message during syncdb? You'll probably also need to run migrate (South), though syncdb should work fine.

jcalazan,
Sorry, that I reply later. Now I solved everything it is working :). Just I didn't saw that you was using postresql. So I installed postgresql. After that I had some doubts, but I figure out. Than you @jcalazan !!!

Np man, glad you got it running! :)

authors: aspats jcalazan

repo: jcalazan/youtube-audio-dl


text:
Wearable thermometer

Objective
Our body temperature gives us a good indication of how well we are. It is also a sign of stress and many other things and I'm curious about the data. With a shortage of thermometers likely due to CONVID19 I'm curious if I can build a wearable thermometer to allow me to get some sample data. Other wearable devices like my Apple Watch provide me with data such as exercise (or lack of in my case) and heart rate but not my body temperature. If I get something that provides reliable data I thought it would be useful to keep to monitor when if I fall ill some day.
Examples

I love this idea.  My SleepIQ bed gives me heart Rate and Breathing rate data points and I can see elevations in heart rate days before actually getting symptomatic sick.

Prototype
@CCOSTAN, I didn't want to turn into a cyborg and don't plan to use this anywhere other than my home so thought I'd keep it simple. I've ordered a stretch fabric armband which I plan to add an Aqara temperature sensor too. I'll tear the sensor down outside of its case to allow closer contact to the body surface. I should have a working prototype tomorrow. Looking forward to seeing the results. With regards to heart rate, I have been considering seeing if my Wahoo heart rate monitor publishes the heart rate over BLE. If it does this would be neat for the maker scene and a great companion to the body temperature sensor.

Research

Wearable Continuous Temperature Monitor
Bluetooth heart rate
Heartbeat monitoring
IoT Thermometer

Aqara testing
Not sure it makes the grade. The thing I found with the Aqara temperature sensor is that it isn't easy to have it in contact with the skin without using a lot of pressure due to how it is placed on the PCB board.
So now I need to go back to the drawing board and possibly even up the cyborg state a little. But even this simple test has got me thinking about IoT in healthcare and how beneficial making data available realtime is. Particularly now with COVID19 in minimising cross infection and improving medical professional productivity by having data readily available.

Bluetooth temperature band
sudo bluetoothctl
scan on
[NEW] Device C0:26:DE:00:00:D4 TAIDOC TD1035
scan off
pair C0:26:DE:00:00:D4
connect C0:26:DE:00:00:D4
menu gatt
list-attributes

Primary Service
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0019
	00001523-1212-efde-1523-785feabcd123
	Vendor specific
Characteristic
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0019/char001a
	00001524-1212-efde-1523-785feabcd123
	Vendor specific
Descriptor
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0019/char001a/desc001c
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
Primary Service
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0014
	0000180a-0000-1000-8000-00805f9b34fb
	Device Information
Characteristic
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0014/char0017
	00002a26-0000-1000-8000-00805f9b34fb
	Firmware Revision String
Characteristic
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0014/char0015
	00002a24-0000-1000-8000-00805f9b34fb
	Model Number String
Primary Service
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service000c
	00001809-0000-1000-8000-00805f9b34fb
	Health Thermometer
Characteristic
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service000c/char000d
	00002a1c-0000-1000-8000-00805f9b34fb
	Temperature Measurement
Descriptor
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service000c/char000d/desc000f
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
Primary Service
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0008
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
Characteristic
	/org/bluez/hci0/dev_C0_26_DE_00_00_D4/service0008/char0009
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed

Ant+ bluetooth heart rate sensor
git clone https://github.com/Tigge/openant.git
cd openant
sudo python setup.py install
cd examples
python heart_rate_monitor.py
Useful sites

Openant
Developer health
Developer health repo
Arduino ANT
Zwift ant+
Heart rate on Raspberry Pi
Raspberry Pi heart rate bike light
Heart bear raspberry
Pulse measuring
Patient monitor

authors: CCOSTAN jcallaghan

repo: jcallaghan/home-assistant-config


text:
giving feedback

when we have an abi that can only add a tag, this sounds more like configuration than tracing.

often programs are compiled from main, and certain weird setup to wasm can be contained there

Even if it was a "current span" abi, it would be weird to brand it as http-wasm

tracing value is pliability and also it was discussed out of scope for http-wasm, so 2 things troubling.

If this was about tracing vs key/value logging, why pin it to http-wasm, and why not define a reporter ABI instead?

then you can have a path from compiling something like a slimmed zipkin-go to it
wasi already has functions for RNG and nanotime, it just needs a reporter/handler/etc

while a neat experiment, I really hope this doesn't get anchored into being pushed to http-wasm again, just because envoy's sdk has something similar and this is similar to that.

here are some ideas. however, I really think folks who are in otel etc should likely be hosting code like this eventually not http-wasm as they are entirely separate concerns
If it is too tall an order to think about reporting a span, you could make a "current span" api in a tracing package to toy with, which basically allows a key/value tag but more explicitly going into a span not a log.
the guest library side could have a normal "current span" that with setup code has a stripped down way that can only contribute to an existing one. someone can import that library into http-wasm or anything else.
later, think more through tracing with folks staffed on it, as surely someone can do this. we'd expect things like how AWS lamda works today to eventually reach wasm (e.g. special ENV vars to propagate a parent etc.) and just like lambda that sort of stuff can be setup code.
envoy's sdk is differnet than a general purpose ABI as it has lifecycle and normal SDK assumptions that don't carry through when a library not a product SDK. similar in k8s the scheduler abi is porting a whole SDK so it has different needs and can make different assumptions than a general purpose http handler.
If you disagree, which we might, one way to test the strength of this idea is to pitch it to otel or wasi-http maintainers, and if they would want a separate tracing thing for each wasi-X or not. Maybe I'm way off.
TL;DR; I personally think it is a good idea to have something like this, but a bad idea to anchor it as an http-wasm thing. All the other tracing things out there build on a foundation of some tracing substrate, because they work with other libraries who will have similar concerns.

Thanks for the feedback. This will definitively going to change into something like wazero-tracing or wazero-tracing-enrichment. Originally my use case was about http-wasm but talking to @anuraaga I realized this does not belong to http-wasm realm as the only connection to http-wasm now is the e2e so I will change the name, the module and keep http-wasm as an example or e2e

👍 I'm not sure it would make sense to brand this as wazero either. sounds like you are just making an ABI and it would want to work on other runtimes right? Maybe focus on what it does and not the brand umbrella is a good way to start, as not all projects would want to own generic ABIs

authors: codefromthecrypt jcchavezs

repo: jcchavezs/http-wasm-tracing


text:
Support balance assertion tolerance syntax (~)

Thanks for addressing all the other issues Jonathan.
Updating and continuing on, I see the precision syntax fail:
2013-09-10 balance Assets:US:Vanguard                                   305.205 ~ 0.002 RGAGX

Thanks for the report, I didn't know that syntax.
I usually refer to this document: https://beancount.github.io/docs/beancount_language_syntax.html and it looks like doesn't mention it.
But of course, I'd like this parser to accept any valid beancount syntax, so the ~ precision syntax should be supported.

Great!
Id like to build something and learn some Rust in the process using your parser.

Local tolerance parsing looks like this in bison:```
amount_tolerance:
number_expr currency
{
BUILDY(DECREF($1, $2),
$$.pyobj1, "amount", "OO", $1, $2);
$$.pyobj2 = Py_None;
Py_INCREF(Py_None);
}
| number_expr TILDE number_expr currency
{
BUILDY(DECREF($1, $4),
$$.pyobj1, "amount", "OO", $1, $4);
$$.pyobj2 = $3;
}

I added some text int he docs:
https://docs.google.com/document/d/1wAMVrKIA2qtRGmoVDSUBJGmYZSygUaR0uOMW1GV3YE0/edit#heading=h.5jx4fqseqk64

This is fixed in version 2.1.0

Thank you!  :-)
I now confirm this parser is able to grok my entire gnarly personal Beancount file.

authors: blais jcornaz

repo: jcornaz/beancount-parser

license: Unlicense


text:
Fix up some grammar

I also updated the documentation URLs.
This project really came in handy for a side project of mine, so thank you for the great work!  The solution is particularly elegant, using introspection to support everything.  Excellent job!
Anyway, I noted a few grammatical bits in the README, so I thought it'd help.

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@c0abbfa). Click here to learn what that means.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             develop        #6   +/-   ##
===========================================
  Coverage           ?   100.00%
===========================================
  Files              ?         3
  Lines              ?       149
  Branches           ?         0
===========================================
  Hits               ?       149
  Misses             ?         0
  Partials           ?         0

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 c0abbfa...33998c2. Read the comment docs.

authors: codecov-commenter danielquinn

repo: jcsaaddupuy/python-kodijson

license: WTFPL


text:
Add a way to put attributes to formatting

I have idea for a new feature for jQuery Terminal
The idea is to put JSON into formatting so you can have tittle attribute on normal span or link.
Will be able to integrate it with terminal chat to show date when message was posted, when you hover over username.

New features description:

it get html attributes from JSON
it add them if they are on the list of allowed attributes (security option for untrusted echo)
bare $.terminal.format don't allow attributes (they are ignored)
default terminal option is array: ['title', /^aria-/, 'id', /^data-/]
default terminal option is passed to echo function if not overwriten by calling echo


text:
Add option to skip Jeelib header byte

These changes add an option to skip a default 2 bytes from the Jeelib RF transmission. This enables FSK packets to be transmitted to non Jeelib devices. This effect is achieved by calling rf12_skip_hdr() or alternatively rf12_skip_hdr(2).

These enhancements expose a weakness in the master branch RF69 code not seen when using the RFxConsole branch library. I don't believe this code introduces the problem.

repo: jcw/jeelib

license: unlicense


text:
Filter example

Hi
Can anyone share example for filtering values?
For example for handlebars this give me error (Missing helper: filter):
            {
      "type": "string",
                                "watch": {
                                    "scene": "root.accessories"
                                },                                 "enumSource": [                                     {                                     "source": "scene",                                     "filter": "{{#filter source source property=\"name\"}} 1 {{/filter}}",                                     "title": "{{item}}",                                     "value": "{{item}}"                                 }],                             }
Thank you

+1
"watch" need rework

Anyone there?

authors: Pro100AlexHell dzg reejinbouk

repo: jdorn/json-editor


text:
Credentials are not stored in keychain on iOS 10

It seems that the credentials are not stored or cannot be retrieved from keychain.
The best solution is probably to migrate from the unmaintained SSKeychain to another keychain wrapper.

Same bug with SAMKeychain v1.5.2

Credentials storing works well on iOS devices.
It seems that this is a bug of iOS simulators, so I close the issue.
See the related issue in the SAMKeychain Github repository: https://github.com/soffes/SAMKeychain/issues/149

repo: jdrevet/Withings-SDK-iOS


text:
mise generate

I want to see a new top-level topic for us to store some codegen things for mise.

[ ] mise generate config - currently we have this as mise config generate—should be moved here. Potentially this could also be aliased as mise init.
[ ] mise generate github-actions - generates a github action yml, typical use-case would be to install dependencies and execute a task like mise run test. We can talk about exactly what this should do.
[ ] mise generate dockerfile - generates a dockerfile which will install mise, run mise install, and probably add the shims directory. How it gets the .mise.toml I'm a little unsure of right now though.

closing in favor of #2115

repo: jdx/mise


text:
pipx: support features

pipx has a concept of optional features upon package installation, via pipx install package[feature,…].  This is used, for example, by Harlequin.
To my knowledge, mise has no support for this.  Would it be possible to add it?
As a work-around, for the example of Harlequin, one can install things via pip install harlequin parlequin-postgress etc. instead.

It would be nice to support the --preinstall option also, which allows you to inject additional packages to the environment that aren't explicitly covered by a declared extra. Note: this option can be specified multiple times, also.
This is equivalent to running pipx inject some-tool some-package on an existing tool, but nicer since it does it at install-time.


text:
refactor: converted just tasks in mise tasks.

Resolves #1567

The test worklow now installs the latest release of mise to run the test tasks, which in turn will build and run mise from source.

nice cleanup! 👍

authors: Adirelle jdx


text:
🛑 promotoras kayser is down

In ed35cd5, promotoras kayser (https://www.promotoraskayser.pe) was down:

HTTP code: 0
Response time: 0 ms

Resolved: promotoras kayser is back up in f49cfa7.


text:
Change name button

Hi!
I have a problem, i need to change the name for button
Could help me, please?

You can pass in 'button_text' as a param.

Thanks @zhegwood

@daviddsp hi, another option is to put an html code between the tag:
<download-excel 	class   = "btn btn-default" 	:data   = "json_data" 	:fields = "json_fields" 	name    = "filename.xls">        <i class="glyphicon glyphicon-file"></i>        Download an excel file  </download-excel>

authors: daviddsp jecovier zhegwood

repo: jecovier/vue-json-excel


text:
gulp build does not work for me

building eclint stops with error

[16:39:21] Starting 'scripts'...
node_modules/linez/linez.d.ts(2,25): error TS2307: Cannot find module 'd.ts/linez'.

steps before:

git clone ...
cd eclint
npm install

I'm doing anything wrong or forget something?
FYI: I'll need to locally modify eclint to handle block-comments correctly for me  ... (these with leading space in front of "*" at 2nd line):
/**
 * description
 */

give error on check with settings
indent_style = tab
tab_width = 4

in .editorconfig
many thanks in advance

@nsedat fixed in master branch.

repo: jedmao/eclint


text:
第三方APP消息测试问题 “字段太长,超出数据库字段的长度” 解决方案

版本号：v2.4.5
问题描述：在测试【第三方APP消息测试】企业微信消息发送时报错，提示 “字段太长,超出数据库字段的长度”
截图&代码：
暂无
建议解决方式：
在 jeecg-boot-module-system/target/classes/org/jeecg/modules/system/mapper/xml/SysThirdAccountMapper.xml 文件中
WHERE 条件 中 third_type 字段未指定表名，改为如下：
SELECT third_user_id FROM sys_third_account
INNER JOIN sys_user ON sys_user.id = sys_third_account.sys_user_id
WHERE sys_third_account.third_type = #{thirdType} AND
友情提示（为了提高issue处理效率）：

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

已经改了，马上发布

repo: jeecgboot/jeecg-boot


text:
springcloud无法启动，报错FallbackFactory.class does not exist

版本号：
版本发布 3.2.0
问题描述：
springcloud项目启动报错：
Failed to parse configuration class [org.jeecg.JeecgDemoCloudApplication]; nested exception is java.io.FileNotFoundException: class path resource [feign/hystrix/FallbackFactory.class] cannot be opened because it does not exist
网上查的是：关于java:springbootspringcloud-版本升级带来了对feignhystrix使用的思考，不过我把openfeign降级到2.2.2.RELEASE，还是同样的报错，不知道什么原因导致的
截图&代码：
配置正常gou shan勾上了

报错信息

友情提示（为了提高issue处理效率）：

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

你跑的是原始下载版本还是自己升级的？

你跑的是原始下载版本还是自己升级的？

就是直接pull下来的最新版，跑的时候就报错了

我的hosts信息如下配置，redis、mysql和nacos用的是自己服务器地址，会是下面的原因导致的吗？
121.41.17.120 jeecg-boot-redis
121.41.17.120 jeecg-boot-mysql
121.41.17.120 jeecg-boot-nacos
0.0.0.0 jeecg-boot-gateway
0.0.0.0 jeecg-boot-system
0.0.0.0 jeecg-boot-sentinel
0.0.0.0 jeecg-boot-xxljob
0.0.0.0 jeecg-boot-rabbitmq

nacos中的配置

别人运行没有问题，确认下你项目里哪里用到了这个

你的nacos配置是不是用的老的？

整个项目是新拉下来的，启动就报错了。

你的nacos配置是不是用的老的？

这是我nacos的配置：https://ws28.cn/f/85vizf15q25
我用的是自己的nacos，我记得nacos不需要密码，为啥这里填了密码呢？我nacos的密码不是nacos，会不会是这个原因？

这是我nacos的配置：https://ws28.cn/f/85vkbjiqg2f))

当然有问题，如果密码不对，nacos肯定连不上

修改了密码，也没用，报同样的错
---原始邮件---
发件人: @.>
发送时间: 2022年4月25日(周一) 晚上7:54
收件人: @.>;
抄送: @.@.>;
主题: Re: [jeecgboot/jeecg-boot] springcloud无法启动，报错FallbackFactory.class does not exist (Issue #3632)
当然有问题，如果密码不对，nacos肯定连不上
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

重新拉一下代码，没报错了

authors: hdtopku zhangdaiscott


text:
Submit Checkpoint 35-Modify Readme

Major changes to README.md.

You have to add me as a collaborator for me to be able to merge


text:
Some sticker sets not downloading correctly

All stickers in the set download as empty files (not blank but rather an image file without an image). Funnily enough all anime related. Some region locked some not.
what I've tried that failed. 569; 595; 564; 2462; 683
working ones: 2999; 3000; 3001; 2998; 2746; 2822; 2710; 925; 1917
they don't seem to follow the odd counting by 2's as the other issue. at first i thought it might be to do with how small the id's were but, 925 worked and 2462 failed.

Thanks for reporting, LINE store changes the scheme of the stickers' URL sometimes, and if that happens, I have to change some codes to cope with those changes.
From what I found so far, the issue seems to be:
This link will work
https://stickershop.line-scdn.net/stickershop/v1/sticker/4153/android/sticker.png
But this link wouldn't (I used this scheme in my code)
https://stickershop.line-scdn.net/stickershop/v1/sticker/4153/IOS/sticker@2x.png

authors: Ironkeroro jeffshee

repo: jeffshee/LINEStickerKeyboard


text:
Requesting for new effect

Sir, Please add circular beat bouncing with gradient effect. Thanks.

Hi. Thanks for your request 👍😊
Could you show me an example (a YouTube video will do) to clarify what kind of effect you mean by "circular beat bouncing with gradient"? A clear idea will make things easier to implement. 😀

I mean similar like that. Gradient and bouncing effect. Neon glow effect can be neglected. 😀 Thanks sir.
https://www.youtube.com/watch?v=esP3HWXwKm4

Hmm, while I didn't have time to show the demo on README, the gradient modifier is actually there. So adding a gradient color to the shape shouldn't be a problem.
The bouncing effect you mentioned could be achieved by using beat modifier as well.
I might do some example later if I got time 😃

Thanks for answering sir. 😊

I mean this effect with beating like below:
And then can be changed with adaptive color programmatically.
I mean combination of above and below effect. Just add beating to above.In new version , I can't add beating with image view in center.Thanks so much.

Hi
Yes, you can use beat and blend together, it depends how you put everything together.
Here are some examples using the latest master build.

Example 1

Beat(
    // Compose multiple Painters before pass it to Beat, this way you can add beat effect for all painters
    Compose(
        // Blend your shape with a gradient
        Blend(
            FftCLine().apply { paint.strokeWidth = 8f;paint.strokeCap = Paint.Cap.ROUND },
            Gradient(
                preset = Gradient.RADIAL,
                // You can change your color here, e.g. inner and outer color
                color1 = Color.rgb(153, 51, 255),
                color2 = Color.rgb(255, 0, 127)
            )
        ),
        // Your icon here
        Icon(circleBitmap)
    )
)

Example 2

Beat(
    Compose(
        Blend(
            Rotate(
                FftCWave(
                    startHz = 200, endHz = 1000, mirror = true, radiusR = .3f, ampR = .65f
                ).apply { paint.style = Paint.Style.STROKE; paint.strokeWidth = 4f }
                , rpm = 0f, offset = 90f
            ),
            Gradient(
                preset = Gradient.SWEEP,
                color1 = Color.rgb(153, 51, 255),
                color2 = Color.rgb(255, 0, 127)
            )
        ),
        Blend(
            Rotate(
                FftCWave(startHz = 200, endHz = 1200, mirror = true, radiusR = .3f),
                rpm = 0f, offset = 90f
            ),
            Gradient(
                preset = Gradient.SWEEP, hsv = true
            )
        ),
        Icon(circleBitmap)
     )
)

You will have to change the codes to match your usage.

Wow, awesome , thanks so much I'll try with new effects.  😊 😍

authors: Thet-Tun-Aung jeffshee

repo: jeffshee/NextGenVisualizer


text:
Error on Import

hi i'm having an error at import.
whenever i try to import weather it gives me a error in "selenium.webdriver"  saying the following:

Traceback (most recent call last):
File "", line 1, in
File "/home/g#####/.local/lib/python3.10/site-packages/weather/init.py", line 13, in
from selenium.webdriver import *
AttributeError: module 'selenium.webdriver' has no attribute 'Opera'

i'm using linux and have the opera browser installed, does it have something to do with that ?

I did not have that issue when i tested this, but it apparently can happen with selenium. I will try to fix it in the next update

authors: gabriel-fresan jenca-adam

repo: jenca-adam/weather


text:
Add new scoring for the release-drafter probe.

After Merging: https://github.com/jenkins-infra/plugin-health-scoring/pull/453, We need to introduce the new scoring for the release-drafter probe.

This is the one that needs to be simplified a lot. Its maintenance is the worse.

This is the one that needs to be simplified a lot. Its maintenance is the worst.

@alecharp Can you tell what kind of improvements is needed in this scoring ? First thing i noted here the naming is not proper the name is PluginMaintenanceScoring but the key used is repository-configuration which is not making any sense

Not as simple. The probe need to be including in an existing or a new scoring. Yes. We need to see how we can intelligently group probes so that their combined result is meaningful.

@alecharp we can make separate group for the probes that work for the quality of the plugin.https://github.com/jenkins-infra/plugin-health-scoring/issues/243 we can add in this issue

repo: jenkins-infra/plugin-health-scoring


text:
adding crwdasarja as developer to crowdstrike-security plugin

Link to GitHub repository

https://github.com/jenkinsci/crowdstrike-security-plugin
Adding @asarja-crwd as a developer/contributor to crowdstrike security plugin.
When modifying release permission
List the GitHub usernames of the users who should have commit permissions below:

@crwd-etatarevic
@crwdharshitac

This is needed in order to cut releases of the plugin or component.
If you are modifying the release permission of your plugin or component, fill out the following checklist:

### Release permission checklist (for submitters)
- [x] The usernames of the users added to the "developers" section in the .yml file are the same the users use to log in to [accounts.jenkins.io](https://accounts.jenkins.io/).
- [x] All users added have logged in to [Artifactory](https://repo.jenkins-ci.org/) and [Jira](https://issues.jenkins.io/) once.
- [x] I have mentioned an [existing team member](https://github.com/orgs/jenkinsci/teams) of the plugin or component team to approve this request.

Removal and addition is approved @jenkins-infra-bot

authors: asarja-crwd crwd-etatarevic


text:
chore: bdd-spring-1572607446 to 0.0.1

chore: Promote bdd-spring-1572607446 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:
refactor: enable codeql alerts

/cc @ankitm123

/ok-to-test
/lgtm

/test lint
timeout exceeded.

/test lint

repo: jenkins-x-plugins/jx-project


text:
/var/run/docker.sock is broken

Jenkins and plugins versions report
Can't, NDA.
What Operating System are you using (both controller, and any agents involved in the problem)?
Linux (Ubuntu)
Reproduction steps
Setup Docker cloud in Jenkins.
No special configuration needed.
Expected Results
Jenkins can access Docker via unix socket, just as the elder gods intended.
Actual Results
Jenkins can't access Docker via unix socket, elder gods ain't happy.
Anything else?
First screenshot — 5.2.2-1.1, broken.
Second screen shot — 5.2.1-1.1, works.

Are you interested in contributing a fix?
No response

I guess there is nothing that could be fixed in this plugin since it only provides the dependencies. Maybe there was a (breaking) change in the latest HttpComponents release? We should forwarded this issue to the Docker plugin to validate it and potentially find a fix.

authors: Bergstein strangelookingnerd


text:
Shim for install-plugins -> plugin-installation-manager-tool

This replaces the contents of install-plugins.sh to use plugin-manager-installation-tool internally. Requires an update to plugin-installation-manager-tool 2.5.0 (#1071 does this as well).

Do we want to expose the options for proxy stuff via environment variables?

Is this ok to merge? Any items that people want to see?
@oleg-nenashev @MarkEWaite

Is this ok to merge? Any items that people want to see?
@oleg-nenashev @MarkEWaite

Y.R. Sudhakar has proposed a first draft of a plugin installation manager section for the "Managing Plugins" page of the Jenkins Handbook on https://www.jenkins.io.  I'd prefer that we have that documentation available and a blog post to announce the change before this is merged.

Should updating the README - Usage section be included as part of this change or is a issue required?

I don't know if this will be merged or not, so whatever others decide.

Hello there ! What is the status of this one? That would be really useful but might need a check during the paltform SIG meeting as it might impact end users (but for their own good).

Should be fine once conflicts are resolved I think

Should be fine once conflicts are resolved I think

Shouldn't we communicate on this as it might slightly change end users build behaviors?

Should be fine once conflicts are resolved I think

Shouldn't we communicate on this as it might slightly change end users build behaviors?

could do, do you mean in the README or something else?

Alternative: https://github.com/jenkinsci/docker/pull/1408

authors: MarkEWaite dduportal ianwilliams1 slide timja

repo: jenkinsci/docker


text:
Different error handling needed when Job is triggered by user or by Timer if no file is provided

Version report
Jenkins and plugins versions report:
Jenkins: 2.277.4
OS: Linux - 4.9.0-15-amd64
---
external-monitor-job:1.7
ace-editor:1.1
matrix-project:1.18
antisamy-markup-formatter:2.1
workflow-step-api:2.23
bootstrap4-api:4.6.0-3
PrioritySorter:4.0.0
analysis-model-api:10.2.5
authentication-tokens:1.4
workflow-multibranch:2.23
display-url-api:2.3.4
timestamper:1.13
command-launcher:1.6
build-monitor-plugin:1.12+build.201809061734
script-security:1.76
lockable-resources:2.10
resource-disposer:0.15
ssh-credentials:1.18.1
htmlpublisher:1.25
role-strategy:3.1.1
data-tables-api:1.10.23-3
git-server:1.9
build-timeout:1.20
pipeline-stage-view:2.19
variant:1.4
scm-api:2.6.4
jjwt-api:0.11.2-9.c8b45b8bb173
xunit:3.0.2
workflow-api:2.42
branch-api:2.6.4
cloudbees-folder:6.15
workflow-job:2.40
okhttp-api:3.14.9
claim:2.18.2
pam-auth:1.6
publish-over:0.22
pipeline-rest-api:2.19
pipeline-stage-step:2.5
test-results-analyzer:0.3.5
ssh-slaves:1.31.5
extended-read-permission:3.2
subversion:2.14.1
favorite:2.3.3
xml-job-to-job-dsl:0.1.13
apache-httpcomponents-client-4-api:4.5.13-1.0
git:4.7.1
junit:1.49
jquery3-api:3.6.0-1
pipeline-input-step:2.12
email-ext:2.82
font-awesome-api:5.15.3-2
snakeyaml-api:1.27.0
mapdb-api:1.0.9.0
pipeline-model-definition:1.8.4
structs:1.23
gradle:1.36
pipeline-model-api:1.8.4
workflow-aggregator:2.6
jackson2-api:2.12.3
token-macro:2.15
pubsub-light:1.14
checks-api:1.7.0
git-client:3.7.1
job-dsl:1.77
credentials-binding:1.24
echarts-api:5.1.0-2
workflow-support:3.8
jdk-tool:1.5
workflow-durable-task-step:2.38
popper-api:1.16.1-2
pipeline-stage-tags-metadata:1.8.4
ws-cleanup:0.39
github-api:1.123
windows-slaves:1.8
workflow-cps:2.91
plugin-util-api:2.2.0
credentials:2.4.1
ansicolor:0.7.5
docker-workflow:1.26
dtkit-api:3.0.0
jquery-detached:1.2.1
file-operations:1.11
trilead-api:1.0.13
forensics-api:1.0.0
matrix-auth:2.6.6
plain-credentials:1.7
badge:1.8
workflow-scm-step:2.12
mailer:1.34
pipeline-model-extensions:1.8.4
pipeline-utility-steps:2.7.1
copyartifact:1.46
jobConfigHistory:2.27
handlebars:3.0.8
durable-task:1.36
promoted-builds:3.9.1
docker-commons:1.17
pipeline-graph-analysis:1.10
jquery:1.12.4-1
pipeline-milestone-step:1.3.2
pipeline-github-lib:1.0
javadoc:1.6
bouncycastle-api:2.20
pipeline-build-step:2.13
warnings-ng:9.1.0
ant:1.11
github:1.33.1
workflow-basic-steps:2.23
greenballs:1.15.1
github-branch-source:2.10.4
parameterized-scheduler:1.0
jsch:0.1.55.2
ldap:2.6
text-file-operations:1.3.2
workflow-cps-global-lib:2.19
jenkins-design-language:1.24.6
build-failure-analyzer:2.0.0
publish-over-cifs:0.16
momentjs:1.1.1
file-parameters:99.102.vbc6a133bcbbb

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux, no agents involved

Reproduction steps
pipeline {
  agent any
  parameters {
    stashedFile 'file.zip'
  }
  triggers {
	cron('0 * * * *')
  }
  stages {
    stage('unstash file') {
      steps {
		  cleanWs()
          catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') { //needed when TimeTriggered or by SCM because unstashing fails
    		unstash 'file.zip'
          }
      }
    }
    stage('analyze file')
	{
        environment {
            DIR = "Bin"
        }
        when {
            expression { sh(returnStatus:true, script: '[ -s file.zip ]' ) == 0 } //neeeded when triggered manually because unstashing works, but the file has a size of zero bytes
        }
		stages {
			stage('unpack file') {
				steps {
					unzip zipFile: 'file.zip', dir: "$DIR"
				}
			}
		}
	}
  }
}

Results
Expected result:
I'd expect to do the same error handling, no matter whether the pipeline was started manually or by another trigger
Actual result:
unstashing fails when the pipeline is TimerTriggered or by SCM
unstashing works and the file exists with a size of 0 when triggering the pipeline manually

Will have to look into it when I get a chance. Did you try the withFileParameter step?

Yes, result is the same: when triggered manually without selecting a file, a empty file with accessible within the withFileParameter step. No error is thrown, even with allowNoFile: false

Yes, the behaviour is also inconsistent when using withFileParameter
Manually triggered: an empty file is accessible; no error is thrown, even with allowNoFile: false
TimerTriggered:

using allowNoFile: true: The environment variable specified in the withFileParameter step is not set
using allowNoFile: false: an error is thrown

note: I'm still testing with file-parameters:99.102.vbc6a133bcbbb

I'd like to add to this issue, since it is quite similar. Automatic triggers that don't supply any file can fail when trying to access the parameter by name, through the global env or params variables. A snippet like this:
parameters {
    base64File(
        name: 'MY_JSON',
        description: 'My JSON file'
    )
}

If accessed like this (similar to how you can access other parameters):
myFunc(env.MY_JSON)

will faill with an error ERROR: No parameter named MY_JSON.
One quick solution is to allow a "default" value? Probably supplied with a base64 string (allowing empty would be nice). In our case, we have a job that's triggered automatically by another job, but if triggered manually, the user can supply the OPTIONAL file to update the current environment.
If you want to ask why we are accessing it through env: it's complicated and I unfortunately can't go into much detail.

Also related to #22: you will get a *_FILENAME environment variable if the user via GUI actually selected a file to upload. If they did not, apparently the HTML form is posted as if it were an upload of an empty file with no name—hence the anomalous behavior. We could treat an empty file upload like a missing parameter, but this seems sure to break some legitimate use case.

Allow both kinds of file parameters to specify a default value (empty or some Base64 content) seems like a reasonable improvement that would obviate the need for error handling under the assumption that

it is legitimate to run a build with no specified file (for example on a schedule)
there is no need to differentiate the case that a build was explicitly triggered with a file that happens to match the default (e.g., empty) from the case of a build that did not specify a file

There are several different ways to pass file parameters (at least GUI upload, HTTP POST, CLI, build step) so offering a default value would help minimize the variation and need for documentation regarding missing values.

That seems like a workaround, not a solution.

authors: Angelin01 ValdarXY jglick

repo: jenkinsci/file-parameters-plugin


text:
allow autostart for build configs

This PullRequest allows to have jenkins pipeline jobs automatically started, when they are created by this plugin.
The use case of this feature is, when a jenkins job needs to run a first time to correctly initialize its triggers. e.g. Cron trigger, https://plugins.jenkins.io/generic-webhook-trigger/, ...
If this job never runs, it's trigger config gets never applied, hence it can not be started automatically.
This could now be achieved by adding the following annotation to the BuildConfig.
    jenkins.openshift.io/autostart: "true"

Hi @bakito,
thank you for your contribution. Would you mind sending your PR to the project https://github.com/openshift/jenkins-sync-plugin as this is where we run the downstream CI of this project with additional tests and reviews ?

created the pull request in the other repo: https://github.com/openshift/jenkins-sync-plugin/pull/375

closing this in favour of https://github.com/openshift/jenkins-sync-plugin/pull/375

Thanks @bakito  and thanks for making the changes there.

authors: akram bakito

repo: jenkinsci/openshift-sync-plugin


text:
Removed unintentional background images

This surfaced after #86  / https://github.com/jenkinsci/dark-theme-plugin/issues/4

For icon-workflow-stage it's clear that the background image was not intentional. For icon-git-logo I'm not 100% sure but it seems that the icon-git-logo class is never used so this should be safe to remove.

@timja both double images in the screenshot are because of the icon-workflow-stage class. Removing icon-git-logo is not strictly necessary but I think it's more likely to prevent similar bugs in the future than cause new bugs. See
https://github.com/search?l=&q=git-logo+user%3Ajenkinsci&type=code
https://github.com/search?l=&q=git-logo-icon+user%3Ajenkinsci&type=code
Btw. this bug can be also seen at https://ci.jenkins.io/job/Core/job/jenkins/job/master/

@timja both double images in the screenshot are because of the icon-workflow-stage class. Removing icon-git-logo is not strictly necessary but I think it's more likely to prevent similar bugs in the future than cause new bugs. See
github.com/search?l=&q=git-logo+user%3Ajenkinsci&type=code
github.com/search?l=&q=icon-git-logo+user%3Ajenkinsci&type=code
Btw. this bug can be also seen at ci.jenkins.io/job/Core/job/jenkins/job/master

aware, I just didn't know where it was coming from (https://github.com/search?q=icon-workflow-stage+user%3Ajenkinsci&type=code)

@olamy
also could we get a release soon, there's a few staged fixes.
If you want another person who can maintain this I'm happy to help

@olamy Please can you check and merge this? Though not critical for functionality, it's a really obvious regression.

this bug is very strange, the icon-workflow-stage class impact all the "search.png" icon.
maybe the root cause is here in file ui/src/main/java/com/cloudbees/workflow/ui/view/PluginImpl.java ???
I'm not 100% sure.
 IconSet.icons.addIcon(new Icon("icon-workflow-stage icon-md", "24x24/search.png", Icon.ICON_MEDIUM_STYLE));
maybe we can use this "icon=${h.getIconFilePath}" to set the icon picture. https://github.com/search?q="icon%3D%24{h.getIconFilePath}"+user%3Ajenkinsci&type=code

authors: mmh891113 timja zbynek

repo: jenkinsci/pipeline-stage-view-plugin


text:
Use instance-identity as a plugin rather than a module

Follows up #75. A release would be appreciated for BOM/PCT purposes. CC @kuisathaverat

Thank you!

repo: jenkinsci/sshd-plugin


text:
Anmeldung um 2ten Faktor (TOTP?) erweitern

Describe the solution you'd like
Ich hätte gerne die Möglichkeit, bei der Anmeldung zur WEB-UI zusätzlich einen zweiten Faktor zu aktivieren. Z.B. TOTP.
Describe alternatives you've considered
n/a
Is your feature request related to a problem?
Security enhancement
Additional information
No response

Wofür? Kannst du deinen eigenen Mitbewohnern im Haus nicht vertrauen?
Du verbindest dich ja ausschließlich aus dem eigenen LAN (oder VPN) auf die WebUI.

Meinen Mitbewohnern vertraue ich, aber nicht den Eindringlingen ins LAN, die ich vor Kurzem hatte. Die haben es geschafft, das WLAN zu knacken. War wohl ein älteres nicht so sicheres Gerät. So eine zusätzliche Sicherung könnte dann erschweren, das z.B. der Alarm abgeschaltet wird, o.ä. um physisch einzubrechen.

Wäre dann nicht die richtige Schlussfolgerung das (W) LAN vernünftig abzusichern, statt einzelne Devices?

repo: jens-maus/RaspberryMatic


text:
Able to receive environment variable on the config node (latitude and longitude)

Is your feature request related to a problem? Please describe.
Yes , this is because I would like to automate and simplified my deployment process of the nodered instances , by having an environment variable it will be easier to deploy nodered instances where the remote locations have different latitude and longitude value. Currently im not able to simplified the deployment process since the config nodes only accept number and not env variable hence leading to me manually configure the latitude and longituded from the nodered editor
Describe the solution you'd like
I would like the config node to be able to receive input from environment variable such as ${LATITUDE} or ${LONGITUDE} where the value of the latitude and longitude can be automatically filled by the environment variable and not manually from the nodered flow editor

Feature has been implemented with release 1.20.0.

Hey @jensrossbach , big thanks for the update! Really appreciate the effort. One thing caught my eye though—how about rendering the map on config nodes when env variables are used? Currently, it's just numbers indicating the map. Think it would be a nice touch. What are your thoughts? Thanks!

Rendering the map is not possible when the coordinates are retrieved from environment variables. Therefore it is hidden in that case. The configuration UI runs in the browser in your local environment and the Node-RED instance usually runs on a different machine in different environment. Although there is a possibility to exchange data between runtime and editor, I don't think it's worth the effort for the map. The intention for the map display is mainly to verify that the entered coordinates are correct and therefore it does not make much sense for coordinates coming from environment variables.

After some more thoughts and a little proof of concept, I came to the conclusion that it's not so difficult to achieve a map display also for environment based coordinates. Therefore I will add this with the next patch release.

Map display for coordinates from environment variables is now available with release 1.20.1.

Thank you ! @jensrossbach , really appreciate your effort and time for making this library great :)

authors: Anmirazik jensrossbach

repo: jensrossbach/node-red-contrib-chronos


text:
🛑 Wanted Gigs is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Wanted Gigs is back up in 8f59e1e.

repo: jeongsk/upptime


text:
Styles for message deletion/movement toast are broken (again)

Helpful info

Extension version: v3.3
Outlook script version: 20201228001.01

Describe the bug
Styles for the toasts shown when a message is moved/deleted are broken once again. When fixing, need to confirm that styles work with all possible reading pane positions.
Screenshots

This bug is only present when using the reading pane

This bug is only present when using the reading pane


text:
Porting dateToRfc822 Filter to eleventy-plugin-rss

Likely no action here, but wanted to give a heads up that I created the following PR https://github.com/11ty/eleventy-plugin-rss/pull/24 that adds dateToRfc822 (based on the work in this plugin) to eleventy-plugin-rss. Given the lack of activity here, I'm hoping that is ok, but if it isn't, let me know.
Thanks for the work on this plugin!

This would be useful, as I'm trying to play w/ a DIY podcast-building port from a Jekyll example.

authors: backlineint kkgthb

repo: jeremenichelli/eleventy-xml-plugin


text:
False Positive on Tomcat 9.0.38 and upper reporting CVE-2020-13943

False positive on Tomcat 9.0.38+
According to Tomcat, the problem related to CVE-2020-13943 has been solved in version 9.0.38.
See : https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.38
CPE
cpe:2.3:a:apache:tomcat:9.0.38:*:*:*:*:*:*:*
CVE
CVE-2020-13943
Maven
<dependency>
   <groupId>org.apache.tomcat.embed</groupId>
   <artifactId>tomcat-embed-core</artifactId>
   <version>9.0.38</version>
</dependency>

This is an issue within the NVD data, that somehow references v9.0.38 and v9.0.39 as vulnerable since 26th October even though it contains the fix. I've already contacted Apache Security Team to fix the versions but they claim that they don't have influence over the entry and one should contact NVD directly to get it fixed. Even though they are the CNA that requested/assigned the CVE entry in the first place according to Mitre.
I'm not sure to whom to report this misconfiguration.

Thanks for the information

@albuch I once contacted cpe_dictionary@nist.gov via email regarding a similar issue. They solved that issue quite fast.
I also asked them if this is the right contact to choose for these issues. Their answer was:

This alias is the correct place to report issues regarding missing CPE URIs or for external submissions for folks who wish to directly contribute to the Official CPE Dictionary. Additionally, if you believe a CVE has been given an incorrect applicability statement so long as you can provide publicly available information that corroborates the claim we will review and make amendments as time and resources allow.

Do you want to write them an email? Or should I do that?
As far as I understand the wrong entries you mentioned are listed here: https://nvd.nist.gov/vuln/detail/CVE-2020-13943/cpes

@rd-matthias-jambor  I've already contacted nist on that e-mail two days ago, though no response yet.

NIST finally answered:

Good Afternoon,
Thank you for bringing this to our attention. We appreciate community input in order to provide the most accurate and up-to-date information as possible. After reviewing publicly available information, we have made the appropriate modifications and removed the versions of Apache Tomcat that were not vulnerable IAW the vendor advisory. Please allow up to 24 hours for the changes to be reflected on the website and in the data feeds.
V/r,
Common Platform Enumeration Team
cpe_dictionary@nist.gov

OK, good news !

authors: albuch ghusta rd-matthias-jambor

repo: jeremylong/DependencyCheck