Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
2 answers
656 views

I have the following code: fn handle_client(mut stream: TcpStream) -> () { let mut buffer = [0; 4096]; stream.read(&mut buffer).expect("read fail"); let path_request: Cow&...
Dimon Agon's user avatar
1 vote
1 answer
223 views

I’m attempting to implement the TEA algorithm in assembly language (8086 TASM). However, I’m encountering difficulties in two areas String Input: I need assistance in implementing a mechanism to ...
ChickenRei's user avatar
1 vote
2 answers
171 views

We receive UTF-8 compliant data from a 3rd party system. Our system can handle it since it is also UTF-8 compliant. The problem is that old downstream systems can not always handle characters with a ...
Johan's user avatar
  • 361
-1 votes
1 answer
114 views

I'd like your help with a program that processes text in ASCII art. The program must write a letter or a word in the ASCII style given as input. The problem is that the program returns me at the end ...
Fapou9's user avatar
  • 21
0 votes
1 answer
190 views

I'm trying to configure a barcode code39 full ascii, it seems to work ok except for the char #, I've tried font libre barcode code 39, azalea font and barcode 39, all with the same result. When headed ...
fraschizzato's user avatar
0 votes
3 answers
189 views

I'm using the following to compare the content of two supposedly identical files. I've read that—at least with respect to textual files, like TXT or HTML—the encoding of a file affects how a file's ...
william's user avatar
  • 109
0 votes
2 answers
69 views

I would like to take a string input, convert them into either lowercase or uppercase and print them. So far, I have successfuly implemented that. Now, I want to modify my program such that if the ...
user23569449's user avatar
0 votes
1 answer
108 views

I'm pretty new to C++. This code was provided as an example to use Lambdas to index strings. ie. string "123" becomes unsigned int 123. My issue is the main for-loop, the line starting with ...
Madz_'s user avatar
  • 5
0 votes
2 answers
326 views

need some help to convert Hex String to Ascii string. I am using sample functions from here Sample Hex = 20354653474955 I am getting this error: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] ...
Kay's user avatar
  • 21
0 votes
2 answers
49 views

I'm trying to convert a byte[] in a string but need to use the HEX column of the ASCII table. What i have: *byte[] byteArray = new byte [] {41,56,41}; string result = Encoding.ASCII.GetString(...
João Garcia's user avatar
0 votes
2 answers
140 views

#!/bin/bash $'\141' string1="$'\\" number=141 string2="'" result="${string1}${number}${string2}" $result Running this script gives this response: ./temp.sh: line 2: a: ...
user avatar
0 votes
2 answers
58 views

Why does the program work fine when I use only integers? After I insert a number for variable 'a' and then press enter, doesn't \n remain in the buffer? If it indeed remains, then why can I initialize ...
JOHN BOURAS's user avatar
0 votes
0 answers
615 views

In scenarios where passwords exceed the 72-byte limit of Bcrypt hashing, it becomes necessary to devise alternative approaches to ensure all input data is hashed without loss. One viable solution ...
RPR's user avatar
  • 1
1 vote
0 answers
144 views

I am writing a program that converts a 24 bit bmp file into ascii text and saves it to a txt file. I am at the very end of the project and I have a problem with saving the result to a file. I'm trying ...
Adas's user avatar
  • 11
2 votes
1 answer
171 views

I encountered another old serial communication reverse engineer challenge from an environment data logger. This time the challenge is in the verification byte at the end of each transmission, like ...
Pepe Sanches's user avatar
1 vote
2 answers
119 views

I made a function that counts how many times a letter occurs in a file. I cannot figure out how to sort it by frequency, and if two letters occur the same number of times, the letter which is "...
eminbihh's user avatar
0 votes
0 answers
189 views

A temperature controller module sends data as RS485-Modbus Ascii code. When used putty 2400bps,parity-None,stop bit-1. Data shown as 0036 0030$* 0036 0030$* 0036 0030$* on serial monitor of putty. ...
Hasitha Ranawaka's user avatar
0 votes
1 answer
457 views

Python 3.9.12: This very simple code indented to upload a jsonl file to openAI for fine-tuning :gpt-3.5-turbo-1106 is resulting is the following error. contents of the jsonl file being uploaded: {&...
user1066558's user avatar
-1 votes
1 answer
119 views

Question above. And by 'unescaped' I mean "Hello \\n \\\"World\\\"". String myString = "Hello \\n \\\"World\\\""; System.out.println("Before : \n"); ...
BloxyBloxy's user avatar
1 vote
0 answers
183 views

I am using Algolia for a web application using the JS SDK and I am trying to filter by a string value using comparison operators like >, <, >=, etc... I was expecting it to be filtering the ...
Oskar Krämer's user avatar
0 votes
1 answer
502 views

I construct a table using Astropy as follows: data = astropy.table.Table(names=['Time', 'Rate (C/s)']). Then, I fill up the rows under the aforementioned columns using data.add_row. Finally, I intend ...
SKR's user avatar
  • 37
0 votes
0 answers
42 views

I'm trying to use Python to send Byte stream commands to an RFID Module. The device requires an example command: b'\xa0\x06\x01\x72' When I save this and print it to the console, it shows instead as: ...
Paul Bernard's user avatar
0 votes
0 answers
239 views

I need help converting numbers to ASCII. This is my code so far: .global itoascii itoascii: /* Initialize variables */ mov x1, #10 /* Divisor */ mov x2, buffer /*...
CODECARL's user avatar
-1 votes
3 answers
155 views

from colorama import Fore import platform import distro import time import os # Functions def get_uptime(): return os.popen('uptime -p').read()[:-1] def get_os(): return platform.system() + &...
Storm's user avatar
  • 5
0 votes
1 answer
78 views

I'm sure I'm missing something obvious here but I have a string that at a certain point has the € and I know that this means the next section repeats 128 times or if the character is 7 then it repeats ...
Hilton Siegert's user avatar