line

Prevent Silverlight from scaling line width

When using the ScaleTransform class, Silverlight also scale the thickness of the strokes on the shapes that I display. But what if I don't want this behaviour? Is it possible to disable the scaling of strokes, or will I have to iterate over every shape object and set the reciprocal thickness? ...

Control a shell program through command line, giving it multiple instructions/data

I need to control a program in c++ (windows), I need to call it, then pass data to it as I collect it, finally after a certain command that program will use that data. I need to open the prog.exe and then line by line or value by value supply it information, it works manually through cmd. I have tried system() but this will stop after ...

Command Line Arguments: SQL Express versions

Hi, What's the command line to find the following : OS running in the machine is 32 bit/ 64 bit ? SQL Express running is 32 bit/64 bit? Thanks ...

Get line number while using grep.

Hello I am using grep recursive to search files for a string, and all the matched files and the lines containing that string are print on the terminal. But is it possible to get the line numbers of those lines too?? ex: presently what I get is /var/www/file.php: $options = "this.target", but what I am trying to get is /var/www/file.php:...

Javascript - Connect two lines

In the following picture: I want to connect the boxes in the above with below, Let us call the bottom edge of the top boxes as A and top edge of the below boxes as B Now, I have two arrays containing the points in the line A nd B say A = [ {Ax1, Ay1},{Ax2, Ay2},.... ] and B = [ {Bx1, By1},{Bx2, By2},.... ] In real world it can be ...

Display a single line inside a Div element

I've got the following elements inside a Div element: <div class="section"> <%= InventoryGoods.Metadata.PluralLabel %> <%= Html.DropDownList("p.Selection", new[] { new SelectListItem...

Eclipse PropertySheetPage - Can it support a multi line property?

I want to use the Eclipse AdvancedPropertySection which uses PropertySheetPage to display and edit properties, but some of my properties are multi line (e.g. Description). Problem: I can't get the PropertySheetPage to display multi line properties. It displays them as a single line, like this: I tried using WrapTextPropertyDescripto...

Launch new command line and exucte in that shell

This must be a real dumb question. And I cant figure out how. What I want to do is launch a new command line with some arguments and excute some commands there. Here is what I have in my .cmd CMD /k %EnvInstallPath% %wo% %var% cd /d %wo%\src When I execute test.cmd, I see that the directory changes to %wo%, but the further cd src is...

Approximate a R2 line by a set of points

Hi there. I'm working on an application with statistic analysis, and I need some help. Given a set of n points, how can I approximate a line by them. I'm sure there is an algorithm but I couldn't find it. Thanks! ...

Subtract time on specific lines using php

Using php I'd like to subtract/minus two times; each time within a separate document and thereafter have php write the result (Result after subtracting the two times) within another single text document or within a html document with no HTML tags, just text. The two times subtracted will determine how long a certain player has played the...

Not seeing line breaks in CSS code .load()ed via jQuery

I am using jQuery to .load() the contents of a CSS file into a div. But when the contents of that file are loaded, all the line breaks, tabs, etc. are gone. Is there a way to do a load of a css file while still preserving the line breaks? Thanks in advance! ...

symfony command line does nothing

Hi there! I am having some problems executig the symfony command on my project root directory. Some useful information: symfony file permissions: -rwxr-xr-x 1 root root symfony file content: chdir(dirname(FILE)); require_once(dirname(FILE).'/config/ProjectConfiguration.class.php'); include(sfCoreAutoload::getInstance()->getBaseDir()...

android development with scala

The first thing described in the howto (http://www.assembla.com/wiki/show/scala-ide/Developing_for_Android) is this: Step 1: Create the ant files for your project: cd android update project --target 1 --path . which yields 'command not found'. I'm in the 'workspace/name_of_my_app/' folder. How do i get to have the 'android' command...

How can i pass command line arguments to a standalone MATLAB executable running on linux/unix?

How can i pass command line arguments to a standalone MATLAB executable running on Linux/UNIX? I need to compile my MATLAB script as a standalone file that can be run on a machine without matlab present. It needs to be able to work in a way similar to C's argv[], where you do the following: COMMAND LINE: myfile argument1.txt argument2...

How to know what function called another

Hi, I wanna know if there is any way to know where the function currently in execution was called, this is, in what file and line. I'm using C language, and I'm looking for something similar to _FUNCTION_, _LINE_ or _FILE_ macros. Best regards, Sérgio ...

Vim Macro on Every Line of Visual Selection

I'd like to run a macro on every line in a selection, rather than totalling up the number of lines in my head. For instance, I might write a macro to transform: Last, First Into First Last and I'd like it to run on all these lines: Stewart, John Pumpkin, Freddy Mai, Stefan ... Any ideas Vim gurus? EDIT: This is just an example...

Is there a way to use java to execute a series of command line

Hi, I'm looking for a way to compile visual studio c++ project in java. I know it's a bit strange to do it this way. but I'm doing a evolutionary algorithms. So Java is creating c++ code and compile it in Java not c++. I just need to automate it, so I don't have to copy the c++ code and paste it in .NET and click compile it. So I'm lo...

Visual SourceSafe 2005 - How to GET changed files for a certain date range (command line tool)

Here I was trying to perform a GET operation to pull a list of files that have been checked in/changed for a given date range, excluding the ones that have not been changed in that time frame. Here's the command I'm using: ss Get $\MY_PROJECT to . -Vd8/01/10;12:00a~08/03/10;11:59p -R In the beginning it actually seems to do what I wa...

Aligning text to always be on the outside of line

I know how to align text diagonally, but I'm having trouble aligning the text to be always on the outside, as the diagram shows: http://i38.tinypic.com/rs4zlj.png The lines will always be positioned as a triangle. What I get instead is, depending on the angle, text is inside or out (and upside down). Is there any math that can help me o...

R inline compilation of C code fails on Windows

Within the Windows XP Pro RGui, can't compile inline C code. Get error: 'sh' is not recognized as an internal or external command Clearly there is a configuration error, but can't find a way to resolve it either in R documentation or via googling. Must be a simple solution! The same R code works fine on linux: the inline C compiles ...