To properly debug with Visual Studio, it's recommended that you use a debug build.
Follow the instructions for building Inkscape on Windows
and substitute the first cmake command with:
| import sys | |
| import inspect | |
| class Tracer(object): | |
| def __init__(self): | |
| self._indentation_level = 0 | |
| @property | |
| def indentation_level(self): |
| """Bitmapper | |
| Usage: | |
| bitmapper.py <input> <output> [<width>] | |
| Options: | |
| -h --help Show this screen. | |
| <input> The input binary file. | |
| <output> The output bitmap. | |
| <width> The width of the bitmap in pixels. Optional. |
| # /// script | |
| # dependencies = [ | |
| # "psutil>=6.1.0", | |
| # "rich>=13.9.4", | |
| # "structlog>=24.4.0", | |
| # "typer>=0.15.1", | |
| # ] | |
| # /// | |
| import time | |
| from typing import Iterator |
| import time | |
| from pathlib import Path | |
| import typer | |
| import maya | |
| import psutil | |
| from loguru import logger | |
| app = typer.Typer() |
| import idaapi | |
| import idautils | |
| def iter_all_funcs(): | |
| for func_ea in idautils.Functions(idaapi.cvar.inf.minEA, idaapi.cvar.inf.maxEA): | |
| yield idaapi.get_func(func_ea) | |
| def iter_multichunk_funcs(): | |
| for func_t in iter_all_funcs(): | |
| if func_t.tailqty > 0: |
To properly debug with Visual Studio, it's recommended that you use a debug build.
Follow the instructions for building Inkscape on Windows
and substitute the first cmake command with:
| import re | |
| import idaapi | |
| import sark | |
| import abc | |
| class IDATracker(idaapi.UI_Hooks): | |
| __metaclass__ = abc.ABCMeta | |
| def __init__(self): |
| """ | |
| Create a PDF with multiple layers to demonstrate issues with MS Edge printing. | |
| See https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/jupyter-notebooks/optional-content.ipynb for reference. | |
| """ | |
| import fitz # PyMuPDF | |
| def main(): |
This is an implementation for my C++ Scoped Enums blogpost.
The names are a bit different than in the post, but the ideas are the same and should map across.
To remove the GB language pack:
Get-AppxPackage -AllUsers Microsoft.LanguageExperiencePacken-GB | Remove-AppxPackageThen in the registry, remove the GB entry from Computer\HKEY_CURRENT_USER\Keyboard Layout\Preload.
According to MSDN docs
the value should be 0x809.
If it is not the last value, make sure to rename the others!