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

Graphics2D Scaling twice in PaintComponent()

Why does this code output two lines that are the same size? import java.awt.*; import javax.swing.*; public class G2Scale extends JPanel{ public static void main(String args[]) { G2Scale g = new G2Scale(); …
Michael Peterson
  • 348
  • 6
  • 22
2
votes
2 answers

Weird thin line under div with partially transparent background on android

Well, the title explains all in combination with the screenshot I guess. The CSS for the header would be as follows: #mainHeader { background: url(../img/header.png) repeat-x; width: 100%; height: 60px; margin: 0 auto; } The image…
user1096736
2
votes
3 answers

How to log line number of the part of code that was executed using VS 2010

I have huge code which has a bug and I have no knowledge of the code. The only thing I know is that when a particular input field is giiven a +ve value it generates correct output and is a -ve value is given an invalid output is generated. From the…
Mustafa
  • 51
  • 7
2
votes
3 answers

Insert a line of comment in Visual Studio

I'm looking for a shortcut in Visual C# Studio 2012 ( if it exists ), that will insert a line of comment like so: /******************************************************************************/ These make the code more readable for me. What I…
user1950996
2
votes
1 answer

delete line containing a specific string in shell

I want to delete a line containing a specific string from my file. I do it like that: sed -i "/example/d" myfile But my file contains many lines containing strings that contain the string that I want to delete. for example my file contains lines…
user1027336
  • 101
  • 1
  • 2
  • 10
2
votes
1 answer

HTML5 canvas path drawing issue

I noticed a weird issue while tried to draw a line with canvas. I have a simple script which save the point when you click first (this will be the start point for path) and when you click again and the first point is already saved, it saves the end…
2
votes
3 answers

Java: Find if the last line of a file is empty

I have a question about a school assignment I need to do it in Java. I need to load data from a file and check for errors in these files. I read the file with a bufferedReader which works perfectly until the end of the file: it ignores the last…
Chirimorin
  • 127
  • 2
  • 12
2
votes
4 answers

Get rid of line above UITableView

I have a UITableView (which happens to have a UISearchBar) and can't seem to figure out how to get rid of the white/gray border above it. I need to have seamless black between the UISearchBar and the black above it. I have tried hiding the…
Tom
  • 247
  • 1
  • 17
2
votes
1 answer

How to add a character in every end of all lines with notepad++

Basicaly title says it all, mine file looks like this: "edit Product",""Home > Opto-electronics > LED > Standard LED, Multicolour"","2226",""KINGBRIGHT LED, 3MM, HE-RED/GRN L-93WEGW"",""SC07621"","197 "edit Product",""Home > Resistors >…
Tautvydas
  • 1,268
  • 7
  • 19
  • 33
2
votes
2 answers

Remove LineShape from Windows Form, LineShape and ShapeContainer Arrays

I am using the code below to add multiple LineShape controls to a Windows Form. Note the globally declared mLineShapes() and mShapeContainter() arrays (at bottom of code) which store each new LineShape object once it's created. At present, I have…
user1493382
2
votes
1 answer

Adding tooltips to line graph data points AFTER lines animate

I have a basic line graph with two lines. When I click a button, one of the two lines will draw on the graph. I use stroke-dasharray to draw the lines. Would anyone know how I could add tooltips to my lines? Does using stroke-dasharray make it…
Daft
  • 10,277
  • 15
  • 63
  • 105
2
votes
1 answer

Delphi RichEdit, get y-pixel start of an arbitrary line

I have a richedit containing lines using different fonts, styles, languages etc. I am drawing in a gutter. I would like to start my drawing at the same y pixel position as the corresponding line.
Tom
  • 3,587
  • 9
  • 69
  • 124
2
votes
2 answers

Appending to a file in java

I am working on a project. For the project I am using GUI and I want to write a number to a file. I have been successful, and I can write the number to the file that i want to. My problem that hopefully someone can give insite to is that everytime i…
toby1618
  • 23
  • 2
2
votes
2 answers

JavaFX - Drawing a line between two nodes

I am busying writing a simple application using JavaFX2. The goal is just to plot 2 nodes (the nodes are movable by dragging them) and then have a function to draw lines between these nodes. I finished the functions to add and move nodes (at the…
Jacques
  • 55
  • 1
  • 6
2
votes
1 answer

Shell script: count the copies of each line from a txt

I would like to count the copies of each line in a txt file and I have tried so many things until know, but none worked well. In my case the text has just a word in each line. This was my last try echo -n 'enter file for edit: ' read file for line…
m_papas
  • 91
  • 1
  • 12