|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help |
Here are some answers to computer-related questions commonly asked at CUED.
If you can think of questions that should be added here,
mail tl136.
Also useful is the Operators Top Tips
page and
the University Computing Service's Frequently Asked Questions.
![]() Sections
|
Information
|
menu-item on the File Browser window. Alternatively,
if you think you have a file somewhere called prog.p, try
typing 'locate prog.p'. If that fails, try
'find ~ -name prog.p'. If all you know is that
the filename has rog in it, do 'find ~ -name "*rog*"'.
in the Utilities section of the Applications panel, or gzip from the command lineset output "graphics.ps" set term post colorand type some plot commands then a postscript file called "graphics.ps" will be produced, rather than the graphics appearing onscreen. You can view/print the resulting file in the usual way.
set output "graphics.ps"and type some plot commands then a postscript file called "graphics.ps" will be produced. If you then try
set term x11to make graphics appear onscreen, "graphics.ps" will still be written into. Do
set outputto close the "graphics.ps" file before resetting the terminal.
icon at the bottom of the screen.Note that most of our machines are not visible from outside Cambridge University and many aren't visible even from other parts of the University. See the Machines and Access list for current Teaching System details.
or
(in the applications panel) or import from the command line. For example, typing import pix.jpg will create a jpeg file called pix.jpg (you can also create postscript files pix.ps, pix.eps, etc). After starting the command, clicking with the left mouse-button on a window will dump the whole window. If instead you use the middle mouse-button you can select a rectangle by dragging.
\newenvironment{narrow}[2]{%
\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
Then \begin{narrow}{1.0in}{0.5in} ... \end{narrow}
produces text which is narrowed by 1.0 inch on left and 0.5 inches
on the right.
a=[ 0 1 0 ; 7 6 5 ; 8 0 9 ; 0 0 0 ; 1 1 1 ];
b=[0 0 0];
a(findmat(a, b),:)=[]
to remove rows of zeroes from a matrix.
NUM LOCK off
- emacs has an overwrite mode (Ovwrt appears
at the bottom of the window) which is toggled by pressing the Insert button or the keypad's 0 button. If you accidentally press one of these buttons, just press the button again.
(autoload 'c++-mode "c++-mode" "Enter C++ mode." t)
(setq auto-mode-alist (cons '("\\.cxx$" . c++-mode) auto-mode-alist))
(KSnapshot) or
(Take Screenshot) in the applications panel, or import from the command line.

By selecting the Organise Bookmarks option in the Bookmarks
menu you can reach a panel that lets you load bookmark files. Using the Restore or Import commands, look for the most recent bookmark files under your home folder in
When you log in, you send your PIN information from a secure web page, using 'https://...', but all of the other pages use straightforward 'http://...'. What's happening is that your browser's requests for the 'http' pages are being sent via a proxy, whereas the 'https' requests are coming direct to the server. This makes the server think that the requests are coming from two separate computers, and therefore that someone is trying to break into the system.
So that's the reason for the message. You may not even have deliberately set a proxy in your browser: some ISPs will transparently feed all of your http requests through a proxy.The solution is to make sure that all of your requests, both http and https, are sent to the server in the same way. Your best way of doing this is to manually set your browser to use the same proxy for both.
If you have already deliberately set a proxy, make sure that the same setting is in place for both http and https.If you don't have any proxy server set, then your ISP must be doing some transparent proxying. Visit the http://www.all-nettools.com/pr.htm page to find out what the name of the proxy is. Then go back to your browser's settings, and set your browser explicitly to use that proxy for both http and https.
*documentFonts.charset*adobe-fontspecific: iso-8859-1
PROGRAM Argtest IMPLICIT NONE integer*4 nargs,i character arg*80 nargs = iargc() do i = 0,nargs call getarg(i, arg) print '(a)', arg end do END PROGRAM Argtest ! Put this in a file (called foo.f90 for example), compile using ! f90 -o argtest foo.f90 ! then try the resulting program, providing command line arguments ! E.g. ! argtest -file data1 -rate 6 ! You'll see that 'arg' holds the successive command line arguments
| | computing help | |