For each character:
- Export as SVG.
- Open SVG in Inkscape.
- Export PNG image at 600 DPI.
- Add layer mask (white). (gimp-layer-add-mask)
- Select layer mask. (gimp-layer-set-edit-mask)
- Filters→Render→Noise→Plasma… Turbulence 4.5. (plug-in-plasma)†
| #!/usr/bin/env python3 | |
| import html | |
| import sys | |
| if sys.stdin.isatty(): | |
| try: | |
| while 1: | |
| sys.stdout.write(html.unescape(input())+'\n') | |
| except EOFError: pass |
| #!/usr/bin/env python3 | |
| # Minimal example of using the filter `cell-noise` with GEGL through python-gegl. | |
| # Hopefully I can figure out how to import this into GIMP's Python console's environment. | |
| # These two lines makes sure version of gegl is correct | |
| import gi | |
| gi.require_version('Gegl', '0.4') | |
| import gegl | |
| import random |
| [package] | |
| name = "stackoverflow-piston-example" | |
| version = "0.0.0" | |
| authors = ["Fred"] | |
| description = "Note: This program can be used for both of the programs below. Simply use `cargo new` and save either of the below files as `src/main.rs`" | |
| keywords = [] | |
| [dependencies] | |
| piston = "0.35.0" | |
| piston2d-opengl_graphics = "0.50.0" |
| fredrick@q ~ % scanelf -nR /usr/local/bin/pavucontrol | |
| TYPE NEEDED FILE | |
| ET_DYN libgtkmm-3.0.so.1,libatkmm-1.6.so.1,libgdkmm-3.0.so.1,libglibmm-2.4.so.1,libsigc-2.0.so.0,libcanberra-gtk3.so.0,libcanberra.so.0,libgtk-3.so.0,libgobject-2.0.so.0,libglib-2.0.so.0,libintl.so.8,libpulse-mainloop-glib.so.0,libpulse.so.0,libstdc++.so.6,libgcc_s.so.1,libc.musl-x86_64.so.1 /usr/local/bin/pavucontrol | |
| fredrick@q ~ % scanelf -nR /usr/local/bin/termite | |
| TYPE NEEDED FILE | |
| ET_DYN libvte-2.91.so.0,libgtk-3.so.0,libgdk-3.so.0,libpangocairo-1.0.so.0,libpango-1.0.so.0,libcairo.so.2,libgobject-2.0.so.0,libglib-2.0.so.0,libstdc++.so.6,libgcc_s.so.1,libc.musl-x86_64.so.1 /usr/local/bin/termite |
I have been up for 18+ hours and I am literally laughing my ass off at how terrible computers are. This is everything great Sundays are made of.
I am making a supposedly simple library, which will allow Python scripts to globally connect to keyboard shortcuts and do actions, such as grab the focus, take a screenshot, whatever the script author wants. For my purpose it will be activating my in development accessibility application, QMouseKeys.
There are two interfaces to do this.
In Windows, you can hook into the system's message queue with pyHook, hook your listen function, then call pumpMessages() and you're getting back every keypress the user is making as a VK_* key code.
On X11, you activate the XRECORD extension, set up a recording context, and just like with Win32 you make an endless while loop that listens for the messages and you get them back as XK_* key codes.
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| if (php_sapi_name() != 'cli') | |
| die(); | |
| include 'inc/functions.php'; | |
| $boards = listBoards(); | |
| foreach ($boards as &$board) { | |
| //query(sprintf("ALTER TABLE `posts_%s` ADD `edited_at` DATETIME NULL", $board['uri'])) or error(db_error()); | |
| $config['meta_noindex'] = false; |
| <?php | |
| function less_ip($ip) { | |
| $ipv6 = (strstr($ip, ':') !== false); | |
| $in_addr = inet_pton($ip); | |
| if ($ipv6) { | |
| // Not sure how many to mask for IPv6, opinions? | |
| $mask = inet_pton('ffff:ffff:ffff:ffff:ffff:0:0:0'); | |
| } else { |
| CREATE TABLE `board_create` ( | |
| `uri` varchar(58) NOT NULL, | |
| `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
| UNIQUE KEY `uri` (`uri`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |