Tech and Academic things for Chianshin

Thursday, January 24, 2008

How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Vista

How to install OpenSSH sshd server and sftp server on a Windows 2000 or Windows XP or Windows Vista: "ssh-host-config -y (on slower computers, it may take several minutes to generate the dsa security keys)
If the script asks you about 'privilege separation', answer yes
If the script asks about 'create a local user sshd on this machine', answer yes
If the script asks you about 'install sshd as a service', answer yes

Windows Vista
If Vista asks 'create a new local account ssh_server which has the required privileges' answer yes

When the script stops and asks you for 'environment variable CYGWIN=' your answer is ntsec tty
(click here for an explanation of ntsec)
(click here for an explanation of tty )
(thanks to Peter Reutemann of New Zealand and Ron Dozier of University of Delaware)
(thanks to Mike and Michael Pechner for the Windows Vista tip)
(thanks to Kevin Hilton on the Vista tips in the ssh-host-config section)

See Note 25 near the end of this web page if you need to run ssh-host-config again.

(6) While you are still in the (black) cygwin screen, start the sshd service, type
net start sshd"

Kevin Van Workum - Re: How to add MPI on Cygwin

Kevin Van Workum - Re: How to add MPI on Cygwin: "I have built MPICH on my cygwin installation. The building process was straight forward. One thing to lookout for is that in MPICH, there are many files that case sensitive (e.g. mpicc and mpiCC). Make sure you build MPICH in a directory that is mounted with the 'managed' option. You'll also need rsh or sshd running to use it."

well, configure with --with-device=ch_shmem:-usesysv succeeds
(checking that usable shared memory locks were found... yes), so

Is Cygwin case-sensitive? What are managed mounts?


Several Unix programs expect to be able to use to filenames spelled the same way, but with different case. A prime example of this is perl's configuration script, which wants Makefile and makefile. WIN32 can't tell the difference between files with just different case, so the configuration fails.

To help with this problem, starting in cygwin-1.5.0 it is possible to have a case sensitive Cygwin managed mount. This is an experimental feature and should be used with caution. You should only use it for directories that are initially unpopulated and are due to be completely managed by cygwin (hence the name). So, the best use would be to create an empty directory, mount it, and then add files to it:

mkdir /managed-dir
mount -o managed c:/cygwin/managed-dir /managed-dir
cd /managed-dir/
touch makefile
touch Makefile

Wednesday, January 23, 2008

[news.eclipse.tools.cdt] Re: cdt debug can't find source files

[news.eclipse.tools.cdt] Re: cdt debug can't find source files

My Projects ara all under J:\Projects, so my mapping needs to be present
in Eclipse as:
/cygdrive/j j:/


Open Eclipse and then click
- Windows => Preferences... => C/C++ => Debug =>Common Source Lookup
Path
- Add a new Path Mapping: click [Add] => Path Mapping => [OK]
- Select the new Mapping => [Edith] => change Name of Mapping "Project
Source" => [Add]
- set "Compilation path" to the Source (Sample cygwin!) "/cygdrive/j"
(without the quotes!)
- set"Local file system path" tho "J:\" (without the quotes!)

Now you are ready ti give it another try....   good luck !


Regards
Christian

Thursday, January 17, 2008

Adobe Acrobat 8 Standard

Adobe Acrobat 8 Standard

Keys for selecting tools

To enable single-key shortcuts, choose Edit > Preferences > General, and then select the Use Single-Key Accelerators To Access Tools option.

Tool

Windows action

Mac OS action

Hand tool

H

H

Temporarily select Hand tool

Spacebar

Spacebar

Select tool

V

V

Snapshot tool

G

G

Cycle through zoom tools

Shift+Z

Shift+Z

Current zoom tool

Z

Z

Temporarily select Dynamic Zoom tool (when Marquee Zoom tool is selected)

Shift

Shift

Temporarily zoom out (when Marquee Zoom tool is selected)

Ctrl

Option

Select Object tool

R

R

Object Data tool

O

O

Article tool

A

A

Crop tool

C

C

Link tool

L

L

Take a  survey

Tuesday, January 15, 2008

4.3.1 Godunov-type schemes

4.3.1 Godunov-type schemes

4.3.1 Godunov-type schemes

Godunov's idea: solve a separate Riemann problem at each cell boundary (Fig. 32).
Figure 32: Many Riemann problems.
$\textstyle \parbox{3.2cm}{\makebox[3.2cm]{}}$\includegraphics[width=8.0cm]{images/sketch_manyriemannproblems.ps} $\textstyle \parbox{3.2cm}{\makebox[3.2cm]{}}$
RSA: three steps:

* Reconstruct $\rho(x)$, $\rho\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle v$}} {\mbox{\boldmath... ...{\mbox{\boldmath$\scriptstyle v$}} {\mbox{\boldmath$\scriptscriptstyle v$}}}(x)$, $\rho e_{\rm ik}(x)$ from $\rho_i$, $\rho\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle v$}} {\mbox{\boldmath... ... {\mbox{\boldmath$\scriptstyle v$}} {\mbox{\boldmath$\scriptscriptstyle v$}}}_i$, ${\rho e_{\rm ik}}_i$ (constant values within cell).
* Solve the Riemann problems for $\Delta t$ (and compute fluxes across cell boundaries).
* Average $\rho(x)$, $\rho\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle v$}} {\mbox{\boldmath... ...{\mbox{\boldmath$\scriptstyle v$}} {\mbox{\boldmath$\scriptscriptstyle v$}}}(x)$, $\rho e_{\rm ik}(x)$ to get $\rho_i$, $\rho\ensuremath{\mathchoice{\mbox{\boldmath$\displaystyle v$}} {\mbox{\boldmath... ... {\mbox{\boldmath$\scriptstyle v$}} {\mbox{\boldmath$\scriptscriptstyle v$}}}_i$, ${\rho e_{\rm ik}}_i$ (apply the conservative update formula).

The concept is very useful, but the scheme is too diffusive in its original form.

Friday, January 04, 2008

Dr. Dobb's | Memory Leaks Detection: A Different Approach | December 10, 2007

Dr. Dobb's | Memory Leaks Detection: A Different Approach | December 10, 2007: "Existing Tools?

Are there existing tools that implement the functionality I've examined here? To be truthful, I'm not aware of any commercial memory-profiling tool, but there are a couple of open-source projects that implement this approach:

* Windows Leaks Detector (sourceforge.net/projects/winleak) for Win32 attaches to any running process (no source code required), provides a basic UI to start and end monitoring memory activity, and finally produces a report of all memory leaks with full call stack information. It also lets you automatically add debugger breakpoints when memory allocation occurs.
* LeakTracer (www.andreasen.org/LeakTracer) for Linux requires special compilation of your project."

How to use the commands

How to use the commands

Next: Creating, Editing and Processing Up: Commands for Preparing and Previous: Commands for Preparing and Contents

How to use the commands

Prepare the LaTeX file in an editor and save it with a name ending .tex. Run the commands in a terminal windows.

Process the LaTeX file, mypaper.tex, say, with:

        latex mypaper.tex
or into PDF (Adobe's Page Description File format) using pdflatex:
        pdflatex mypaper.tex
The latex command will produce a DVI file, whereas the pdflatex command will produce a PDF file.

The DVI file can be viewed on the workstation with xdvi:

        xdvi mypaper.dvi
or it can be converted to PostScript (and printed on a laser printer) with the dvips and lpr commands...
        dvips -o mypaper.ps mypaper.dvi
lpr -Ptl3_lw mypaper.ps
(This prints the file in Teaching Lab 3. Use another printer name after -P to send the file to a different printer.)

The dvips command can send the PostScript file directly to some printers. E.g.

         dvips -Pnlw mypaper
sends the output to the North Office laser printer.

         dvips -Ppdf -ta4 mypaper
creates an A4 sized PostScript file called mypaper.ps which is suitable for later conversion to PDF.

PostScript files can be viewed on the workstation with command ggv ...

         ggv mypaper.ps

The command ps2pdf13 will convert an appropriate PostScript file to PDF 1.3. E.g.

        ps2pdf13 mypaper.ps
will create file mypaper.pdf. (This PDF file may be subtly different from one produced directly with pdflatex.)

The PDF file produced by pdflatex or by latex, dvips -Ppdf and ps2pdf13 is viewed with the acroread command, e.g.

        acroread mypaper.pdf
Acroread is a graphical tool; it has an option to print the file being displayed on a printer.

Commands for Preparing and Viewing LaTeX Documents on Linux



Commands for Preparing and Viewing LaTeX Documents on Linux
Next: How to use the Up: Using NEdit to Develop Previous: Contents Contents

Commands for Preparing and Viewing LaTeX Documents on Linux

The LaTeX system - programs, packages of macros etc., is installed on the School's Fedora Core 3 Linux workstations.

LaTeX is a text formatting and typesetting language. LaTeX documents are processed into DVI (DeVice Independent) files which may be converted by various applications for display or printing.

Command Action
latex process LaTeX source file into DVI
xdvi display DVI file in an X window on a workstation
dvips convert DVI file into PostScript for printing

On Linux, the command pdflatex can by used instead of latex to produce a PDF (Adobe's Portable Document Format) file instead of a DVI one.

Command Action
pdflatex process LaTeX source file into PDF
acroread display PDF in an X window on a workstation




Commands for Processing LaTeX Files


Subsections

* How to use the commands

next up previous contents