Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
0 replies
48 views

I'm quite frustrated trying to write to a binary file in Excel VBA. The issue is with fixed-length string data in a Type structure. (Note that my binary file requirements are that fixed-length string ...
Dave Clark's user avatar
0 votes
0 answers
33 views

I’m learning Java and testing basic input handling. I wrote the following simple program: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner ...
Burak HINGE's user avatar
-2 votes
1 answer
171 views

I have to create a dictionary, where the keys are letters of the alphabet, and the values are the indexed letters of a given string. Example: Given the string "BDFHJLCPRTXVZNYEIWGAKMUSQO" ...
Shadow0013's user avatar
0 votes
0 answers
47 views

I'm using java spring boot and jsoup and recently I upgraded jsoup version to 1.21.1. My code creates search query and searches for it in the document Elements targetElements = document.select(...
user613's user avatar
  • 243
0 votes
0 answers
50 views

I am trying to use the pymer4 package in python for Multi-Level Models, and I have to pass an "R-style formula specifying the model". I understand that it looks like: target ~ varA + varB ...
n6r5's user avatar
  • 364
Advice
1 vote
7 replies
99 views

I have array of strings $Emails = '[email protected]','[email protected]','[email protected]' This array can contain from 1 to unlimited numbers of elements. And I need to build a filter string from ...
Posix's user avatar
  • 23
0 votes
1 answer
88 views

The task Given the following string¹ one ' two 'three four the required function should split it in 3 tokens (one, two three, and four), in agreement with how the bash shell does: $ function ...
Enlico's user avatar
  • 30.2k
3 votes
1 answer
100 views

I am homebuilding a USB driver on STM32. I have managed to get the device to enumerate which is awesome, but only when I disable all the strings (set all ID's to 0). Right now, when I set ...
Eman's user avatar
  • 303
6 votes
2 answers
181 views

I'm using the Stringzilla string library, which is supposed to be close to how std::string operates. It has a flag called SZ_USE_MISALIGNED_LOADS. By default it sets it to on, and it looks like this: /...
Zebrafish's user avatar
  • 16.3k
1 vote
4 answers
156 views

Given is a string which is a url of a file, e.g. http://url.com/file.zip. I want to extract the path without the file name, i.e. http://url.com/. My idea for doing this was to break down the string ...
C4lculated's user avatar
1 vote
2 answers
94 views

I have a function capable of translating UTF-8 characters into a custom 8-bit encoding: const fn char_to_custom_encoding(c: char) -> u8; I'd like to apply it at compile time to a string literal so ...
val - disappointed in SE's user avatar
2 votes
0 answers
76 views

I'm having trouble writing what should be a simple character counting program. Here's the file with the .data section, as given by the author of Learn to Program with Assembly, which I'm following (I ...
Andrew Boone's user avatar
2 votes
2 answers
121 views

I'm writing a little toy program to try to help myself better understand this language (AT&T syntax, x86_64 assembly language). Consider this code, if you'll be so kind: .section .data mystring: ....
Andrew Boone's user avatar
0 votes
1 answer
161 views

I've got two lists in my Java app: The first contains commands, the second the according valid replies, which I compare to the actual replies: private final String[] commands = {"Do something&...
Neph's user avatar
  • 2,013
1 vote
1 answer
166 views

I am using hospital data. I want to make a regex expression in R and I am struggling to do this without using string manipulation outside of a single regex expression. The string I want to search is: &...
JisL's user avatar
  • 333
5 votes
2 answers
89 views

I restored a large number of files in diverse folders from a hard drive, and they all included a string. I removed this string in windows powershell using get-childItem -recurse | Where {$_.name -like ...
jringger's user avatar
2 votes
3 answers
167 views

Let's say I want to replace every occurrence of 12345 in file1 with the contents of file2. The following code works: use strict; use warnings; local $/; open my $fh, 'file1' or die "$!"; ...
Ivan's user avatar
  • 377
1 vote
2 answers
114 views

Let's say I have a string: $line = "name=""abc""" I want to extract whatever is written within the quotation marks, like this: [regex]::Matches($line,'(?<=name="...
RocketSearcher's user avatar
0 votes
2 answers
72 views

I am attempting to proper case the contents of a column that has various erroneous inputs. The code I used worked on everything except where the word is all caps. I can't do "lower(initcap(field)...
Lo Mc's user avatar
  • 11
11 votes
2 answers
856 views

I have some character strings which I'm getting from an html. Turns out, these strings have some hidden characters or controls (?). How can I convert this string so that it only contains the visible ...
deschen's user avatar
  • 11.6k
3 votes
1 answer
152 views

I'm working on a web scraping project in Python to collect data from a real estate website. I'm running into an issue with the addresses, as they are not always consistent. I've already handled simple ...
Adamzam15's user avatar
5 votes
4 answers
244 views

I have a long string. In the string, I have two non-overlapping parts. They can have a gap between them. The lengths can be different. For example a string: This is a "foo", that is a "...
Karel Bílek's user avatar
  • 38.1k
1 vote
1 answer
85 views

I'm trying to make a 2D array of Strings using the ndarray crate.. use ndarray::Array2; char_array = Array2::<String>::zeros((width, height)); Clearly, it doesn't work, so what's the ...
jason m's user avatar
  • 11
3 votes
0 answers
228 views

I currently have a Delphi DLL which takes in 2 parameters as PChar and another parameter that outputs as a PChar to Excel. In Excel these are all string, but whenever I run the macro in Excel, my ...
Louis Chapoy's user avatar
2 votes
2 answers
100 views

I am working on a C++ library with a Swift backend (the C++ code mainly serves as a bridge to Rust). I have the following: char* get_string(void* pBackend) { Backend* backend = (Backend*) pBackend;...
Plegeus's user avatar
  • 402

1
2 3 4 5
3700