Questions tagged [line]

The shortest distance between two points. Or, a row of characters in text output.

is mostly used in below context:

  • text line or command line in text processing context;
  • line drawing or plotting in visualization or image-processing context
  • analytic geometry

For the LINE-API / LIFF use line-api or line-messenger

6255 questions
2
votes
1 answer

Remove lines with efficient way

I have a data frame named df: number value 1 5 2 5 3 5 4 6 5 6 6 6 7 6 8 7 9 7 10 …
user2354885
2
votes
1 answer

perl qw() function assigning lines instead of words

In Perl @array=qw/this is a line and a new one then a new one ...... ........./; will result in each 'word' being assigned to the @array variables. How can i make each 'line' to be assigned to @array…
dileepmani
  • 37
  • 8
2
votes
1 answer

Draw Line in the Direction of the Mouse Cursor

I have a line that I want to be drawn from the player x and y towards the mouse x and y but I want it to just go in the direction of the mouse cursor (I don't want it to be drawn from the player to the mouse but from the player towards the mouse and…
user2327513
2
votes
1 answer

File "", line 6, in ImportError: No module named Crypto.Cipher

I try to install "Userful MultiSeat-X64-5.0.1 ..." in Ubuntu 04.12 LTS x64, and encountered the following error at the end of the installation: File "", line 6, in ImportError: No module named Crypto.Cipher Anyone know how I can…
wkgames
  • 23
  • 1
  • 6
2
votes
2 answers

Get all the views intersecting by a line IOS

I have a grid of small (30X30 size) UIViews & I am drawing a line over them by tapping two points on the screen as startpoint & endpoint by using the code below: CGContextRef context = UIGraphicsGetCurrentContext(); CGColorSpaceRef colorspace =…
stackNeverFlow
  • 203
  • 4
  • 16
2
votes
1 answer

How do I fix line ending issues after migrating from SVN to git?

I just finished converting a Subversion repository to git using git svn clone--stdlayout --authors-file=ourcommitters.txt svn://svn.internalserver.com While doing so, I had the git flag 'core.autocrlf' set to 'true' - just in case that…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
2
votes
1 answer

Canvas: Click event on line

Please take a look at this little example. The clickhandler only works if you click in the middle of the line. It seems that the method isPointInPath does not consider the width of the line. Is there a way to solve this problem?
Maxii
  • 695
  • 2
  • 13
  • 26
2
votes
1 answer

HR tag for horizontal line is not working

I can't figure out why my
styling is not working. Basically I want just a horizontal black line separating my elements. Here is my website CSS /* Horizontal Line */ .line_break { width:1000px; height: 5px; float: left; color:…
Claire
  • 159
  • 1
  • 4
  • 15
2
votes
6 answers

Removing line numbers (not entire line) from a file in unix

How can I remove line numbers from a file if the line numbers have been added by 'nl'? example: file1: word1 word2 word3 word4 After command: nl file1 > file2 This is the exact command used. file2: 1 word1 word2 2 word3 3 word4 Here comes…
Simon
  • 1,416
  • 1
  • 15
  • 24
2
votes
1 answer

How to draw a line from the source to the destination of a drag and drop operation?

I've implemented a drag and drop system and now I want to draw a line from the source to destination. How can I draw that line? I already used an extension of the View class, but it's not working. Here is my code: public class TempDDActivity extends…
kamal
  • 290
  • 3
  • 20
2
votes
1 answer

Plotting pixels in JFrame Swing

I know creating textfields and labels in swing. Now I want to draw a line by plotting pixels in swing, I have read all the examples on this site as well as any other sites also but I'm not getting it. I know how to do it in applets but I want to do…
crazy4
  • 135
  • 1
  • 2
  • 10
2
votes
1 answer

WPF dashed line — fix dashes during resize

How can I avoid line dash resize during the window resize? Consider the following image: http://leprastuff.ru/data/img/20130315/b83eea4a7a3f07ca53a0e118ddbb9230.Gif
Tony
  • 1,422
  • 1
  • 11
  • 12
2
votes
3 answers

Line spacing after endl and cout?

I noticed that in the following code: cout << "Please enter your number: "; cin >> Number; cout << "Is this spaced"; The output in the command window for C++ automatically puts "Is this spaced" in the next line. It spaces whatever is…
jlcv
  • 1,688
  • 5
  • 21
  • 50
2
votes
1 answer

Plotting dashed line

How to plot a dashed grey line using gnuplot? set style line 1 lt 2 lc rgb "grey" lw 1 I tried: plot "-" using 1:2, \ "-" using 1:2, \ "-" using 1:2 ls 1,\ "-" using 1:2 ls 1 1.5 17 1.7 16 e 1.5 10 1.7 8 e 1.5 0 1.5 20 e 7 0 7…
Razer
  • 7,843
  • 16
  • 55
  • 103
2
votes
4 answers

How to draw line with ESC/POS?

I need to draw a horizontal line (solid one but dashed will be perfect!) to my receipt using ESC/POS commands. Now I'm using some hack that allow me to draw a horizontal line by using "UnderLine" command with some space characters, but i don't like…
Top Systems
  • 951
  • 12
  • 24