text:
Feedings total amount

Hello,
Thank you for this great integration!
Is it possible to extract the total feeding amount into a sensor directly from the Babybuddy API?

Do you mean the total amount per day? 24 hour period? Something else?

I should have been more precise. I was thinking the total amount in a 24-hour period.

Have you looked at the Statistics platform? Specifically, the 'total' attribute?

Gotcha, makes sense.
We could query API with specific lookback. Docs say date, so we just need to check if it would accept a datetime.

That would be great! I guess this would be the same with other totals (diapers, sleep etc.?)

I made some progress on this. If i call the feedings endpoint, it returns all the feedings recorded. I'm then using node red to filter this and create a sensor for the total amount and the number of bottles consumed.
Here is the flow:
[{"id":"7be2b9f2d4976dbd","type":"http request","z":"35c0e2ebaea0e359","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":1530,"y":180,"wires":[["c06039fdbb1ffe0d"]]},{"id":"4e1076f69e2f3ead","type":"function","z":"35c0e2ebaea0e359","name":"","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://192.168.0.242:8800/api/feedings/?child=2&end_min=\"+date;\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url //\"http://192.168.0.242:8800/api/feedings/?end_min=2022-04-11\";\nmsg.headers['Authorization'] = 'Token replace_with_your_token';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: date });\n\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1360,"y":180,"wires":[["7be2b9f2d4976dbd"]]},{"id":"c06039fdbb1ffe0d","type":"function","z":"35c0e2ebaea0e359","name":"","func":"var flasker = msg.payload.count;\nconst arr = msg.payload.results;\n\nconst sum = arr.reduce((accumulator, object) => {\n    return accumulator + object.amount;\n}, 0);\n\nconsole.log(sum);  \n\nmsg.total = sum;\nmsg.flasker = flasker;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1700,"y":180,"wires":[["64c86aadc96ce1f1","39d7d19af7f0a062"]]},{"id":"fb277876f28efae3","type":"ha-entity","z":"35c0e2ebaea0e359","name":"","server":"xxxxxxxxxx","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"marie_mme_total"},{"property":"device_class","value":""},{"property":"icon","value":"mdi:baby-bottle"},{"property":"unit_of_measurement","value":"mL"},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"total","stateType":"msg","attributes":[],"resend":true,"outputLocation":"payload","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"","outputPayloadType":"str","x":2010,"y":180,"wires":[[]]},{"id":"64c86aadc96ce1f1","type":"rbe","z":"35c0e2ebaea0e359","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"total","topi":"topic","x":1850,"y":180,"wires":[["fb277876f28efae3"]]},{"id":"b9d1d93a5614f4cd","type":"ha-entity","z":"35c0e2ebaea0e359","name":"","server":"xxxxxxxxxx","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"marie_mme_antal_flasker"},{"property":"device_class","value":""},{"property":"icon","value":"mdi:baby-bottle"},{"property":"unit_of_measurement","value":"flasker"},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"flasker","stateType":"msg","attributes":[],"resend":true,"outputLocation":"payload","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"","outputPayloadType":"str","x":2010,"y":240,"wires":[[]]},{"id":"39d7d19af7f0a062","type":"rbe","z":"35c0e2ebaea0e359","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"flasker","topi":"topic","x":1850,"y":240,"wires":[["b9d1d93a5614f4cd"]]}]

I wanted to take a moment to add what I've done here for others as well. This is based on what @mrmultifunk posted April 11th (thanks for that!) and updated to use the datetime format. I expanded the functionality to call additional information available in the API, including total pumping amounts (for supply/demand comparison) and wet/solid/total diaper counts. I plan on expanding this as our newborn gets older to call all the Tummy Time entries and calculate daily/weekly Tummy Time durations. We use a lovelace dashboard for most of our data entry which goes through NodeRed, and certain entries will trigger their respective API call sequence, as well as a midnight call to reset data for graphing purposes.

