Thursday, August 14, 2025

Ansys 25 R2 and SolidWorks plugin not working

Create `SolidWorksAddIn_Ansys252.bat`:
@echo on
copy /Y "%AWP_ROOT252%\Framework\bin\Win64\Xalan-C_1_12.dll" "%AWP_ROOT252%\aisol\CADIntegration\SolidWorks\winx64"
copy /Y "%AWP_ROOT252%\Framework\bin\Win64\XalanMessages_1_12.dll" "%AWP_ROOT252%\aisol\CADIntegration\SolidWorks\winx64"
copy /Y "%AWP_ROOT252%\Framework\bin\Win64\xerces-c_3_2.dll" "%AWP_ROOT252%\aisol\CADIntegration\SolidWorks\winx64"
copy /Y "%AWP_ROOT252%\Framework\bin\Win64\zlib1.dll" "%AWP_ROOT252%\aisol\CADIntegration\SolidWorks\winx64"

and run as Administrator

Friday, August 08, 2025

pandoc: Word to markdown

pandoc input.docx -t markdown_strict -o output.md

Friday, August 01, 2025

Wednesday, July 30, 2025

Add Browser MCP to Claude Code

claude mcp add-json browsermcp '{ "type": "stdio", "command": "npx", "args": ["@browsermcp/mcp@latest"]}'
https://github.com/browsermcp/mcp

Wednesday, July 23, 2025

Linux: convert docx to markdown using pandoc

pandoc -f docx -t markdown_strict input.docx -o foo.md From: https://stackoverflow.com/a/33149947/248823

Thursday, June 19, 2025

Thursday, April 10, 2025

Friday, April 04, 2025

Thursday, March 27, 2025

Convert all pdf files to txt files

find . -name '*.pdf' -print0 | xargs -0 -n1 pdftotext

Wednesday, November 27, 2024

Linux: ollama chagne default model location

Stop ollama sertice
Run systemctl edit ollama.service.
Add the line Environment="OLLAMA_MODELS=/path/to/new/location" under the [Service] section.
Save and exit the editor.
start ollama sertice