Skip to content

Instantly share code, notes, and snippets.

@lebarsfa
lebarsfa / import.m
Last active March 6, 2024 22:14 — forked from jaeandersson/import.m
Import a package into Octave using the syntax "import packagename.*" or "import py.packagename.*" if using Pythonic
function import(varargin)
% Import a package. Only entire packages can be imported currently.
error(nargchk(1,inf,nargin,'struct'));
% Import the packages one-by-one.
for i=1:nargin
[pkgname,names]=import1(varargin{i});
% Pythonic specific case...
for j=1:length(names)
assignin('caller',char(names{j}),pyeval({[pkgname '.' char(names{j})]}));
end
@lebarsfa
lebarsfa / topdon_tc001_review.txt
Last active January 23, 2024 08:38
Quick review of TOPDON thermal infrared camera TC001
Quick review of TOPDON thermal infrared camera TC001
See https://www.topdon.com/products/tc001
Windows
Either use the proprietary app or follow https://github.com/LeoDJ/P2Pro-Viewer/issues/9#issuecomment-1645982118 to be able to see the data with apps that support any webcams. For an OpenCV sample, see https://github.com/LeoDJ/PyThermalCamera/tree/main .
Using the proprietary app TC001_ToolsSW_Thermal_Imager_V0_69_EN.zip, .mp4 recordings seem in C:\TCView\album (contrary to what the app seems to suggest).
Windows proprietary driver seems based on libusb (maybe similar to freenect2?), but it is possible to change the driver to standard camera, see above.
If needed, maybe obs-studio could also be used to get the proprietary app window so that OpenCV can access its view in realtime (note that OpenCV>=4.8 is necessary to be able to open obs-studio virtual webcam, see https://github.com/obsproject/obs-studio/issues/3635 ).
@lebarsfa
lebarsfa / viewsonic_m1_mini_review.txt
Last active January 12, 2024 21:07
Quick review of ViewSonic M1 Mini videoprojector
Quick review of ViewSonic M1 Mini videoprojector
When connecting an external SSD in USB, seems to support .mp4 but not .pdf nor .ppt...
Image is corrected in pitch but not in heading, maybe not roll...
Resolution 848x480 recommended on PC but can set up to 1920x1080, however output projector is still probably 854x480 as specified in the specs...
@lebarsfa
lebarsfa / asus_t100ta_review.txt
Last active December 30, 2023 16:53
Review of ASUS Transformer Book T100TA-DK027P with keyboard and preinstalled Windows 8.1 Pro 32 bit
Review of ASUS Transformer Book T100TA-DK027P with keyboard and preinstalled Windows 8.1 Pro 32 bit
See https://www.asus.com/fr/commercial-laptops/asus_transformer_book_t100ta/
Some specific hardware characteristics:
Intel® Bay Trail-T Quad Core Z3775 1.46 GHz ~ 2.39 GHz, see https://www.intel.com/content/www/us/en/products/sku/80268/intel-atom-processor-z3775-2m-cache-up-to-2-39-ghz/specifications.html
Battery: 2 cells 8000 mAh 31 Wh
Intel HD Graphics 8086:0F31 @ 1368x768 60 Hz
Internal storage Hynix HCG8e 60 GB
2 GB of RAM
@lebarsfa
lebarsfa / refreshenv.bashrc
Last active February 4, 2024 22:54 — forked from Villenny/refreshenv.bashrc
Chocolatey refreshenv for GIT Bash.
function refreshenv
{
powershell -NonInteractive - <<EOF
\$filename="\$env:TEMP\refresh.env"
Write-Host("Updating environment session from chocolatey")
Set-ExecutionPolicy Bypass -Scope Process -Force
Import-Module "\$env:ChocolateyInstall\\helpers\\chocolateyProfile.psm1"
Update-SessionEnvironment
Write-Host("Scanning env")