Questions tagged [lines]

This tag can refer to rows of characters in text output or input, or to the shortest distance between two points.

This tag can refer to:

  • rows of characters in text output or input;
  • the shortest distance between two points (see also: ).
1223 questions
-2
votes
2 answers

Draw the same line multiple times, without losing previous trails

I am developing a WPF in C# and I want to draw a specific line multiple times, without losing its previous trails. I have 10 buttons inside my Gridand its time I press one I want a line to be drawn. For the line, I use the var redLine and each time…
Haris H
  • 125
  • 2
  • 15
-2
votes
1 answer

Assigning file lines to lists in python

I have a "samples" file containing numbers in two lines(separated by a single space): 12 24 36 45 56 67 I would like to add these two lines in python to two lists which list1 then becomes ['12','24','36'] and the list2 becomes ['45','56','67']. I…
coder
  • 13
  • 6
-2
votes
1 answer

MYSQL Column contains the same value

In mysql I have a column (LANG) that contains the same value (EN), the number of lines exceeds the 100,000 lines at the moment The column can take the same value among these IT, FR, DE, ES, EN is there any solution to optimizes the table? thanks
logitech2004
  • 53
  • 1
  • 6
-2
votes
2 answers

Adding Text After Specific Line of File in Bash Script w/o SED

I am trying to append a line under a specific line, lets say [BELOW HERE] and without using SED. What is the best alternative way to do this? I've tried to use SED but this was not supported for the machine where the script was made for. sed…
Stefan vdk
  • 11
  • 2
-2
votes
2 answers

Drawing Lines Using Kinect v2 c# wpf

I am trying to draw lines on canvas using my KINECT v2 right Handtip positions. I am getting my right hand tip positions from this line of code. CameraSpacePoint handtipPosition = handtip.Position; ColorSpacePoint handtipPoint =…
Sda
  • 3
  • 3
-2
votes
2 answers

Batch script to copy random lines from one text file to another

There are two files: "list.txt" and new "newlist.txt". Please tell me the script that can copy random lines from one file to another. The number of lines to copy is also random (in the specified range): set min=1 set max=100 set /a…
AndersonJ
  • 3
  • 1
-2
votes
1 answer

Removing lines from txt file, where line doesn't match string

I have a .txt file, with lots of lines in it. I have a procedure to fill up a database, using this textfile. But I only want to insert the lines where the string from position 67 to 70 matches 772. I cannot change the procedure to read the file, I…
Walle
  • 540
  • 1
  • 9
  • 32
-2
votes
1 answer

How to remove lines from lines in C#?

Trying to create code that removes a block of lines from a set of lines. I've stared at this code for 50 minutes, don't know why it doesn't work (Doesn't seem to remove anything). Please help? public string[] removeLinesFromLines(string[]…
-2
votes
1 answer

word count utility in Haskell

I'm fairly new to Haskell. I've been trying to create a utility to count the number of words and lines in Haskell for a few days to help me understand the language better. However, I'm struggling to get it working. So far, I have: wordCountUtility =…
user610
  • 353
  • 2
  • 18
-2
votes
2 answers

Plot set of lines in Matlab

I have a matrix with a set points, divided in groups of 10 (example below). Each group of points corresponds to a line; how can I plot all lines? Here is an example of how the matrix is organised: y = [ 109.41 110.55 111.69 112.83 113.96 115.10…
albus_c
  • 6,292
  • 14
  • 36
  • 77
-2
votes
1 answer

Python Copy specified lines from text file

This is the full Sample for the code that i needed I have edited the full post with the sample text files inputs and outputs Text file :- Mohammed Ahmed Mansour Sami Sameer Ukhlof Asfar Virus Ameer AbuAlameer Ismail Belal Heba Mama Papa Sample…
-2
votes
1 answer

How to create a python code to count number of comment lines and lines containing whitespace in a file?

How to create a python code to count number of comment lines and lines containing whitespace in a file? I have an assignment and I need to write an additional command line utility that counts the lines of code in my program. The utility needs to…
Elliot
  • 19
  • 3
-2
votes
1 answer

Drawing in Java (simulator)

Can you help me how can i program this: I have a jPanel as a graphic zone, I want to generate a line from drawing, I have a random distance, and a random alpha. The problem is whene the first point of line is in this jPanel and the second is out…
Safe Mode
  • 140
  • 1
  • 2
  • 9
-2
votes
1 answer

How to use Turtle graphics to draw a series of parallel lines in python?

How i can draw a series(ex:5) of parallel lines by turtle in python? def parallel_lines(number): #Help me write the body of the function #number is the number of lines for drawing
user2269635
  • 21
  • 1
  • 2
-2
votes
1 answer

Drawing a custom number of straight lines across 1 point with javascript

I'm trying to develop a small application using html5 and canvas/KineticJS. I'd like to trace a number of rays that start from a 2d point to infinite, just setting a custom angle degree. For example, if I set 90° the app should render four rays (two…
Marco Piunti
  • 25
  • 1
  • 1
  • 6