Skip to main content
Advice
0 votes
6 replies
50 views

I have a folder full of hundreds of text files formatted like so: holdrod =fl__2183_180325_0045 <bunch of data> measburn_tot = 189.260915 <bunch of data> I want to use ...
Joe Blough's user avatar
Tooling
0 votes
12 replies
98 views

I'm working on a project in which I need to filter out specific strings from an inconsistent API, where the strings are not always what I want. I need to filter out eligibility for different education ...
23emli's user avatar
  • 1
1 vote
1 answer
42 views

Here is a piece of cmake code: macro(my_macro p) message("--my_macro--") message("p is: ${p}") if(p) # <========================= (1) message("\"if(...
SZYoo's user avatar
  • 518
-2 votes
1 answer
132 views

I have a C function that receives data from an input source (e.g., a USB stick or sensor), where the input is ASCII characters representing numeric values. For example, I might receive: "12/04/23&...
Maaz Madha's user avatar
0 votes
1 answer
127 views

I am trying to implement a function in C similar to strcpy, but the program produces a segmentation fault when executed. The code below attempts to copy a source string into a destination string, but ...
Miguel Garcia Silvestre's user avatar
0 votes
3 answers
123 views

I want to add strings to a fixed 2D array. I have a core dumped error when executing my addToList function. The program passes the list pointer and the string to add as arguments. I then iterate ...
SolidSnake's user avatar
-1 votes
2 answers
235 views

I just saw a video that explains basic concepts about string memory allocation (video: https://www.youtube.com/watch?v=gp6NY01XFoE). In 3:00, he says that two objects are created (one in String Pool ...
queseyo_202x's user avatar
0 votes
2 answers
150 views

Basic Add operation does not work let mut st: String = "".to_string(); st += 'c'; | 3 | st += 'c'; | ^^^ expected `&str`, found `char` Push Operation works let mut st: ...
Shrishvesh Reddy's user avatar
4 votes
1 answer
132 views

Is there a reason why yaml adds single quotation marks around the words yes and no when I create a YAML file from a python dict? MWE: import yaml def yes_or_no( word: str, ) -> dict: ...
kalle's user avatar
  • 197
0 votes
0 answers
54 views

I am building a CalDAV/CardDAV client for the Gleam programming language. I have a function which sends a REPORT request to the CalDAV server (Baikal in this case) with this body: let headers = [ #(&...
Abhimanyu Sharma's user avatar
-2 votes
1 answer
174 views

I'm trying to use the \U format in Python 3 but found the following error: >>> import re >>> p = re.compile('[\U+0041\U+0042\U+0043]') File "<stdin>", line 1 p =...
stackbiz's user avatar
  • 1,962
Best practices
0 votes
8 replies
78 views

I am building a Task Tracker CLI project, currently working on the CLI structure to accept user input. I have used a switch statement to receive input from args. The problem I have is that I have ...
DakuwoN's user avatar
1 vote
1 answer
124 views

I have a binary string, in that binary string there are many zeros with followed by a single 1, for example, "...
RAnsari's user avatar
  • 47
1 vote
1 answer
144 views

I am trying to perform text analysis on large character strings that include multiple different speakers. I need to create a dataframe of 2 columns, speaker and turn, which have the person speaking ...
flâneur's user avatar
  • 363
2 votes
1 answer
78 views

hist_df_2["time"] = hist_df_2.apply(lambda row : hist_df_2['timestamp'].replace(str(hist_df_2['date']), ''), axis=1) I tried this to remove the date part from the timestamp. However, for ...
DivineBanana's user avatar

15 30 50 per page
1
2 3 4 5
12331