[{"id":"34d85a266b7202ed","type":"group","z":"b063717f88e1c168","name":"API Calls for Additional Information","style":{"fill":"#ffdf7f","label":true,"label-position":"n","color":"#000000"},"nodes":["7be2b9f2d4976dbd","4e1076f69e2f3ead","c06039fdbb1ffe0d","42a6e81ca48b8aeb","262367fd8898c30a","8785ea8ec2bf9240","f57b732b6695a10e","34d7bb9cf4d76dd5","d205f3956bef0c57","4340917e5a1efbf4","bbc8f1516475a288","a0b9b966fa6fa789","79f3958a682681e7","a4fc60979263f5ad","77d638dd77557c46","31bf681540ac1e66","280540aa3eaed7c9","3ac998e90fe326d1","9dbd6aa4424a3629","a9eddc05ee43c4f7","6d42974c424ae334","1142e4b31e96f203","2545752378ad9369","6601e9ec4c7223fe","b9461331b029511c","bb2408de26d98c4f","beb9dddb4d2fb42f","001e87ed538d72c2","90f2732419094ec2"],"x":2614,"y":179,"w":1032,"h":482},{"id":"7be2b9f2d4976dbd","type":"http request","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":3030,"y":260,"wires":[["c06039fdbb1ffe0d"]]},{"id":"4e1076f69e2f3ead","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://10.0.1.25:8888/api/feedings/?end_min=\" + date + \"T00:00:00\";\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token 07cad935ec79e68b7011a671a39a4f3094f99cd4';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \" + date });\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2860,"y":260,"wires":[["7be2b9f2d4976dbd"]]},{"id":"c06039fdbb1ffe0d","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Create sum from returned array","func":"var flasker = msg.payload.count;\nconst arr = msg.payload.results;\n\nconst sum = arr.reduce((accumulator, object) => {\n    return accumulator + object.amount;\n}, 0);\n\nconsole.log(sum);  \n\nmsg.total = sum;\nmsg.flasker = flasker;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Amount: \"+sum+\" mL\"+\", in \"+flasker+\" bottles.\" });\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3250,"y":260,"wires":[["42a6e81ca48b8aeb"]]},{"id":"42a6e81ca48b8aeb","type":"ha-sensor","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Daily Feeding Total","entityConfig":"2a1726fec0915452","version":0,"state":"total","stateType":"msg","attributes":[{"property":"Daily Bottles","value":"flasker","valueType":"msg"}],"inputOverride":"allow","outputProperties":[],"x":3510,"y":260,"wires":[[]]},{"id":"262367fd8898c30a","type":"http request","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":3030,"y":380,"wires":[["f57b732b6695a10e"]]},{"id":"8785ea8ec2bf9240","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://10.0.1.25:8888/api/pumping/?date_min=\" + date + \"T00:00:00\";\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token 07cad935ec79e68b7011a671a39a4f3094f99cd4';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \" + date });\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2860,"y":380,"wires":[["262367fd8898c30a"]]},{"id":"f57b732b6695a10e","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Create sum from returned array","func":"var flasker = msg.payload.count;\nconst arr = msg.payload.results;\n\nconst sum = arr.reduce((accumulator, object) => {\n    return accumulator + object.amount;\n}, 0);\n\nconsole.log(sum);  \n\nmsg.total = sum;\nmsg.flasker = flasker;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Amount: \"+sum+\" mL\"+\". Pumped \"+flasker+\" times.\" });\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3250,"y":380,"wires":[["34d7bb9cf4d76dd5"]]},{"id":"34d7bb9cf4d76dd5","type":"ha-sensor","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Daily Pumping Total","entityConfig":"9b93c096f3eba640","version":0,"state":"total","stateType":"msg","attributes":[{"property":"Times Pumped","value":"flasker","valueType":"msg"}],"inputOverride":"allow","outputProperties":[],"x":3520,"y":380,"wires":[[]]},{"id":"d205f3956bef0c57","type":"comment","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Feedings","info":"","x":2700,"y":220,"wires":[]},{"id":"4340917e5a1efbf4","type":"comment","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Pumpings","info":"","x":2700,"y":340,"wires":[]},{"id":"bbc8f1516475a288","type":"http request","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":3030,"y":500,"wires":[["79f3958a682681e7"]]},{"id":"a0b9b966fa6fa789","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://10.0.1.25:8888/api/changes/?date_min=\" + date + \"T00:00:00\";\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token 07cad935ec79e68b7011a671a39a4f3094f99cd4';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \" + date });\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2860,"y":500,"wires":[["bbc8f1516475a288"]]},{"id":"79f3958a682681e7","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Create sum from returned array","func":"var count = msg.payload.count;\nconst arr = msg.payload.results;\n\nconsole.log(count);  \n\nmsg.total = count;\nmsg.count = count;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Changes: \"+count});\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3250,"y":500,"wires":[["a4fc60979263f5ad"]]},{"id":"a4fc60979263f5ad","type":"ha-sensor","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Daily Changes Total","entityConfig":"f712f51a98dffcac","version":0,"state":"total","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":3520,"y":500,"wires":[[]]},{"id":"77d638dd77557c46","type":"comment","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Changes","info":"","x":2700,"y":460,"wires":[]},{"id":"31bf681540ac1e66","type":"server-state-changed","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Feedings","server":"efbeb294.51685","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.baby_tengowski_last_feeding","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":2700,"y":260,"wires":[["4e1076f69e2f3ead"]]},{"id":"280540aa3eaed7c9","type":"server-state-changed","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Changes","server":"efbeb294.51685","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.baby_tengowski_last_change","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":2700,"y":560,"wires":[["a0b9b966fa6fa789","a9eddc05ee43c4f7","2545752378ad9369"]]},{"id":"3ac998e90fe326d1","type":"server-state-changed","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Pumpings","server":"efbeb294.51685","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.baby_tengowski_last_pumping","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":2700,"y":380,"wires":[["8785ea8ec2bf9240"]]},{"id":"9dbd6aa4424a3629","type":"http request","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":3030,"y":560,"wires":[["6d42974c424ae334"]]},{"id":"a9eddc05ee43c4f7","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://10.0.1.25:8888/api/changes/?date_min=\" + date + \"T00:00:00\" + \"&wet=True\";\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token 07cad935ec79e68b7011a671a39a4f3094f99cd4';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \" + date });\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2860,"y":560,"wires":[["9dbd6aa4424a3629"]]},{"id":"6d42974c424ae334","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Create sum from returned array","func":"var count = msg.payload.count;\nconst arr = msg.payload.results;\n\nconsole.log(count);  \n\nmsg.total = count;\nmsg.count = count;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Changes: \"+count});\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3250,"y":560,"wires":[["b9461331b029511c"]]},{"id":"1142e4b31e96f203","type":"http request","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":3030,"y":620,"wires":[["6601e9ec4c7223fe"]]},{"id":"2545752378ad9369","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://10.0.1.25:8888/api/changes/?date_min=\" + date + \"T00:00:00\" + \"&solid=True\";\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token 07cad935ec79e68b7011a671a39a4f3094f99cd4';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \" + date });\n\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2860,"y":620,"wires":[["1142e4b31e96f203"]]},{"id":"6601e9ec4c7223fe","type":"function","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Create sum from returned array","func":"var count = msg.payload.count;\nconst arr = msg.payload.results;\n\nconsole.log(count);  \n\nmsg.total = count;\nmsg.count = count;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Changes: \"+count});\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":3250,"y":620,"wires":[["bb2408de26d98c4f"]]},{"id":"b9461331b029511c","type":"ha-sensor","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Daily Wet Diapers","entityConfig":"8995f25bc509b7d9","version":0,"state":"total","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":3510,"y":560,"wires":[[]]},{"id":"bb2408de26d98c4f","type":"ha-sensor","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"Daily Solid Diapers","entityConfig":"5b0f1e35b743284b","version":0,"state":"total","stateType":"msg","attributes":[],"inputOverride":"allow","outputProperties":[],"x":3510,"y":620,"wires":[[]]},{"id":"beb9dddb4d2fb42f","type":"link in","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"link in 22","links":["f8452d0462df8199"],"x":2775,"y":220,"wires":[["4e1076f69e2f3ead"]]},{"id":"001e87ed538d72c2","type":"link in","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"link in 23","links":["f8452d0462df8199"],"x":2775,"y":340,"wires":[["8785ea8ec2bf9240"]]},{"id":"90f2732419094ec2","type":"link in","z":"b063717f88e1c168","g":"34d85a266b7202ed","name":"link in 24","links":["f8452d0462df8199"],"x":2755,"y":560,"wires":[["a0b9b966fa6fa789","a9eddc05ee43c4f7","2545752378ad9369"]]},{"id":"2a1726fec0915452","type":"ha-entity-config","server":"efbeb294.51685","deviceConfig":"","name":"Total Daily Feeding Amount","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Total Daily Feeding Amount"},{"property":"icon","value":"mdi:baby-bottle-outline"},{"property":"entity_category","value":""},{"property":"device_class","value":"volume"},{"property":"unit_of_measurement","value":"mL"},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"9b93c096f3eba640","type":"ha-entity-config","server":"efbeb294.51685","deviceConfig":"","name":"Total Daily Pumping Amount","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Total Daily Pumping Amount"},{"property":"icon","value":"mdi:mother-nurse"},{"property":"entity_category","value":""},{"property":"device_class","value":"volume"},{"property":"unit_of_measurement","value":"mL"},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"f712f51a98dffcac","type":"ha-entity-config","server":"efbeb294.51685","deviceConfig":"","name":"Total Daily Changes","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Total Daily Changes"},{"property":"icon","value":"mdi:emoticon-poop"},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"efbeb294.51685","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"8995f25bc509b7d9","type":"ha-entity-config","server":"efbeb294.51685","deviceConfig":"","name":"Daily Wet Diapers","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Wet Diapers Today"},{"property":"icon","value":"mdi:emoticon-poop"},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false},{"id":"5b0f1e35b743284b","type":"ha-entity-config","server":"efbeb294.51685","deviceConfig":"","name":"Daily Solid Diapers","version":"6","entityType":"sensor","haConfig":[{"property":"name","value":"Solid Diapers Today"},{"property":"icon","value":"mdi:emoticon-poop"},{"property":"entity_category","value":""},{"property":"device_class","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""}],"resend":false,"debugEnabled":false}]

I made some progress on this. If i call the feedings endpoint, it returns all the feedings recorded. I'm then using node red to filter this and create a sensor for the total amount and the number of bottles consumed.
Here is the flow: [{"id":"7be2b9f2d4976dbd","type":"http request","z":"35c0e2ebaea0e359","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":1410,"y":180,"wires":[["c06039fdbb1ffe0d"]]},{"id":"4e1076f69e2f3ead","type":"function","z":"35c0e2ebaea0e359","name":"API call","func":"var today = new Date();\nvar date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate();\nvar url = \"http://192.168.0.242:8800/api/feedings/?child=2&end_min=\"+date;\n\nmsg.headers = {}\nmsg.method = \"GET\"\nmsg.url = url \nmsg.headers['Authorization'] = 'Token replace_with_your_token';\n\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Date for API call: \"+date });\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1240,"y":180,"wires":[["7be2b9f2d4976dbd"]]},{"id":"c06039fdbb1ffe0d","type":"function","z":"35c0e2ebaea0e359","name":"Create sum from returned array","func":"var flasker = msg.payload.count;\nconst arr = msg.payload.results;\n\nconst sum = arr.reduce((accumulator, object) => {\n return accumulator + object.amount;\n}, 0);\n\nconsole.log(sum); \n\nmsg.total = sum;\nmsg.flasker = flasker;\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Amount: \"+sum+\" mL\"+\", in \"+flasker+\" bottles.\" });\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1630,"y":180,"wires":[["64c86aadc96ce1f1","39d7d19af7f0a062"]]},{"id":"fb277876f28efae3","type":"ha-entity","z":"35c0e2ebaea0e359","name":"","server":"xxxxxxxxxx","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"marie_mme_total"},{"property":"device_class","value":""},{"property":"icon","value":"mdi:baby-bottle"},{"property":"unit_of_measurement","value":"mL"},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"total","stateType":"msg","attributes":[],"resend":true,"outputLocation":"payload","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"","outputPayloadType":"str","x":2010,"y":180,"wires":[[]]},{"id":"64c86aadc96ce1f1","type":"rbe","z":"35c0e2ebaea0e359","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"total","topi":"topic","x":1850,"y":180,"wires":[["fb277876f28efae3"]]},{"id":"b9d1d93a5614f4cd","type":"ha-entity","z":"35c0e2ebaea0e359","name":"","server":"xxxxxxxxxx","version":2,"debugenabled":false,"outputs":1,"entityType":"sensor","config":[{"property":"name","value":"marie_mme_antal_flasker"},{"property":"device_class","value":""},{"property":"icon","value":"mdi:baby-bottle"},{"property":"unit_of_measurement","value":"flasker"},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"state":"flasker","stateType":"msg","attributes":[],"resend":true,"outputLocation":"payload","outputLocationType":"none","inputOverride":"allow","outputOnStateChange":false,"outputPayload":"","outputPayloadType":"str","x":2010,"y":240,"wires":[[]]},{"id":"39d7d19af7f0a062","type":"rbe","z":"35c0e2ebaea0e359","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"flasker","topi":"topic","x":1850,"y":240,"wires":[["b9d1d93a5614f4cd"]]}]

hey, this looks like exactly what I am looking for. Very new to Node Red coding. Mind helping me with a few questions:

What do i enter for this -- "server":"xxxxxxxxxx"
What does the stuff /?child=2&end_min=\ mean? Is this custom to your setup? What do I replace it with?

Thanks!

just found this and want the same. Are ppl using the Node-red solution?

This goes beyond the scope of what I want to do with the integration currently.


text:
mod_websocket chooses the first client subprotocol by default

If a plugin doesn't manually set a subprotocol in its on_connect callback, mod_websocket will just choose the first one provided by the client. This means that unsuspecting plugins may be "agreeing" to speak a subprotocol that they know nothing about. This behavior should be removed.

Fixed in 4f876ee4.

source: gharchive/issue

repo: jchampio/apache-websocket

license_type: permissive

license_source: bigquery


text:
Enabled multi targeted nuget package build

I needed to be able to target .net 4.0. I've added scripts to generate a multi targeted nuget package. Would you be able to upload this to nuget soon?
I did notice that the existing nuget package indicates that the assembly is a net40 assembly while it actually targets net45.

Thanks.
Out of interest are you using OWIN?

No we are not. I have used it in the past but we are a little stuck on net40. If you could let me know when the new package is up, it would be appreciated :)

I've tried to do this but failing hard. I think its missing some nuget references maybe webapi? If I give yo commit rights and make you a co-owner on nuget would you be happy to update packages.config and nuget?

source: gharchive/pull-request

authors: daffers jchannon

license: mit


text:
OpenCL usage with NIN Model not work

My computer is a mac. I've installed cltorch and clnn. I've downloaded NIN model. When I tried h neural_style.lua -style_image examples/inputs/picasso_selfport1907.jpg -content_image examples/inputs/brad_pitt.jpg -output_image profile.png -model_file models/nin_imagenet_conv.caffemodel -proto_file models/train_val.prototxt -gpu 0 -backend clnn -num_iterations 1000 -seed 123 -content_layers relu0,relu3,relu7,relu12 -style_layers relu0,relu3,relu7,relu12 -content_weight 10 -style_weight 1000 -image_size 512 -optimizer adam as readme, i got an error:
stack traceback:
	[C]: in function 'error'
	...s/tianchishao/torch/install/share/lua/5.1/trepl/init.lua:383: in function 'require'
	neural_style.lua:55: in function 'main'
	neural_style.lua:499: in main chunk
	[C]: in function 'dofile'
	...shao/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
	[C]: at 0x010655abc0```

What's wrong? How can I fix it?

Looks like a problem with the clnn import. If you launch an interactive torch session with the th command, can you successfully import cltorch and clnn?

authors: jcjohnson mjhlybmwq

repo: jcjohnson/neural-style


text:
Exchanged 'chalk' for 'colorette' because it's almost 2x faster :)

Instead of upgrading 'chalk' I thought about exchanging for 'colorette' cause it's faster and I saw the code could be easily exchanged.
All tests passed.

LGTM，and I'll fix GitHub pages later.

It's included in 2.3.1 now.

authors: Gabriel-Alves-Cunha jctaoo

repo: jctaoo/electron-run

license: MIT

license_source: github-api


text:
图片使用平铺,运行时图片会被一个黑色线条的矩形框围住

显示上不止有图片还有图片周围的一个黑色线条矩形框

investigating

this one won't be fixed, try to draw extra 4px at the 2 sides of your original image to solve this issue.

authors: jcyuan shunia

repo: jcyuan/FairyGUI-PixiJS


text:
Update pulsar to 1.18.1

About this PR
📦 Updates org.testcontainers:pulsar from 1.16.3 to 1.18.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.testcontainers", artifactId = "pulsar" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.testcontainers", artifactId = "pulsar" }
}]

labels: test-library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #171.

repo: jczuchnowski/zio-pulsar


text:
Elements set to visibility: 'hidden', opactiy: 0 and index is not being updated when dragged

When I drag a task within the same lane it will save it on the first drag but since the index didn't update, on the following dragging events it will move all of the tasks at once and there are empty spaces because it thinks its moving it as if it were still in its last position.
When moving to another lane it hides the sortable element with the same index and since the indexes are not updating the element with the same index stays hidden.
Below is my component ( I removed alot of code but this is the main sorting part of the code)
ListWrapper is the same as the ListWrapper component from your src/stories/index.js file.
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Lane from '../Lane';
import { default as Task } from '../Task';
import { SortableContainer, SortableElement, DragLayer } from 'react-sortable-hoc';
import ListWrapper from './ListWrapper';

const SortableTaskCard = SortableElement(Task)
const SortableLaneContainer = SortableContainer(Lane, { withRef: true })

class Container extends Component {
    constructor(props) {
        this.createLanes = this.createLanes.bind(this)
        this.state = { lanes: [] }
    }

    createLanes() {
            const createTasks = (data) => {
                                let tasks = []
                                let i = 0
                                for(let prop in data) {
                                    tasks.push(
                                        <SortableTaskCard
                                            onClick={ () => this.props.onEditTask(prop) }
                                            key={ `task-${prop}-${data[prop].task_name}` }
                                            index={ i }
                                            pressDelay={ 100 }
                                            title={ data[prop].task_name }
                                            description={ data[prop].description } />
                                    )
                                    i++
                                }
                                return tasks
            }

            let lanes = [];
            const dragLayer = new DragLayer();

            for (let key in data) {
                lanes.push(<ListWrapper
                                component={SortableLaneContainer}
                                onNewTask={ this.props.onCreateNewTask }
                                key={ key }
                                pressDelay={ 100 }
                                title={ humanize(key) }
                                items={ createTasks(data[key].tasks) }
                                dragLayer={ dragLayer }
                                getContainer={ wrappedInstance => ReactDOM.findDOMNode(wrappedInstance).children[1] }
                            />
                            )
            }

            this.setState({ lanes: lanes })
    }

    componentWillMount() {
        this.createLanes()
    }

    render() {
            return (

{ this.props.name }

                       { this.state.lanes }

            )
        }
}

@TraceyK14 Have you come up with a resolution on this? If not, might be best to start with the working demo and move towards how you are trying to use it.

No I have not, I think I will try starting from scratch to see it working and then see why mine isn't working.

@jdbence So it looks like it doesn't like the fact that I am creating my List and Elements by looping through and putting them into an array and then displaying them. I got It to work by mapping through an array of objects and creating the components that way.  Not sure exactly why it only works that way, I'm assuming its something to do with state

repo: jdbence/react-sortable-hoc


text:
New method in DeferredManager that accepts iterable

New method in DeferredManager that accepts iterable

@aalmiray i'm moving this into 2.x. but, this will won't gain much from the type safety that was added recently.  However, I also noticed that we no longer are able to accept dm.when(promises[]) due to the signature change. Having a signature that takes in iterable might offer some compatibility for such a use case.

Moved to #121. PTAL.

repo: jdeferred/jdeferred


text:
Newer Linux OSes break ping check in pia-listregions

Greetings,
Thanks again for this repository. I was testing it on Ubuntu 24.04 LTS and ran into an issue where pia-listregions was returning 'N/A' for all regions, so the pia-setup-tunnel command would pick a random endpoint and fail to setup the tunnel. I did some research, and confirmed the reason is that a recent Linux OS packet capture change (getcap/setcap) no longer allows unprivileged pings to be sent. This is addressed in pro-bing:
https://github.com/prometheus-community/pro-bing?tab=readme-ov-file#linux
For now, I have made the required sysctl change. If possible, please update the code to use pro-bing instead of go-ping as a dependency. pro-bing is a Prometheus community module (commonly used for monitoring/metrics gathering). The link above explains the recommend workarounds to give the binary full access to send ICMP packets, but if that is not possible, the end-user can use sysctl themselves.

Also, I appear to be having trouble with using systemd-networkd to setup the Wireguard tunnel, is there anything obvious I am doing wrong?
`# cat /etc/issue
Ubuntu 24.04 LTS \n \l
cat /etc/issue
Ubuntu 24.04 LTS \n \l
cat /etc/systemd/network/wgpia0.netdev /etc/systemd/network/wgpia0.network
[NetDev]
Name=wgpia0
Kind=wireguard
[WireGuard]
PrivateKey=PRIVATEKEY
[WireGuardPeer]
PublicKey=PUBLICKEY
AllowedIPs=0.0.0.0/0
Endpoint=212.102.35.31:1337
PersistentKeepalive=25
[Match]
Name=wgpia0
Type=wireguard
[Network]
Address=10.1.249.42/32
DNS=10.0.0.243%wgpia0
DNS=10.0.0.242%wgpia0
[Route]
Destination=0.0.0.0/0
Gateway=10.1.128.1
GatewayOnLink=yes
[Route]
Destination=10.1.128.1/32
Scope=link
[Route]
Destination=10.0.0.243/32
Gateway=10.1.128.1
[Route]
Destination=10.0.0.242/32
Gateway=10.1.128.1
ip r
default via GATEWAY dev enp0s3 proto dhcp src IP metric 100
DNS2 via 192.168.1.1 dev enp0s3 proto dhcp src IP metric 100
NETWORK/CIDR dev enp0s3 proto kernel scope link src IP metric 100
GATEWAY dev enp0s3 proto dhcp scope link src IP metric 100
DNS1 dev enp0s3 proto dhcp scope link src IP metric 100
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:70:9d:08 brd ff:ff:ff:ff:ff:ff
inet IP/CIDR metric 100 brd BROADCAST scope global dynamic enp0s3
valid_lft 86112sec preferred_lft 86112sec
inet6 fe80::a00:27ff:fe70:9d08/64 scope link
valid_lft forever preferred_lft forever
resolvectl status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (enp0s3)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: DNS1
DNS Servers: DNS1 DNS2
DNS Domain: DOMAIN
curl -4 icanhazip.com
PUBLIC_IP
resolvectl query google.com
google.com: 2607:f8b0:4009:802::200e           -- link: enp0s3
142.250.190.14                     -- link: enp0s3
-- Information acquired via protocol DNS in 31.6ms.
-- Data is authenticated: no; Data was acquired via local or encrypted transport: no
-- Data from: network
systemctl daemon-reload
systemctl restart systemd-networkd
ip r
default via 10.1.128.1 dev wgpia0 proto static onlink
default via GATEWAY dev enp0s3 proto dhcp src IP metric 100
DNS1 via GATEWAY dev enp0s3 proto dhcp src IP metric 100
10.0.0.243 via 10.1.128.1 dev wgpia0 proto static
10.0.0.242 via 10.1.128.1 dev wgpia0 proto static
10.1.128.1 dev wgpia0 proto static scope link
NETWORK/CIDR dev enp0s3 proto kernel scope link src IP metric 100
GATEWAY dev enp0s3 proto dhcp scope link src IP metric 100
DNS2 dev enp0s3 proto dhcp scope link src IP metric 100
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:70:9d:08 brd ff:ff:ff:ff:ff:ff
inet IP/CIDR metric 100 brd BROADCAST scope global dynamic enp0s3
valid_lft 86322sec preferred_lft 86322sec
inet6 fe80::a00:27ff:fe70:9d08/64 scope link
valid_lft forever preferred_lft forever
3: wgpia0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.1.249.42/32 scope global wgpia0
valid_lft forever preferred_lft forever
resolvectl status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (enp0s3)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: DNS1 DNS2
DNS Domain: DOMAIN
Link 3 (wgpia0)
Current Scopes: DNS
Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 10.0.0.243 10.0.0.242
curl -4 icanhazip.com
curl: (28) Failed to connect to icanhazip.com port 80 after 268850 ms: Couldn't connect to server
resolvectl query google.com
google.com: 2607:f8b0:4009:802::200e           -- link: enp0s3
142.250.190.142                    -- link: enp0s3
-- Information acquired via protocol DNS in 31.2ms.
-- Data is authenticated: no; Data was acquired via local or encrypted transport: no
-- Data from: network`

I was able to resolve the connection issue by converting a wg config from an old working host with wg2nd and update the template where appropriate. Also, I had to disconnect that older host from the VPN before the new one would start working.

I'm probably not going to change ping packages, as this one is simple and works fine. The sysctl you mention is there to limit users who can do things like what pia-listregions does. If certain distros have defaults that require root, the admin can change it if they want using sysctl or setcap. I.e. all is working as intended. I can add something in the readme though to point in the right direction folks who stumble on the issue as you did.

authors: Tatsujin jdelkins

repo: jdelkins/pia-tools


text:
getting transcript from multiple video ids?

Hi I'm using windows at the moment and I used the lates version of the API. I just wonder how can I getting transcript from multiple video ids at the same time?
Currently I'm using the same code from https://stackoverflow.com/questions/42867732/getting-youtube-auto-transcript-from-api (the answer from user2585501) but for some reason the code only fetch the transcript of the last video id from the list.
Any tips for the reason/ how to solve? @jdepoix
Thanks in advance!

Hi @helmimuharram, could you please share the exact code your using and error message you are getting doing so?

`from youtube_transcript_api import YouTubeTranscriptApi
#srt = YouTubeTranscriptApi.get_transcript(video_id)
videoListName = "youtubeVideoIDlist.txt"
with open(videoListName) as f:
video_ids = f.read().splitlines()
transcript_list, unretrievable_videos = YouTubeTranscriptApi.get_transcripts(video_ids, continue_after_error=True)
for video_id in video_ids:
if video_id in transcript_list.keys():

    print("\nvideo_id = ", video_id)
    #print(transcript)

    srt = transcript_list.get(video_id)

    text_list = []
    for i in srt:
        text_list.append(i['text'])

    text = ' '.join(text_list)
    print(text)`

this is the code that I used. I'm not getting error or anything. But the result is not kinda what I expected.
I thought I could get transcripts from multiple videos by looping from the list I have. But, it turns out I only get 1 transcript from 1 videos only. Is there a way to get multiple transcript from multiple videos at the same time? Thanks for the response @jdepoix

The easiest way to get multiple transcripts probably is YouTubeTranscriptApi.get_transcripts(["video_id1", "video_id2", "..."]). Please read the README for more detailed information on how to use this module.

wow, you really HAVE TO close this instantly huh. Well for your information: your solution doesn't work and if the features for multiple downloads didn't exist yet, maybe can you at least count it as a suggestion for the next update of this API.

I think you are kind of missing the point of GitHub issues. This should be used to report bugs in the repository, or discuss possible features/direction the repository should move in to, not so explain to you why some code you copied of stackoverflow doesn't work. The reason your code is not working as you expect it to does not have anything to do with this module. As I explained to you (although it is already clearly documented in the README), there is a simple way to get multiple transcripts. I am not going to explain to you how to read video IDs from a file etc. That's python basics. You can go to stackoverflow for that. This is not free python support!
I work a full time job and do my best to support this repository in the limited free time I have so people can benefit from it (for free!). Therefore, I have to make sure to close issues as quickly as I can so that the issues count doesn't grow to an unmanageable number, and I have to quickly identify issues which are reporting an actual bug in this repository so that I can dedicate my time to fixing those. Please manage your expectations when using something for free!

here let me rephrase it for you:

I'm sorry, but this place is only for reporting bugs or discussing new features in the repository. If you have a problem with some code from StackOverflow, then discuss it over there and not here. I'm sorry that I close your inquiries too early without explaining much and not with the answer you expecting from this "free" repository.
I might consider your suggestion for future version of the repository. Thanks!

and for those of you who come here with the question same as mine (from google or whatever) and can't find the answer, the code is the same as what I paste from the StackOverflow, but just add this at the end:
with open(video_id + '.txt', 'w', encoding='utf-8') as txt_file:             txt_file.write(text)
I manage to find the solution before this thread closed but you do you I guess?

here let me rephrase it for you:

I'm sorry, I don't quite understand why this got closed. Would you mind explaining, as my problem still remains?

Don't expect people to take the time to choose nice words for you while you don't bother to do so yourself.

authors: helmimuharram jdepoix

repo: jdepoix/youtube-transcript-api


text:
mise exec not using the right tool

Maybe I'm misunderstanding something here, but I thought mise exec should read my tool-versions and use the right version.
╭─ ⏺ ~/Sites
╰─ $ mise current
ruby 3.2.4
node 18.19.0
yarn 1.22.19
packer 1.8.4
aws-vault 7.2.0
terraform 1.8.5
╭─ ⏺ ~/Sites
╰─ $ mise x -- ruby -v
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]

mise doctor output
version: 2024.8.4 macos-arm64 (8d2aed1 2024-08-02)
activated: yes
shims_on_path: yes

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Fri, 2 Aug 2024 13:30:22 +0000
  Rust Version: rustc 1.80.0 (051478957 2024-07-21)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (x86_64-apple-darwin23.0)

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

config_files:
  ~/.config/mise/config.toml
  ~/Sites/Gemfile
  ~/Sites/.tool-versions
  ~/Sites/.mise.toml

backends:
  cargo
  core
  go
  npm
  pipx
  spm
  ubi

plugins:
  aws-vault  https://github.com/karancode/asdf-aws-vault.git#678cacf
  bun        (core)
  deno       (core)
  erlang     (core)
  go         (core)
  java       (core)
  node       (core)
  packer     https://github.com/asdf-community/asdf-hashicorp.git#f1602b6
  python     (core)
  ruby       (core)
  terraform  https://github.com/asdf-community/asdf-hashicorp.git#f1602b6
  yarn       https://github.com/mise-plugins/asdf-yarn.git#74ea3b9

toolset:
  ruby@3.2.4
  node@18.19.0
  yarn@1.22.19
  packer@1.8.4
  aws-vault@7.2.0
  terraform@1.8.5

env_vars:
  MISE_SHELL=zsh

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

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

No warnings found
No problems found

Seems to behave as expected on my machine.
Can you check if you get the expected versions for the other tools such as node or yarn?
mise x -- node --version
mise x -- yarn --version

Also can you provide your PATH variable?
mise x -- env | grep PATH

I suspect that somehow the ruby version might be overwritten with a path to an older version.

I have the same issue with ruby. im looking in the shims dir and there is no shim for ruby while there is a shim for node. mise x -- node --version outputs the expected version
mise x -- env | grep PATH shows ... $HOME/.local/share/mise/installs/ruby/3.3.4/bin ... /usr/bin .
Interestingly when when i look in the dir: ~/.local/share/mise/installs/ruby/3.3.4/ its totally empty. removing this dir seems to fix whatever is broken and mise pulls the correct ruby and sets up the shim directory. verified with:
$ mise x -- ruby --version
ruby 3.3.4 (2024-07-09 revision be1089c8ec) [arm64-darwin23]

the same thing was happening with bundler for me as well.

mise x -- node --version

It looks like those are also not correct.
╭─ ⏺ ~/Sites
╰─ $ mise current
ruby 3.2.4
node 18.19.0
yarn 1.22.19
packer 1.8.4
aws-vault 7.2.0
terraform 1.8.5
╭─ ⏺ ~/Sites
╰─ $ mise x -- node --version
v22.4.1
╭─ ⏺ ~/Sites/huntress/portal
╰─ $ mise x -- yarn --version
1.22.22

PATH output
╭─ ⏺ ~/Sites/huntress/portal
╰─ $ mise x -- env | grep PATH
INFOPATH=/opt/homebrew/share/info:/opt/homebrew/share/info:
MANPATH=:/usr/share/man:/usr/local/share/man:/opt/homebrew/share/man:
PATH=./bin:/Users/trobrock/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/trobrock/.local/share/zinit/polaris/bin:/Users/trobrock/.local/share/mise/installs/ruby/3.2.4/bin:/Users/trobrock/.local/share/mise/installs/node/18.19.0/bin:/Users/trobrock/.local/share/mise/installs/yarn/1.22.19/bin:/Users/trobrock/.local/share/mise/installs/packer/1.8.4/bin:/Users/trobrock/.local/share/mise/installs/aws-vault/7.2.0/bin:/Users/trobrock/.local/share/mise/installs/terraform/1.8.5/bin:/Users/trobrock/.local/share/mise/shims:/Users/trobrock/.orbstack/bin
TMUX_PLUGIN_MANAGER_PATH=/Users/trobrock/.config/tmux/plugins/
__MISE_ORIG_PATH=/Users/trobrock/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:./bin:/Users/trobrock/.local/share/zinit/polaris/bin:/Users/trobrock/.local/share/mise/shims:/Users/trobrock/.orbstack/bin

@trobrock The PATH clearly shows the issue, the mise binaries and shims are towards the end of the PATH definition which means they are overwritten by other paths such as /opt/hombrew/bin and /opt/homebrew/sbin. Seems that something in your shell config/profile is out of order and mise activation happens before other tools such as homebrew are added to the PATH.

Might be the less aggressive mise activate change

In other words, @roele is correct. mise now requires that you configure it late in your rc file if you don't want other things to override it. This is by design so that you can override mise if you want to.

Interesting, I have it in my zprofile so that it is used in non-interactive shells also.

authors: jdx roele stan-stately trobrock

repo: jdx/mise


text:
mise ERROR failed to install vfox:python@3.14.0

At present I'm experiencing what seems to be a problem, even after updating mise (and perhaps related to other issues I'm seeing, but not specifically to this), an issue with vfox and python:
$ mise up
...
Error:
   0: failed to install vfox:python@3.14.0
   1: runtime error: ...ocal/share/mise/plugins/python/hooks/pre_install.lua:8: The current version is not released
      stack traceback:
      	[C]: in function 'error'
      	...ocal/share/mise/plugins/python/hooks/pre_install.lua:8: in function <...ocal/share/mise/plugins/python/hooks/pre_install.lua:2>
      	(tail call): in function <(tail call):-1>

Location:
   src/backend/vfox.rs:72

Version:
   2024.11.27 macos-arm64 (2024-11-23)
...

After the most recent updates is there a proper method to resolve this?

I don't think vfox-python works in mise

there was a bug that caused this to happen, just uninstall it

rm -rf ~/.local/share/mise/{installs,plugins}/python

If anyone encounters the same problem, on macOS, I also had to run rm -rf ~/Library/Caches/mise/python to fix mise.

rm -rf ~/.local/share/mise/{installs,plugins}/python

+1 worked for me on M3 Pro. Thank you @jdx

authors: aaccioly jdx nhatas ylluminate


text:
🛑 Distribuidora Navarrete is down

In 41da32e, Distribuidora Navarrete (https://www.distribuidoranavarrete.com.pe) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Distribuidora Navarrete is back up in a43609a.


text:
DirtyJTAG install using DFU

ST-Link v2 clone seems to have a DFU bootloader that allow for encrypted firmware upgrades. This will require a specific linker script (trivial) and bootloader patching (in the current situation, the DFU bootloader would not exit DFU until we would launch an st-info command).
Interesting links :

https://lujji.github.io/blog/installing-blackmagic-via-stlink-bootloader/
https://github.com/lujji/st-decrypt

I could flash it with a usb-serial dongle, and powering it either via 5V or 3.3V.
Before flashing, you have to put the BOOT0 to 1, and keep BOOT1 at 0.
Then launch stm32flash:
$ stm32flash -w dirtyjtag.bluepill.bin -v -g 0x8000000 /dev/ttyUSB0
stm32flash 0.5

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Interface serial_posix: 57600 8E1
Version      : 0x22
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0410 (STM32F10xxx Medium-density)
- RAM        : 20KiB  (512b reserved by bootloader)
- Flash      : 128KiB (size first sector: 4x1024)
- Option RAM : 16b
- System RAM : 2KiB
Write to memory
Erasing memory
Wrote and verified address 0x08002028 (100.00%) Done.

Starting execution at address 0x08000000... done.

Then unplug it, put back the BOOT0 jumper to 0, and plug it in USB, you should see the "1209:c0ca InterBiometrics" in lsusb.

Will make a pull request with some pictures of the setup.

Ha sorry, this issue is about flashing over USB with DFU, not flashing with a serial dongle...

authors: jeanthom zoobab

repo: jeanthom/DirtyJTAG


text:
Fields prop is required and it shouldn't

Required was deleted from fields prop, because in getKeys method it is checked if fields is true.

@nkoik thanks for the help, I update the file and include some other changes

authors: jecovier nkoik

repo: jecovier/vue-json-excel


text:
Custom Aqua for another project

I'd like to use Aqua in my project:
It would be a classic social network with one admin and a lots of user.
The users could create a group for example (Animals, Nature,...),become Group-admin
and invite another user to post our photo inside.
The Group-admin could give some permission and roles to another users.
Example of permission: read or write,...
Example of roles: give the opportunity to become group-admin to another Group-member
Do you think it is easy to change Aqua design?

Thanks for opening an issue.

Do you think it is easy to change Aqua design?

It wouldn't be that bad. I suggest reading this:
https://github.com/jedireza/aqua/wiki/Users%2C-Roles-%26-Groups

authors: jedireza sminodonte

repo: jedireza/aqua


text:
登录完成后就一直处于等待，不能进入主页面

版本号：3.7
问题描述：
刚开始的时候是没有问题， 后来不知道是因为清理浏览器缓存，还是什么原因，就不能进入主页面了， 打开无痕窗口可以，后来打开无痕窗口也不行了， 就把chrome重装了 也不行
错误截图：

友情提示：

未按格式要求发帖、描述过于简单的，会被直接删掉;
描述问题请图文并茂，方便我们理解并快速定位问题;
如果使用的不是master，请说明你使用的分支;

F12报什么错

看控制台没有报错， 而且还会占cpu和内存； 感觉就是卡到那里了；  那个webSocket的 状态是pending 不知道是不是正常

我也碰到这个问题,https://github.com/jeecgboot/JeecgBoot/issues/6868

之前遇到类似的问题，好像是前端代码死循环了。
export function createPermissionGuard(router: Router) {
const userStore = useUserStoreWithOut();
const permissionStore = usePermissionStoreWithOut();
router.beforeEach(async (to, from, next) => {
if (
from.path === ROOT_PATH &&
to.path === PageEnum.BASE_HOME &&
userStore.getUserInfo.homePath &&
userStore.getUserInfo.homePath !== PageEnum.BASE_HOME
) {
next(userStore.getUserInfo.homePath);
return;
}
这块代码，如果admin用户的homePath不是‘dashboard/analysis’就会死循环

感谢楼上回答,我的问题解决了,确实是因为 sys_role_index  表中的 url  变成了 dashboard

问题已修复，下版本发布

问题原因
由于角色的自定义首页设为了 dashboard，而 dashboard 在菜单配置里配置了默认跳转到 dashboard/analysis，在此期间vue-router的form.path一直都是/，所以就导致了死循环
修改方式
限制跳转到自定义首页的次数即可，修改方案参考下图：

按你的方式，已解决， thanks

repo: jeecgboot/JeecgBoot


text:
Add support and testing for Python 3.12

With the release of Python 3.12 October 2, 2023, it would be nice to update the project to support this version.
We need to update:

this line
https://github.com/jeertmans/manim-slides/blob/86fc774a3da541b987cd70d0f9ff86a796dac34e/pyproject.toml#L63

add a new Python 3.12 classifier in
https://github.com/jeertmans/manim-slides/blob/86fc774a3da541b987cd70d0f9ff86a796dac34e/pyproject.toml#L22-L33

Once done, it would probably be need to run poetry lock to update poetry.lock.
Then, one must also update all occurrences of '3.11' in GitHub workflows to '3.12', e.g., this line:
https://github.com/jeertmans/manim-slides/blob/86fc774a3da541b987cd70d0f9ff86a796dac34e/.github/workflows/coverage.yml#L24

Closed as Python 3.12 is now supported.

repo: jeertmans/manim-slides


text:
ddns-go和宝塔冲突

在arm盒子里，armbian22.05 bullseye安装宝塔，无法打开ddns-go,不管是docker还是直接部署

贴日志

我无法登录IP:9876，docker logs ddns-go 就提示等待10秒进入

说明启动了。检查端口打开没有

如何修改端口，我指向 -p 1234：9876，也无法打开

是不是防火墙开了

感谢


text:
alidns sign is wrong 阿里云 无法更新 签名错误

问题描述

阐述 记录/问题/事件/... 发生的背景
更新阿里云域名时，阿里云返回签名错误。

是否已搜索同类问题

[ x ] 已搜索未能解决
[] 未搜索

环境

操作系统: Kubuntu 21.04 x86_64
ddns-go版本:  v4.0.4
安装方式: docker/服务： 服务

截图
ddns-go日志输出：
{
    "RequestId": "00000000-0000-0000-0000-000000000000",       // 脱敏处理
    "Message": "Specified signature is not matched with our calculation. server string to sign is:GET&%2F&AccessKeyId%3DAAAABBBBxxxxxxxxxxx0000%26Action%3DDescribeSubDomainRecords%26DomainName%3Dexample.com%26Format%3DJSON%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D1662880999662940380%26SignatureVersion%3D1.0%26SubDomain%3D%252A.example.com%26Timestamp%3D2022-09-11T07%253A23%253A19Z%26Type%3DA%26Version%3D2015-01-09",
    "Recommend": "https://next.api.aliyun.com/troubleshoot?q=SignatureDoesNotMatch&product=Alidns",
    "HostId": "alidns.aliyuncs.com",
    "Code": "SignatureDoesNotMatch"
} ,返回状态码: 400

ddns-go 配置文件：
ipv4:
  enable: true
  gettype: url
  url: https://myip.ipip.net
  netinterface: ""
  domains:
  - xxx.example.com
ipv6:
  enable: false
  gettype: url
  url: https://speed.neu6.edu.cn/getIP.php
  netinterface: ""
  ipv6reg: ""
  domains:
  - xxx.example.com
dns:
  name: alidns
  id: 脱敏
  secret: 脱敏
user:
  username: 脱敏
  password: 脱敏
webhook:
  webhookurl: ""
  webhookrequestbody: ""
notallowwanaccess: true
ttl: ""

阿里云后台记录日志：略
阿里云子账号权限：
AliyunDNSFullAccess系统策略 | 管理云解析(DNS)的权限
其他：

我要更新的域名包含 通配符 * ，域名为 *.xxx.yyyyyyy.com
同样的配置，腾讯云（dnspods）无问题，更新正常。

有可能是ID/Secret问题
可以提一个工单问下阿里云

请问解决了吗？我用了一天正常，后面就提示这个了

请问解决了吗？我用了一天正常，后面就提示这个了

未遇到。检查你的AccessKey Secret正确与否

请问解决了吗？我用了一天正常，后面就提示这个了

未遇到。检查你的AccessKey Secret正确与否

正确的，使用1天后今天上午就报错，家里爱快的ddns用的AccessKey Secret能正常访问，期间搞了ssl证书，现在重新安装ddns-go还是同样的报错

重新生成一个试下

重新生成一个试下

重新生成一个AccessKey Secret，已解决问题，谢谢

重新生成一个AccessKey Secret，已解决问题+1
我拿着之前的 AccessKey Secret ，使用阿里云官方的 SDK 调用，返回了同样的报错。
交流一下其他问题：
既然阿里云官方有提供 SDK 为什么还要在项目里使用 http.NewRequest 调用接口，自己实现一遍签名等操作呢？

重新生成一个AccessKey Secret，已解决问题+1
我拿着之前的 AccessKey Secret ，使用阿里云官方的 SDK 调用，返回了同样的报错。
交流一下其他问题： 既然阿里云官方有提供 SDK 为什么还要在项目里使用 http.NewRequest 调用接口，自己实现一遍签名等操作呢？

阿里云提供的sdk打包后包太大，目的是减小包的大小

重新生成一个AccessKey Secret，已解决问题+1
我拿着之前的 AccessKey Secret ，使用阿里云官方的 SDK 调用，返回了同样的报错。
交流一下其他问题： 既然阿里云官方有提供 SDK 为什么还要在项目里使用 http.NewRequest 调用接口，自己实现一遍签名等操作呢？

阿里云提供的sdk打包后包太大，目的是减小包的大小

大多少呢？感觉不用考虑包大小吧？2023年了，谁还缺那点空间～哈哈哈

我这边有同样问题，重建AccessKey Secret还是一样的错误


text:
feat: add custom user primary domain support

允许用户在 Domains 输入框通过以冒号分隔的形式手动设置主机记录和主域名，这对于用户只拥有子域名管理权时非常有效。

thanks


text:
Investigate NPM package hosting options and their API/integrations for possible usage

Right now the only native Unity way of supporting package dependencies that are NOT from Unity (text mesh pro, timeline, etc...) is by way of registries that would offer the user a way to select which package hosting server their packages can be from. It would be nice if there were options in package tools to allow for integrating with one or more of these NPM hosting services. Research and investigation should be done to see which if any of these would be likely contenders via either a CLI or REST interface.

I am satisfied with using OpenUPM as a native package manager since no additional code functionality needs to be written to support it and it can dual leverage the package export option this library supports. See here for more info.


text:
运行工程时整体组件都偏大？

怎么全局设置整体组件大小，看起来不要那么大？

app.use(naive, { size: 'small' }); 这么写不起作用？

UI 框架不支持这个配置

authors: jekip jiriyao

repo: jekip/naive-ui-admin


text:
style(BasicUpload): center upload icon and text in BasicForm

将基础表单的图片上传的图标和文字居中了，强迫症实在不能忍 (｀・ω・´)

呃，其实只加了34行，其他的因为格式化改变了

另外，组件示例的上传图片的居中忘记改了


text:
Behaviour when 'voice over' is ON.

Can something be done about the swipe right/left behaviour when 'Voice Over' mode is ON in IOS ?

I think right now the SwipeRow component does not take any properties related to accessibility, or handles any.
Issue is, in IOS when 'Voice Over' is turned ON there is no way to swipe right/left(at least I could not find). Surprisingly in Android when 'Talkback' is ON, it seem to work just fine(can swipe using 2 fingers). Was just wondering if anything could be done about it in IOS.
I have been trying with accessibilityTraits property in IOS. Tried assigning 'allowsDirectInteraction' on the SwipeRow's gesture handing view, at least to get it work. Here it works just as it would in normal mode, but issue was all the children(visible/hidden contents) too inherits 'allowsDirectInteraction', could not override it on the children.
Will be happy to do a PR if I succeed and would really appreciate any suggestion.
Thanks!

@rimzici This is a long outdated issue but just wondering if you were able to make any progress here? I'm not very familiar with accessibilityTraits so I'd love to hear about it!

Hi,
So far haven't been able to work that around, since it was not in the priority list kept it aside.
I believe there were some major updates in accessibility part with RN v0.60. I will try that and get back.


text:
[updatecli] Update Helm Chart version to 1.40.2

! Experimental project
This pull request was automatically created using olblak/updatecli
Based on a source rule, it checks if yaml value can be update to the latest version
Please carefully review yaml modification as it also reformat it.
Please report any issues with this tool here

Duplicated with #281

repo: jenkins-infra/charts


text:
feat: manage existing Fastly resources with Terraform

Part of https://github.com/jenkins-infra/helpdesk/issues/2820
Notes:

I've removed the deprecated geo_headers setting of pkg and plugins (was set to false in imported resources)
I've added some teams in CODEOWNERS, to be discussed? I'll add the appropriate teams to the repo.
More PRs are coming to set the backend and the pipeline, hence the draft. This PR can be reviewed meanwhile.

Code looks good to me!
I'm blocking becasue the last plan output (https://infra.ci.jenkins.io/job/Terraform Jobs/job/fastly/job/PR-1/1/artifact/terraform-plan-for-humans.txt) show that 3 resources will be created once merged

@lemeurherve it sounds like that the current s3 backend  might not have the states that you imported. Did I miss something?

Ran terraform init --migrate-state -backend-config=./backend-config locally to migrate my local state to the production S3 bucket, and restarted a build, all good now: https://infra.ci.jenkins.io/job/Terraform Jobs/job/fastly/job/PR-1/2/artifact/terraform-plan-for-humans.txt

I've compared the production versions of the services generated by Terraform with the previous ones defined manually in Fastly interface, I've fixed the diff with this hotfix.

The hotfix didn't changed anything about the "xff" parameter, still empty in the fastly GUI diff, but since its default value is àppend`it shouldn't make a difference.

authors: dduportal lemeurherve

repo: jenkins-infra/fastly


text:
chore(updatecli):Track pvc names for updates.jenkins.io and geoip-data

As per https://github.com/jenkins-infra/helpdesk/issues/2649#issuecomment-2364054995:
This PR introduces an updatecli manifest to track and update pvc names for updates.jenkins.io and geoip-data

Tested locally with success:
SUMMARY:

✔ Update pvc names for updates.jenkins.io and geoip-data:
        Source:
                ✔ [pvcName] Retrieve the pvc name for updates-jenkins-io
                ✔ [pvcNameGeoipData] Retrieve the pvc name for updates-jenkins-io geoip-data
        Target:
                ✔ [updateGeoipPvcNameSecured] Update geoip-data PVC name secured
                ✔ [updateGeoipPvcNameUnsecured] Update geoip-data PVC name unsecured
                ✔ [updatePvcNameSecured] Update updates-jenkins-io PVC name secured
                ✔ [updatePvcNameUnsecured] Update updates-jenkins-io PVC name unsecured

Run Summary
===========
Pipeline(s) run:
  * Changed:    0
  * Failed:     0
  * Skipped:    0
  * Succeeded:  1
  * Total:      1

repo: jenkins-infra/kubernetes-management


text:
Add permissions for Maven Repository plugin parent POM

Trying to fix this build failure. Looking at other examples, it seems that adding com/nirima/jenkins/repository/pom to component-jenkins-maven-plugin.yml in #2109 wasn't quite correct. Other examples have a dedicated pom-${PLUGIN}.xml file that (crucially) contains the artifactId of the POM as its name. So in this PR I am adding a pom-maven-repository-plugin.yml whose name is pom, which matches the artifactId from here. So I think this should resolve my error.
While I was here, I added GitHub URLs for all three of this plugin's YAML files, and I updated the main plugin YAML file with proper issue tracking.
CC @timja

It worked! Thanks, @timja!


text:
chore: bdd-spring-1572560052 to 0.0.1

chore: Promote bdd-spring-1572560052 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:
SBOM failed validation: Max number of components exceeded (5000)

What feature do you want to see added?
add exception for vendor folder(some folder) during sbom image scan
Lately number of components that are used in vendors folder are to big for 5000 and plugin crashed with error "SBOM failed validation: Max number of components exceeded (5000)"
can we add to plugin --skip-files parameter?
Upstream changes
No response
Are you interested in contributing this feature?
No response

Adding to our backlog to address in a future update.

authors: anicksol cjbaco


text:
Download from Maven repository

in this way, the same Dockerfile can build mainline releases, alpha
releases, SNAPSHOTS, etc.
@reviewbybees

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

:bee:

LGTM :bee:

:bee:

authors: jglick kohsuke mslusarczyk recena reviewbybees

repo: jenkinsci/docker


text:
DataTables local-storage issue prevents restore of lockable resources overview table preferences

Jenkins and plugins versions report

Environment

Jenkins: 2.414.2
OS: Linux - 6.4.13-100.fc37.x86_64
Java: 11.0.20 - Red Hat, Inc. (OpenJDK 64-Bit Server VM)
---
active-directory:2.33
allure-jenkins-plugin:2.30.3
ansicolor:1.0.4
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
audit-trail:347.v1fc515cc462b_
authentication-tokens:1.53.v1c90fd9191a_b_
blueocean:1.27.8
blueocean-autofavorite:1.2.5
blueocean-bitbucket-pipeline:1.27.8
blueocean-commons:1.27.8
blueocean-config:1.27.8
blueocean-core-js:1.27.8
blueocean-dashboard:1.27.8
blueocean-display-url:2.4.2
blueocean-events:1.27.8
blueocean-git-pipeline:1.27.8
blueocean-github-pipeline:1.27.8
blueocean-i18n:1.27.8
blueocean-jira:1.27.8
blueocean-jwt:1.27.8
blueocean-personalization:1.27.8
blueocean-pipeline-api-impl:1.27.8
blueocean-pipeline-editor:1.27.8
blueocean-pipeline-scm-api:1.27.8
blueocean-rest:1.27.8
blueocean-rest-impl:1.27.8
blueocean-web:1.27.8
bootstrap5-api:5.3.2-1
bouncycastle-api:2.29
branch-api:2.1128.v717130d4f816
build-failure-analyzer:2.4.2
build-monitor-plugin:1.14-745.ve2023a_305f40
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.0.2
cloudbees-bitbucket-branch-source:845.v27a_d5823911b_
cloudbees-disk-usage-simple:182.v62ca_0c992a_f3
cloudbees-folder:6.848.ve3b_fd7839a_81
command-launcher:107.v773860566e2e
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.10.0-78.v3e7b_ea_d5a_fe1
credentials:1271.v54b_1c2c6388a_
credentials-binding:636.v55f1275c7b_27
custom-folder-icon:2.9
dark-theme:336.v02165cd8c2ee
data-tables-api:1.13.6-4
dependency-check-jenkins-plugin:5.4.3
display-url-api:2.200.vb_9327d658781
docker-commons:439.va_3cb_0a_6a_fb_29
docker-workflow:572.v950f58993843
durable-task:523.va_a_22cf15d5e0
echarts-api:5.4.0-6
email-ext:2.102
extended-read-permission:53.v6499940139e5
favorite:2.4.3
font-awesome-api:6.4.2-1
git:5.2.0
git-client:4.5.0
git-server:99.va_0826a_b_cdfa_d
github:1.37.3
github-api:1.316-451.v15738eef3414
github-branch-source:1741.va_3028eb_9fd21
groovy:457.v99900cb_85593
handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953
htmlpublisher:1.32
http_request:1.18
instance-identity:173.va_37c494ec4e5
ionicons-api:56.v1b_1c8c49374e
jackson2-api:2.15.2-350.v0c2f3f8fc595
jakarta-activation-api:2.0.1-3
jakarta-mail-api:2.0.1-3
javadoc:243.vb_b_503b_b_45537
javax-activation-api:1.2.0-6
javax-mail-api:1.6.2-9
jaxb:2.3.8-1
jdk-tool:73.vddf737284550
jenkins-design-language:1.27.8
jersey2-api:2.40-1
jira:3.11
jjwt-api:0.11.5-77.v646c772fddb_0
jquery3-api:3.7.1-1
jsch:0.2.8-65.v052c39de79b_2
junit:1240.vf9529b_881428
kubernetes:4029.v5712230ccb_f8
kubernetes-client-api:6.8.1-224.vd388fca_4db_3b_
kubernetes-credentials:0.11
lockable-resources:1185.v0c528656ce04
logstash:2.5.0218.v0a_ff8fefc12b_
mailer:463.vedf8358e006b_
matrix-auth:3.2.1
matrix-project:808.v5a_b_5f56d6966
metrics:4.2.18-442.v02e107157925
mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_
mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_
nexus-jenkins-plugin:3.16.510.v4d23e22cf563
okhttp-api:4.11.0-157.v6852a_a_fa_ec11
openshift-client:1.1.0.420.v8817277c1990
pipeline-build-step:505.v5f0844d8d126
pipeline-graph-analysis:202.va_d268e64deb_3
pipeline-groovy-lib:689.veec561a_dee13
pipeline-input-step:477.v339683a_8d55e
pipeline-milestone-step:111.v449306f708b_7
pipeline-model-api:2.2144.v077a_d1928a_40
pipeline-model-definition:2.2144.v077a_d1928a_40
pipeline-model-extensions:2.2144.v077a_d1928a_40
pipeline-rest-api:2.33
pipeline-stage-step:305.ve96d0205c1c6
pipeline-stage-tags-metadata:2.2144.v077a_d1928a_40
pipeline-stage-view:2.33
pipeline-utility-steps:2.16.0
plain-credentials:143.v1b_df8b_d3b_e48
plugin-util-api:3.3.0
prometheus:2.3.3
prometheus-lockable-resources:1.0.0
pubsub-light:1.17
resource-disposer:0.23
scm-api:676.v886669a_199a_a_
script-security:1275.v23895f409fb_d
simple-theme-plugin:160.vb_76454b_67900
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.16
sse-gateway:1.26
ssh-agent:333.v878b_53c89511
ssh-credentials:308.ve4497b_ccd8f4
sshd:3.312.v1c601b_c83b_0e
structs:325.vcb_307d2a_2782
testcafe:1.0
theme-manager:211.vef2a_42c645a_b_
timestamper:1.26
token-macro:384.vf35b_f26814ec
trilead-api:2.84.v72119de229b_7
variant:60.v7290fc0eb_b_cd
workflow-aggregator:596.v8c21c963d92d
workflow-api:1281.vca_5fddb_3fceb_
workflow-basic-steps:1042.ve7b_140c4a_e0c
workflow-cps:3793.v65dec41c3a_c3
workflow-durable-task-step:1289.v4d3e7b_01546b_
workflow-job:1348.v32a_a_f150910e
workflow-multibranch:756.v891d88f2cd46
workflow-scm-step:415.v434365564324
workflow-step-api:639.v6eca_cd8c04a_a_
workflow-support:865.v43e78cc44e0d
ws-cleanup:0.45

What Operating System are you using (both controller, and any agents involved in the problem)?
Fedora 37 for the Jenkins server
macOS 13.6 for the browsers (Chrome & Firefox both display the same behavior)
Reproduction steps

Browse to https://my.jenkins/lockable-resources/
Open the browser's developer tools.
Clear the browser "local storage" for the site/domain.
Change the sort column/direction or the number of rows to show of the lockable-resources overview table.
Observe the local storage getting set.
Refresh the page

Expected Results
The DataTables settings should be retrieved from local storage and the table should render the same
Actual Results
The DataTables reset to some weird (but consistent) setting of:
lockable-resources#orderBy:"1"
lockable-resources#orderDirection:"asc"
DataTables_lockable-resources_/lockable-resources/:"{"time":1696513093971,"start":0,"length":10,"order":"[[1, \"asc\"]]","search":{"search":"","smart":true,"regex":false,"caseInsensitive":true},"columns":"[{\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": false, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}, {\"visible\": true, \"search\": {\"search\": \"\", \"smart\": true, \"regex\": false, \"caseInsensitive\": true}}]","childRows":"[]"}"

I think there might be some conflict happening between these settings.
Anything else?
Perhaps related to the jQuery/DataTables errors which can be seen when interacting with the table:
Uncaught TypeError: table.rows is not a function
    bindTables https://my.jenkins/static/5dabc8f4/plugin/data-tables-api/js/table.js:145
    jQuery 14
    bindTables https://my.jenkins/static/5dabc8f4/plugin/data-tables-api/js/table.js:183
    jQuery 2
    bindTables https://my.jenkins/static/5dabc8f4/plugin/data-tables-api/js/table.js:108
    <anonymous> https://my.jenkins/static/5dabc8f4/plugin/data-tables-api/js/table.js:219
    <anonymous> https://my.jenkins/static/5dabc8f4/plugin/data-tables-api/js/table.js:220
    jQuery 13

Upon closer inspection, this issue was introduced in https://plugins.jenkins.io/data-tables-api/releases/#version_1.13.6-4
Downgrading to https://plugins.jenkins.io/data-tables-api/releases/#version_1.13.6-3 solved the issue.

Fixed by https://github.com/jenkinsci/data-tables-api-plugin/releases/tag/v1.13.6-5

Fixed by https://github.com/jenkinsci/data-tables-api-plugin/releases/tag/v1.13.6-5

Great I will eait for next POM update and test it, Thx too much.

Can confirm that updating to https://github.com/jenkinsci/data-tables-api-plugin/releases/tag/v1.13.6-5 fixed the issue.

authors: PayBas mPokornyETM uhafner

repo: jenkinsci/lockable-resources-plugin


text:
Pipeline support for MesosSingleUseSlave

Convert MesosSingleUseSlave to a SimpleBuildWrapper so that it may be used from Pipeline scripts
Fixes #262

Thank you @varju for the PR!

authors: maselvaraj varju

repo: jenkinsci/mesos-plugin


text:
jenkins.* metrics are always 0

Version report
Jenkins and plugins versions report:
2.189.1 with latest master build.

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

k8s

Reproduction steps

Create some agents
Search for any metrics jenkins.agents.online > 0

Results
Expected result:
There will be some metrics when a new agent is connected
Actual result:
0

After debugging it looks like https://github.com/jenkinsci/opentelemetry-plugin/pull/119 is somehow causing that particular behaviour with some of the metrics

repo: jenkinsci/opentelemetry-plugin


text:
[JENKINS-29250] Sectioned View appearance broken in 1.619

This PR fixes JENKINS-29250, see attached screenshots in the Jira issue itself.
This bug is derived from JENKINS-28550.

@reviewbybees Could you review these changes? Specially, @daniel-beck

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Hey @recena, can you explain what this is fixing and maybe provide before and after screenshots?

@tfennelly Description updated.

For future reference: Fixing commits should say [FIX JENKINS-…] so the bot resolves the issue when this gets merged. See https://wiki.jenkins-ci.org/display/JENKINS/contributing Commit Messages.

What happens when you install this on an older version of Jenkins, e.g. only update the plugin, but not Jenkins itself?

@daniel-beck I'm not sure, but I can try it. For example, I can try it with Jenkins version prior to 1.619.

@daniel-beck Other option would be to set Jenkins Core baseline to 1.619. This plugin has slow activity.

@daniel-beck I've tried with Jenkins 1.618 and looks great.

@recena can you give a before screenshot with 1.618 also so that we can see the effect on versions before the fix is needed.
If the diff is excessive you can always use a jelly condition in https://github.com/jenkinsci/sectioned-view-plugin/blob/master/src/main/resources/hudson/plugins/sectioned_view/SectionedViewPageDecorator/header.jelly to switch behaviour based on Jenkins version, e.g.
<j:if test='${app.version >= "1.619"}'>
  ... include the fixup css
</j:if>

NOTE: the test in there is not quite correct as you really need to be using VersionNumber.isOlderThan(VersionNumber) rather than string comparison... but that would involve exposing the version number check in the SectionedViewPageDecorator class so you can do test="${it.jenkins_1_619_orNewer}" to call into boolean SectionedViewPageDecorator.isJenkins_1_619_orNewer() { return !Jenkins.getVersion().isOlderThan(new VersionNumber("1.619")); }

To clarify the previous comment. I am just suggesting a workaround if the diff on pre-1.619 is excessive. I suspect it is minimal and we should be ok

@stephenc In advance, thanks for your feedback. You can find these screenshots in the issue. My proposal is working fine with different Jenkins version. It was an easy solution.

@recena the screenshots in the issue are not a like for like comparison with the screenshot in this PR.
I would like to be able to compare the difference of the same view in 1.618 before and after this fix. (Same goes for 1.619 but less important to have that)

@stephenc I'll attach the screenshots this night.

@stephenc Please, find attached two screenshots. The same content in Jenkins 1.618 & Jenkins 1.619

Yes I have no doubt that the 1.618-with-patch vs 1.619-with-patch is negligible in diff.
What I was asking for was 1.618-without-patch vs 1.618-with-patch to see if the patch affects older versions of Jenkins that do not need the patch (ie to answer the question: do we need to bump the minimum version of Jenkins to 1.619)

@stephenc What patch?
This PR aims to solve a (litlle bit) compatibility problem with a important UI (layout) change introduced in Jenkins 1.609. This PR is working fine with Jenkins version prior to 1.608 and the last release, 1.609.
1.618-with-patch does not make sense.

@tfennelly @gusreiber Could you review these changes? Thanks in advance.

1.618-with-patch is a Jenkins 1.618 running this plugin with the PR applied
1.618-without-patch is a Jenkins 1.618 running this plugin without the PR applied
IOW what effect does this PR have on a Jenkins that does not need this PR.
If the answer is none or just a few pixels then I'm fine. I expect that I am fine. If the answer is bigger than that, then there are two options:

tweak the CSS change a tad
set the minimum version of Jenkins in the pom to 1.619

I prefer 1 if it comes to it, but I just want the screenshots so that we can confirm that this is not an issue

@stephenc Ok, I'll send you later. I'm sorry for the misunderstanding.

@stephenc Please, find two screenshots:
Jenkins 1.618 without this PR:

Jenkins 1.618 with this PR:

Obviously, I did not try so much examples, but I think that this PR solve the bug.

:bee:

@stephenc you rock!

:bee:

@daniel-beck Thanks!

authors: daniel-beck jenkinsadmin recena reviewbybees stephenc tfennelly

repo: jenkinsci/sectioned-view-plugin


text:
passwd segmentation fault

Hallo zusammen,
Beim Versuch das Passwort des root users zu ändern tritt ein segmentation fault auf (siehe unten).
System ist auf einem PI 3 Model B mit 16GB SD installiert. Alles andere funktioniert einwandfrei, habe meine alte CCU2 entsprechend auf das neue System umgezogen und bin beim ändern des Passwortes über dieses Problem gestolpert.
Kann das jemand nachvollziehen ?
Image
RaspberryMatic-3.37.8.20181026-rpi3

Kommando
#passwd
Changing password for root
New password:
Retype password:
Segmentation fault

Linux Version
#uname -a
Linux homematic 4.14.71 #1 SMP PREEMPT Thu Oct 25 11:31:56 CEST 2018 armv7l GNU/Linux

CPU Info
# cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 1
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 2
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 3
model name	: ARMv7 Processor rev 4 (v7l)
BogoMIPS	: 38.40
Features	: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: BCM2835
Revision	: a22082
Serial		: 000000001ceae3c8

Viele Grüße,
Mark

Liegt vermutlich daran das "/" read-only gemountet ist.
Ich denke man kann das issue schliessen. Danke :)

Remounting "/" von RO nach RW löst das Problem nicht wirklich. Vielleicht ein Problem mit einer System Library oder ist das ändern das Passwortes nicht erwünscht/vorgesehen ?
# passwd
Changing password for root
New password:
Retype password:
double free or corruption (out)

Doch, das sollte/müsste gehen

Leider nein, ich habe es auf mit unten angegebenen Versionen versucht (rpi0 und rpi3) beide zeigen das gleiche Verhalten. Leider ist auf der Distro kein gdb um dem Ganzen auf den Grund zu gehen.
VERSION=3.37.8.20181026
PRODUCT=raspmatic_rpi3
PLATFORM=rpi3

mount -o rw,remount /
passwd
Changing password for root
New password:
Retype password:
Segmentation fault
mount
/dev/root on / type ext4 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=492456k,nr_inodes=123114,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,noatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /var type tmpfs (rw,noatime,size=497068k)
tmpfs on /media type tmpfs (rw,noatime)
/dev/mmcblk0p3 on /usr/local type ext4 (rw,noatime,nodiratime,nodelalloc,data=journal)
/dev/mmcblk0p1 on /boot type vfat (ro,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
passwd
Changing password for root
New password:
Retype password:
double free or corruption (out)
Aborted

Als Workaround bis das Problem beseitigt ist kann man aber über die WebUI einfach das SSH Passwort ändern, das entspricht der Änderung des root Passwortes.

Ja, der angegebene Workaround funktioniert. Vielen Dank Jens !
PS.: Sehr cooles Projekt, Glückwunsch !

authors: MarkThielen jens-maus

repo: jens-maus/RaspberryMatic


text:
fixes 1568

Description

Die lokale Variable svValue wird allgemein als var deklariert und je nach SV Typ im folgenden entsprechend vorbefüllt.
Wird ein benutzerdefinierter Wert für die SV vergeben, so wird svValue mit dem Inhalt von system.GetVar("sValue") überschrieben.
Final wird der .State() nun nur noch einmalig gesetzt.
Related Issue
#1568
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Alternate Designs

Possible Drawbacks

Verification Process

Release Notes

Contributing checklist

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING and LICENSE document.
[x] I fully agree to distribute my changes under Apache 2.0 license.

Ich komm mit den Review Kommentaren nicht klar.

Und was passiert jetzt wo da wieder sv.AlArm(true) ist? Später wird ja dann trotzdem nochmal ein State() gemacht?

Alles schick. Ich weiß nicht, was .AlArm() macht, es löst zumindest kein Sysprotokoll Eintrag aus

Ich komm mit den Review Kommentaren nicht klar.

Einfach unter meinem Kommentar replying und nicht im PR selber. Geht eigentlich super.

Und was passiert jetzt wo da wieder sv.AlArm(true) ist? Später wird ja dann trotzdem nochmal ein State() gemacht?

Alles schick. Ich weiß nicht, was .AlArm() macht, es löst zumindest kein Sysprotokoll Eintrag aus

Ok, wenn du das kontrolliert hast das bei allen Variablentypen nun das passiert was du wolltest, dann ok. dann musst du nur noch den CI/Linter Check ernstnehmen und deinen Patch umarbeiten das er keinne Konflikte/Probleme erzeugt :)

strings /bin/ReGaHss zeigt mir, dass es AlArm genau in der Schreibweise gibt.
Im gesamten /www kommt diese Methode nur an dieser einen Stelle der system.fn vor.
Hab keinen Plan, was die macht... sowas wie "Arming"="Scharfschalten" ?

dann musst du nur noch den CI/Linter Check ernstnehmen

???
Resolving codeload.github.com (codeload.github.com)... 140.82.113.10
382
Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... connected.
383
HTTP request sent, awaiting response... 404 Not Found
384
2021-11-26 10:34:41 ERROR 404: Not Found.
385

386
wget --passive-ftp -nd -t 3 -O '/home/runner/work/RaspberryMatic/RaspberryMatic/build-raspmatic_intelnuc/build/.occu-3.61.5-3.tar.gz.xA5WWI/output' 'http://sources.buildroot.net/occu/occu-3.61.5-3.tar.gz'
387
--2021-11-26 10:34:41--  http://sources.buildroot.net/occu/occu-3.61.5-3.tar.gz
388
Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.1.37, 172.67.72.56, 104.26.0.37, ...
389
Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.1.37|:80... connected.
390
HTTP request sent, awaiting response... 404 Not Found
391
2021-11-26 10:34:42 ERROR 404: Not Found.
392

393
wget --passive-ftp -nd -t 3 -O '/home/runner/work/RaspberryMatic/RaspberryMatic/build-raspmatic_intelnuc/build/.occu-3.61.5-3.tar.gz.SYur44/output' 'http://sources.buildroot.net/occu-3.61.5-3.tar.gz'
394
--2021-11-26 10:34:42--  http://sources.buildroot.net/occu-3.61.5-3.tar.gz
395
Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.0.37, 172.67.72.56, 104.26.1.37, ...
396
Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.0.37|:80... connected.
397
HTTP request sent, awaiting response... 404 Not Found
398
2021-11-26 10:34:42 ERROR 404: Not Found.

Das war ja nicht die Frage was AlArm() macht, sondern ob die Logik durch deinen Anpassungen nun geändert ist weil bei den anderen Datentypen ging die alte Methode ja anders vor.

dann musst du nur noch den CI/Linter Check ernstnehmen

???
Resolving codeload.github.com (codeload.github.com)... 140.82.113.10
382
Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... connected.
383
HTTP request sent, awaiting response... 404 Not Found
384
2021-11-26 10:34:41 ERROR 404: Not Found.
385

Ok, also nicht dein Problem. Dann hat GitHub gerade interne Probleme.

Ok, also nicht dein Problem.

Gut, dann hab ich es nicht kaputt gemacht 😎

sondern ob die Logik durch deinen Anpassungen nun geändert ist
Nein, ist sie nicht, weil beim Anlegen einer Alarmvariable gar kein initialer State gesetzt wird. Auch gut.

Habt ihr das mit AlArm() geklärt?
Damit wird AlIsArmed gesetzt.
Wenn AlIsArmed == false lässt sich die AlarmSysVar nicht auslösen.

Wenn AlIsArmed == false lässt sich die AlarmSysVar nicht auslösen.

Interessant. Fragt sich nur, warum das nirgends in der WebUI Verwendung findet.
Aber das ist für den Patch hier auch unerheblich.
Danke für die Aufklärung


text:
feat: tag trace

in order to make trace searcheable by username

repo: jeqo/talk-kafka-zipkin


text:
Include path missing

I couldn't make the "Quick Setup with CMake FetchContent" working without adding the following line:
include_directories(_deps/cpptrace-src/include)
P.S. Making a fork for one line in the README seemed like too much overhead.

Hello, thanks for the report! I'll look into this. What did you specify for GIT_TAG? I'd recommend v0.1.1 as main is somewhat unstable at the moment (working on overhauling some internals).

Thanks for the quick reply. I used the latest commit SHA. Did not try with the tag. I'll do that now.

Hi @mvitorovic, things have now stabalized with the reworking I've done and it looks like cmake + fetchcontent is working.
(I tested with:
cmake_minimum_required(VERSION 3.8)

project(demo_project VERSION 0.0.1 LANGUAGES CXX)

add_executable(main main.cpp)

include(FetchContent)
FetchContent_Declare(
  cpptrace
  GIT_REPOSITORY https://github.com/jeremy-rifkin/cpptrace.git
  GIT_TAG        main # <HASH or TAG>
)
FetchContent_MakeAvailable(cpptrace)
target_link_libraries(main cpptrace)

target_compile_features(main PRIVATE cxx_std_11)

)

authors: jeremy-rifkin mvitorovic

repo: jeremy-rifkin/cpptrace


text:
[FP]: SnakeYAML 1.32 is no longer affected by CVE-2022-38725

Package URl
pkg:maven/org.yaml/snakeyaml@1.32
CPE
cpe:2.3:a:snakeyaml_project:snakeyaml:1.32:::::::*
CVE
CVE-2022-38752
ODC Integration
{"label"=>"Maven Plugin"}
ODC Version
7.1.0
Description
There is no version range included in https://nvd.nist.gov/vuln/detail/CVE-2022-38752. But although the underlying issue https://bitbucket.org/snakeyaml/snakeyaml/issues/531/stackoverflow-oss-fuzz-47081 was fixed in 1.32 this version is still reported as being affected.

Unfortunately the CVE is of poor quality by not including affected versions, however the generated suppression rule is too broad, as it does not include a version.
I've created a PR with Github to add the version: https://github.com/github/advisory-database/pull/667

Since this is an issue with a single CVE the upstream data should be fixed rather than doing so in OWASP dep check itself. I believe suppressions here are supposed to only be about package <> CPE mismatches.
Have contacted NVD to try and get it fixed upstream anyway.

It has been fixed upstream at NVD. Thanks a lot for your help.

Yeah, they responded pretty quickly to my request for review 👍

authors: chadlwilson kwin mprins

repo: jeremylong/DependencyCheck


text:
[FP]: Python package types-python-dateutil misinterpreted as python

Package URl
pkg:pypi/types-python-dateutil@2.8.19.5
CPE
cpe:2.3:a:python:python:2.8.19.5:*:*:*:*:*:*:*
cpe:2.3:a:python_software_foundation:python:2.8.19.5:*:*:*:*:*:*:*
CVE
No response
ODC Integration
{"label"=>"Docker"}
ODC Version
7.4.4
Description
The pypi package types-python-dateutil@2.8.19.5 is getting misinterpreted as python in the version 2.8.19.5. Therefore, Dependency Check reports the following python related CVEs:
CVE-2017-17522
CVE-2019-9674
CVE-2022-0391
CVE-2022-45061
CVE-2015-5652
CVE-2022-26488
CVE-2007-4559
CVE-2017-18207
CVE-2021-3733
CVE-2021-23336

It seems to be the case that Dependency Check is not aware that it is a python PACKAGE and looks for python related vulnerabilities.
Another package python-dateutil@2.8.2 does not course any false positives. Why is this the case? Do you have an idea? What is the mechanism behind this?
Thank you!
Cheers,
Robin

Another package python-dateutil@2.8.2 does not course any false positives. Why is this the case? Do you have an idea? What is the mechanism behind this?

That's because the test-library is not caught by the regex https://github.com/jeremylong/DependencyCheck/blob/e63738ae3d87fd9407acdf3b6a971379e43564c5/core/src/main/resources/dependencycheck-base-suppression.xml#L4454-L4462

authors: TheRealArlie aikebah


text:
Bump H2

Description of Change
Supersedes #2870 and fixes #3894.
This is a breaking change as if someone specifies a data directory:

The database cannot be "shared" with older versions of ODC.
If the data directory is specified and a database exists - ODC will not be able to access the database. The database will need to be purged and re-created.

@mprins thanks for bumping the version in the PR!


text:
[BUG] Error message Not showing in componet if return view()->withErrors(['field'=>'cutom message'])

Error message Not showing in component if return view()->withErrors(['field'=>'cutom message']). However, on redirect(), back(), or after fail the validation works fine.
In controller:
return view('pages.tel-numbers.answers.edit', [
    'title' => $title,
    'answer' =>$answer
])->withErrors(['voice' => 'Your custom message']);

In view:
<x-adminlte-input name="voice" label="voice'" placeholder="" data-mask
   enable-old-support value="{{$answer->voice}}">
   <x-slot name="prependSlot">

   </x-slot>
</x-adminlte-input>

if debug $errors in the view I can see the error, but in the component (views\vendor\adminlte\components\form\input-group-component.blade.php) the $errors is empty.

@fastered I played sometime with your example, it seems that when you use withErrors() method, it fails to share the $errors variable among all blade views (as it is done when you use a validator) and this causes the bug, because $errors will be available on your pages.tel-numbers.answers.edit view, but not on the underlying component blade view. I will keep investigating if there is any solution for this...

@fastered After digging deeper I can clearly see that you are misusing the withErrors() method here. The one you are using is the available for the \Illuminate\View\View which says:

So, it only adds the errors bag to the view instance you are referencing (i.e, not sharing with all views).
And the one that will work nicely is the available for \Illuminate\Http\RedirectResponse which says:

So, instead of returning a view with errors you should try to rework your code to redirect it to some route with the customized errors.

Thank you very much, I thought about it, but with additional routes ... I did it differently, I made a check for an existing error so that the redirect is not infinite, and if there is an error in the session, then I return view ...
otherwise I check further, and if necessary, I redirect to the same route with errors
`  $view = view('pages.tel-numbers.answers.edit', [
            'title' => $title,
            'answer' => $answer,
        ]);

        if(Session::has('errors')) return $view;

        $text = $this->verify_exist_tel_voice($answer, 'tel_voice');

        if ($text) return redirect(route('tel.numbers.answer.edit',$number))->withErrors(['tel_voice' => $text]);

        return $view;`

works good

Nice, can we close the issue?

authors: dfsmania fastered

repo: jeroennoten/Laravel-AdminLTE


text:
I have some models, and I can't handle event on any of them

Describe the bug
I tried to handle event click on model using your code. And it's not working. How I can handle this event of any my model, or, maybe coordinates of screen (x, y)
Waiting for answer, thanx.

Please, add more informations. Add:

code you used, full code
what it means 'not works', please explain what you are trying to achieve, in detail, and what is the outcome.

Otherwise I have to close this issue.

authors: maxhaice nicolocarpignoli