Skip to main content
Filter by
Sorted by
Tagged with
3 votes
3 answers
234 views

I need to process 100 Gigabytes of logs in a weird format, then do some analysis on the results. Initial parts of parsing and CLI done, tried on some test data with 1 GB and it took around a minute. I ...
nemo nemo's user avatar
1 vote
1 answer
133 views

So I have this really weird issue where I have the following dummy.php script: <?php declare(strict_types=1); $prompt = "Hello there!". PHP_EOL . "What do you want to know?"...
DevelJoe's user avatar
  • 1,552
1 vote
3 answers
145 views

Any suggestions where this huge time difference results from when reading the same large text file by the same loop from inside a class in Python. import timeit fn = "some-large-file.txt" ...
user1491229's user avatar
72 votes
20 answers
111k views

TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in /usr/...
F.wo.huang's user avatar
0 votes
3 answers
95 views

I am using Vim bindings in bash (set -o vi) and I wanted to know if it is possible to use and save Vim macros on the command line. For instance, I would like to save a macro like this: let @q = "...
armando's user avatar
  • 1,508
0 votes
3 answers
132 views

from sys import argv script, input_file = argv hello = open(input_file) read1 = hello.readline() print("Line1: ", read1, end = "") line1 = len(read1) + 1 print(line1) read2 = ...
Govind Sharma's user avatar
2 votes
2 answers
135 views

I'm using linenoise with a c command line style program. The standard way of using linenoise is to do a simple char* line; line = linenoise("prompt: "); // Use the line in the app free(...
Mark S.'s user avatar
  • 77
1 vote
0 answers
118 views

I just hate it so much when small things that were working since forever suddenly break. I use MINGW64 bash in Windows Terminal in Windows 10. When I run gdb-multiarch, inside it, suddenly Backspace ...
sdbbs's user avatar
  • 5,948
61 votes
2 answers
41k views

In command-line applications, such as the Bash shell that implements readline-like line editing capabilities, there is a key binding for deleting a whole word before the cursor, which is by default ...
Victor Lee's user avatar
  • 2,716
148 votes
5 answers
63k views

I found a command a couple of months ago that made my bash history auto-complete on what's already on the line when pressing the up arrow: $ vim fi Press ↑ $ vim file.py I'd like to set this up on ...
blokkie's user avatar
  • 5,635
0 votes
0 answers
95 views

same problem as for libreadline.so.7 in fedora. It seems that readline configure is catastrophic assuming that readline.so is already present in /usr/lib
sylvian kahane's user avatar
1 vote
1 answer
140 views

Bash provides facilities to modify an entire line and change the position of the cursor with commands bound to bind -x through READLINE_LINE and READLINE_POINT variables: $ cat test.sh #!/bin/bash ...
Andriy Sultanov's user avatar
0 votes
1 answer
604 views

Using Renci SSH.NET, I am trying to send a simple command to an ethernet switch over ssh, and then to read the response back from the switch. I can connect to the switch but it just hangs when I call ...
DavidJ's user avatar
  • 1
2 votes
2 answers
97 views

I have the following signal handler established: void sig_handler(int sig) { if (sig == SIGINT) { printf("\n"); rl_on_new_line(); rl_replace_line("&...
user39350's user avatar
88 votes
7 answers
129k views

I am trying to determine the best way to handle getting rid of newlines when reading in newline delimited files in Python. What I've come up with is the following code, include throwaway code to test. ...
solarce's user avatar
  • 1,195
0 votes
1 answer
74 views

I have a string that needs to be read using the Scanner class from the beginning to the \n character. The problem is that the source stream in my case may contain the character \u2028. I know that the ...
Smetana Po Aktsii's user avatar
20 votes
11 answers
55k views

I am creating a program to take input of two numbers from the command line and then showing there sum in node.js. I am using readline module to take stdin. Below is my code. const readline = require('...
Puneet Singh's user avatar
36 votes
9 answers
12k views

I am working on this tutorial on building your own LISP (http://www.buildyourownlisp.com/chapter4_interactive_prompt) and for some reason when I try to compile I get this: REPL.c:4:10: fatal error: '...
yburyug's user avatar
  • 1,070
1 vote
4 answers
179 views

UPDATE: The root problem has been solved by fixing a number of Sequelize migrations that always run before mysqldump is called, as discussed in the comments that are below the article that is linked ...
steven_noble's user avatar
  • 4,213
54 votes
2 answers
16k views

Before upgrading to lion, I had tab complete working in a python shell via terminal. Following these instructions, it was possible to have tab complete working. Since upgrading to Lion, I am now ...
Josh Smeaton's user avatar
  • 48.8k
50 votes
6 answers
15k views

I'm no Homebrew expert but I think it has "upgraded" me from readline version 6.x to 7.0 sometime after 9/15/16: eat@eric-macbook:Homebrew$ brew info readline readline: stable 7.0 (bottled) [keg-only]...
ericky's user avatar
  • 1,691
9 votes
2 answers
53k views

I was looking on a web of Python the commands mentioned in title and their difference; however, I have not satisfied with a complete basic understanding of these commands. Suppose my file has only the ...
Soluble's user avatar
  • 191
0 votes
0 answers
121 views

I am currently running R code on a server in the background with nohup in the following way: nohup R --no-save < Rscriptname.R &> out & I need to make some small changes to the script ...
Ev09's user avatar
  • 21
1 vote
1 answer
65 views

I stumbled across what should be something simple that's turned out to be a brain-teaser. As a not fully accomplished BASH programmer, I naively thought I could read in characters from an interactive ...
Richard T's user avatar
  • 4,695
39 votes
5 answers
476k views

I'm having trouble to read more than one character using my program, I can't seem to figure out what went wrong with my program. import serial ser = serial.Serial( port='COM5',\ baudrate=...
user2294001's user avatar

1
2 3 4 5
46