QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I draw a line to replace the functionality of VB6's Line command?

General - Windows Forms FAQs
Try this code: Dim g as Graphics g = frmMain.CreateGraphics() g.DrawLine(Pens.Black, new Point(0,0), _ new Point(frmMain.ClientRectangle.Width), frmMain.ClientRectangle.Height) g.Dispose() This should draw a line from the upper left to the bottom right...

Back to top Which AutoCAD commands have command-line functionality?

Hurricane for AutoCAD - FAQ
The following commands are "hyphenated" which means that without the hyphen, a dialog box appears. With the hyphen, a command-line version of the command is requested, and all interaction with the command can be done via scripts. This means that SDI is off, and AutoCAD will not recognize the _OPEN command that is used by default. Go into the Tools->Options menu, and select the Prefs Tab and select "To Load Drawings.. Other", and put "_OPEN" in the field.

Can I run NTBACKUP from the command line?

Environment settings set by a batch file are not working.
ntbackup <operation> <path> /a /b /d "text" /e /hc:<on/off> /l "<filename>" /r /t <backup type> /tape:n /v This will be backup . If you wanted to eject a tape you could enter eject (but must also include the /tape parameter) The list of drives and directories to be backed up. You may not enter file names or use the wildcard character. To backup multiple drives just put a space between them, e.g. ntbackup backup c: d: etc..

How do I draw a sharp, single-pixel-wide line?

Frequently Asked Questions
Answer: This problem usually shows up with code like the following, (and with the default transformation matrix): cairo_move_to (cr, 10, 10); cairo_line_to (cr, 20, 10); cairo_set_line_width (cr, 1); cairo_stroke (cr); The user expects 10 pixels in one row to be affected, but instead the line is "smeared" over 20 pixels in two rows. The reason this happens is easy to explain to someone who believes pixels are little squares.

So where do you draw the line?

The line is drawn where suffering is caused to other people due to selfish actions that stem from ignorance.

Is there a CLI (command line interface) version?

Team Discovery TSC FAQ - dslreports.com
First, of course install TSC. Open TSC and right click on the icon in your task bar (near the clock). Select properties. Set your candidate queue to whatever you want. I max mine out. If you have a dialup computer, unselect the online tab. Click ok, and then right click again and select exit. In this directory, there is a file called readme.txt.. it might be a good idea to read this. It's kind of hard to understand. Now edit (with notepad or something like it), the file called launch.

How do I train SpamBayes (command line method)?

SpamBayes FAQ
Given a pair of Unix mailbox format files (each message starts with a line which begins with 'From '), one containing nothing but spam and the other containing nothing but ham, you can train SpamBayes using a command like: python sb_mboxtrain.py -g ~/tmp/newham -s ~/tmp/newspam The above command is OS-centric (e.g., UNIX, or Windows command prompt). You can also use the web interface for training as detailed above.

How do I pass command-line arguments to a test execution?

JUnit FAQ
If the number of parameters on the command line gets unweildy, pass in the location of a property file that defines a set of parameters. Alternatively, the JUnit-addons package contains the XMLPropertyManager and PropertyManager classes that allow you to define a property file (or XML file) containing test parameters.

How do I get the plot command to cycle through line-types?

MATLAB Frequently Asked Questions
MATLAB v4.1 has a an axis property LineStyleOrder for this. Monochrome users can tell MATLAB to always use white lines and cycle through their favorite line styles with the commands: set( 0, 'DefaultAxesColorOrder', [1 1 1] ) set( 0, 'DefaultAxesLineStyleOrder', '-|:|--' )

How to replace the line?

gradient.cx
The only admissible repairs done on lines are those where the damaged lines are changed for new ones, exclusively supplied by the manufacturer, authorised dealer or service. When putting an order for lines, use code indicators given in the pilot´s manual and or in suspension system reference on this webb-page. An exception is changing a control line in the terrain. For this purpose the manufacturer encloses a spare line with a prepared loop on one end.

How can I get command line editing to work?

R FAQ
The Unix command-line interface to R can only provide the inbuilt command line editor which allows recall, editing and re-submission of prior commands provided that the GNU readline library is available at the time R is configured for compilation. Note that the 'development' version of readline including the appropriate headers is needed: users of Linux binary distributions will need to install packages such as libreadline-dev (Debian) or readline-devel (Red Hat).

How can I process command-line arguments?

Andy Mc's C# FAQ for C++ programmers
Like this: using System; class CApp { public static void Main( string[] args ) { Console.WriteLine( "You passed the following arguments:" ); foreach( string arg in args ) Console.WriteLine( arg ); } }

How do I search files for a string from a batch file/command line?

Environment settings set by a batch file are not working.
There is the basic find command which allows you to search one file at a time for string, however findstr is far more versatile. The command has the following switches FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/F:file] [/C:string] [/G:file] [strings] [[drive:][path]filename[ ...]] When you execute a batch file (or any other DOS command without a pif setting) the _DEFAULT.PIF file in the %systemroot% directory is used.

edit] What if I can't run rebuild Messages.php from the command line ?

MediaWiki FAQ - Meta
If you don't have access to a shell/command line (usually the case with third party hosting services) then you may find you can use Martin Geisler's phpShell software to achieve the desired result (unless SAFE MODE is not set for php). Installation problems are sometimes weird and hard to diagnose.

How can I improve the performance of the source code control command-line tool?

Jim Lamb : Team Foundation Server FAQ
You can use Visual Studio 2005 to compile your application and specify that it should run on a 64-bit operating system either as a native application or under WOW64; however, Visual Studio 2005 itself (including Team Suite and the role-based editions) is a 32-bit application and when installed on a 64-bit Windows operating system will run under WOW64. Likewise, Team Foundation Build is a 32-bit application and when installed on a 64-bit Windows operating system will run under WOW64.

Why does XWin.exe ignore the display depth that I pass on the command line?

Cygwin/X Frequently Asked Questions
When running in windowed mode or GDI-based fullscreen mode, XWin.exe must run the X Server at whatever display depth Windows is currently using; in these cases the display depth passed on the command line is ignored. XWin.exe only uses the display depth parameter when running in a DirectDraw-based fullscreen mode, as DirectDraw allows applications to change the display resolution and depth when running in fullscreen mode.

How can the LDK5910's functionality be extended?

Empower Technologies: FAQ
The LAN and Expansion Module (LEM) exposes the LDK5910 bus. This provides users with the ability to build custom add-on boards with additional functions as required. Empower Professional Service can also redesign or extend the LDK5910 to meet customer's exact needs.

How do I draw a line [segment] between two points?

Graphmatica FAQ
Using the point-slope method, and a little pencil-and-paper arithmetic, it's quite easy to come up with the equation of a straight line between two points (x0, y0) and (x1, y1): (x0-x1)y = (y0-y1)x + x0*y1 - x1*y0 For example, the line between (1, 2) and (4, 3) would be given by the equation: (1-4)y = (2-3)x + 1*3 - 4*2 or, simplified, 3y = x + 5 To draw a line segment instead of a line across the entire coordinate plane, simply add a domain bounded by the X coordinate of either endpoint: (x0-x1.

Q104: What are the command-line switches for Quarterdeck's products?

DESQview/QEMM Frequently Asked Questions: READ BEFORE POSTIN...
Q101: What products does Quarterdeck sell, and what are the current versions? A101: [Versions are the latest known as of the date of the FAQ. If you see a newer version, please let me know.] Quarterdeck has two types of ''upgrades'': major upgrades and compatibility updates. The former involves a changing of the digit before or immediately after the decimal point and represents significant enhancements to the product's performance.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact