6,969 questions
Tooling
0
votes
0
replies
32
views
Sphinx/RST: is it possible to draw ascii text in Sphinx with ReStructredText?
Is it possible to draw simple images and diagrams directly out of ASCII text in Sphinx?
Something like AsciiDraw or AsciiFlow but directly visible in the RST file and then rendered automatically to a ...
Advice
1
vote
6
replies
32
views
Confusion about the naming of binascii.hexlify
Does anyone know what the 'l' in the name of Python's binascii.hexlify is for? Why isn't it "hexify" instead of "hexlify"?
Googling it gave me nothing. ChatGPT predictably gave me ...
0
votes
3
answers
120
views
How to identify a specific ASCII character in Excel?
I received a file to process that had some extra spaces causing issues such as:
"DATE "
I first tried TRIM, but it did not help. I did find the solution by using SUBSTITUTE(A1, CHAR(160),...
1
vote
1
answer
89
views
How to turn numbers to their relevant letters?
I'm creating a Microsoft Access program and I have a calculated column that looks like this:
Round([chance]/20)
I've tried adding in the ascii tab
Ascii(Round([chance]/20))
and its making a set of ...
Advice
2
votes
5
replies
151
views
How to use space as an delimiter when the entire string is made up of spaces?
I've written a program that takes in a text then prints the binary translation of it. İts been working perfectly fine until I tried the case where entire string is just made up of spaces. As to ...
Best practices
0
votes
4
replies
136
views
How to search through Unicode text with ASCII input in Python
I have a corpus of text which includes some accented words, such as épée, and I would like people to be able to easily search through it using ASCII input. Ideally, they would simply type protege or ...
1
vote
1
answer
111
views
Why are Grep highlight sequences not read with `pty`?
I was experimenting with creack/pty while learning about pseudo terminals.
I spawned grep and hooked it up with a pseudo terminal device as follows:
package main
import (
"fmt"
&...
2
votes
2
answers
288
views
Why does my ASCII animation keep scrolling down instead of updating in place on Windows console?
I’m trying to create a simple ASCII 3D spinning cube animation in the Windows console using C++:
#include <iostream>
#include <cmath>
#include <cstring>
#include <windows.h>
#...
2
votes
0
answers
137
views
Bypassing C64's PETSCII to screen code mapping
In upper-case mode, the C64 PRINT ASC("A") prints 65 - the ASCII/PETSCII code.
But POKE 1024,65 prints the shifted A character. PRINT CHR$(65), however, prints the proper 'A' character.
With ...
3
votes
1
answer
278
views
Delphi tstringlist encoding default
I have noticed recently (maybe a change in recent Delphi) that if I load an ASCII format txt file into a tstringlist, edit a line with file.lines[10]:='blah', and then save it again the file is now ...
0
votes
1
answer
187
views
How to use character arrays with Win32 APIs in C++ Builder 12
I am experimenting with C++Builder 12, trying to port some old code from C++Builder 2009.
In that old code, all character strings are defined, for example, like this:
char testString[256]="This ...
1
vote
0
answers
82
views
printer italic font ascii (no html tags os font styles)
We are using citizen/HP printer to print receipt.
to print Bold characters uses following code
string Bold = Escape + (char) 33; // u001b!
string BoldStart = Bold + (char)8;// u001b!\b
string BoldEnd =...
0
votes
7
answers
326
views
How does '0' + (n % 10) convert an integer digit to its character representation in C?
I'm learning about converting numbers to characters in C, and I came across the expression:
char c = '0' + (n % 10);
I understand that '0' is a character and n % 10 extracts the last digit of a ...
-1
votes
2
answers
172
views
convert a VHDL string to an integer ascii equivalent
Suppose I have VHDL code that has a generic string STACK with the value "top". I want to pass it to a SystemVerilog module as a parameter, but SV does not have a type compatible with VHDL ...
-1
votes
1
answer
89
views
glib iconv() - force conversion to single bytes
I have my own personal movie database system, within which context I NEVER want to see "extended" characters (with accents, umlauts, etc.) in any text fields.
MS Co-pilot tells me that i ...